/* ============================================
   CND Poland 2026 — Premium Conference Theme
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* The `hidden` attribute must beat any component's own `display`. Several
   things below are laid out with flex/grid and then shown or hidden from JS
   (agenda view switch, search filter, abstract toggles) — without this the
   attribute is silently ignored on every one of them. */
[hidden] { display: none !important; }

:root {
  --color-primary: #1a365d;
  --color-primary-dark: #0f2440;
  --color-accent: #2b6cb0;
  --color-accent-light: #3b82c4;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-bg-dark: #1a2332;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-border: #e2e8f0;
  --color-gold: #c9a84c;
  /* Same hue as --color-gold, darkened until small text passes AA on white. */
  --color-gold-ink: #866a15;
  --max-width: 1100px;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-base); }
a:hover { text-decoration: underline; }

/* ============================================
   Header
   ============================================ */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(26, 54, 93, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.site-logo:hover { text-decoration: none; }
.site-logo-img { height: 36px; width: auto; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.nav-list a {
  color: #cbd5e0;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition-base);
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}
.nav-list a:hover, .nav-list a.active { color: #fff; text-decoration: none; }
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

/* Regulations dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #cbd5e0;
  font-size: 0.95rem;
  font-family: inherit;
  transition: color var(--transition-base);
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { color: #fff; }
.nav-caret { transition: transform var(--transition-base); }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  min-width: 220px;
  background: var(--color-primary);
  padding: 0.6rem 0;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.13s ease, transform 0.13s ease, visibility 0.13s ease;
  /* Short grace period: keep the menu open just long enough that a quick pass
     off-and-back-on doesn't make it flicker shut, without feeling laggy. */
  transition-delay: 0.1s;
}
/* Invisible bridge spanning the gap between the toggle and the menu, so the
   cursor stays within the hover zone while travelling down to the items. */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.9rem;
  left: 0;
  right: 0;
  height: 0.9rem;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.nav-doc {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  white-space: nowrap;
}
.nav-doc-name { color: #fff; font-size: 0.9rem; margin-right: auto; }
.nav-doc a {
  color: #cbd5e0;
  font-size: 0.82rem;
  transition: color var(--transition-base);
}
.nav-doc a::after { display: none; }
.nav-doc a:hover { color: var(--color-gold); text-decoration: none; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none; flex-direction: column; position: absolute;
    top: 60px; right: 1rem; background: var(--color-primary);
    padding: 1rem; border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .nav-list.open { display: flex; }

  /* On mobile the dropdown expands inline rather than floating */
  .nav-dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
    box-shadow: none;
    background: transparent;
    padding: 0.3rem 0 0.3rem 0.5rem;
    min-width: 0;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-doc { padding: 0.4rem 0; }
}

/* Header actions: nav + persistent ticket CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-ticket {
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.nav-ticket .nav-ticket-label-short { display: none; }

@media (max-width: 768px) {
  .header-actions { gap: 0.75rem; }
  .nav-ticket { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
}
@media (max-width: 420px) {
  .nav-ticket .nav-ticket-label { display: none; }
  .nav-ticket .nav-ticket-label-short { display: inline; }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 40%, var(--color-accent) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(43, 108, 176, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated grid pattern */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
  pointer-events: none;
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.hero-content {
  max-width: 800px;
}

/* Hero photo collage */
.hero-media {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  width: 100%;
  max-width: 480px;
}

.hero-collage img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

/* Wide registration/venue shot spans the full first row */
.hero-collage .hero-collage-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.hero-collage img:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

/* Hide the placeholder collage on narrow screens */
@media (max-width: 900px) {
  .hero-media { display: none; }
}

/* Two-column hero on larger screens */
@media (min-width: 901px) {
  .hero { text-align: left; }
  .hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3.5rem;
  }
  .hero-content { max-width: 620px; }
  .hero-buttons { justify-content: flex-start; }
  .hero-collage { max-width: 480px; margin-left: auto; }
}

.hero-logo {
  max-width: 350px;
  width: 70%;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero-heading {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-accent {
  background: linear-gradient(135deg, var(--color-gold) 0%, #e8c95a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.25rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.hero-date {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
  background: #f0f4f8;
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn-secondary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}
.btn-secondary:hover {
  background: var(--color-accent);
  box-shadow: 0 6px 25px rgba(43, 108, 176, 0.4);
}

.btn-disabled {
  background: #b0b8c4;
  color: #fff;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Ticket CTA — bright azure button with glow + shine sweep */
.btn-ticket {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #1577be 0%, #2b9fe0 44%, #5cc0f5 50%, #2b9fe0 56%, #1577be 100%);
  background-size: 220% auto;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  box-shadow: 0 6px 22px rgba(43, 159, 224, 0.45);
  overflow: hidden;
  animation: ticketGlow 3.2s ease-in-out infinite;
}
.btn-ticket svg, .btn-ticket span { position: relative; z-index: 1; }
.btn-ticket svg { flex-shrink: 0; }
.btn-ticket:hover {
  color: #ffffff;
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(43, 159, 224, 0.62);
  animation: none;
}
.btn-ticket::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.72) 50%, transparent 100%);
  transform: skewX(-22deg);
  animation: ticketShine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ticketGlow {
  0%, 100% { box-shadow: 0 6px 20px rgba(43, 159, 224, 0.38); }
  50%      { box-shadow: 0 8px 30px rgba(43, 159, 224, 0.62); }
}
@keyframes ticketShine {
  0%        { left: -60%; }
  28%, 100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-ticket { animation: none; }
  .btn-ticket::after { display: none; }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-label.light { color: var(--color-gold); }

.section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-weight: 700;
}

.section-description {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-description.light { color: rgba(255,255,255,0.75); }

.section-link { text-align: center; margin-top: 2rem; }

/* Alternating backgrounds */
.section-about { background: var(--color-bg); }
.section-video { background: var(--color-bg-alt); }
.section-coming { background: var(--color-bg-alt); }
.section-speakers { background: var(--color-bg); }
.section-cfp { background: var(--color-bg-alt); }
.section-venue { background: var(--color-bg-alt); }
.section-sponsors { background: var(--color-bg-alt); }
.section-photos { background: var(--color-bg); }
.section-contact { background: var(--color-bg-alt); }
.section-organizers { background: var(--color-bg); }

.section-cta {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  text-align: center;
}
.section-cta h2 { color: #fff; }

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons-tickets { margin-bottom: 2.5rem; }

.cta-tickets-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.cta-newsletter-prompt {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  position: relative;
}
.cta-newsletter-prompt::before,
.cta-newsletter-prompt::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  vertical-align: middle;
  margin: 0 0.75rem;
}

/* ============================================
   Newsletter Form
   ============================================ */
.newsletter-form {
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

.newsletter-alert {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  color: #ffb4b4;
  font-size: 0.9rem;
  text-align: center;
}
.newsletter-alert:empty { display: none; }

.newsletter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: stretch;
}

.newsletter-input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.6); }

.newsletter-input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,0.15);
}

.newsletter-submit {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.newsletter-disclaimer {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .newsletter-fields { flex-direction: column; }
  .newsletter-input, .newsletter-submit { width: 100%; }
}

/* ============================================
   Stats Row
   ============================================ */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ============================================
   Video
   ============================================ */
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
/* Scoped with .section-video so the hover transform wins over .reveal.visible
   (which also sets transform on this element once it has scrolled into view). */
.section-video .video-wrapper:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ============================================
   Venue Section
   ============================================ */
.venue-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .venue-info-row { grid-template-columns: 1fr; }
}

.venue-text h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.venue-text p {
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.venue-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.venue-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-accent);
  font-weight: 500;
}

.venue-detail svg { flex-shrink: 0; }

.venue-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.venue-photo {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.venue-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
  filter: saturate(0.8);
}

.venue-photo:hover img {
  transform: scale(1.08);
  filter: saturate(1.2);
}

.venue-photo-wide {
  grid-column: 1 / -1;
}

.venue-photo-wide img {
  height: 220px;
}

/* ============================================
   Feature Cards
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.feature-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}

.feature-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Organizers (Home)
   ============================================ */
.organizer-row-home {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.organizer-card-home {
  text-align: center;
  width: 120px;
}

.organizer-photo-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--color-border);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.organizer-photo-wrapper:hover {
  border-color: var(--color-accent);
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(43, 108, 176, 0.2);
}

.organizer-photo-home {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition-slow);
}

.organizer-photo-wrapper:hover .organizer-photo-home {
  filter: grayscale(0%);
}

.organizer-card-home h4 {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
/* Content starts semi-visible (so returning visitors aren't kept waiting on a
   blank screen), then slides up with a springy overshoot as it scrolls into
   view. The .visible class is added by the IntersectionObserver in footer.html. */
.reveal {
  opacity: 0.5;
  transform: translateY(22px);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-in animations for hero */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Cards (speakers, general)
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--color-bg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.card h3 { color: var(--color-primary); margin-bottom: 0.3rem; }
.card-subtitle { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* ============================================
   Page content
   ============================================ */
.page {
  padding: 3rem 0;
  padding-top: 5rem; /* account for fixed header */
}

.page h1 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.page h2 { margin-top: 2rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.page h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.page p { margin-bottom: 1rem; }
.page ul, .page ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.page li { margin-bottom: 0.3rem; }

/* ============================================
   404 — "drifted off the cluster"
   ============================================ */
.nf {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -4rem; /* cancel main.container padding-top */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 40%, var(--color-accent) 100%);
}
/* faint animated grid, matching the hero */
.nf::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
  pointer-events: none;
}

.nf-bg { position: absolute; inset: 0; pointer-events: none; }
.nf-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  box-shadow: 0 0 6px 1px rgba(255,255,255,0.5);
  animation: nfTwinkle 4s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes nfTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50%      { opacity: 0.9;  transform: scale(1.2); }
}

.nf-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* helm-wheel halo behind the giant 404 */
.nf-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.nf-helm {
  position: absolute;
  z-index: -1;
  width: clamp(260px, 62vw, 380px);
  height: clamp(260px, 62vw, 380px);
  opacity: 0.9;
  filter: drop-shadow(0 0 26px rgba(201,168,76,0.25));
  animation: nfBob 7s ease-in-out infinite;
}
.nf-helm-wheel { transform-origin: 100px 100px; animation: nfSpin 60s linear infinite; }
.nf-helm-orbit { transform-origin: 100px 100px; animation: nfSpin 90s linear infinite reverse; }
@keyframes nfSpin { to { transform: rotate(360deg); } }
@keyframes nfBob {
  0%, 100% { transform: translateY(-6px) rotate(-2deg); }
  50%      { transform: translateY(6px)  rotate(2deg); }
}

.nf-code {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(5.5rem, 19vw, 10rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0,0,0,0.4);
}
.nf-code span { display: inline-block; animation: nfFloatDigit 5s ease-in-out infinite; }
.nf-code span:nth-child(2) { animation-delay: .4s; color: var(--color-gold); }
.nf-code span:nth-child(3) { animation-delay: .8s; }
@keyframes nfFloatDigit {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
/* subtle RGB-split glitch */
.nf-code::before, .nf-code::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  z-index: -1;
  letter-spacing: 0.04em;
}
.nf-code::before { color: #ff4d6d; animation: nfGlitch 5.5s steps(2, end) infinite; }
.nf-code::after  { color: #38bdf8; animation: nfGlitch 5.5s steps(2, end) reverse infinite; }
@keyframes nfGlitch {
  0%, 92%, 100% { transform: translate(0,0); opacity: 0; }
  93% { transform: translate(-3px, 2px); opacity: .55; }
  96% { transform: translate(3px, -2px); opacity: .55; }
  99% { transform: translate(-2px, -1px); opacity: .35; }
}

.nf-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.nf-joke {
  font-size: 1.05rem;
  min-height: 1.6em;
  margin: 0 0 1.8rem;
  color: rgba(255,255,255,0.78);
  transition: opacity 0.35s ease;
}

/* fake kubectl terminal */
.nf-term {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 2rem;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  font-family: 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;
}
.nf-term-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nf-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.nf-dot--r { background: #ff5f56; }
.nf-dot--y { background: #ffbd2e; }
.nf-dot--g { background: #27c93f; }
.nf-term-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transform: translateX(-18px);
}
.nf-term-body {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #c9d1d9;
  white-space: pre-wrap;
  word-break: break-word;
}
.nf-prompt { color: #27c93f; font-weight: 700; }
.nf-path { color: #58a6ff; }
.nf-err { color: #ff7b72; font-weight: 700; }
.nf-cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  vertical-align: text-bottom;
  background: #c9d1d9;
  animation: nfBlink 1.1s steps(1) infinite;
}
@keyframes nfBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.nf-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* floating fresh-photo collage */
.nf-gallery {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.nf-gallery img {
  width: clamp(110px, 24vw, 160px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
  transform: rotate(var(--r));
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  animation: nfFloatPhoto 6s ease-in-out infinite;
}
.nf-gallery img:nth-child(2) { animation-delay: .8s; }
.nf-gallery img:nth-child(3) { animation-delay: 1.6s; }
.nf-gallery img:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 22px 48px rgba(0,0,0,0.55);
  z-index: 2;
}
@keyframes nfFloatPhoto {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50%      { transform: rotate(var(--r)) translateY(-10px); }
}

@media (max-width: 560px) {
  .nf-gallery img:nth-child(3) { display: none; }
  .nf-term-title { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nf::after, .nf-star, .nf-helm, .nf-helm-wheel, .nf-helm-orbit,
  .nf-code span, .nf-code::before, .nf-code::after,
  .nf-cursor, .nf-gallery img {
    animation: none !important;
  }
  .nf-code::before, .nf-code::after { opacity: 0; }
}

/* ============================================
   Agenda table
   ============================================ */
.agenda-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.agenda-table th, .agenda-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.agenda-table th { background: var(--color-primary); color: #fff; }
.agenda-table tr:nth-child(even) { background: var(--color-bg-alt); }

/* ============================================
   List items
   ============================================ */
.list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.list-item h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }

/* ============================================
   Footer
   ============================================ */
main.container {
  flex: 1;
  padding-top: 4rem; /* space for fixed header */
}

main.main-home {
  flex: 1;
  padding-top: 0;
}

.site-footer {
  background: var(--color-bg-dark);
  border-top: none;
  padding: 3rem 0;
  text-align: center;
  color: rgba(255,255,255,0.5);
  margin-top: auto;
}

.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; text-decoration: none; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.footer-links a:hover::after {
  width: 100%;
}

/* Keep a document link and its English (EN) variant together as one item */
.footer-doc {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.footer-links a.footer-en {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,0.5);
}

.footer-links a.footer-en:hover {
  color: var(--color-gold);
}

@media (max-width: 800px) {
  .footer-doc {
    flex-basis: 100%;
    justify-content: center;
  }
}

/* ============================================
   Organizers page
   ============================================ */
.organizer-grid {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  text-align: center;
}

.organizer-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.organizer-card {
  width: 200px;
  transition: transform var(--transition-base);
}
.organizer-card:hover { transform: translateY(-4px); }

.organizer-card h3 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.organizer-role {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.organizer-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  background: var(--color-bg-alt);
  border: 3px solid var(--color-border);
  filter: grayscale(100%);
  transition: filter var(--transition-slow), border-color var(--transition-base), transform var(--transition-base);
}

.organizer-card:hover .organizer-photo {
  filter: grayscale(0%);
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.organizer-photo.placeholder {
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(26, 54, 93, 0.10);
  border-color: var(--color-accent-light);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
  user-select: none;
  transition: background var(--transition-base), color var(--transition-base);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: var(--color-bg-alt);
}

.faq-item[open] summary {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
}

.faq-item .faq-answer {
  padding: 1.25rem 1.5rem;
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg-alt);
  animation: faq-fade-in 0.3s ease;
}

.faq-item .faq-answer p { margin: 0; }

/* Smaller English (PDF) link shown next to a legal document link */
.faq-answer a.faq-en {
  font-size: 0.85em;
  white-space: nowrap;
}

@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Venue page specific
   ============================================ */
.venue-hero-banner {
  position: relative;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.venue-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Placeholder sections (speakers, agenda, sponsors)
   ============================================ */
.placeholder-section {
  max-width: 800px;
  margin: 2rem auto 0;
}

.placeholder-banner {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(26, 54, 93, 0.12);
  margin-bottom: 2rem;
}

.placeholder-content {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.placeholder-content h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.placeholder-content p {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.placeholder-content p:last-child {
  margin-bottom: 0;
}

.placeholder-content strong {
  color: var(--color-primary);
}

/* Breathing room between the speaker lineup and the trailing "Stay in the loop"
   callout on the agenda page (the grid sits directly before it). */
.speakers-grid + .placeholder-content {
  margin-top: 3rem;
}

.venue-page-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.venue-page-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform var(--transition-slow), filter var(--transition-slow);
  filter: saturate(0.85);
}

.venue-page-gallery img:hover {
  transform: scale(1.03);
  filter: saturate(1.15);
}

.venue-map-card {
  margin: 2.5rem 0;
  border-radius: 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(26, 54, 93, 0.08);
  overflow: hidden;
}

.venue-map-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}

.venue-map-info {
  display: flex;
  gap: 1.2rem;
  padding: 2rem 2.5rem;
  align-items: flex-start;
}

.venue-map-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 0.2rem;
}

.venue-map-info h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin: 0 0 0.6rem 0;
}

.venue-map-address {
  color: var(--color-text);
  line-height: 1.7;
  margin: 0 0 1.4rem 0;
}

.venue-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.venue-map-embed {
  min-height: 300px;
  background: var(--color-border);
}

.venue-map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

@media (max-width: 768px) {
  .venue-map-card-inner {
    grid-template-columns: 1fr;
  }
  .venue-map-info {
    padding: 1.5rem;
  }
  .venue-map-embed {
    min-height: 250px;
  }
  .venue-map-embed iframe {
    min-height: 250px;
  }
}

/* ============================================
   CFP Page
   ============================================ */
.cfp-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.cfp-hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cfp-illustration {
  width: 200px;
  height: auto;
  max-height: 200px;
  filter: drop-shadow(0 4px 12px rgba(26, 54, 93, 0.1));
}

.cfp-submit-mobile { display: none; }
.cfp-submit-desktop { display: block; margin-top: 1.5rem; }

@media (max-width: 768px) {
  .cfp-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cfp-hero-left {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }
  .cfp-illustration {
    width: 140px;
    max-height: 140px;
  }
  .cfp-submit-mobile { display: block; }
  .cfp-submit-desktop { display: none; }
  .cfp-hero-right .section-label { text-align: center !important; }
}

.cfp-hero-right h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cfp-hero-sub {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cfp-deadline {
  font-size: 1.15rem;
  color: var(--color-accent);
}

.cfp-deadline strong {
  color: var(--color-primary);
  font-size: 1.25rem;
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

/* Keep the large ticket CTA the same shape as the hero/nav ticket buttons */
.btn-ticket.btn-large {
  border-radius: 6px;
}

.cfp-submit-note {
  margin-top: 0.75rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-style: italic;
}

.cfp-closed-panel {
  max-width: 720px;
  margin: 0 auto 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.cfp-closed-panel h3 {
  color: var(--color-primary);
  margin: 0.5rem 0 0.75rem;
}

.cfp-closed-panel p {
  margin: 0 0 1rem;
}

.cfp-closed-panel p:last-child {
  margin-bottom: 0;
}

.cfp-closed-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.cfp-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .cfp-columns { grid-template-columns: 1fr; }
}

.cfp-card {
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--color-border);
}

.cfp-card h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  margin-top: 0;
  text-align: left;
}

.cfp-card h2 + h2,
.cfp-card ul + h2 {
  margin-top: 1.5rem;
}

.cfp-topics {
  list-style: none;
  padding: 0;
}

.cfp-topics li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cfp-topics li:last-child { border-bottom: none; }

.cfp-topic-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.cfp-guidelines {
  list-style: none;
  padding: 0;
}

.cfp-guidelines li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cfp-guidelines li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.6;
}

.cfp-timeline-section {
  text-align: center;
  padding: 2rem 0;
}

.cfp-timeline-section h2 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.cfp-timeline-note {
  color: var(--color-text-light);
}

/* ============================================
   About Page
   ============================================ */
.about-hero-graphic {
  position: relative;
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-accent));
  padding: 3rem 2rem;
  color: #fff;
  text-align: center;
}

.about-hero-graphic h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.about-hero-graphic p {
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.about-value-card {
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.about-value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

.about-value-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.about-value-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.about-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

.about-photo-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  filter: saturate(0.85);
  transition: filter var(--transition-slow), transform var(--transition-slow);
}

.about-photo-strip img:hover {
  filter: saturate(1.2);
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .about-photo-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .about-photo-strip { grid-template-columns: 1fr; }
}

/* ============================================
   Code of Conduct Page
   ============================================ */
.coc-intro {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.coc-intro-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.coc-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.coc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .coc-grid { grid-template-columns: 1fr; }
}

.coc-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.coc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.coc-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.coc-card-header h2 {
  font-size: 1.2rem;
  margin: 0;
  text-align: left;
}

.coc-card-green { border-left: 4px solid var(--color-accent); }
.coc-card-red { border-left: 4px solid #c53030; }
.coc-card-blue { border-left: 4px solid var(--color-accent); }
.coc-card-amber { border-left: 4px solid var(--color-gold); }

.coc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.coc-list li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}

.coc-card-green .coc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
}

.coc-card-red .coc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c53030;
  opacity: 0.5;
}

.coc-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

.coc-attribution {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-intro {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(43, 108, 176, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card h3 {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.contact-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-email {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  word-break: break-all;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-sidebar-card {
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.contact-sidebar-card h3 {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.contact-sidebar-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.contact-social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.contact-location {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.contact-location:last-child { margin-bottom: 0; }

.contact-location svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

/* Organizer registration details (Contact page + homepage contact block) */
.org-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35rem !important;
}

.org-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.org-reg {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  margin: 0;
}

.org-reg dt {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.org-reg dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ============================================
   Highlights Photo Grid (Homepage)
   ============================================ */
.highlights-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.highlights-photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  filter: saturate(0.85);
  transition: filter var(--transition-slow), transform var(--transition-slow);
}

.highlights-photo-grid img:hover {
  filter: saturate(1.2);
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .highlights-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .highlights-photo-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Three-column feature grid
   ============================================ */
.features-grid-three {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .features-grid-three {
    max-width: 480px;
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Speaker Cards (Homepage lineup)
   ============================================ */
/* Flexbox rather than grid so an incomplete final row centres instead of being
   left-aligned with empty space on the right. Cards use a fixed flex-basis (they
   don't grow), so every card is the same width and each wrapped row is centred by
   justify-content — full rows fill the container edge-to-edge, the last row sits
   centred. */
.speakers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  /* Cap the row at 4 cards (4×210px + 3×1.5rem gap = 912px; a 5th needs
     1146px), so the lineup reads as a tidy block instead of stretching to the
     full 1100px container. */
  max-width: 912px;
  margin: 1rem auto 0;
}

.speaker-card {
  /* Fixed width as a flex item (grow: 0) so all cards match and rows centre. */
  flex: 0 1 210px;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(26, 54, 93, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  /* Stagger each card's reveal slightly across its row for a cascading feel. */
  transition-delay: calc(var(--stagger, 0) * 60ms);
}

.speaker-card:hover,
.speaker-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 54, 93, 0.16);
  border-color: var(--color-accent);
}

/* The card body is one big link (to /agenda/#speaker-<slug>, upgraded to the
   speaker dialog when JS is on). The social icons sit outside it — an <a> may
   not contain another <a>. */
.speaker-card-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
}
.speaker-card-main:hover { text-decoration: none; }
.speaker-card-main:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: -3px;
  border-radius: 14px;
}

.speaker-photo-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.speaker-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Natural colours at all times — just a gentle zoom on hover. */
  transition: transform var(--transition-slow);
}

.speaker-card:hover .speaker-photo,
.speaker-card:focus-within .speaker-photo {
  transform: scale(1.06);
}

/* Keynote badge — bottom-centre of the photo. A top badge clipped faces (it sat
   on Julia's eye); the bottom edge is chest/shoulders on every headshot. */
.speaker-keynote-badge {
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-gold) 0%, #e8c95a 100%);
  color: var(--color-primary);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(15, 36, 64, 0.28);
  transition: opacity var(--transition-base);
}

/* The hover hint occupies the same bottom edge as the badge — fade the badge
   out so the two never overlap. */
.speaker-card:hover .speaker-keynote-badge,
.speaker-card:focus-within .speaker-keynote-badge {
  opacity: 0;
}

/* "Bio & abstract" — the affordance that the card opens something. Hover /
   keyboard-focus only; the talk title itself is always visible below, so
   nothing essential hides behind this. */
.speaker-card-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.4rem 0.5rem 0.55rem;
  background: linear-gradient(to top, rgba(15, 36, 64, 0.94) 0%, rgba(15, 36, 64, 0.75) 55%, rgba(15, 36, 64, 0) 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.speaker-card:hover .speaker-card-hint,
.speaker-card:focus-within .speaker-card-hint {
  opacity: 1;
  transform: none;
}

.speaker-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0.95rem 1rem 0;
  text-align: center;
}

.speaker-name {
  color: var(--color-primary);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.speaker-role {
  color: var(--color-text-light);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.85rem;
  /* Two lines keeps a long "Principal DevRel Engineer, Dash0 · CNCF Ambassador"
     from pushing the talk title out of the card. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* The talk — the whole point of the card, and previously hover-only. Pinned to
   the bottom of the card (margin-top: auto) so titles line up across a row. */
.speaker-talk {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--color-border);
}

.speaker-talk-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-ink);
  margin-bottom: 0.3rem;
}

.speaker-talk-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary);
  transition: color var(--transition-base);
}

.speaker-card:hover .speaker-talk-title,
.speaker-card:focus-within .speaker-talk-title { color: var(--color-accent); }

.speaker-talk-more {
  font-size: 0.72rem;
  color: var(--color-text-light);
  margin-top: 0.35rem;
}

.speaker-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
}

/* Same icons outside a card (dialog head, agenda page): no card padding, and
   left-aligned where they sit next to a name. */
.speaker-links-inline {
  padding: 0;
  margin-top: 0.6rem;
  justify-content: flex-start;
}

.speaker-links a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  transition: color var(--transition-base), background var(--transition-base), transform var(--transition-base);
}

.speaker-links a:hover {
  color: #fff;
  background: var(--color-accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.speakers-note {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .speakers-grid { gap: 1rem; }
  .speaker-card { flex-basis: 160px; }
  .speaker-name { font-size: 0.92rem; }
  .speaker-role { font-size: 0.76rem; }
  .speaker-talk-title { font-size: 0.8rem; }
}

@media (max-width: 440px) {
  /* Two per row filling the width (gap is 1rem here); the trailing odd card centres. */
  .speaker-card { flex-basis: calc(50% - 0.5rem); }
}

/* Touch devices never hover, so the hint would never appear. Show it there as a
   small permanent glyph in the opposite corner from the keynote badge, with the
   label dropped — a 160px card has no room for both. */
@media (hover: none) {
  .speaker-card-hint {
    opacity: 1;
    transform: none;
    left: auto;
    bottom: auto;
    top: 0.45rem;
    right: 0.45rem;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    background: rgba(15, 36, 64, 0.8);
  }
  .speaker-card-hint span { display: none; }
  .speaker-card:hover .speaker-keynote-badge,
  .speaker-card:focus-within .speaker-keynote-badge { opacity: 1; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .speaker-card,
  .speaker-photo,
  .speaker-card-hint,
  .speaker-talk-title { transition: none; }
  .speaker-card:hover,
  .speaker-card:focus-within { transform: none; }
  .speaker-card:hover .speaker-photo,
  .speaker-card:focus-within .speaker-photo { transform: none; }
}

/* ============================================
   Sponsors & Partners (Homepage)
   ============================================ */
.section-sponsors .section-description { margin-bottom: 3rem; }

/* Tier accent palette */
.sponsors-tiers {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 0 auto 3.5rem;
  max-width: 1040px;
}

.sponsor-tier-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}
.sponsor-tier-head::before,
.sponsor-tier-head::after {
  content: '';
  height: 1px;
  flex: 0 1 130px;
}
.sponsor-tier-head::before { background: linear-gradient(90deg, transparent, var(--color-border)); }
.sponsor-tier-head::after  { background: linear-gradient(90deg, var(--color-border), transparent); }

.sponsor-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(26, 54, 93, 0.12);
}
.sponsor-tier-badge-diamond {
  background: linear-gradient(135deg, #6dd2f7, #1e9fd8);
  color: #06263f;
}
.sponsor-tier-badge-platinum {
  background: linear-gradient(135deg, #cbd5e0, #9aa7b6);
  color: #26313f;
}
.sponsor-tier-badge-gold {
  background: linear-gradient(135deg, #e6ce7f, #c9a84c);
  color: #4a3a08;
}
.sponsor-tier-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--color-border), transparent);
}

.sponsor-logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.sponsor-logo-wall .sponsor-logo-card {
  flex: 0 0 280px;
  min-height: 150px;
}
.sponsor-logo-wall .sponsor-logo-card img {
  max-height: 62px;
  max-width: 200px;
}
.sponsor-tier-diamond .sponsor-logo-wall .sponsor-logo-card {
  flex-basis: 420px;
  min-height: 190px;
  padding: 2rem 2.5rem;
}
.sponsor-tier-diamond .sponsor-logo-wall .sponsor-logo-card img {
  max-height: 92px;
  max-width: 320px;
}
/* 320px basis keeps three Platinum cards on one row (3*320 + 2*24 gap = 1008 < 1040 wall) */
.sponsor-tier-platinum .sponsor-logo-wall .sponsor-logo-card {
  flex-basis: 320px;
  min-height: 168px;
  padding: 1.75rem 2.25rem;
}
.sponsor-tier-platinum .sponsor-logo-wall .sponsor-logo-card img {
  max-height: 76px;
  max-width: 240px;
}
.sponsor-tier-gold .sponsor-logo-wall .sponsor-logo-card {
  flex-basis: 260px;
  min-height: 136px;
}
.sponsor-tier-gold .sponsor-logo-wall .sponsor-logo-card img {
  max-height: 56px;
  max-width: 190px;
}

.sponsor-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  box-shadow: 0 6px 22px rgba(26, 54, 93, 0.07);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.sponsor-logo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 54, 93, 0.16);
  border-color: #cfdae8;
  text-decoration: none;
}
.sponsor-logo-card img {
  display: block;
  width: auto;
  object-fit: contain;
}


/* Partners — CNCF + SysOps/DevOps Polska */
.partners-block {
  max-width: 960px;
  margin: 4rem auto 0;
  padding-top: 3.5rem;
  border-top: 1px solid var(--color-border);
}
.partners-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}
.partners-divider::before,
.partners-divider::after {
  content: '';
  height: 1px;
  flex: 0 1 90px;
  background: var(--color-border);
}
.partners-divider span {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
  justify-items: center;
}
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 380px;
}
.sponsor-logo-card-partner {
  width: 100%;
  min-height: 130px;
  padding: 1.5rem 2rem;
}
.sponsor-logo-card-partner img { max-height: 62px; max-width: 280px; }
.partner-role {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.partner-desc {
  margin-top: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}
.partner-desc strong { color: var(--color-text); }

/* Sponsorship opportunities (tier packages) */
.sponsorship-opportunities {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--color-border);
}
.sponsorship-opportunities-head { text-align: center; }
.sponsorship-opportunities-head h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}
.sponsorship-opportunities-head .section-description { margin-bottom: 2.5rem; }

.sponsorship-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.btn-outline-dark {
  border: 2px solid var(--color-border);
  color: var(--color-primary);
  background: #fff;
}
.btn-outline-dark:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: #fff;
}

/* Community partner tile — dark, on-brand for SysOps/DevOps Polska */
.sponsor-logo-card-community {
  background: linear-gradient(135deg, var(--color-bg-dark), var(--color-primary));
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(15, 36, 64, 0.28);
}
.sponsor-logo-card-community:hover { border-color: transparent; }
.sponsor-logo-card-community img { max-height: 56px; }

@media (max-width: 640px) {
  .partners-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .partner-item { max-width: 420px; }
}
/* 2 sponsors per row on mobile */
@media (max-width: 560px) {
  .sponsor-logo-wall { gap: 1rem; }
  .sponsor-logo-wall .sponsor-logo-card {
    flex: 0 0 calc(50% - 0.5rem);
    min-height: 116px;
    padding: 1.1rem 1.25rem;
  }
  .sponsor-logo-wall .sponsor-logo-card img { max-height: 48px; max-width: 100%; }
  .sponsor-tier-diamond .sponsor-logo-wall .sponsor-logo-card {
    flex-basis: min(100%, 360px);
    min-height: 148px;
  }
  .sponsor-tier-diamond .sponsor-logo-wall .sponsor-logo-card img { max-height: 72px; }
  .sponsor-tier-platinum .sponsor-logo-wall .sponsor-logo-card {
    flex-basis: min(100%, 300px);
    min-height: 132px;
  }
  .sponsor-tier-platinum .sponsor-logo-wall .sponsor-logo-card img { max-height: 62px; }
  .sponsor-tier-gold .sponsor-logo-wall .sponsor-logo-card img { max-height: 46px; }
}

/* ============================================
   Venue Event Gallery (Homepage)
   ============================================ */
.venue-event-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.venue-event-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  filter: saturate(0.85);
  transition: filter var(--transition-slow), transform var(--transition-slow);
}

.venue-event-gallery img:hover {
  filter: saturate(1.2);
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .venue-event-gallery { grid-template-columns: 1fr; }
}

/* ============================================
   CFP Section (Homepage)
   ============================================ */
.section-cfp .cfp-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.cfp-cta-row {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   Venue Transport Grid (Homepage)
   ============================================ */
.venue-getting-there {
  margin-top: 3rem;
}

.venue-getting-there h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.venue-transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.venue-transport-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.venue-transport-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.venue-transport-card svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.venue-transport-card strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.venue-transport-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   Contact Section (Homepage)
   ============================================ */
.contact-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-home-compact {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.contact-email-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--color-bg);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.contact-email-card svg { flex-shrink: 0; }

.contact-email-card p {
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.contact-org-card {
  align-items: flex-start;
  margin-top: 1rem;
}

.contact-org-link {
  margin-top: 0.75rem;
  margin-bottom: 0 !important;
}

.contact-social-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ============================================
   Smooth loading
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   Cookie Consent
   ============================================ */
.cookie-consent[hidden] { display: none; }

.cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(15, 36, 64, 0.45);
  backdrop-filter: blur(2px);
  opacity: 1;
  transition: opacity 0.35s ease;
}

.cookie-consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cookieConsentIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cookieConsentIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Exit: slide the bar down out of view and fade the backdrop. */
.cookie-consent-leaving .cookie-consent-bar {
  animation: none;
  transform: translateY(100%);
}
.cookie-consent-leaving .cookie-consent-backdrop {
  opacity: 0;
}

.cookie-consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-consent-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-consent-title {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.cookie-consent-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

.cookie-consent-text a {
  color: var(--color-accent);
  font-weight: 600;
}

.cookie-consent-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 0.75rem;
}

.cookie-consent-btn {
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cookie-consent-essential {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

.cookie-consent-essential:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cookie-consent-accept {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
}

.cookie-consent-accept:hover {
  background: var(--color-accent-light);
  box-shadow: 0 6px 25px rgba(43, 108, 176, 0.4);
}

/* Block interaction with the rest of the page until a choice is made. */
.cookie-consent-locked body {
  overflow: hidden;
}

@media (max-width: 640px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
  }
  .cookie-consent-actions {
    flex-direction: column-reverse;
  }
  .cookie-consent-btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   Programme — shared bits
   ============================================ */
/* Used by the agenda page and the home-page speaker dialogs. */

.badge-keynote {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-gold) 0%, #e8c95a 100%);
  color: var(--color-primary);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Not --color-gold: that reads at ~2:1 on white. This is the same hue pushed
     dark enough to pass AA at small sizes. */
  color: var(--color-gold-ink);
}

/* Author-supplied prose (bios, abstracts) rendered by partials/prose.html. */
.prose p { line-height: 1.75; margin-bottom: 0.85rem; }
.prose p:last-child { margin-bottom: 0; }
/* `anywhere` rather than `break-word`, because only `anywhere` also lowers the
   element's min-content width. A bio with a bare 60-character URL in it (there
   is one) otherwise sets a floor that pushes the whole page wider than a phone
   viewport — grid items default to min-width: auto, so it propagates all the
   way up to the container. */
.prose { overflow-wrap: anywhere; }
.prog-speaker-main,
.talk-card { min-width: 0; }

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}

/* The "#" beside a talk / speaker heading: how you grab a shareable link.
   Hidden until the row is hovered so it never competes with the title. */
.anchor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--color-text-light);
  opacity: 0;
  transition: opacity var(--transition-base), background var(--transition-base), color var(--transition-base);
}
.talk-card:hover .anchor-link,
.prog-speaker:hover .anchor-link,
.anchor-link:focus-visible { opacity: 1; }
.anchor-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
  text-decoration: none;
}
@media (hover: none) { .anchor-link { opacity: 0.5; } }

/* ============================================
   Agenda / Programme page
   ============================================ */
.programme {
  max-width: 900px;
  margin: 0 auto;
}

/* The generic .page rules (h2 margin-top: 2rem, list padding/margins) fight
   every component below; neutralise them once, here. Paragraph margins are
   deliberately left alone — .prose owns those, and a blanket
   `.programme p { margin: 0 }` would out-order it and collapse every bio and
   abstract into one wall of text. */
.programme h2 { margin-top: 0; margin-bottom: 0; }
.programme ul { margin-bottom: 0; padding-left: 0; }
.programme li { margin-bottom: 0; }
.programme-outro p,
.programme-empty { margin-bottom: 0; }
.programme .prose-list { padding-left: 1.15rem; }
.programme .prose-list li { margin-bottom: 0.4rem; }

.programme-head { text-align: center; }
.programme-head h1 { margin-bottom: 0.9rem; }

.programme-intro {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: 1.05rem;
}
.programme-intro p { margin-bottom: 0.8rem; line-height: 1.75; }
.programme-intro p:last-child { margin-bottom: 0; }

.programme-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem auto 0;
}

.programme-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 106px;
  padding: 0.75rem 1.15rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.programme-stats strong {
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.15;
}
/* The last tile holds a date rather than a count. */
.programme-stats li:last-child strong { font-size: 0.98rem; padding: 0.2rem 0; }

.programme-stats span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* Controls stay in reach while scrolling a 24-talk list. `top` clears the fixed
   site header. */
.programme-controls {
  position: sticky;
  /* --header-h is measured and kept up to date by the agenda script; the rem
     value is the no-JS fallback. The site header is fixed and its nav wraps to
     a second row at some widths, so its height is not a constant. */
  top: calc(var(--header-h, 4.2rem) + 0.15rem);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 2.5rem 0 1.75rem;
  padding: 0.85rem 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.programme-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.programme-tabs [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.05rem;
  border: none;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}
.programme-tabs [role="tab"]:hover { color: var(--color-primary); }
.programme-tabs [role="tab"][aria-selected="true"] {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(26, 54, 93, 0.25);
}

.programme-tab-count {
  padding: 0.05rem 0.42rem;
  border-radius: 999px;
  background: rgba(26, 54, 93, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
}
.programme-tabs [role="tab"][aria-selected="true"] .programme-tab-count {
  background: rgba(255, 255, 255, 0.22);
}

.programme-search {
  position: relative;
  flex: 1 1 200px;
  max-width: 320px;
}

.programme-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  pointer-events: none;
}

.programme-search input {
  width: 100%;
  padding: 0.58rem 2.2rem 0.58rem 2.4rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.programme-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}
.programme-search input::-webkit-search-cancel-button { display: none; }

.programme-search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}
.programme-search-clear:hover { background: var(--color-accent); color: #fff; }

.programme-result {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: -0.75rem 0 1.5rem !important;
}

.programme-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
/* ---------- talk cards ---------- */
.talk-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 4px 20px rgba(26, 54, 93, 0.05);
  /* Clears the fixed header *and* the sticky controls bar when an anchor
     lands here. */
  scroll-margin-top: calc(var(--header-h, 4.2rem) + 5.5rem);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.talk-card:hover { box-shadow: 0 10px 30px rgba(26, 54, 93, 0.1); }

.talk-card.is-keynote {
  border-color: rgba(201, 168, 76, 0.55);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.07) 0%, rgba(255, 255, 255, 0) 140px);
}

.talk-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.4rem 0.6rem;
}
/* Badge first in source order, so it takes the full first row above the title. */
.talk-card-head .badge-keynote { grid-column: 1 / -1; justify-self: start; }

.talk-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}

.talk-speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0 1.15rem;
}

.talk-speaker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.8rem 0.3rem 0.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  transition: background var(--transition-base), border-color var(--transition-base);
}
.talk-speaker:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
  text-decoration: none;
}

.talk-speaker img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 3px var(--color-border);
}

.talk-speaker-text { display: flex; flex-direction: column; line-height: 1.3; }
.talk-speaker-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: color var(--transition-base);
}
.talk-speaker-role { font-size: 0.74rem; color: var(--color-text-light); }
.talk-speaker:hover .talk-speaker-name { color: var(--color-accent); }

.talk-abstract { font-size: 0.95rem; }

/* Collapsed preview. The class is added by JS only when the abstract really is
   taller than the preview, so short ones stay open and get no toggle — and with
   JS off nothing is ever collapsed. */
.talk-card.is-collapsed .talk-abstract {
  max-height: 8.4em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}

.talk-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.95rem;
  padding: 0.38rem 0.85rem 0.38rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}
.talk-toggle:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.talk-toggle svg { transition: transform var(--transition-base); }
.talk-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- speaker entries ---------- */
.prog-speaker {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1.6rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 4px 20px rgba(26, 54, 93, 0.05);
  scroll-margin-top: calc(var(--header-h, 4.2rem) + 5.5rem);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.prog-speaker:hover { box-shadow: 0 10px 30px rgba(26, 54, 93, 0.1); }
.prog-speaker.is-keynote { border-color: rgba(201, 168, 76, 0.55); }

.prog-speaker-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.prog-speaker-photo {
  width: 132px;
  height: 132px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(26, 54, 93, 0.14);
}

.prog-speaker-aside .speaker-links { justify-content: center; margin-top: 0; }

.prog-speaker-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.35rem 0.6rem;
}
.prog-speaker-head .badge-keynote { grid-column: 1 / -1; justify-self: start; }

.prog-speaker-name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

.prog-speaker-role {
  color: var(--color-text-light);
  font-size: 0.88rem;
  margin: 0.2rem 0 0.9rem !important;
}

.prog-speaker-bio { font-size: 0.93rem; }

.prog-speaker-talk {
  display: block;
  margin-top: 1.15rem;
  padding: 0.9rem 1.15rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 10px;
  color: inherit;
  transition: background var(--transition-base), border-left-color var(--transition-base),
              box-shadow var(--transition-base), transform var(--transition-base);
}
.prog-speaker-talk:hover {
  background: var(--color-bg);
  border-left-color: var(--color-gold);
  box-shadow: 0 6px 18px rgba(26, 54, 93, 0.09);
  transform: translateX(2px);
  text-decoration: none;
}
.prog-speaker-talk .eyebrow { display: block; margin-bottom: 0.3rem; }

.prog-speaker-talk-title {
  display: block;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary);
}

.prog-speaker-talk-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
}
.prog-speaker-talk-cta svg { transition: transform var(--transition-base); }
.prog-speaker-talk:hover .prog-speaker-talk-cta svg { transform: translateX(3px); }

/* ---------- deep-link flash ---------- */
/* Arriving from /#speakers or a shared link, the target has to be findable in a
   long list — a brief ring does that without a permanent highlight. */
.talk-card.is-targeted,
.prog-speaker.is-targeted {
  border-color: var(--color-accent);
  animation: programme-flash 2.2s ease-out;
}

@keyframes programme-flash {
  0%, 22% { box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.25); }
  100% { box-shadow: 0 4px 20px rgba(26, 54, 93, 0.05); }
}

/* ---------- empty / outro ---------- */
.programme-empty {
  text-align: center;
  color: var(--color-text-light);
  padding: 3.5rem 1rem;
}

.programme-outro {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  text-align: center;
}
.programme-outro strong { color: var(--color-primary); }

/* ---- Agenda timetable (Schedule tab) --------------------------------- */
.tt-slot {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--color-border);
}
.tt-slot:first-child { border-top: 0; }
.tt-time {
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  padding-top: 0.4rem;
}
.tt-cards { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tt-card {
  flex: 1 1 240px;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tt-card.is-keynote { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.tt-card.is-full { flex-basis: 100%; }
.tt-card.is-service {
  flex-basis: 100%;
  background: var(--color-bg-alt);
  align-items: center;
  text-align: center;
  color: var(--color-primary);
  font-weight: 600;
}
.tt-card.is-service .badge-keynote { display: none; }
.tt-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #64748b;
}
.tt-room {
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(43, 108, 176, 0.12);
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
}
.tt-range { font-variant-numeric: tabular-nums; }
.tt-title { font-weight: 600; color: var(--color-primary); line-height: 1.3; }
a.tt-title:hover { color: var(--color-accent); }
.tt-speakers { display: flex; flex-wrap: wrap; gap: 0.4rem 0.85rem; margin-top: auto; }
.tt-speaker { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: #475569; }
.tt-speaker img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.tt-speaker:hover { color: var(--color-accent); }

@media (max-width: 640px) {
  .tt-slot { grid-template-columns: 1fr; gap: 0.4rem; }
  .tt-time { padding-top: 0; }
  .tt-card { flex-basis: 100%; }
}

@media (max-width: 700px) {
  .programme-controls {
    justify-content: center;
    gap: 0.65rem;
  }
  .programme-search { max-width: none; }
  .talk-card,
  .prog-speaker { padding: 1.3rem 1.15rem; }
  .talk-title { font-size: 1.15rem; }
  /* Photo and identity centre over the full width; the bio stays left-aligned —
     centred body copy is unreadable at this measure. */
  .prog-speaker {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .prog-speaker-head {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .prog-speaker-head .anchor-link { display: none; }
  .prog-speaker-head .badge-keynote { justify-self: center; }
  .prog-speaker-name,
  .prog-speaker-role { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .talk-card.is-targeted,
  .prog-speaker.is-targeted { animation: none; }
  .prog-speaker-talk:hover { transform: none; }
}

/* ============================================
   Speaker dialog (Homepage)
   ============================================ */
/* One native <dialog> per speaker — ::backdrop, Esc-to-close and focus handling
   come from the platform. */
.speaker-dialog {
  /* The global `*, *::before, *::after { margin: 0 }` reset wipes out the UA's
     `dialog { margin: auto }`, which is what centres a modal — so restate the
     whole centring here (fixed + inset + auto margins) rather than relying on
     the default. */
  position: fixed;
  inset: 0;
  margin: auto;
  display: flex;
  flex-direction: column;
  width: min(680px, calc(100vw - 2rem));
  max-height: min(86vh, 900px);
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 18px;
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 30px 80px rgba(15, 36, 64, 0.4);
}
/* display: flex above overrides the UA's `dialog:not([open]) { display: none }`,
   so restate it — without this every dialog renders inline on the page. */
.speaker-dialog:not([open]) { display: none; }

.speaker-dialog::backdrop {
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(3px);
}

.speaker-dialog form { margin: 0; }

.speaker-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-base);
}
.speaker-dialog-close:hover { background: rgba(255, 255, 255, 0.32); }

.speaker-dialog-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 3.5rem 1.6rem 1.75rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #27496f 100%);
  color: #fff;
}

.speaker-dialog-photo {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.speaker-dialog-name {
  margin: 0.3rem 0 0.15rem;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.speaker-dialog-role {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.speaker-dialog-head .speaker-links a {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.speaker-dialog-head .speaker-links a:hover {
  background: var(--color-gold);
  color: var(--color-primary);
}

.speaker-dialog-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
}

.prose-bio { color: var(--color-text-light); font-size: 0.92rem; }

.speaker-dialog-talk {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--color-border);
}
.speaker-dialog-talk:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.speaker-dialog-talk h4 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--color-primary);
}

.speaker-dialog-with {
  margin: -0.3rem 0 0.8rem;
  font-size: 0.83rem;
  color: var(--color-text-light);
}

.speaker-dialog-foot {
  flex: 0 0 auto;
  padding: 1.15rem 1.75rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  text-align: center;
}
.speaker-dialog-foot .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 560px) {
  /* Bottom sheet: easier to reach one-handed than a centred box. */
  .speaker-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
  .speaker-dialog-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.6rem 1.25rem 1.35rem;
  }
  .speaker-dialog-head .speaker-links { justify-content: center; }
  .speaker-dialog-body,
  .speaker-dialog-foot { padding-left: 1.25rem; padding-right: 1.25rem; }
  .speaker-dialog-foot .btn { font-size: 0.9rem; padding: 0.7rem 1.1rem; }
}

/* Bullet lists inside an abstract (partials/prose.html turns a run of "* …"
   lines into a real <ul>). */
.prose-list {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  list-style: none;
}
.prose-list:last-child { margin-bottom: 0; }
.prose-list li {
  position: relative;
  margin-bottom: 0.4rem;
  line-height: 1.7;
}
.prose-list li::before {
  content: '';
  position: absolute;
  left: -0.9rem;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
}
.prose strong { color: var(--color-primary); font-weight: 700; }
.speaker-dialog-body .prose-list li { margin-bottom: 0.4rem; }

/* A "## What to learn" line from a Sessionize abstract. */
.prose-lead {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem !important;
}
