/* ============================================================
   BERLIN DISPUTE RESOLUTION DAYS 2026
   styles.css
   ============================================================ */

/* ── FONTS ── */
@font-face {
  font-family: 'Cormorant';
  src: url('fonts/Cormorant-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('fonts/Jost-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── DESIGN TOKENS ── */
:root {
  --cream:      #f0f0ee;
  --cream2:     #e7e5e2;
  --grey:       #d9d7d4;
  --ink:        #1a1a1a;
  --ink2:       #2b2b2b;
  --blue:       #195489;
  --yellow:     #F8D328;

  --font-display: 'Cormorant', Georgia, serif;
  --font-sans:    'Jost', 'Helvetica Neue', sans-serif;

  --max-width: 1240px;
  --gap:       clamp(24px, 4vw, 64px);
  --vpad:      clamp(80px, 10vw, 140px);
  --scroll-pct: 0%;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--yellow); color: var(--ink); }

/* ── GRAIN OVERLAY ── */
.hero, .stats-bar, .stats-pill, section, footer, .section-divider { position: relative; overflow: hidden; }
.hero::after, .stats-bar::after, .stats-pill::after, section::after, footer::after, .section-divider::after {
  content: ''; pointer-events: none; z-index: 0; position: absolute;
  width: 300%; height: 300%; top: -100%; left: -100%;
  background-image: var(--noise); background-size: 200px 200px;
  opacity: .022;
  animation: grain .8s steps(9) infinite;
}
.hero__inner, .section-inner, .footer__inner, .stats-bar__grid,
.section-divider > *:not(.divider__rule) { position: relative; z-index: 1; }

/* Grain animation disabled on touch devices: the animated will-change:transform layer
   extends beyond section bounds before overflow clipping, which causes Chrome Android
   to mis-route touch events and can render content invisible beneath the compositor layer. */
@media (hover: none), (pointer: coarse) {
  .hero::after, .stats-bar::after, .stats-pill::after,
  section::after, footer::after, .section-divider::after { display: none; }
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  11%  { transform: translate(-3%, -7%); }
  22%  { transform: translate(6%, 2%); }
  33%  { transform: translate(-1%, 9%); }
  44%  { transform: translate(8%, -4%); }
  55%  { transform: translate(-6%, 6%); }
  66%  { transform: translate(3%, -8%); }
  77%  { transform: translate(-8%, 1%); }
  88%  { transform: translate(5%, -5%); }
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 100%; height: 58px;
  background: transparent; border: none; border-bottom: 1px solid transparent;
  display: flex; align-items: center; z-index: 200; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition:
    width .5s cubic-bezier(.4,0,.2,1),
    max-width .5s cubic-bezier(.4,0,.2,1),
    border-radius .5s cubic-bezier(.4,0,.2,1),
    top .5s cubic-bezier(.4,0,.2,1),
    border-color .35s ease,
    background .35s ease,
    box-shadow .5s ease,
    opacity .4s ease;
}
nav::before {
  content: ''; position: absolute; bottom: 0; left: 0; height: 1px;
  width: var(--scroll-pct, 0%); background: var(--blue);
  z-index: 10; pointer-events: none; transition: width .06s linear;
}
nav.nav-pill {
  top: 12px; width: calc(100% - 48px); max-width: 780px;
  border-radius: 80px; border-color: rgba(240,240,238,.82); border-width: 2px;
  background: rgba(240,240,238,.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: none;
}
.nav__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gap);
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; position: relative; z-index: 1;
}
.nav-logo {
  text-decoration: none; display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; object-fit: contain; }

.nav-logo__wrap {
  position: relative; overflow: hidden; height: 26px;
  display: flex; align-items: center;
}
.nav-logo__full,
.nav-logo__short {
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
.nav-logo__full  { transform: translateY(0); opacity: 1; }
.nav-logo__short {
  position: absolute; top: 50%; left: 0;
  transform: translateY(calc(-50% + 200%)); opacity: 0;
}
nav.scrolled .nav-logo__full  { transform: translateY(-200%); opacity: 0; }
nav.scrolled .nav-logo__short { transform: translateY(-50%);  opacity: 1; }

.nav-logo__words {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 400;
  letter-spacing: .06em; color: var(--ink); line-height: 1;
}
.nav-logo__year {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 300;
  letter-spacing: .12em; color: var(--ink); line-height: 1; margin-left: 6px;
}
.nav-logo__abbrev {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -.08em; color: var(--ink); line-height: 1;
}
.nav-logo__abbrev-year {
  font-family: var(--font-sans); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; color: var(--ink); line-height: 1; margin-left: 8px;
}

.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__links a {
  font-family: var(--font-sans); font-size: 9.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(26,26,26,.55); text-decoration: none;
  padding: 6px 14px; border-radius: 40px;
  transition: color .2s, background .2s;
}
.nav__links a:hover        { color: var(--ink); background: rgba(0,0,0,.05); }
.nav__links a.nav-active   { color: var(--ink); background: rgba(26,26,26,.07); }

.nav__toggle {
  display: none; background: none; border: none;
  color: var(--ink); cursor: pointer; padding: 10px 0 10px 10px; line-height: 1;
  flex-shrink: 0;
}
/* SVG hamburger — inline SVG, immune to any parent overflow clipping */
.nav__toggle-icon {
  display: block;
  fill: currentColor;
}
.nav__mobile {
  display: none; position: fixed; top: 58px; left: 0; right: 0; z-index: 199;
  background: rgba(240,240,238,.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 20px var(--gap) 32px; flex-direction: column; gap: 0;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-sans); font-size: 12px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06);
  transition: opacity .2s;
}
.nav__mobile a:last-child { border: none; }
.nav__mobile a:hover      { opacity: .5; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100svh; padding: 116px var(--gap) 0;
  position: relative; overflow: hidden;
  background-color: #1a1a1a;
  background-image: url('images/Brandenburg-Gate-1920x1041.jpg');
  background-size: cover; background-position: center 40%; background-repeat: no-repeat;
  background-attachment: fixed; /* image stays fixed while content scrolls over it */
}
/* iOS Safari and touch devices ignore background-attachment:fixed (renders incorrectly) */
@media (hover: none) {
  .hero { background-attachment: scroll; }
}
.hero__bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.68) 0%,
    rgba(0,0,0,.65) 50%,
    rgba(0,0,0,.72) 80%,
    var(--cream2) 100%
  );
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto; width: 100%;
  display: flex; flex-direction: column;
  min-height: calc(100svh - 116px);
  padding-bottom: clamp(40px, 6vh, 80px);
}
.hero__spacer { flex: 1; min-height: 0; }

/* Hero headline */
.hero__headline {
  text-align: center;
  margin-top: clamp(48px, 7.5vh, 96px);
  margin-bottom: clamp(20px, 3.5vh, 48px);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 80px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0 0 24px;
}
.hero__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.5vw, 16px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: #F8D328;
  margin: 0;
}

/* Logo row inside hero */
.hero__logos {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: nowrap;
  width: 100%; max-width: min(1100px, calc(100% - 48px)); margin: 0 auto;
}
.hero__logo-bdrd img {
  height: clamp(141px, 15vw, 229px); width: auto; object-fit: contain; display: block;
}
.hero__logo-separator {
  width: 1px; background: rgba(255,255,255,.35);
  align-self: stretch; margin: 0 clamp(32px, 4vw, 64px); flex-shrink: 0;
}
.hero__logo-partners {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.hero__logo-partners-label {
  font-family: var(--font-sans); font-size: 8px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.45); line-height: 1;
}
.hero__logo-partners-row {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 60px); flex-wrap: nowrap;
}
.hero__logo-partners-row img {
  height: clamp(54px, 5.9vw, 90px); width: auto; object-fit: contain; display: block;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3;
  font-family: var(--font-sans); font-size: 7.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(26,26,26,.25);
  opacity: 0; transition: opacity .7s ease;
}
.scroll-indicator.revealed { opacity: 1; }
.scroll-indicator::after {
  content: ''; display: block; width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(26,26,26,.25), transparent);
  animation: scroll-pulse 2.3s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: .25; }
  50%       { opacity: .65; }
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn,
.contact-form__submit {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 13px 28px; cursor: pointer;
  transition: color .3s ease, background .3s ease, border-color .3s ease, transform .15s;
  border-radius: 999px; border: 2px solid transparent;
}
.btn:active { transform: scale(.97); }

.btn--solid   { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--solid:hover { background: var(--ink); color: var(--cream); }

.btn--outline { background: transparent; color: rgba(26,26,26,.6); border-color: rgba(26,26,26,.4); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

.contact-form__submit {
  background: transparent; color: var(--blue); border-color: var(--blue);
  margin-top: 6px; padding: 13px 36px;
}
.contact-form__submit:hover { background: var(--blue); color: var(--cream); }

/* Hero nav buttons */
.hero__nav-btns {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 14px; padding-bottom: clamp(56px, 8svh, 88px);
}
.hero__nav-btn {
  font-family: var(--font-sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 11px 26px; border-radius: 999px;
  background: transparent;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 2.5px solid rgba(240,240,238,.75); color: rgba(240,240,238,.85);
  transition: color .2s, border-color .2s, background .2s;
}
.hero__nav-btn:hover {
  color: var(--ink);
  border-color: rgba(240,240,238,1);
  background: rgba(240,240,238,1);
}

/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */
.stats-bar { background: transparent; padding: 56px var(--gap); }
.stats-pill {
  max-width: min(620px, calc(100% - 48px)); margin: 0 auto;
  background: transparent;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 2.5px solid rgba(240,240,238,.75); border-radius: 999px;
  padding: clamp(8px,1vw,14px) clamp(18px,2.8vw,48px);
  position: relative; cursor: default;
}
.stats-bar__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.stat {
  text-align: center; padding: 8px 32px;
  border-right: 1px solid rgba(240,240,238,.2);
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.stat:last-child { border-right: none; }
.stat.is-visible { opacity: 1; transform: translateY(0); }
.stat__number {
  font-family: var(--font-display); font-size: clamp(22px,2.6vw,36px); font-weight: 300;
  color: rgba(240,240,238,.95); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
  transition: text-shadow .45s ease;
}
.stat__label {
  font-family: var(--font-sans); font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(240,240,238,.55); margin-top: 10px;
}

/* ══════════════════════════════════════════
   SECTIONS (shared)
══════════════════════════════════════════ */
section { padding: var(--vpad) var(--gap); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.section-eyebrow__line {
  width: 18px; height: 1px; background: var(--blue); flex-shrink: 0;
}
.section-eyebrow__text {
  font-family: var(--font-sans); font-size: 8.5px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--blue);
}

.section-title {
  font-family: var(--font-display); font-size: clamp(38px,5.5vw,76px); font-weight: 600;
  letter-spacing: -.025em; line-height: 1.05; color: var(--ink); margin-bottom: 14px;
}
.section-title strong { font-weight: 600; }

.section-lead {
  font-family: var(--font-sans); font-size: 13.5px; color: rgba(26,26,26,.5);
  max-width: 540px; line-height: 1.88; margin-bottom: 52px; font-weight: 400;
}

/* ══════════════════════════════════════════
   PROGRAMME
══════════════════════════════════════════ */
#programme {
  background: linear-gradient(to bottom, var(--cream), var(--cream2) 5%, var(--cream2) 99%);
}

.view-toggle {
  display: flex; border: 2px solid var(--grey); background: transparent;
  border-radius: 999px; overflow: hidden; padding: 2px; gap: 2px;
}
.view-toggle__btn {
  font-family: var(--font-sans); font-size: 9px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 18px; background: transparent; border: none; cursor: pointer;
  color: rgba(26,26,26,.38); display: flex; align-items: center; gap: 5px;
  transition: background .2s, color .2s; border-radius: 999px;
}
.view-toggle__btn.on      { background: var(--ink); color: var(--cream); }
.view-toggle__btn:hover:not(.on) { background: rgba(0,0,0,.05); color: var(--ink); }

.day-tab {
  cursor: pointer; padding: 12px 22px; white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
  color: rgba(26,26,26,.4); line-height: 1.3;
}
.day-tab.on       { border-bottom-color: var(--ink); color: var(--ink); }
.day-tab:hover:not(.on) { color: var(--ink); border-bottom-color: var(--grey); }
.day-tab__label   { font-family: var(--font-display); font-size: 17px; font-weight: 300; letter-spacing: -.01em; display: block; }
.day-tab__sublabel { font-family: var(--font-sans); font-size: 10px; opacity: .45; margin-top: 1px; letter-spacing: .04em; display: block; }

/* Custom select */
.custom-select { position: relative; display: inline-block; }
.custom-select__trigger {
  font-family: var(--font-sans); font-size: 11px; padding: 7px 30px 7px 16px;
  border: 2px solid var(--grey); color: var(--ink); background: transparent;
  cursor: pointer; display: flex; align-items: center; position: relative;
  white-space: nowrap; min-width: 120px; user-select: none;
  transition: border-color .2s; letter-spacing: .04em; border-radius: 999px;
}
.custom-select__trigger::after {
  content: ''; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid rgba(26,26,26,.35); transition: transform .25s;
}
.custom-select__trigger.open::after { transform: translateY(-50%) rotate(180deg); }
.custom-select__trigger:hover,
.custom-select__trigger.open        { border-color: var(--ink); }

.custom-select__panel {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 100%; max-width: 260px;
  background: rgba(240,240,238,.88);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: none; padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12); z-index: 100;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .22s, transform .22s; max-height: 280px; overflow-y: auto;
  border-radius: 16px;
}
.custom-select__panel.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.custom-select__option {
  font-family: var(--font-sans); font-size: 11px; padding: 8px 14px; cursor: pointer;
  color: rgba(26,26,26,.65); transition: background .15s, color .15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: .03em; border-radius: 999px;
}
.custom-select__option:hover      { background: rgba(0,0,0,.04); color: var(--ink); }
.custom-select__option.on         { background: rgba(25,84,137,.07); color: var(--ink); font-weight: 600; }

/* Register / calendar buttons */
.register-btn,
.calendar-add-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  padding: 6px 14px; border: 2px solid;
  cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 4px; white-space: nowrap;
  text-decoration: none; border-radius: 999px;
  transition: all .18s; min-width: 88px; flex: 1;
  align-self: stretch; letter-spacing: .02em;
}
.register-btn     { border-color: var(--ink); color: var(--ink); background: transparent; }
.register-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.calendar-add-btn { border-color: rgba(0,0,0,.25); color: rgba(26,26,26,.55); background: transparent; }
.calendar-add-btn i { font-size: 12px; }
.calendar-add-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Calendar panel (floating) */
.calendar-panel {
  position: fixed; z-index: 900;
  background: rgba(240,240,238,.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: none; border-radius: 16px; padding: 8px; min-width: 185px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14); display: none;
}
.calendar-panel.show { display: block; }
.calendar-panel a {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 11px;
  color: var(--ink); text-decoration: none;
  padding: 8px 14px; transition: background .15s, color .15s;
  white-space: nowrap; letter-spacing: .04em; border-radius: 999px;
}
.calendar-panel a:hover { background: rgba(26,26,26,.07); color: var(--blue); }
.calendar-panel a i     { font-size: 13px; color: var(--blue); }

.location-link {
  font-family: var(--font-sans); font-size: 11px; color: rgba(26,26,26,.4);
  display: flex; align-items: flex-start; gap: 4px;
  text-decoration: none; transition: color .2s;
  padding-left: 4px;
}
.location-link:hover { color: var(--blue); }
.location-link i     { flex-shrink: 0; font-size: 11px; margin-top: 2px; }
.location-link span  { line-height: 1.4; }

#clearBtn {
  font-family: var(--font-sans); font-size: 9.5px; padding: 6px 16px;
  border: 2px solid var(--grey); background: transparent;
  color: rgba(26,26,26,.45); cursor: pointer; display: none;
  align-items: center; gap: 4px; letter-spacing: .1em;
  text-transform: uppercase; transition: all .2s; border-radius: 999px;
}
#clearBtn:hover { border-color: var(--ink); color: var(--ink); }

/* ── EVENT CARDS ── */
.event-card {
  display: flex; margin-bottom: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
  border-radius: 999px; overflow: hidden;
}
.event-card--main { border: 2px solid rgba(200,160,0,.55); background: rgba(248,211,40,.09); }
.event-card--side { border: 2px solid rgba(25,84,137,.4);  background: rgba(255,255,255,.35); }
.event-card:hover { transform: none !important; box-shadow: 0 4px 24px rgba(0,0,0,.08) !important; }

.event-card__date {
  width: 0; flex-shrink: 0; overflow: hidden; opacity: 0;
  display: flex; align-items: center; justify-content: center;
  transition: width .42s cubic-bezier(.25,.1,.25,1), opacity .38s ease;
  border-right: 1px solid transparent; border-radius: 999px 0 0 999px;
}
.event-card:hover .event-card__date { width: 58px; opacity: 1; border-right-color: rgba(26,26,26,.07); }

/* Category badge — no outline, colour only */
.event-card__badge {
  font-family: var(--font-sans); font-size: 8px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: none; background: transparent;
  white-space: nowrap; display: inline-block; min-width: 72px; text-align: left;
}
.event-card__badge--mobile { display: none; margin-bottom: 5px; }
.event-card__badge--desktop { display: inline-block; padding-right: 15px; }
.event-card__badge--main { color: #c8a000; }
.event-card__badge--side { color: var(--blue); }

/* ── EVENT CARD INTERNALS ── */
.event-card__date-text {
  font-family: var(--font-display); font-size: 9.5px; font-weight: 400;
  color: var(--ink); text-align: center; line-height: 1.6;
  white-space: nowrap; width: 58px;
}
.event-card__date-sub { font-family: var(--font-sans); color: rgba(26,26,26,.48); }

.event-card__body {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 20px; width: 100%; flex-wrap: wrap;
}
.event-card__time {
  min-width: 52px; flex-shrink: 0; text-align: center;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  align-self: stretch; gap: 1px;
}
.event-card__time-start {
  font-family: var(--font-sans); font-size: 16px; font-weight: 500;
  color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.event-card__time-end {
  font-family: var(--font-sans); font-size: 9.5px;
  color: rgba(26,26,26,.35); letter-spacing: .04em;
}
.event-card__content { flex: 1; min-width: 180px; }
.event-card__title {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--ink); margin-bottom: 3px; line-height: 1.35;
  letter-spacing: -.01em; padding-left: 4px;
}
.event-card__organizer {
  font-family: var(--font-sans); font-size: 11px; color: rgba(26,26,26,.45);
  margin-bottom: 8px; letter-spacing: .03em; padding-left: 4px;
}
.event-card__actions {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px; flex-shrink: 0;
  padding-right: 6px;
}
.event-card__btn-row { display: flex; gap: 5px; align-items: center; }

/* Day group header */
.event-day-header {
  display: flex; align-items: center; gap: 16px; margin: 28px 0 10px;
}
.event-day-header__label {
  font-family: var(--font-sans); font-size: 8.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); white-space: nowrap;
}
.event-day-header__rule { flex: 1; height: 1px; background: rgba(26,26,26,.08); }


/* Programme loading state */
.programme-loading {
  text-align: center; padding: 64px 16px; color: rgba(26,26,26,.35);
}
.programme-loading i    { font-size: 28px; display: block; margin-bottom: 14px; opacity: .4; }
.programme-loading p    {
  font-family: var(--font-sans); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
}
.programme-error {
  text-align: center; padding: 48px 16px;
  font-family: var(--font-sans); font-size: 12.5px;
  color: rgba(26,26,26,.5); line-height: 1.7;
}
.programme-error a { color: var(--blue); }

/* ── TIMELINE ── */
.tl2-wrap  { background: transparent; border: 1px solid var(--grey); min-height: 160px; }
.tl2-head  {
  display: flex; position: relative; top: 0;
  background: rgba(231,229,226,.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 10; border-bottom: 1px solid var(--grey);
}
.tl2-corner  { width: 54px; flex-shrink: 0; border-right: 1px solid var(--grey); }
.tl2-dayhdr  { flex: 1; text-align: center; padding: 10px 4px 9px; border-right: 1px solid rgba(0,0,0,.06); }
.tl2-dn      { font-family: var(--font-display); font-size: 15px; font-weight: 300; color: var(--ink); letter-spacing: -.01em; }
.tl2-dd      { font-family: var(--font-sans); font-size: 9px; color: rgba(26,26,26,.3); margin-top: 2px; letter-spacing: .04em; }
.tl2-body    { display: flex; }
.tl2-times   { width: 54px; flex-shrink: 0; border-right: 1px solid var(--grey); }
.tl2-tslot   {
  height: 64px; font-family: var(--font-sans); font-size: 8.5px; color: rgba(26,26,26,.28);
  border-bottom: 1px solid rgba(0,0,0,.04);
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 4px 8px 0 0; letter-spacing: .04em;
}
.tl2-daycol  { flex: 1; position: relative; border-right: 1px solid rgba(0,0,0,.06); }
.tl2-gl      { position: absolute; left: 0; right: 0; height: 1px; background: rgba(0,0,0,.04); pointer-events: none; }
.tl2-ev      {
  position: absolute; overflow: hidden; cursor: pointer; box-sizing: border-box; z-index: 1;
  border: 2px solid transparent; border-left-width: 3px; border-radius: 12px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tl2-ev:hover { z-index: 30; transform: scale(1.015); box-shadow: 0 4px 16px rgba(0,0,0,.14) !important; }
.tl2-ev-brief    { padding: 4px 6px; height: 100%; overflow: hidden; }
.tl2-ev-time     { font-family: var(--font-sans); font-size: 8.5px; font-weight: 700; opacity: .6; white-space: nowrap; letter-spacing: .06em; }
.tl2-ev-name     {
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.3; margin-top: 2px; letter-spacing: -.01em; color: var(--ink);
}
.tl2-ev-org      { font-family: var(--font-sans); font-size: 8px; opacity: .5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; color: var(--ink); }

.tl2-ovf {
  position: absolute; right: 3px; width: 20px;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; font-family: var(--font-sans); font-size: 8px; font-weight: 700;
  cursor: pointer; z-index: 8; letter-spacing: .03em;
  background: rgba(240,240,238,.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: rgba(26,26,26,.65); border: 2px solid rgba(26,26,26,.18);
  border-radius: 10px; box-sizing: border-box;
  transition: background .2s, color .2s, border-color .2s;
}
.tl2-ovf:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

#tl2Panel {
  position: fixed; z-index: 800; width: 260px;
  background: rgba(240,240,238,.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: none; border-radius: 24px; padding: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18), 0 4px 14px rgba(0,0,0,.1);
  display: none; pointer-events: all;
}
#tl2Panel.show { display: block; }
.tl2-pd-badge {
  display: inline-block; font-family: var(--font-sans); font-size: 8.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; margin-bottom: 8px;
  border-radius: 999px; background: transparent; border: 2px solid currentColor;
}
.tl2-pd-time  { font-family: var(--font-sans); font-size: 9.5px; font-weight: 600; color: var(--blue); margin-bottom: 5px; letter-spacing: .06em; padding-left: 4px; }
.tl2-pd-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 5px; line-height: 1.35; padding-left: 4px; }
.tl2-pd-org   { font-family: var(--font-sans); font-size: 10px; color: rgba(26,26,26,.65); margin-bottom: 6px; padding-left: 4px; }
.tl2-pd-loc   {
  font-family: var(--font-sans); font-size: 10px; color: rgba(26,26,26,.55); margin-bottom: 12px;
  display: flex; align-items: flex-start; gap: 3px; text-decoration: none;
}
.tl2-pd-loc:hover  { color: var(--blue); }
.tl2-pd-loc i      { flex-shrink: 0; margin-top: 1px; font-size: 10px; }
.tl2-pd-act        { display: flex; gap: 6px; }
.tl2-pd-act .register-btn,
.tl2-pd-act .calendar-add-btn { flex: 1; font-size: 10px; padding: 6px 8px; min-width: 0; }

/* ══════════════════════════════════════════
   SECTION DIVIDERS
══════════════════════════════════════════ */
.section-divider {
  display: flex; align-items: center;
  padding: 52px var(--gap); background: transparent;
}
.section-divider.grad-cream2-cream { background: linear-gradient(to bottom, var(--cream2), var(--cream)); }
.section-divider.grad-cream-cream2 { background: linear-gradient(to bottom, var(--cream), var(--cream2)); }

.divider__rule {
  flex: 1; height: 1px; background: rgba(26,26,26,.07);
  transform: scaleX(0); transform-origin: center;
  transition: transform .75s ease .35s;
}
.divider__icon {
  flex-shrink: 0; margin: 0 36px; position: relative; z-index: 1;
  color: rgba(26,26,26,.09);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(.25,.46,.45,.94), color .4s ease, transform .4s ease;
}
.section-divider.drawn .divider__icon       { clip-path: inset(0 0 0 0); }
.section-divider.drawn img.divider__icon    { filter: opacity(0.09) !important; }
.section-divider:hover img.divider__icon    {
  filter: opacity(1) brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(500%) hue-rotate(190deg) !important;
  transform: translateY(-4px);
}
.section-divider.drawn .divider__rule       { transform: scaleX(1); }
.section-divider:hover .divider__icon       { color: var(--blue); transform: translateY(-4px); }

/* ══════════════════════════════════════════
   ORGANISERS
══════════════════════════════════════════ */
#organisers { background: var(--cream); }

.organisers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.organiser-card {
  padding: 44px 28px 40px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: rgba(255,255,255,.18) !important;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: none !important; border-radius: 28px !important;
  box-shadow: 0 4px 32px rgba(0,0,0,.04); transition: box-shadow .35s ease;
}
.organiser-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,.08) !important; }
.organiser-card img   { position: relative; z-index: 2; }

.sub-text {
  font-family: var(--font-sans); font-size: 15px;
  color: rgba(26,26,26,.52); line-height: 1.9; max-width: 660px; margin-bottom: 36px;
}
.sub-text a       { color: var(--blue); text-decoration: none; font-weight: 500; }
.sub-text a:hover { text-decoration: underline; }

/* Organiser logo row (about section) */
.organiser-logo-row {
  display: flex; align-items: center; justify-content: flex-start;
  flex-wrap: wrap; gap: 56px; padding: 48px 0 0;
}
.organiser-logo-row img {
  height: clamp(44px, 5vw, 64px); width: auto; object-fit: contain; opacity: .75;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about { background: linear-gradient(to bottom, var(--cream2), var(--cream) 5%, var(--cream) 99%); }

.about-grid {
  display: grid; grid-template-columns: 1fr 320px;
  gap: clamp(40px, 6vw, 80px); align-items: start; margin-top: 40px;
}
.about-side-card {
  padding: 28px 32px; border: 2px solid rgba(26,26,26,.15); border-radius: 24px;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.about-side-label {
  font-family: var(--font-sans); font-size: 9.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(26,26,26,.38); margin-bottom: 14px;
}

/* Committee */
.committee-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
/* Centre a lone card in the last row (desktop 3-col only) */
@media (min-width: 921px) {
  .committee-grid > .committee-card:last-child:nth-child(3n+1) {
    grid-column: 2;
  }
}
.committee-card {
  padding: 32px 20px 28px; text-align: center;
  background: rgba(255,255,255,.18) !important;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: none !important; border-radius: 28px !important;
  box-shadow: 0 4px 32px rgba(0,0,0,.04); transition: box-shadow .35s ease;
}
.committee-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,.08) !important; }

.committee-card__avatar {
  width: 88px; height: 88px; border-radius: 50%; background: var(--ink);
  margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
  color: var(--cream); overflow: hidden; position: relative; z-index: 2;
  transform: translateZ(0); -webkit-transform: translateZ(0);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  isolation: isolate;
}
.committee-card__avatar img {
  width: 102%; height: 102%; /* slight oversize hides sub-pixel fringe at clip edge */
  object-fit: cover; display: block; position: relative; z-index: 2;
  margin: -1%; /* re-center after oversize */
}
.committee-card__name {
  font-family: var(--font-display); font-size: 16.5px; font-weight: 500;
  color: var(--ink); margin-bottom: 4px; line-height: 1.3; letter-spacing: -.01em;
}
.committee-card__role {
  font-family: var(--font-sans); font-size: 10.5px; color: var(--ink);
  line-height: 1.65; letter-spacing: .04em; margin-bottom: 2px;
}
.committee-card__org {
  font-family: var(--font-sans); font-size: 10.5px; color: var(--ink);
  line-height: 1.65; letter-spacing: .04em;
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
#contact { background: var(--cream); }

.contact-intro {
  font-family: var(--font-sans); font-size: 15px;
  color: rgba(26,26,26,.52); line-height: 1.9; margin-bottom: 40px;
}
.contact-intro a       { color: var(--blue); text-decoration: none; font-weight: 500; }
.contact-intro a:hover { text-decoration: underline; }

.contact-form { max-width: 540px; }
.contact-form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;
}
.contact-form__input,
.contact-form__textarea {
  padding: 13px 20px; background: rgba(255,255,255,.6);
  border: 2px solid rgba(26,26,26,.14); color: var(--ink);
  font-family: var(--font-sans); font-size: 13px; border-radius: 999px;
  outline: none; transition: border-color .25s, background .25s;
  width: 100%; display: block;
}
.contact-form__input:focus,
.contact-form__textarea:focus  { border-color: var(--blue); background: rgba(255,255,255,.88); }
.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(26,26,26,.28); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
}
.contact-form__input[readonly] {
  background: rgba(0,0,0,.04); color: rgba(26,26,26,.3); cursor: default;
}
.contact-form__textarea { resize: vertical; min-height: 130px; border-radius: 24px; }
.contact-form__date-label {
  font-family: var(--font-sans); font-size: 8.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(26,26,26,.35); margin-bottom: 6px;
}
#csuccess {
  display: none; padding: 16px 20px;
  border: 1px solid rgba(25,84,137,.18); background: rgba(25,84,137,.04);
  font-family: var(--font-sans); font-size: 12.5px;
  color: rgba(26,26,26,.65); line-height: 1.68; margin-top: 16px;
}
#csuccess a { color: var(--blue); }

/* ══════════════════════════════════════════
   IMPRINT
══════════════════════════════════════════ */
#imprint { background: var(--cream2); }

.imprint__body { max-width: 660px; }
.imprint__section {
  margin-bottom: 32px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(26,26,26,.07);
}
.imprint__section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.imprint__section h3 {
  font-family: var(--font-sans); font-size: 8.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.imprint__section p,
.imprint__section address {
  font-family: var(--font-sans); font-size: 12.5px;
  color: rgba(26,26,26,.55); line-height: 1.9; font-style: normal;
}
.imprint__section a       { color: var(--blue); text-decoration: none; }
.imprint__section a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { background: var(--cream2); padding: 28px 24px 52px; }

.footer__inner {
  max-width: var(--max-width); margin: 0 auto;
  background: rgba(231,229,226,.55);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 2.5px solid var(--ink); border-radius: 32px;
  padding: 48px clamp(32px, 5vw, 72px) 32px;
}
.footer__top {
  display: grid; grid-template-columns: 1fr 2fr 1fr 1fr; gap: 48px;
  margin-top: 20px; margin-bottom: 30px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(26,26,26,.12);
}
.footer__logo-col {
  display: flex; align-items: flex-start; justify-content: flex-start;
}
/* Stacked organiser logos in footer */
.footer__org-logos {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}
.footer__org-logos img {
  height: clamp(48px, 5.6vw, 76px); width: auto;
  object-fit: contain; opacity: .7;
}
/* DIS and BMJV slightly smaller so all three feel balanced */
.footer__org-logos img:nth-child(1),
.footer__org-logos img:nth-child(2) {
  height: clamp(38px, 4.5vw, 61px);
}
.footer__brand { }
.footer__brand p {
  font-family: var(--font-sans); font-size: 11.5px; color: rgba(26,26,26,.55);
  line-height: 1.8; margin-top: 14px; max-width: 230px;
}
.footer__brand-name {
  font-family: var(--font-sans); font-size: 9px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(26,26,26,.7);
}
.footer__col h5 {
  font-family: var(--font-sans); font-size: 8px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(26,26,26,.38); margin-bottom: 18px;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a  {
  font-family: var(--font-sans); font-size: 11.5px; color: rgba(26,26,26,.55);
  text-decoration: none; transition: color .2s; letter-spacing: .03em;
}
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer__bottom p {
  font-family: var(--font-sans); font-size: 9.5px;
  color: rgba(26,26,26,.35); letter-spacing: .06em;
}

/* ══════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 189;
  width: auto; height: auto; padding: 8px 18px;
  background: rgba(240,240,238,.55); color: var(--ink);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 2px solid rgba(240,240,238,.82); border-radius: 999px;
  display: flex; flex-direction: row; align-items: center;
  justify-content: center; gap: 6px; cursor: pointer;
  opacity: 0; transform: translateY(14px);
  transition: opacity .3s, transform .3s, color .2s, border-color .2s, background .2s;
  pointer-events: none;
}
.back-to-top.show         { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover        { color: var(--blue); border-color: rgba(240,240,238,1); background: rgba(240,240,238,.82); }
.back-to-top__icon        { font-size: 14px; line-height: 1; }
.back-to-top__label {
  font-family: var(--font-sans); font-size: 8px; font-weight: 700;
  letter-spacing: .14em; line-height: 1; text-transform: uppercase;
}

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0; transform: translateY(22px);
  transition: opacity .82s ease, transform .82s ease;
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.fd1 { transition-delay: .08s; }
.fd2 { transition-delay: .17s; }
.fd3 { transition-delay: .28s; }
.fd4 { transition-delay: .38s; }
.fd5 { transition-delay: .48s; }
.fd6 { transition-delay: .58s; }
.fd7 { transition-delay: .68s; }

/* Hero reveal */
.hero-reveal-target {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.hero-reveal-target.revealed { opacity: 1; transform: translateY(0); }

/* ── TABS WRAP ── */
.tabs-wrap { overflow-x: auto; border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
#tabs { display: flex; gap: 0; min-width: max-content; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1.5fr 1fr; gap: 36px; }
  .footer__logo-col { display: none; }
}

@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  /* Prevent the long full-text logo from expanding the nav and pushing the toggle off-screen.
     The nav is only visible when scrolled, so only the short "BDRD 2026" text ever shows. */
  .nav-logo { flex-shrink: 1; min-width: 0; overflow: hidden; }
  .nav-logo__wrap { max-width: 110px; }
  .organisers-grid,
  .committee-grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__logo-col { display: none; }
  .contact-form__row { grid-template-columns: 1fr; }
}

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

/* Hero logos: stack on mobile */
@media (max-width: 680px) {
  .hero__logos {
    flex-direction: column;
    align-items: center;
    gap: clamp(36px, 9vw, 56px);
    max-width: 100%; /* override desktop calc(100% - 48px) so all logos fit on one row */
  }
  .hero__logo-separator { display: none; }
  .hero__logo-bdrd img  { height: clamp(160px, 42vw, 224px); }
  .hero__logo-partners  { align-items: center; }
  .hero__logo-partners-label { font-size: 9px; letter-spacing: .2em; }
  .hero__logo-partners-row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(28px, 7vw, 48px);
  }
  .hero__logo-partners-row img { height: clamp(60px, 16vw, 88px); }
}

@media (max-width: 600px) {
  :root { --vpad: 72px; --gap: 24px; }
  section { padding: 72px 24px; }
  .hero   { padding: 100px 24px 0; }
  .hero__inner { min-height: calc(100svh - 100px); }
  .stats-bar  { padding: 40px 24px; }
  .stats-pill { border-radius: 999px; padding: 12px 16px; }
  .stats-bar__grid { grid-template-columns: repeat(3,1fr); gap: 0; }
  .stat { padding: 6px 8px; }
  .stat__number { font-size: clamp(18px,5.5vw,26px); }
  .stat__label  { font-size: 8px; margin-top: 6px; }
  .organisers-grid,
  .committee-grid { grid-template-columns: 1fr; }
  .footer__top    { grid-template-columns: 1fr; gap: 36px; }
  .section-divider { padding: 40px 24px; }
  .back-to-top    { right: 18px; }
  nav.nav-pill    { width: calc(100% - 24px); }
  /* Hide timeline toggle + list button (timeline already hidden on mobile) */
  #btnTl { display: none; }
  .view-toggle { display: none; }

  /* Event cards: gentle rounded rect instead of pill on mobile */
  .event-card { border-radius: 20px; }
  .event-card__date { border-radius: 18px 0 0 18px; }

  /* Align mobile badge left edge with title/organizer (both at 4px) */
  .event-card__badge--mobile { padding-left: 4px; }

  /* Badge: show above title on mobile, hide from actions column */
  .event-card__badge--mobile  { display: block; }
  .event-card__badge--desktop { display: none; }

  /* Actions column: full-width, buttons right-aligned on mobile */
  .event-card__actions {
    flex-direction: row !important;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
  }

  /* Day tabs: button-like layout — all visible, no horizontal scroll */
  .tabs-wrap {
    overflow-x: visible;
    border-bottom: none;
    padding-bottom: 4px;
  }
  #tabs {
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
  }
  .day-tab {
    flex: 1;
    min-width: 0;
    border: 2px solid var(--grey) !important;
    border-bottom-color: var(--grey) !important;
    border-radius: 12px;
    padding: 8px 6px;
    text-align: center;
    white-space: normal;
  }
  .day-tab.on {
    background: var(--ink);
    color: var(--cream) !important;
    border-color: var(--ink) !important;
  }
  .day-tab.on .day-tab__sublabel { opacity: .55; }
  .day-tab__label   { font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
  .day-tab__sublabel { font-size: 9px; }
  /* "All Days" tab stretches across full width */
  .day-tab--all { flex: 0 0 100%; }
}

/* Very small phones (≤360px): shrink hero logos so partner row stays on one line */
@media (max-width: 360px) {
  .hero__logo-bdrd img { height: clamp(96px, 37vw, 128px); }
  .hero__logo-partners-row img { height: clamp(40px, 13vw, 56px); }
  .hero__logo-partners-row { gap: clamp(16px, 5vw, 24px); }
}

/* Touch devices: suppress date-reveal hover (no hover capability) */
@media (hover: none) {
  .event-card:hover .event-card__date { width: 0; opacity: 0; border-right-color: transparent; }
}

