/* ==========================================================================
   PMI Zimbabwe Excellence Awards · "Gala" public site
   Deep PMI-family purple + gold. Ceremony feel (serif display, emblem,
   gala photography). Calm, clean UI underneath.
   ========================================================================== */
:root {
  --night: #160b33;
  --night-2: #221249;
  --night-3: #0e0722;
  --violet: #4f17a8;
  --violet-dk: #3c1083;
  --violet-soft: #efe8fb;
  --violet-tint: #f7f4fc;
  --gold: #d6a634;
  --gold-2: #f0cf75;
  --gold-dk: #9b7212;
  --gold-soft: #fbf3dc;
  --cream: #faf7f1;

  --ink: #1b1430;
  --text: #2a2440;
  --muted: #625b73;
  --soft: #948da3;
  --line: #e7e2ee;
  --line-2: #d6cfe2;

  --good: #137a4b; --good-bg: #e4f5ec;
  --warn: #93590a; --warn-bg: #fdf1dc;
  --bad: #b8323f;  --bad-bg: #fbe9ec;
  --info: #3c1083; --info-bg: #efe8fb;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(22,11,51,.06), 0 14px 34px -20px rgba(22,11,51,.35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font: "Manrope", system-ui, "Segoe UI", sans-serif;
  --header-h: 76px;

  /* chart palette */
  --c1: #4f17a8; --c2: #7a4fd6; --c3: #b9a3ee; --c4: #d6a634; --c5: #f0cf75; --c6: #2b1466; --c7: #9a7fe0; --c8: #f5e3ad;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.62; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.015em; color: var(--ink); font-weight: 800; }
.serif, .display { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 28px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 800; }
.skip-link:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-size: .95rem; font-weight: 800; line-height: 1; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 1rem; }
.btn--sm { height: 34px; padding: 0 14px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--gold, .btn--sun { background: var(--gold); color: var(--night); }
.btn--gold:hover:not(:disabled), .btn--sun:hover:not(:disabled) { background: var(--gold-2); }
.btn--accent, .btn--brand { background: var(--violet); color: #fff; }
.btn--accent:hover:not(:disabled), .btn--brand:hover:not(:disabled) { background: var(--violet-dk); }
.btn--ink { background: var(--night); color: #fff; }
.btn--ink:hover:not(:disabled) { background: var(--night-2); }
.btn--white { background: #fff; color: var(--night); }
.btn--white:hover { background: var(--gold-soft); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--outline:hover:not(:disabled) { border-color: var(--violet); color: var(--violet); }
.btn--outline-white { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-white:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--ghost { color: var(--ink); padding: 0 12px; }
.btn--ghost:hover { color: var(--violet); background: var(--violet-tint); }
.btn--danger { background: #fff; border-color: #efc5cb; color: var(--bad); }
.btn--danger:hover { border-color: var(--bad); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--violet); }
.link .icon { transition: transform .2s; }
.link:hover .icon { transform: translateX(4px); }
.link--light { color: var(--gold-2); }
.inline-link { color: var(--violet); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.kicker { margin-bottom: 14px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.kicker--light, .on-dark .kicker { color: var(--gold-2); }

/* ---------- Emblem + brand ---------- */
.emblem { display: block; color: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand .emblem { width: 44px; height: 44px; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-size: .98rem; font-weight: 800; letter-spacing: .01em; }
.brand__text span { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.brand--dark { color: var(--ink); }
.brand--dark .brand__text span { color: var(--gold-dk); }

/* ---------- Header (dark) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link { display: inline-flex; padding: 8px 12px; font-size: .92rem; font-weight: 700; color: rgba(255,255,255,.82); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--gold-2); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__signin { font-weight: 800; color: #fff; }
.header__signin:hover { color: var(--gold-2); }
.header__user { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--night); font-size: .8rem; font-weight: 800; flex-shrink: 0; }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: #fff; }
.menu-toggle .icon { width: 22px; height: 22px; }
.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(14,7,34,.6); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(380px, 100%); overflow-y: auto; padding: 14px 24px 30px; background: var(--night); color: #fff; transform: translateX(100%); transition: transform .25s ease; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: 60px; margin-bottom: 14px; }
.drawer nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.1rem; font-weight: 700; }
.drawer__actions { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- Hero (gala) ---------- */
.gala { position: relative; isolation: isolate; overflow: hidden; padding: 96px 0 0; background: var(--night); color: rgba(255,255,255,.86); text-align: center; }
.gala__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.gala::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,11,51,.55) 0%, rgba(22,11,51,.78) 55%, var(--night) 100%); }
.gala .emblem { width: 92px; height: 92px; margin: 0 auto; }
.gala__eyebrow { margin-top: 22px; font-size: .82rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.gala__title { max-width: 15ch; margin: 18px auto 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 1.4rem + 4.6vw, 5.6rem); line-height: 1; letter-spacing: -.03em; color: #fff; }
.gala__title em { font-style: italic; color: var(--gold); }
.gala__lead { max-width: 620px; margin: 24px auto 0; font-size: 1.14rem; }
.gala .hero__actions, .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.gala .hero__actions { justify-content: center; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px auto 0; max-width: 980px; border: 1px solid rgba(214,166,52,.35); border-radius: var(--r-lg); background: rgba(14,7,34,.55); }
.facts > div { padding: 22px 18px; }
.facts > div + div { border-left: 1px solid rgba(214,166,52,.25); }
.facts strong { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 4px; font-size: .84rem; font-weight: 700; color: rgba(255,255,255,.7); }
.gala__foot { height: 72px; }

/* ---------- Finder (AI) ---------- */
.finder-band { padding: 0 0 8px; background: var(--night); }
.finder { max-width: 860px; margin: 0 auto; transform: translateY(36px); padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.finder__label { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.finder__label .pill { margin-left: auto; }
.finder__row { display: flex; gap: 8px; margin-top: 12px; padding: 6px; border-radius: 999px; border: 1.5px solid var(--line-2); }
.finder__row:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.finder__row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 16px; font-size: 1rem; }
.finder__note { margin-top: 10px; font-size: .86rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--night { background: var(--night); color: rgba(255,255,255,.8); }
.section--night h2, .section--night h3 { color: #fff; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }
.section__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 1.3rem + 2.3vw, 3.4rem); letter-spacing: -.025em; max-width: 20ch; }
.section__head--center .section__title { margin-inline: auto; }
.section__lead { max-width: 600px; margin-top: 14px; font-size: 1.08rem; color: var(--muted); }
.section--night .section__lead { color: rgba(255,255,255,.72); }
.rule-gold { width: 56px; height: 3px; margin: 18px auto 0; background: var(--gold); border-radius: 2px; }

/* Awards explorer */
.explorer { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.cat-tabs { display: grid; gap: 6px; position: sticky; top: calc(var(--header-h) + 20px); }
.cat-tab { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; text-align: left; width: 100%; transition: border-color .15s, background-color .15s; }
.cat-tab:hover { border-color: var(--line-2); }
.cat-tab b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--violet-tint); color: var(--violet); font-family: var(--serif); font-size: 1.15rem; }
.cat-tab strong { color: var(--ink); line-height: 1.25; }
.cat-tab small { color: var(--soft); font-weight: 700; }
.cat-tab[aria-selected="true"] { background: var(--night); border-color: var(--night); }
.cat-tab[aria-selected="true"] strong { color: #fff; }
.cat-tab[aria-selected="true"] small { color: var(--gold-2); }
.cat-tab[aria-selected="true"] b { background: var(--gold); color: var(--night); }
.cat-panel { border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.cat-panel__media { position: relative; aspect-ratio: 21 / 8; background: var(--night); }
.cat-panel__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .9; }
.cat-panel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,11,51,.88) 0%, rgba(22,11,51,.1) 70%); }
.cat-panel__cap { position: absolute; left: 28px; right: 28px; bottom: 22px; z-index: 1; color: rgba(255,255,255,.85); }
.cat-panel__cap h3 { font-family: var(--serif); font-weight: 600; font-size: 2rem; color: #fff; }
.cat-panel__cap p { margin-top: 6px; max-width: 560px; }
.award-rows { padding: 8px 12px 12px; }
.award-row { display: grid; grid-template-columns: 1fr auto 28px; gap: 16px; align-items: center; padding: 16px; border-radius: var(--r); }
.award-row + .award-row { border-top: 1px solid var(--line); }
.award-row:hover { background: var(--violet-tint); }
.award-row strong { display: block; color: var(--ink); font-size: 1.04rem; }
.award-row span { font-size: .87rem; color: var(--muted); }
.award-row em { font-style: normal; font-size: .8rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-dk); white-space: nowrap; }
.award-row .icon { color: var(--violet); }

/* Key dates (PMI-style) */
.dates { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.date-list li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.date-list li:first-child { padding-top: 0; }
.date-list .icon { width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.date-list time { font-weight: 800; color: #fff; }
.date-list h3 { margin-top: 4px; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; color: var(--gold-2); }
.date-list p { margin-top: 4px; font-size: .94rem; }
.date-list li.is-now h3::after { content: "Now"; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--night); font-family: var(--font); font-size: .72rem; font-weight: 800; vertical-align: middle; letter-spacing: .04em; }
.sample-note { margin-top: 18px; font-size: .84rem; color: var(--soft); }

/* How to enter */
.pack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pack__item { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.pack__no { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-dk); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.pack__item h3 { margin-top: 18px; font-size: 1.25rem; }
.pack__item p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.pack__item ul { margin-top: 14px; display: grid; gap: 6px; font-size: .92rem; }
.pack__item li { display: flex; gap: 8px; }
.pack__item li .icon { color: var(--violet); margin-top: 4px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.rules__box { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.rules__box h3 { font-size: 1.15rem; margin-bottom: 14px; }
.rules__box--ai { background: var(--night); border-color: var(--night); color: rgba(255,255,255,.82); }
.rules__box--ai h3 { color: #fff; display: flex; align-items: center; gap: 10px; }
.rules__box--ai h3 .icon { color: var(--gold); }
.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { margin-top: 4px; color: var(--violet); }
.rules__box--ai .checklist .icon { color: var(--gold); }

/* Judging */
.judging { max-width: 760px; }
.chart-card { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stack { display: flex; height: 50px; border-radius: 10px; overflow: hidden; gap: 2px; }
.stack span { display: grid; place-items: center; min-width: 0; font-weight: 800; font-size: .82rem; color: var(--ink); }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin-top: 22px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: .92rem; font-weight: 600; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.legend b { font-weight: 800; color: var(--ink); }
.quote { margin-top: 24px; padding-left: 18px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--ink); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 56px; counter-reset: s; }
.stages li { position: relative; padding: 0 18px 0 0; }
.stages li::before { content: ""; position: absolute; top: 21px; left: 44px; right: 0; height: 2px; background: var(--line-2); }
.stages li:last-child::before { display: none; }
.stages b { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--night); color: var(--gold-2); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.stages h3 { margin-top: 16px; font-size: 1.05rem; }
.stages p { margin-top: 4px; font-size: .9rem; color: var(--muted); }

/* Judges */
.judges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.judge { padding: 24px 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-align: center; }
.judge__face { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--night); color: var(--gold-2); font-family: var(--serif); font-size: 1.6rem; font-weight: 600; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold); }
.judge h3 { margin-top: 18px; font-size: 1.02rem; }
.judge p { margin-top: 4px; font-size: .86rem; color: var(--muted); }

/* Winners / hall of fame */
.winners { position: relative; isolation: isolate; overflow: hidden; }
.winners__img { position: absolute; inset: 0 0 0 55%; z-index: -2; width: 45%; height: 100%; object-fit: cover; }
.winners::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night) 55%, rgba(22,11,51,.55) 75%, rgba(22,11,51,.15) 100%); }
.winners .section__head { max-width: 640px; }
.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; }
.wcard { padding: 20px; border-radius: var(--r); border: 1px solid rgba(214,166,52,.35); background: rgba(14,7,34,.6); }
.wcard small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.wcard strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #fff; line-height: 1.2; }
.wcard span { display: block; margin-top: 6px; font-size: .86rem; color: rgba(255,255,255,.65); }
.wcard--won { border-color: var(--gold); background: rgba(214,166,52,.12); }

/* Sponsors */
.sponsors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.slot { display: grid; place-items: center; height: 110px; border-radius: var(--r); border: 1.5px dashed var(--line-2); color: var(--soft); font-weight: 700; font-size: .9rem; background: #fff; }
.slot--lead { grid-column: span 2; height: 140px; border-color: var(--gold); color: var(--gold-dk); background: var(--gold-soft); }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 800; font-size: 1.04rem; color: var(--ink); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .icon { color: var(--gold-dk); transition: transform .2s; }
.faq__list details[open] summary .icon { transform: rotate(45deg); }
.faq__list details p { padding: 0 0 20px; color: var(--muted); max-width: 66ch; }

/* Footer */
.site-footer { padding: 64px 0 28px; background: var(--night-3); color: rgba(255,255,255,.66); font-size: .93rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__top h4 { color: var(--gold-2); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.footer__top a { display: block; padding: 4px 0; }
.footer__top a:hover { color: #fff; }
.footer__top p { margin-top: 16px; max-width: 34ch; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer__top .social__link, .social__link { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background .2s, border-color .2s, color .2s; }
.social__link svg { width: 19px; height: 19px; }
.footer__top .social__link:hover, .social__link:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--night-3); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .84rem; }

/* ---------- Award detail page ---------- */
.ahead { background: var(--night); }
.ahead__card { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 420px; }
.ahead__text { padding: 64px 48px 64px 0; color: rgba(255,255,255,.84); }
.ahead__text h1 { margin-top: 8px; font-family: var(--serif); font-weight: 600; color: #fff; font-size: clamp(2.3rem, 1.3rem + 3vw, 4rem); letter-spacing: -.025em; }
.ahead__text p { margin-top: 16px; max-width: 540px; font-size: 1.1rem; }
.ahead__img { position: relative; margin-right: calc(-1 * max(28px, (100vw - 1220px) / 2 + 28px)); }
.ahead__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ahead__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--night) 0%, rgba(22,11,51,0) 35%); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: 22px; }
.crumbs a:hover { color: var(--gold-2); }
.adetail { display: grid; grid-template-columns: 1fr 350px; gap: 40px; padding: 48px 0 80px; align-items: start; }
.adetail h2 { font-size: 1.6rem; margin-bottom: 18px; }
.block { padding: 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.block + .block { margin-top: 18px; }
.side-card { position: sticky; top: calc(var(--header-h) + 18px); padding: 26px; border-radius: var(--r-lg); background: var(--cream); border: 1px solid var(--line); }
.side-card h3 { font-size: 1.2rem; }
.side-card dl { display: grid; gap: 14px; margin: 18px 0 22px; padding: 18px 0; border-block: 1px solid var(--line); }
.side-card dt { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.side-card dd { margin: 2px 0 0; font-weight: 800; color: var(--ink); }
.side-card .btn + .btn { margin-top: 10px; }
.callout { padding: 16px 18px; border-radius: var(--r); background: var(--violet-tint); color: var(--muted); font-size: .95rem; }
.callout--info { background: var(--violet-soft); color: var(--violet-dk); }
.callout--warn { background: var(--warn-bg); color: var(--warn); }
.scoretable { width: 100%; border-collapse: collapse; }
.scoretable th, .scoretable td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.scoretable th { font-size: .78rem; color: var(--soft); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.scoretable td:last-child, .scoretable th:last-child { text-align: right; width: 64px; font-weight: 800; color: var(--ink); }
.donut-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 32px; align-items: center; }
.donut { position: relative; width: 210px; aspect-ratio: 1; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__c strong { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--ink); }
.donut__c span { font-size: .82rem; font-weight: 700; color: var(--muted); }
.donut-wrap .legend { grid-template-columns: 1fr; margin-top: 0; }
.qlist { display: grid; gap: 10px; counter-reset: q; }
.qlist li { counter-increment: q; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qlist li:last-child { border-bottom: 0; }
.qlist li::before { content: counter(q); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-dk); font-family: var(--serif); font-weight: 600; }
.qlist strong { display: block; color: var(--ink); }
.qlist span { font-size: .92rem; color: var(--muted); }
.tags, .siblings { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--violet-tint); border: 1px solid var(--line); font-size: .88rem; font-weight: 700; color: var(--ink); }
a.tag:hover { border-color: var(--violet); color: var(--violet); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.field label, .field .label { font-weight: 800; font-size: .93rem; color: var(--ink); }
.field .hint { font-size: .86rem; color: var(--muted); }
.input, .select, .textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--text); font-size: .97rem; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field__error { color: var(--bad); font-size: .86rem; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row2 .field + .field { margin-top: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.check + .check { margin-top: 8px; }
.check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--violet); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--violet); background: var(--violet-tint); }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; background: #f0eef4; color: var(--muted); }
.pill--info { background: var(--info-bg); color: var(--info); }
.pill--good { background: var(--good-bg); color: var(--good); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.pill--gold { background: var(--gold); color: var(--night); }
.pill--draft { background: #fff; color: var(--muted); border: 1.5px dashed var(--line-2); }
.pill--ai { background: var(--night); color: var(--gold-2); }

/* ---------- Modal + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(14,7,34,.6); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 32px; border-radius: var(--r-lg); background: #fff; border-top: 4px solid var(--gold); }
.modal__close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); }
.modal__close:hover { background: var(--violet-tint); color: var(--ink); }
.modal h2 { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; padding-right: 40px; }
.modal__lead { margin-top: 8px; color: var(--muted); }
.tabs { display: flex; gap: 4px; margin: 22px 0 18px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 10px 14px; font-weight: 800; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--gold); }
.demo-accounts { display: grid; gap: 8px; }
.demo-account { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); text-align: left; width: 100%; }
.demo-account:hover { border-color: var(--violet); background: var(--violet-tint); }
.demo-account strong { display: block; color: var(--ink); }
.demo-account span { font-size: .86rem; color: var(--muted); }
.demo-account .pill { margin-left: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 13px 20px; border-radius: 999px; background: var(--night); color: #fff; font-weight: 700; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: all .2s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast .icon { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .menu-toggle { display: grid; }
  .header__actions .btn, .header__signin { display: none; }
  .judges { grid-template-columns: repeat(3, 1fr); }
  .stages { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .stages li:nth-child(3)::before { display: none; }
}
@media (max-width: 980px) {
  .explorer, .dates, .judging, .faq, .rules, .adetail, .ahead__card { grid-template-columns: 1fr; }
  .cat-tabs { position: static; grid-template-columns: 1fr 1fr; }
  .pack { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid rgba(214,166,52,.25); }
  .wgrid { grid-template-columns: 1fr 1fr; }
  .winners__img { display: none; }
  .sponsors { grid-template-columns: 1fr 1fr; }
  .side-card { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .ahead__text { padding: 48px 0 32px; }
  .ahead__img { min-height: 260px; margin: 0 -28px; }
  .ahead__img::before { background: linear-gradient(180deg, var(--night) 0%, rgba(22,11,51,0) 40%); }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .section { padding: 64px 0; }
  .gala { padding-top: 64px; }
  .cat-tabs, .judges, .stages, .wgrid, .legend, .sponsors { grid-template-columns: 1fr; }
  .slot--lead { grid-column: auto; }
  .stages li::before { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .finder__row { flex-direction: column; border-radius: var(--r); }
  .finder__row input { padding: 10px; }
  .donut-wrap { grid-template-columns: 1fr; }
  .block { padding: 22px; }
  .footer__top { grid-template-columns: 1fr; }
  .modal__panel { padding: 24px 20px; }
  .brand__text span { display: none; }
  .award-row { grid-template-columns: 1fr 24px; }
  .award-row em { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.brand__text span, .header__user, .header__signin { white-space: nowrap; }
.brand .emblem { flex-shrink: 0; }

/* ---------- Official logo + light header ---------- */
.site-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav__link { color: var(--text); }
.nav__link:hover { color: var(--violet); }
.header__signin, .header__user { color: var(--ink); }
.header__signin:hover { color: var(--violet); }
.menu-toggle { border-color: var(--line-2); color: var(--ink); }
.brand { color: var(--ink); gap: 14px; }
.brand__logo { display: grid; place-items: center; flex-shrink: 0; padding: 4px 8px; border-radius: 10px; background: #fff; }
.brand__logo img { height: 44px; width: auto; }
.brand__text { padding-left: 14px; border-left: 1px solid var(--line-2); }
.brand__text strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.brand__text span { color: var(--gold-dk); }
.site-header .brand__logo { padding: 0; }
.side .brand, .site-footer .brand, .drawer .brand { color: #fff; }
.side .brand__text, .site-footer .brand__text, .drawer .brand__text { border-color: rgba(255,255,255,.2); }
.side .brand__text span, .site-footer .brand__text span, .drawer .brand__text span { color: var(--gold-2); }
.side .brand { flex-direction: column; align-items: flex-start; gap: 10px; }
.side .brand__text { padding-left: 0; border-left: 0; }
.side .brand__logo img { height: 40px; }
.formula-line { margin-top: 22px; padding: 16px 18px; border-radius: var(--r); background: var(--night); color: rgba(255,255,255,.8); font-weight: 700; }
.formula-line b { color: var(--gold-2); }
@media (max-width: 640px) { .brand__text { display: none; } .brand__logo img { height: 38px; } }

/* Reserve space for parts drawn by JavaScript so the page doesn't jump while loading */
[data-site-header] { min-height: var(--header-h); }
.gala [data-emblem] { min-height: 92px; }

/* ---------- Phone fixes ---------- */
@media (max-width: 640px) {
  .ahead__img { margin: 0 -16px; }                        /* container padding is 16px on phones */
  .cat-panel__media { aspect-ratio: auto; height: 300px; }
  .cat-panel__cap { left: 18px; right: 18px; bottom: 16px; }
  .cat-panel__cap h3 { font-size: 1.5rem; }
  .cat-panel__cap p { font-size: .92rem; }
  .judges { grid-template-columns: 1fr 1fr; gap: 10px; }
  .judge { padding: 18px 10px; }
  .judge__face { width: 64px; height: 64px; font-size: 1.25rem; }
  .judge h3 { font-size: .95rem; }
  .judge p { font-size: .8rem; }
}
.drawer { overflow: hidden; }

/* ---------- Sign-in: Google button and divider ---------- */
.btn--google { gap: 10px; background: #fff; color: var(--ink); border: 1px solid var(--line-2, #d9d3e3); }
.btn--google:hover:not(:disabled) { background: #f7f6fa; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; color: var(--muted, #6b6480); font-size: .82rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.inline-link { background: none; border: 0; padding: 0; color: var(--violet); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
