﻿:root {
  color-scheme: light;
  --paper: #ffffff;
  /* Primary blue from ljse.si's main stylesheet. */
  --brand: #024da1;
  --ink: #163453;
  --muted: #526477;
  --accent: #d9eafb;
  --border: #d4dfeb;
  --notice-background: #edf5fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

.page-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px #1634530a;
}

.page-nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.65rem 0;
  margin-block: 0;
  list-style: none;
}

.page-nav a {
  display: block;
  padding: 0.6rem 0.85rem;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.35rem;
}

.page-nav a:hover {
  background: var(--notice-background);
}

.page-nav a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.page-nav .nav-registration {
  background: var(--brand);
  color: #ffffff;
}

.page-nav .nav-registration:hover {
  background: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.social-footer {
  padding-block: 2rem;
  background: var(--brand);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  border-radius: 50%;
}

.social-links a:hover {
  background: #ffffff26;
}

.social-links a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Titillium Web", "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.hero {
  background: #f0f7fb;
  border-bottom: 1px solid var(--border);
}

.header-image {
  display: block;
  width: 100%;
  max-width: 2240px;
  height: auto;
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.countdown {
  padding-block: 2rem;
  background: var(--notice-background);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.countdown h2 {
  margin-bottom: 1.25rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1.25rem);
  max-width: 540px;
  margin-inline: auto;
}

.countdown-grid[hidden] {
  display: none;
}

.countdown-grid > div {
  padding: 0.75rem 0.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.countdown-grid [data-unit] {
  display: block;
  color: var(--brand);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.countdown-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.countdown p {
  margin-bottom: 0;
}

#countdown-status:empty {
  display: none;
}

h1,
h2,
p {
  margin-top: 0;
}
.about {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

h2 {
  color: var(--brand);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.about-content p {
  text-align: justify;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.about-content .lead {
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.65;
}

strong {
  color: var(--ink);
  font-weight: 650;
}

.notice {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--brand);
  background: var(--notice-background);
}

.notice p {
  margin: 0;
}

.programme,
.moderators,
.speakers,
.companies {
  padding-block: 2.5rem 4rem;
  border-top: 1px solid var(--border);
}

.registration-cta {
  font-size: 2rem;
}

.registration-link {
  display: inline-block;
  margin: 0.5rem 0 0.5rem 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 0.35rem;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.registration-link:hover {
  background: #163453;
}

.registration-link:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

#prijava {
  scroll-margin-top: 1.5rem;
}

.programme-list,
.speaker-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.programme-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.programme-list li:nth-child(odd) {
  background: var(--notice-background);
}

.programme-time {
  color: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.programme-disclaimer,
.speakers-disclaimer {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
}

.programme-subtitle {
  margin: 2rem 0 1rem;
  font-size: 1.1rem;
}

.speaker-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.speaker-list li {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: 0.25rem;
}

.speaker-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.moderator-list {
  display: grid;
  gap: 2rem;
}

.moderator-card {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: 0.25rem;
}

.moderator-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.2rem;
}

.moderator-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

.moderator-card p {
  margin: 0;
  color: var(--muted);
}

.speaker-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 31 / 38;
  object-fit: contain;
  margin-bottom: 1.25rem;
  background: var(--notice-background);
  border-radius: 0.2rem;
}

.speaker-list p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: break-word;
}

@media (max-width: 800px) {
  .speaker-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.companies h2 {
  margin-bottom: 1.75rem;
}

.company-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 140px;
  padding: 1.25rem;
  background: #ffffff;
}

.company-list img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.registration {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--notice-background);
  border-top: 1px solid var(--border);
}

.registration-inner {
  max-width: 760px;
}

.registration-form {
  display: grid;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.registration-form label,
.registration-form legend {
  font-weight: 600;
}

.form-field input {
  width: 100%;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1px solid #8b9fb5;
  border-radius: 0.35rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.registration-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.attendance-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 0.5rem;
}

.attendance-options label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  cursor: pointer;
}

.attendance-options input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--brand);
}

.registration-form button {
  justify-self: start;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: 0.35rem;
  background: var(--brand);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.registration-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.registration-form :focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.form-status {
  margin: 0;
  color: var(--muted);
}

.registration-reminder {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.field-hint {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.consent-text {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.consent-text h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: inherit;
  font-weight: 700;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.consent-checkbox input {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  accent-color: var(--brand);
}

.consent-checkbox.consent-invalid {
  color: #a61b29;
  background: #fff0f1;
  outline: 2px solid #a61b29;
  outline-offset: 5px;
  border-radius: 0.2rem;
}

.consent-invalid input {
  outline: 2px solid #a61b29;
  outline-offset: 2px;
}

.consent-error {
  color: #a61b29;
  font-weight: 600;
}

.consent-text a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.consent-text p {
  margin: 0 0 0.75rem;
}

.consent-text ul {
  margin: 0;
  padding-left: 1.25rem;
}

.consent-text li + li {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .moderator-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .moderator-card img {
    max-width: 310px;
  }
  .page-nav {
    position: relative;
  }

  .page-nav-links {
    gap: 0.25rem;
  }

  html {
    scroll-padding-top: 1rem;
  }
  .programme-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .speaker-list {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .container {
    width: calc(100% - 2.5rem);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about h2 {
    margin-bottom: 0;
  }

  .company-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .company-list li {
    height: 110px;
    padding: 0.75rem;
  }
}


