/* Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0e1b2a;
  --muted: #4b5668;
  --line: #d9dfe8;
  --accent: #004976;          /* links, tags, outlines */
  --chrome: #004976;          /* header + footer */
  --chrome-deep: #003556;
  --chrome-ink: #ffffff;
  --chrome-muted: #c9d4ea;
  --warm: #758CC0;
  --amber: #f2a900;           /* CTA + deadlines */
  --amber-ink: #1a1300;
  --amber-text: #8a5a00;      /* amber used as text on light surfaces */
  --focus: #004976;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(0 40 70 / .06), 0 8px 24px rgb(0 40 70 / .06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1520;
    --surface: #121f2e;
    --ink: #e8eef6;
    --muted: #a3b0c2;
    --line: #243447;
    --accent: #8fb8e0;
    --chrome: #06263d;
    --chrome-deep: #041a2b;
    --amber-text: #f2b84b;
    --focus: #8fb8e0;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1520;
  --surface: #121f2e;
  --ink: #e8eef6;
  --muted: #a3b0c2;
  --line: #243447;
  --accent: #8fb8e0;
  --chrome: #06263d;
  --chrome-deep: #041a2b;
  --amber-text: #f2b84b;
  --focus: #8fb8e0;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Base ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html:has(body.has-subnav) { scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; overflow-wrap: break-word; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
p { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .lightbox :focus-visible { outline-color: #fff; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--amber); color: var(--amber-ink); padding: 8px 12px; z-index: 99; border-radius: 6px; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 20px; } .mt-l { margin-top: 32px; }

/* Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--chrome); color: var(--chrome-ink); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.2rem var(--serif); color: #fff; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: radial-gradient(circle at 35% 50%, #fff 0 9px, transparent 10px), radial-gradient(circle at 65% 50%, var(--warm) 0 9px, transparent 10px), var(--chrome-deep); }
#nav { display: flex; align-items: center; gap: 20px; }
#nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
#nav ul a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .15s; }
#nav ul a:hover { background: rgb(255 255 255 / .14); }
#nav ul a[aria-current="page"] { background: rgb(255 255 255 / .2); box-shadow: inset 0 -2px 0 var(--amber); }
.menu-toggle { display: none; background: none; border: 1px solid rgb(255 255 255 / .5); color: #fff; padding: 8px 14px; min-height: 44px; border-radius: 8px; font: inherit; cursor: pointer; }

/* Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; cursor: pointer; background: var(--amber); color: var(--amber-ink); padding: 12px 24px; border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); filter: brightness(1.05); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgb(255 255 255 / .6); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; color: #fff; background:
  radial-gradient(600px 300px at 85% 20%, rgb(117 140 192 / .45), transparent 70%),
  linear-gradient(135deg, var(--chrome-deep), var(--chrome)); padding: clamp(64px, 12vw, 130px) 0 clamp(96px, 14vw, 150px); }
.hero.photo { background:
  linear-gradient(180deg, rgb(0 53 86 / .78), rgb(0 73 118 / .9)),
  url("img/hero-athens.jpg") center 40% / cover no-repeat; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: #d3dcf0; margin: 0 0 16px; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); margin: 0 0 16px; max-width: 20ch; }
.hero p.lead { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 48ch; margin: 0 0 24px; color: #e6ecf8; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 32px; padding: 0; list-style: none; font-weight: 500; }
.meta li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-right: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
[data-countdown] { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
[data-countdown] span { background: rgb(255 255 255 / .12); padding: 10px 16px; border-radius: 10px; font-size: .85rem; }
[data-countdown] b { font: 700 1.6rem var(--serif); margin-right: 4px; }
.hero-credit { position: absolute; right: 16px; bottom: calc(clamp(48px, 7vw, 72px) + 10px); font-size: .75rem; color: rgb(255 255 255 / .9); text-shadow: 0 1px 2px rgb(0 0 0 / .5); }

/* Deadline strip: overlaps the hero bottom */
.strip { padding: 0; margin-top: calc(-1 * clamp(48px, 7vw, 72px)); position: relative; z-index: 1; }

/* Sections -------------------------------------------------------------- */
section { padding: clamp(48px, 7vw, 88px) 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.page-head { padding: clamp(40px, 6vw, 72px) 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.page-head h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--amber); margin-top: 16px; }
.page-head p { color: var(--muted); max-width: 60ch; margin-bottom: 0; }
.prose { max-width: 70ch; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); box-shadow: none; }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--accent); }
a.card h3 { color: var(--accent); }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 10px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.placeholder { color: var(--muted); font-style: italic; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--amber-text); font-size: .78rem; font-weight: 600; }
.soon { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.soon h3 { color: var(--ink); }
.soon p { margin: 0 auto; max-width: 52ch; }

/* In-page navigation ---------------------------------------------------- */
.subnav { position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 8px; margin: 0; padding: 8px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--ink); border: 1px solid var(--line); background: var(--surface); transition: background .15s, border-color .15s; }
.subnav a:hover { border-color: var(--accent); color: var(--accent); }

/* Dates table + tables -------------------------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* Committees ------------------------------------------------------------ */
.roles { display: grid; }
.role { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 12px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.role:first-child { border-top: 0; padding-top: 0; }
.role h2 { font-size: 1.15rem; margin: 0; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px 24px; margin: 0; padding: 0; list-style: none; }
.people strong { display: block; font-weight: 600; }
.people span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
@media (max-width: 760px) { .role { grid-template-columns: 1fr; } }

/* Topics ---------------------------------------------------------------- */
.topic-list { margin: 8px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.topic-list li { margin-bottom: 4px; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--chrome); color: var(--chrome-muted); padding-top: 56px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 12px; }
.site-footer h2 { margin: 0 0 14px; font: 600 .78rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: #fff; }
.foot { display: grid; gap: 36px; grid-template-columns: 1fr 1.4fr; align-items: center; }
.foot strong { color: #fff; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-links a { display: inline-block; padding: 8px 0; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-map iframe { display: block; width: 100%; height: 140px; border: 0; border-radius: var(--radius); filter: saturate(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); } }
:root[data-theme="dark"] .foot-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); }
.legal { text-align: center; padding: 22px 0; margin-top: 40px; border-top: 1px solid rgb(255 255 255 / .15); font-size: .85rem; color: var(--chrome-muted); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* Mobile nav ------------------------------------------------------------ */
@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  #nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--chrome); padding: 12px 16px 20px; border-top: 1px solid rgb(255 255 255 / .15); }
  #nav.open { display: flex; }
  #nav ul { flex-direction: column; }
}

/* Galleries + lightbox -------------------------------------------------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-flow: dense; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery figure.wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gallery figure:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) { .gallery figure:hover img { transform: scale(1.04); } }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgb(0 20 35 / .8)); }
@media (max-width: 560px) { .gallery figure.wide { grid-column: auto; aspect-ratio: 4 / 3; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: #fff; }
.lightbox::backdrop { background: rgb(0 20 35 / .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 12px; }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 8px; display: block; margin: 0 auto; }
.lightbox figcaption { margin-top: 12px; font-size: .9rem; opacity: .9; }
.lb-close, .lb-nav { background: rgb(255 255 255 / .12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; flex: none; }
.lb-close:hover, .lb-nav:hover { background: rgb(255 255 255 / .25); }
.lb-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 600px) { .lb-nav { position: absolute; bottom: 16px; } .lb-prev { left: 16px; } .lb-next { right: 16px; } }

/* Sponsors: logos are opaque PNGs, so they always sit on a light chip */
.sponsors { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.sponsor-logo { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; transition: border-color .15s; }
.sponsor-logo:hover { border-color: var(--accent); }
.sponsor-logo img { height: 52px; width: auto; display: block; }

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

/* Theme toggle */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid rgb(255 255 255 / .5); color: #fff; border-radius: 8px; cursor: pointer; transition: background .15s; }
.theme-toggle:hover { background: rgb(255 255 255 / .14); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.bar-end { display: flex; align-items: center; gap: 8px; }
@media (min-width: 761px) { .bar-end { order: 1; } }

/* Sub-navigation: sticky bar without JS; floating action menu with JS */
.subnav a[aria-current="true"] { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Mobile refinements */
@media (max-width: 640px) {
  .deadlines { grid-template-columns: 1fr; }
  .deadlines li { border-left: 4px solid transparent; border-top: 1px solid var(--line); padding: 16px 20px; }
  .deadlines li:first-child { border-top: 0; }
  .deadlines li.key { border-left-color: var(--amber); border-top-color: var(--line); }
  .subnav ul { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 28px; }
}

/* Header layout: brand left; links, CTA and theme toggle grouped right */
.bar { justify-content: flex-start; gap: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font: 500 .72rem var(--sans); color: var(--chrome-muted); letter-spacing: .02em; }
#nav { margin-left: auto; gap: 16px; }
#nav ul a { position: relative; }
#nav ul a[aria-current="page"] { background: none; box-shadow: none; }
#nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--amber); }
.bar-end { order: 0; }
@media (min-width: 1241px) { .bar-end { order: 0; padding-left: 16px; border-left: 1px solid rgb(255 255 255 / .2); } }
@media (max-width: 1240px) { .bar-end { margin-left: auto; } }
@media (max-width: 760px) { .brand-text small { display: none; } }

/* Floating action menu (sub-navigation) */
html:has(body.has-fab) { scroll-padding-top: calc(var(--header-h) + 12px); }
.subnav.fab { flex-direction: column-reverse; position: fixed; z-index: 20; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); top: auto; background: none; border: 0; display: flex; align-items: flex-end; gap: 12px; }
.subnav.fab .wrap { width: auto; margin: 0; }
.subnav.fab ul { flex-direction: column; align-items: flex-end; gap: 8px; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.subnav.fab li { transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), visibility .2s; transition-delay: calc((var(--n) - var(--i)) * 35ms); }
.subnav.fab:not(.open) li { opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96); transition-delay: 0s; }
.subnav.fab a { box-shadow: var(--shadow); padding: 0 18px; }
.fab-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font: 600 .95rem var(--sans); cursor: pointer; box-shadow: 0 6px 20px rgb(0 0 0 / .3); transition: transform .15s; }
.fab-btn:hover { transform: translateY(-2px); }
.fab-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .25s; }
.fab-btn .i-close { display: none; }
.subnav.open .fab-btn .i-list { display: none; }
.subnav.open .fab-btn .i-close { display: block; transform: rotate(90deg); }
.fab-btn:focus-visible { outline-color: var(--focus); }
@media (max-width: 480px) { .fab-btn .fab-label { display: none; } .fab-btn { padding: 0; width: 52px; justify-content: center; } }

.subnav.fab a { gap: 10px; }
.subnav.fab a svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Wide gallery cards: keep the top of tall landmarks (Acropolis) in frame */
.gallery figure.wide { aspect-ratio: 2 / 1; }
.gallery figure.wide img { object-position: center 8%; }

/* Two-photo gallery: wide card + one tall card fill the row */
.gallery.pair { grid-template-columns: 2fr 1fr; }
.gallery.pair figure, .gallery.pair figure.wide { grid-column: auto; aspect-ratio: auto; min-height: 320px; }
@media (max-width: 700px) { .gallery.pair { grid-template-columns: 1fr; } .gallery.pair figure, .gallery.pair figure.wide { aspect-ratio: 4 / 3; min-height: 0; } }

.subnav.fab { transition: opacity .2s, transform .2s; }
.subnav.fab.away { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }

/* Dropdown navigation ---------------------------------------------------- */
.site-header .wrap { width: min(1240px, 100% - 32px); }
#nav .menu { gap: 0; }
#nav .menu > li { position: relative; }
#nav .menu > li > a, #nav .sub-toggle { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #fff; font: 500 .92rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s; }
#nav .menu > li > a:hover, #nav .sub-toggle:hover, .has-sub.open > .sub-toggle { background: rgb(255 255 255 / .14); }
#nav .sub-toggle::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
#nav .sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-1px, -1px); }
#nav .sub-toggle[aria-current="true"] { background: linear-gradient(var(--amber), var(--amber)) 10px calc(100% - 6px) / calc(100% - 20px) 3px no-repeat; }
#nav .sub-toggle[aria-current="true"]:hover, #nav .has-sub.open > .sub-toggle[aria-current="true"] { background: linear-gradient(var(--amber), var(--amber)) 10px calc(100% - 6px) / calc(100% - 20px) 3px no-repeat, rgb(255 255 255 / .14); }
#nav .sub { display: none; position: absolute; top: 100%; left: 0; z-index: 30; flex-direction: column; gap: 2px; min-width: 240px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgb(0 0 0 / .3); }
#nav .has-sub.open > .sub { display: flex; }
@media (hover: hover) and (min-width: 1241px) {
  #nav .has-sub:hover > .sub, #nav .has-sub:has(:focus-visible) > .sub { display: flex; }
  #nav .has-sub:hover > .sub-toggle { background: rgb(255 255 255 / .14); }
  #nav .has-sub:hover > .sub-toggle::after { transform: rotate(-135deg) translate(-1px, -1px); }
  #nav .sub-toggle { cursor: default; }
}
#nav .sub a { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .92rem; text-decoration: none; white-space: nowrap; }
#nav .sub a:hover { background: var(--bg); color: var(--accent); }
#nav .sub a[aria-current="page"] { background: var(--bg); color: var(--accent); box-shadow: inset 3px 0 0 var(--amber); }
#nav .sub a[aria-current="page"]::after { display: none; }
@media (max-width: 1240px) {
  #nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  #nav .menu > li > a, #nav .sub-toggle { width: 100%; justify-content: space-between; padding: 8px 12px; }
  #nav .sub { position: static; min-width: 0; margin: 0 0 6px 12px; background: rgb(255 255 255 / .06); border: 0; box-shadow: none; }
  #nav .sub a { color: #fff; white-space: normal; }
  #nav .sub a:hover { background: rgb(255 255 255 / .12); color: #fff; }
  #nav .sub a[aria-current="page"] { background: rgb(255 255 255 / .12); color: #fff; }
}

/* Sticky footer: short pages keep the footer at the bottom of the viewport */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-footer { flex: none; }

/* Compact footer */
.site-footer { padding-top: 28px; font-size: .9rem; }
.site-footer p { margin: 0 0 6px; }
.foot { grid-template-columns: 1fr auto; gap: 24px; }
.foot-map { width: min(340px, 100%); }
.foot-map iframe { height: 96px; }
.legal { margin-top: 20px; padding: 14px 0; font-size: .8rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } .foot-map { width: 100%; } }

/* Topics: 3 columns (9 topics = 3 full rows), otherwise one column, never a lone card */
.grid.topics-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.topics-grid { grid-template-columns: 1fr; } }

/* Registration fees */
.fees { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.fee-card .incl { font-size: .9rem; margin-bottom: 12px; }
.fee-table th, .fee-table td { padding: 12px 8px; }
.fee-table thead th, .fee-table tr:first-child th { text-align: right; }
.fee-table tr:first-child th:first-child { text-align: left; }
.fee-table th[scope="row"] { font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 600; white-space: nowrap; }
.fee-table td { text-align: right; font: 700 1.5rem var(--serif); }
.fee-table tr:last-child th, .fee-table tr:last-child td { border-bottom: 0; }

.ticket { position: relative; display: flex; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ticket-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: none; width: 170px; padding: 24px 20px; background: var(--amber); color: var(--amber-ink); border-right: 2px dashed rgb(26 19 0 / .35); }
.ticket-stub svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.ticket-stub b { font: 700 2.2rem/1 var(--serif); }
.ticket-stub small { font-size: .8rem; font-weight: 600; }
.ticket-body { padding: 24px 28px; }
.ticket-body p { margin: 0; color: var(--muted); max-width: 52ch; }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 160px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.ticket::before { top: -10px; } .ticket::after { bottom: -10px; }
@media (max-width: 560px) {
  .ticket { flex-direction: column; }
  .ticket-stub { width: auto; flex-direction: row; gap: 10px; border-right: 0; border-bottom: 2px dashed rgb(26 19 0 / .35); padding: 16px 20px; }
  .ticket-stub svg { margin: 0; }
  .ticket::before, .ticket::after { display: none; }
}

/* Smaller social-events ticket */
.ticket { max-width: 560px; }
.ticket-stub { width: 110px; padding: 14px 12px; }
.ticket-stub svg { width: 20px; height: 20px; margin-bottom: 2px; }
.ticket-stub b { font-size: 1.5rem; }
.ticket-stub small { font-size: .72rem; }
.ticket-body { padding: 14px 18px; }
.ticket-body .tag { margin-bottom: 2px; font-size: .7rem; }
.ticket-body h3 { font-size: 1.05rem; margin-bottom: .2em; }
.ticket-body p { font-size: .88rem; line-height: 1.5; }
.ticket::before, .ticket::after { left: 100px; width: 16px; height: 16px; }
.ticket::before { top: -8px; } .ticket::after { bottom: -8px; }
@media (max-width: 560px) { .ticket-stub { width: auto; padding: 10px 16px; } }

/* Registration policy */
.policy { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.policy li { display: grid; grid-template-columns: minmax(180px, 1fr) 1.6fr auto; align-items: center; gap: 8px 24px; padding: 16px 22px; border-top: 1px solid var(--line); }
.policy li:first-child { border-top: 0; }
.policy h3 { margin: 0; font-size: 1.05rem; }
.policy li > div p { margin: 0; font-size: .85rem; color: var(--muted); }
.policy li > p { margin: 0; }
.policy .badge { justify-self: start; white-space: nowrap; }
@media (max-width: 760px) { .policy li { grid-template-columns: 1fr; padding: 16px 18px; } }

.people.people-wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 32px; }

/* Social events: visit cards */
.visits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.visit { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.visit-media { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
@media (hover: hover) { .visit:hover .visit-media img { transform: scale(1.04); } }
.visit-media figcaption { position: absolute; inset: auto 0 0 0; padding: 24px 12px 8px; text-align: right; font-size: .72rem; color: #fff; background: linear-gradient(transparent, rgb(0 20 35 / .75)); }
.visit-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 28px 24px 24px; }
.visit-n { position: absolute; top: -18px; left: 24px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: var(--amber-ink); font: 700 .9rem var(--serif); box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.visit-body h3 { margin-bottom: .3em; }
.visit-body p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.visit-body .visit-when { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-size: .85rem; font-weight: 600; color: var(--amber-text); }
.visit-when svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visit-note { color: var(--muted); max-width: 64ch; }
@media (max-width: 900px) { .visits { grid-template-columns: 1fr; } .visit { flex-direction: row; } .visit-media { flex: 0 0 40%; aspect-ratio: auto; min-height: 200px; } .visit-body { padding: 24px; } .visit-n { top: 12px; left: calc(40% - 18px); } }
@media (max-width: 560px) { .visit { flex-direction: column; } .visit-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; } .visit-n { top: -18px; left: 24px; } .visit-body { padding-top: 28px; } }

.gallery figure.pos-mid img, .visit-media-lib img { object-position: center 50%; }
.gallery figure.wide.pos-mid img { object-position: center 55%; }

/* Sustainability */
.eco { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.eco-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.eco-visual { display: grid; place-items: center; height: 220px; background: radial-gradient(420px 220px at 80% 0%, rgb(117 140 192 / .5), transparent 70%), linear-gradient(135deg, var(--chrome-deep), var(--chrome)); }
.eco-visual svg { width: min(300px, 80%); height: auto; overflow: visible; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eco-body { padding: 24px 28px 28px; }
.eco-body p { margin: 0; color: var(--muted); }
.eco-note { color: var(--muted); }
.eco-bars line { stroke: rgb(255 255 255 / .35); }
.eco-bars rect { fill: var(--amber); stroke: none; rx: 3; transform-box: fill-box; transform-origin: bottom; animation: eco-bar 3.2s ease-in-out infinite; animation-delay: var(--d); }
.eco-bulb .glow { fill: var(--amber); stroke: none; opacity: .28; animation: eco-glow 6s ease-in-out infinite; }
.eco-bulb .bulb { stroke: #fff; stroke-width: 3; animation: eco-bulb 6s ease-in-out infinite; }
@keyframes eco-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes eco-glow { 0%, 40% { opacity: .35; } 50%, 90% { opacity: 0; } 100% { opacity: .35; } }
@keyframes eco-bulb { 0%, 40% { stroke: var(--amber); } 50%, 90% { stroke: #fff; } 100% { stroke: var(--amber); } }
@media (max-width: 760px) { .eco { grid-template-columns: 1fr; } .eco-visual { height: 180px; } }

.role-sub { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.people-label { margin: 0 0 12px; font: 600 .75rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.people-label.mt-m { margin-top: 28px; }

.sponsor-logo img { max-width: 100%; height: auto; max-height: 52px; }

/* Footer rework: details left, large map right */
.site-footer { padding-top: 44px; font-size: .95rem; }
.foot { grid-template-columns: minmax(280px, 1fr) 1.6fr; gap: 48px; align-items: stretch; }
.foot-about { display: flex; flex-direction: column; justify-content: center; }
.foot-name { margin: 0 0 4px; font: 700 1.3rem var(--serif); color: #fff; }
.foot-title { margin: 0 0 18px; color: var(--chrome-muted); }
.foot-facts { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; color: #fff; }
.foot-facts li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.foot-facts svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.foot-link:hover { text-decoration: underline; }
.foot-map { width: auto; }
.foot-map iframe { height: 100%; min-height: 260px; }
.legal { margin-top: 32px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr; gap: 28px; } .foot-map iframe { height: 260px; } }
.foot-link { gap: 6px; }

/* Dates timeline (call pages) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); max-width: 760px; }
.timeline li { position: relative; display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 4px 24px; padding: 0 0 22px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px var(--bg); }
.timeline li.key::before { background: var(--amber); }
.timeline time { font: 700 1.15rem/1.4 var(--serif); }
.timeline strong { font-weight: 600; }
.timeline .note { display: block; margin-top: 2px; color: var(--muted); font-size: .9rem; }
.timeline .badge { margin-left: 8px; vertical-align: 1px; }
.dates-note { color: var(--muted); max-width: 64ch; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; padding-left: 22px; } }

/* Next-deadline card (under hero) */
.next-card { display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 5px solid var(--amber); }
.next-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--amber-text); }
.next-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.next-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.next-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--amber-text); }
.next-title { font: 700 1.2rem/1.3 var(--serif); }
.next-meta { color: var(--muted); font-size: .9rem; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); filter: none; }
@media (max-width: 640px) { .next-card { flex-wrap: wrap; } .next-card .btn { width: 100%; } }

/* Important dates widget */
.dates .tabs { display: flex; gap: 8px; margin: 20px 0 28px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.dates .tabs button { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 500 .95rem var(--sans); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.dates .tabs button:hover { border-color: var(--accent); }
.dates .tabs button[aria-selected="true"] { background: var(--chrome); border-color: var(--chrome); color: #fff; font-weight: 600; }
.dates:not(.js) .tabs, .dates:not(.js) .panel-tools { display: none; }
.dates:not(.js) .panel + .panel { margin-top: 40px; }
.dates.js .panel-title { display: none; }
.dates .timeline { max-width: 820px; }
.dates .timeline li { grid-template-columns: minmax(170px, 260px) 1fr; }
.timeline li.past time, .timeline li.past strong { color: var(--muted); font-weight: 500; }
.timeline li.past::before { background: var(--line); }
.timeline li.next::before { background: var(--amber); box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px color-mix(in srgb, var(--amber) 45%, transparent); }
.timeline li.next time { color: var(--amber-text); }
.timeline .tag-review { margin-left: 8px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
.timeline li.internal:not(.key) strong { font-weight: 500; }
.timeline li[hidden] { display: none; }
.badge-next { margin-left: 8px; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 560px) { .dates .timeline li { grid-template-columns: 1fr; } .panel-tools .btn { flex: 1 1 100%; } }

/* Calendar selection mode */
.timeline .pick { display: none; position: absolute; right: 0; top: -6px; width: 44px; height: 44px; place-items: center; cursor: pointer; }
.panel.selecting .timeline .pick { display: grid; }
.panel.selecting .timeline li { padding-right: 56px; }
.timeline .pick input { width: 22px; height: 22px; accent-color: var(--amber); cursor: pointer; }
.timeline .pick input:disabled { opacity: .35; cursor: not-allowed; }
.panel.selecting .timeline li.past { opacity: .6; }
.panel-tools[hidden], .select-bar[hidden] { display: none; }
.btn[disabled] { opacity: .55; }
