/* ==========================================================================
   KMSS — main stylesheet
   You normally do NOT need to edit this file. Colours live in theme.css.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { text-wrap: pretty; }

/* Arabic gets slightly looser lines and no negative tracking */
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; }
:root[lang="ar"] body { line-height: 1.9; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface-2); }
.section--sand { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
:root[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { color: var(--ink-soft); font-size: clamp(1.02rem, 1.6vw, 1.16rem); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .96rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: var(--on-brand); box-shadow: var(--shadow); }
.btn--accent  { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent); filter: brightness(.93); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* The hero and the call-to-action bands are always KMSS navy, so a navy primary
   button would vanish into them. Inside those two, primary flips to off-white. */
.hero .btn--primary, .cta-band .btn--primary {
  background: var(--deep-fg); color: var(--deep); box-shadow: var(--shadow-sm);
}
.hero .btn--primary:hover, .cta-band .btn--primary:hover { background: #fff; color: var(--deep); }
/* …except inside the hero's light card, where navy-on-white is correct again. */
.hero__card .btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.hero__card .btn--primary:hover { background: var(--brand-dark); color: var(--on-brand); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 1.02rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
/* The logo is drawn as a mask filled with the current colour, so the single
   assets/img/logo-mark.svg works on white, on navy and in dark mode. */
.brand__mark {
  width: 34px; height: 38px; flex: 0 0 34px;
  background: var(--brand);
  -webkit-mask: url("../img/logo-mark.svg") center / contain no-repeat;
          mask: url("../img/logo-mark.svg") center / contain no-repeat;
}
.brand__text small { display: block; font-size: .68rem; font-weight: 600; color: var(--ink-faint); letter-spacing: .04em; line-height: 1.3; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav__link {
  padding: 9px 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: .93rem;
  color: var(--ink-soft); transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link.is-active { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.nav__tools { display: flex; align-items: center; gap: 8px; margin-inline-start: 8px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn--lang { width: auto; padding-inline: 14px; font-weight: 700; font-size: .82rem; letter-spacing: .04em; }

.nav__burger { display: none; }

/* On narrow phones the long society name pushes the navbar to three lines. */
@media (max-width: 620px) {
  .brand__text small { display: none; }
  .brand { font-size: .98rem; }
}

@media (max-width: 900px) {
  .nav__burger { display: inline-grid; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 13px 14px; font-size: 1rem; }
  .nav__tools { margin-inline-start: auto; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--deep); color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(50% 58% at 16% 20%, color-mix(in srgb, var(--brand-light) 42%, transparent) 0%, transparent 64%),
    radial-gradient(44% 52% at 84% 10%, color-mix(in srgb, var(--accent) 24%, transparent) 0%, transparent 62%),
    radial-gradient(62% 62% at 62% 98%, color-mix(in srgb, var(--kw-green) 16%, transparent) 0%, transparent 66%);
  filter: blur(6px);
  animation: drift 26s var(--ease) infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.12); }
}
/* Subtle geometric pattern overlay — nods to Gulf tilework without shouting */
.hero__pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.1'%3E%3Cpath d='M30 0 60 30 30 60 0 30z'/%3E%3Cpath d='M30 12 48 30 30 48 12 30z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
  position: relative; display: grid; gap: 40px; align-items: center;
  padding-block: clamp(72px, 11vw, 130px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; padding-block: 64px 72px; } }

.hero h1 { color: #fff; }
/* Headline stays clean — a green/white/red run down the text is Italy's
   tricolour, not Kuwait's. The Kuwaiti identity lives in the flag accent
   above it (.hero__flag), where the black hoist trapezoid can actually show. */
.hero h1 .hl {
  display: block;
  background: linear-gradient(175deg, #ffffff 0%, #ffffff 45%, var(--brand-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Kuwait and Australia, side by side — Kuwaiti students, in Australia.
   Sized so the hoist trapezoid and the Southern Cross are both legible. */
.hero__flags { display: flex; gap: 10px; }
.hero__flags img {
  display: block; width: 62px; height: auto; border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.16);
}
.hero__lede { color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.8vw, 1.22rem); max-width: 54ch; margin-top: 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.hero__stat b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: #fff; line-height: 1.1; }
.hero__stat span { font-size: .82rem; color: rgba(255,255,255,.66); font-weight: 600; }

/* Floating "next event" card in hero */
.hero__card {
  background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--ink);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); animation: floaty 7s ease-in-out infinite alternate;
}
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.hero__card h3 { margin-block: 6px 4px; }
.hero__empty { text-align: center; padding: 12px 4px; }
.hero__empty-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.hero__empty p { color: var(--ink-soft); font-size: .94rem; margin-top: 8px; }
.hero__empty .btn { margin-top: 18px; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__foot { padding: 0 22px 22px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--ink-faint); font-weight: 600; }
.card__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Pillar cards (What we do) */
.pillar { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: all var(--dur) var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-size: 1.5rem;
}
.pillar p { color: var(--ink-soft); font-size: .96rem; }

/* Date chip */
.datechip {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px);
  border-radius: 12px; padding: 7px 11px; text-align: center; box-shadow: var(--shadow-sm); min-width: 54px;
}
.datechip b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1; font-family: var(--font-display); }
.datechip span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }

/* Tags & badges */
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line);
}
.tag--brand  { background: color-mix(in srgb, var(--brand) 13%, transparent);  color: var(--brand);  border-color: transparent; }
.tag--accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); border-color: transparent; }
.tag--gold   { background: color-mix(in srgb, var(--gold) 18%, transparent);   color: var(--gold);   border-color: transparent; }
.tag--free   { background: var(--brand);                                       color: var(--on-brand); border-color: transparent; }
.tag--soldout{ background: var(--surface-3); color: var(--ink-faint); border-color: var(--line); }

/* --------------------------------------------------------------------------
   Events page: toolbar, tabs, list, calendar
   -------------------------------------------------------------------------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface-2); border-radius: var(--radius-pill); border: 1px solid var(--line); flex-wrap: wrap; }
.tab {
  padding: 9px 20px; border-radius: var(--radius-pill); border: 0; background: transparent;
  font-weight: 700; font-size: .9rem; color: var(--ink-soft); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.field {
  display: flex; align-items: center; gap: 9px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.field input, .field select { border: 0; background: transparent; outline: 0; font-size: .93rem; min-width: 0; }
.field input { width: min(240px, 44vw); }
.field select { cursor: pointer; font-weight: 600; }

.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

/* Featured event — wide card */
.card--wide {
  grid-column: 1 / -1; display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
}
.card--wide .card__media { grid-row: 1 / -1; aspect-ratio: auto; min-height: 280px; }
.card--wide .card__body { grid-column: 2; padding: 32px 32px 0; justify-content: center; }
.card--wide .card__foot { grid-column: 2; padding: 20px 32px 32px; }
@media (max-width: 760px) {
  .card--wide { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .card--wide .card__media { grid-row: auto; aspect-ratio: 16/10; min-height: 0; }
  .card--wide .card__body { grid-column: 1; padding: 22px 22px 0; }
  .card--wide .card__foot { grid-column: 1; padding: 16px 22px 22px; }
}

.countdown { display: flex; gap: 8px; margin-top: 4px; }
.countdown div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; min-width: 54px; }
.countdown b { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; line-height: 1.1; }
.countdown span { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
:root[lang="ar"] .countdown span { text-transform: none; letter-spacing: 0; }

/* Calendar */
.cal { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal__title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow { padding: 11px 6px; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--line); }
:root[lang="ar"] .cal__dow { text-transform: none; letter-spacing: 0; }
.cal__cell {
  min-height: 104px; padding: 8px; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 5px; background: var(--surface);
}
.cal__cell:nth-child(7n) { border-inline-end: 0; }
.cal__cell.is-out { background: var(--surface-2); opacity: .55; }
.cal__cell.is-today .cal__num { background: var(--brand); color: var(--on-brand); }
.cal__num { font-size: .8rem; font-weight: 700; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-soft); }
.cal__ev {
  font-size: .72rem; font-weight: 700; line-height: 1.3; padding: 4px 7px; border-radius: 7px; cursor: pointer;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
  border: 0; text-align: start; width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background var(--dur) var(--ease);
}
.cal__ev:hover { background: color-mix(in srgb, var(--brand) 26%, transparent); }
.cal__ev.is-past { background: var(--surface-3); color: var(--ink-faint); }
@media (max-width: 640px) {
  .cal__cell { min-height: 68px; padding: 4px; }
  .cal__ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .cal__num { width: 22px; height: 22px; font-size: .72rem; }
}

/* Timeline for past events grouped by year */
.year-head { display: flex; align-items: center; gap: 16px; margin: 44px 0 22px; }
.year-head:first-child { margin-top: 0; }
.year-head b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.year-head hr { flex: 1; border: 0; border-top: 1px solid var(--line); }
.year-head .tag { flex: none; }

/* Empty state */
.empty { text-align: center; padding: 64px 20px; color: var(--ink-faint); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); }
.empty b { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; font-family: var(--font-display); }

/* --------------------------------------------------------------------------
   Modal (event details)
   -------------------------------------------------------------------------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(680px, 94vw); width: 100%; }
.modal::backdrop { background: rgba(10, 14, 20, .62); backdrop-filter: blur(4px); }
.modal[open] .modal__box { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__box { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-height: 88dvh; overflow-y: auto; }
.modal__media { aspect-ratio: 16/8; background: var(--surface-3); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.modal__close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 3; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.modal__wrapper { position: relative; }
.deets { display: grid; gap: 10px; }
.deet { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.deet svg { flex: 0 0 20px; color: var(--brand); margin-top: 3px; }
.deet b { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); }
:root[lang="ar"] .deet b { text-transform: none; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Melbourne guide
   -------------------------------------------------------------------------- */
.guide-layout { display: grid; gap: 32px; grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } }
.guide-nav { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 900px) { .guide-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
.guide-nav button {
  text-align: start; padding: 10px 14px; border-radius: var(--radius-sm); border: 0; background: transparent;
  font-weight: 600; font-size: .92rem; color: var(--ink-soft); cursor: pointer; display: flex; gap: 10px; align-items: center;
  transition: all var(--dur) var(--ease);
}
.guide-nav button:hover { background: var(--surface-2); color: var(--ink); }
.guide-nav button.is-active { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }

.guide-cat { scroll-margin-top: calc(var(--nav-h) + 24px); }
.guide-cat + .guide-cat { margin-top: 52px; }
.guide-cat__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.guide-cat__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; background: color-mix(in srgb, var(--brand) 12%, transparent); }
.guide-items { display: grid; gap: 14px; margin-top: 22px; }
.gitem { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.gitem summary {
  list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  font-weight: 700; transition: background var(--dur) var(--ease);
}
.gitem summary::-webkit-details-marker { display: none; }
.gitem summary:hover { background: var(--surface-2); }
.gitem summary .chev { margin-inline-start: auto; transition: transform var(--dur) var(--ease); color: var(--ink-faint); flex: none; }
.gitem[open] summary .chev { transform: rotate(180deg); }
.gitem__body { padding: 0 20px 20px; color: var(--ink-soft); display: grid; gap: 12px; }
.gitem__body ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.gitem__links { display: flex; flex-wrap: wrap; gap: 8px; }

.checklist { display: grid; gap: 10px; counter-reset: step; }
.checklist li {
  list-style: none; display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.checklist li::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .82rem;
}
.checklist b { display: block; }
.checklist p { font-size: .92rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   People / committee
   -------------------------------------------------------------------------- */
.people { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.person { text-align: center; }
.team-group + .team-group { margin-top: 44px; }
.team-group__head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
  font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.team-group__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
:root[lang="ar"] .team-group__head { letter-spacing: 0; text-transform: none; font-size: .95rem; }

.person__avatar {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-light) 72%, var(--brand)));
  display: grid; place-items: center; color: #fff; font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; border: 3px solid var(--surface); box-shadow: var(--shadow-sm);
}
.person b { display: block; font-size: 1rem; }
.person span { font-size: .86rem; color: var(--brand); font-weight: 600; }
.person small { display: block; font-size: .82rem; color: var(--ink-faint); margin-top: 4px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 800px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   CTA band, sponsors, footer
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--deep); color: #fff; padding: clamp(36px, 6vw, 64px); isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background:
    radial-gradient(45% 60% at 12% 30%, color-mix(in srgb, var(--brand-light) 40%, transparent), transparent 62%),
    radial-gradient(45% 60% at 88% 78%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 62%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 56ch; }

.sponsors { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: center; }
.sponsor { display: grid; place-items: center; padding: 14px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--ink-soft); min-width: 150px; transition: all var(--dur) var(--ease); }
.sponsor:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-3px); }

.footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: 56px 28px; margin-top: 0; }
.footer__grid { display: grid; gap: 34px; grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 14px; }
:root[lang="ar"] .footer h4 { text-transform: none; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--ink-soft); font-size: .93rem; }
.footer a:hover { color: var(--brand); }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: var(--ink-faint); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all var(--dur) var(--ease);
}
.socials a:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); transform: translateY(-3px); }

/* Newsletter / join form */
.joinform { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.joinform .field { flex: 1 1 240px; }
.form-note { font-size: .82rem; color: var(--ink-faint); margin-top: 10px; }

/* --------------------------------------------------------------------------
   Scroll reveal + toast
   -------------------------------------------------------------------------- */
/* Only hide elements if JavaScript is actually running — otherwise the page
   would be blank for anyone with JS off or a script that failed to load. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.toast {
  position: fixed; inset-block-end: 24px; inset-inline: auto; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--surface); padding: 12px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); z-index: 200;
  opacity: 0; pointer-events: none; transition: all var(--dur) var(--ease);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Skip link */
.skip { position: absolute; inset-block-start: -60px; inset-inline-start: 12px; z-index: 300; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px; font-weight: 700; }
.skip:focus { inset-block-start: 0; color: #fff; }

/* Data-loading error banner */
.databanner { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink); padding: 14px 18px; border-radius: var(--radius); font-size: .92rem; margin-bottom: 20px; }
