/* =====================================================================
   DEEP OCEAN — design kit
   Dark ocean pages, frosted-glass navigation, cobalt buttons with glow,
   Outfit display type over Inter text, scroll "dive" chapters with a
   particle stage, light "pearl" sign-in pages.
   Fonts: @fontsource-variable/inter + @fontsource-variable/outfit.
   Art (optional): /art/lightfield-1600.webp, hero-ocean-2000.webp,
   hero-ocean-tall-800.webp, hero-ocean-1100.webp, foam-900/1800.webp, planet-1100.webp
   Logical properties (inline-start/end) keep everything right for RTL.
   ===================================================================== */

:root {
  /* palette */
  --deep-ocean: #041c24;
  --midnight: #07162f;
  --ocean-teal: #075d70;
  --cobalt: #2458f5;
  --cobalt-deep: #173fd0;
  --cobalt-lit: #3a74fb;
  --aqua: #50d5e8;
  --ice: #eaf3fc;
  --pearl: #f5f8fc;
  --dark-ink: #10263b;
  --navy-band: #001d4f;
  --ok: #17693f; --ok-bg: #dcf3e6;
  --warn: #875400; --warn-bg: #fbeed0;
  --bad: #ad2d1f; --bad-bg: #fce3de;
  --info: #0b5b78; --info-bg: #dcf1f8;
  --neutral: #4e6376; --neutral-bg: #e8eef4;
  --s-water: #2458f5; --s-agri: #1f8a54; --s-energy: #c98508; --s-circular: #075d70;

  /* shape & motion */
  --r-sm: 11px; --r-md: 16px; --r-lg: 24px; --r-xl: 34px;
  --t-press: .14s; --t-select: .22s; --t-panel: .32s;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-fluid: cubic-bezier(.65, 0, .35, 1);
  --shadow-1: 0 1px 2px #07162f0f, 0 1px 1px #07162f08;
  --shadow-2: 0 2px 6px #07162f0d, 0 14px 34px -14px #07162f33;
  --shadow-3: 0 30px 70px -20px #04122880;
  --glow: 0 10px 26px -10px #2458f5bf;

  /* type & layout */
  --font: "Inter Variable", "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit Variable", "IBM Plex Sans Arabic", "Inter Variable", -apple-system, sans-serif;
  --page: min(1240px, calc(100% - 48px));
  --nav-h: 60px; --nav-gap: 14px; --tabbar-h: 0px;

  /* DEEP context (default): light text on dark ocean surfaces */
  --ink: #ffffff; --ink-2: #e8f3fb; --ink-3: #c3d6e6; --ink-4: #8fa7bd;
  --canvas: var(--midnight);
  --surface: #0f2846; --surface-2: #14325a; --surface-3: #1a3b66;
  --line: #bee4f524; --line-2: #bee4f540;
  --accent: var(--cobalt); --accent-2: #a2eaf5; --accent-soft: #50d5e81f;
  --link: var(--aqua);
  --input-bg: #0a1d38;
}

/* LIGHT "pearl" context (sign-in pages, light panels) */
.light {
  --ink: var(--dark-ink); --ink-2: #2f4659; --ink-3: #4e6376; --ink-4: #5a6f83;
  --canvas: var(--pearl); --surface: #fff; --surface-2: #edf3fa; --surface-3: #dfe9f3;
  --line: #10263b1a; --line-2: #10263b33;
  --accent-soft: #e4ecfe; --accent-2: #1a46cf; --link: var(--cobalt);
  --input-bg: #fff;
  color: var(--ink);
}
:lang(ar) { --display: "IBM Plex Sans Arabic", "Outfit Variable", sans-serif; --font: "IBM Plex Sans Arabic", "Inter Variable", sans-serif; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--nav-gap) + 16px); background: var(--deep-ocean); }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip;
  background: var(--midnight); color: var(--ink); font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
#root { display: flex; flex-direction: column; flex: 1; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--t-press); }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(25px, 2.8vw, 36px); }
h3 { font-size: 19px; }
:lang(ar) :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
img { max-width: 100%; }
::selection { background: #50d5e859; }
:focus-visible { outline: none; box-shadow: 0 0 0 2.5px var(--aqua); border-radius: 8px; }
.icon { flex: 0 0 auto; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.eyebrow { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--aqua); }
.light .eyebrow { color: var(--cobalt); }
.lead { margin-top: 12px; max-width: 60ch; color: var(--ink-3); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; }
.muted, .meta { color: var(--ink-3); }
.meta { font-size: 14px; }
.wrap { width: var(--page); margin-inline: auto; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* ---------- glass ---------- */
.glass {
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  background: linear-gradient(#0c243edb, #051428e0); border: 1px solid #bee4f52b;
  box-shadow: inset 0 1px #ffffff21, 0 14px 34px -14px #020c1a9e;
}

/* ---------- navigation ---------- */
.nav { position: fixed; top: var(--nav-gap); left: 0; right: 0; z-index: 40; pointer-events: none; }
.nav-bar { pointer-events: auto; width: var(--page); height: var(--nav-h); margin: 0 auto; padding-inline: 20px 12px; display: flex; align-items: center; gap: 20px; border-radius: 22px; color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand img { height: 25px; width: auto; display: block; }
.topnav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.topnav a { position: relative; padding: 9px 14px; border-radius: 14px; color: #e8f3fbd1; font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: color var(--t-press), background var(--t-press); }
.topnav a:hover { color: #fff; }
.topnav a.active { color: #fff; background: linear-gradient(#78bef03d, #5096e621); box-shadow: inset 0 1px #fff3, inset 0 0 0 1px #bee4f521; }
.topbar-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; color: #fff; }
.lang { display: inline-flex; padding: 3px; border-radius: 12px; background: #bee4f51a; }
.lang button { min-height: 36px; padding: 4px 9px; border: 0; border-radius: 9px; background: none; color: #e1f0fabd; font: inherit; font-size: 12px; font-weight: 650; letter-spacing: .03em; cursor: pointer; transition: background var(--t-press), color var(--t-press); }
.lang button[aria-pressed="true"] { background: #ffffffeb; color: var(--midnight); }
.light .lang { background: var(--surface-2); }
.light .lang button { color: var(--ink-3); }
.light .lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }

.avatar-btn { display: flex; align-items: center; padding: 2px; border: 0; border-radius: 14px; background: none; cursor: pointer; }
.avatar {
  --a: 215; display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(145deg, hsl(var(--a) 80% 56%), hsl(calc(var(--a) + 28) 74% 28%));
  color: #fff; font-family: var(--display); font-size: 14px; font-weight: 600; box-shadow: inset 0 1px #ffffff4d;
}
.account-menu { position: relative; }
.menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 50; min-width: 230px; padding: 8px; border-radius: 18px; display: grid; gap: 2px; animation: menu-in var(--t-select) var(--ease-out); }
.menu-head { display: grid; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid #bee4f524; font-size: 14px; }
.menu-head span { color: #e1f0fab3; font-size: 12.5px; overflow-wrap: anywhere; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: none; color: #e8f3fb; font: inherit; font-size: 14.5px; text-align: start; text-decoration: none; cursor: pointer; }
.menu-item:hover { background: #8cbeeb29; color: #fff; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* bottom tab bar (phones) */
.tabbar { display: none; }
@media (max-width: 860px) {
  :root { --tabbar-h: 74px; --nav-h: 56px; --nav-gap: 10px; }
  .topnav, .hide-sm { display: none !important; }
  .nav-bar { gap: 8px; padding-inline: 14px 8px; border-radius: 18px; }
  .brand img { height: 21px; }
  .lang button { padding: 4px 7px; }
  .tabbar {
    position: fixed; z-index: 40; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    height: 62px; padding: 6px; border-radius: 22px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 0; border-radius: 17px; color: #e2f0fad1; font-size: 10.5px; font-weight: 600; text-decoration: none; }
  .tabbar a span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .tabbar a.active { color: #fff; background: linear-gradient(#78bef03d, #5096e621); box-shadow: inset 0 1px #fff3, inset 0 0 0 1px #bee4f521; }
}

/* ---------- main column ---------- */
.main { flex: 1; width: var(--page); margin: 0 auto; padding: 0 0 calc(110px + var(--tabbar-h)); }
.page-enter { animation: page-in var(--t-panel) var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--dark-ink); --btn-fg: #fff; --btn-bd: transparent;
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 1px solid var(--btn-bd); border-radius: 15px; background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none;
  transition: transform var(--t-press) var(--ease-out), background var(--t-press), box-shadow var(--t-press), border-color var(--t-press), opacity var(--t-press);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary, .btn:not(.secondary):not(.btn-secondary):not(.btn-ghost):not(.btn-quiet):not(.danger):not(.btn-danger):not(.green):not(.gold) {
  --btn-bd: #aac8ff47; --btn-fg: #fff;
  background: linear-gradient(180deg, #2f66f8 0%, var(--cobalt) 46%, var(--cobalt-deep) 100%);
  box-shadow: inset 0 1px 0 #ffffff57, 0 10px 26px -10px #50a0ffb3;
}
.btn-primary::after, .btn:not(.secondary):not(.btn-secondary):not(.btn-ghost):not(.btn-quiet):not(.danger):not(.btn-danger)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translate(-120%);
  background: linear-gradient(105deg, #0000 35%, #ffffff42 50%, #0000 65%); transition: transform .52s var(--ease-out);
}
.btn:hover::after { transform: translate(120%); }
.btn-secondary, .btn.secondary { --btn-bg: #ffffff1f; --btn-fg: #fff; --btn-bd: #bee4f55c; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: none; }
.btn-secondary:hover, .btn.secondary:hover { --btn-bg: #ffffff38; }
.light .btn-secondary, .light .btn.secondary { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.light .btn-secondary:hover, .light .btn.secondary:hover { --btn-bg: var(--surface-2); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--aqua); padding: 0 12px; box-shadow: none; }
.btn-ghost:hover { --btn-bg: var(--accent-soft); }
.btn-quiet { --btn-bg: transparent; --btn-fg: #fff; box-shadow: none; }
.btn-quiet:hover { --btn-bg: #8cbeeb29; }
.btn-danger, .btn.danger { --btn-bg: #ad2d1f1f; --btn-fg: #ffb4a8; --btn-bd: #ff8a7a59; box-shadow: none; }
.btn-danger:hover, .btn.danger:hover { --btn-bg: #ad2d1f38; }
.light .btn-danger, .light .btn.danger { --btn-bg: #fff; --btn-fg: var(--bad); --btn-bd: color-mix(in srgb, var(--bad) 34%, transparent); }
.btn.green { --btn-bg: linear-gradient(180deg, #2ea56a, #17693f); --btn-fg: #fff; --btn-bd: #8fe6b547; background: linear-gradient(180deg, #2ea56a, #17693f); box-shadow: inset 0 1px #ffffff40, 0 10px 26px -12px #2ea56acc; }
.btn-sm, .btn.small { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; border-radius: 18px; font-size: 16px; }
.btn.block { width: 100%; margin-top: 18px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px; border: 0; background: none; color: var(--aqua); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: gap var(--t-press), color var(--t-press); }
.btn-link:hover { color: #fff; gap: 12px; text-decoration: none; }
.light .btn-link { color: var(--cobalt); }

/* ---------- surfaces ---------- */
.card {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(#102a4b, #0c2140); box-shadow: inset 0 1px #bee4f51a, 0 16px 36px -22px #000000b3;
}
.card + .card { margin-top: 16px; }
.light .card { background: var(--surface); box-shadow: var(--shadow-1); }

/* page header band */
.band {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  margin: 0 calc(50% - 50vw) 36px; padding: calc(var(--nav-h) + var(--nav-gap) + 44px) calc(50vw - 50%) 68px;
  background: var(--deep-ocean);
}
.band-art { position: absolute; inset: -12% -6%; z-index: -1; opacity: .92; background: url(/art/lightfield-1600.webp) 50% 30% / cover no-repeat; animation: drift-light 44s ease-in-out infinite alternate; }
.band::after { content: ""; position: absolute; inset: auto 0 0; height: 170px; z-index: -1; background: linear-gradient(to top, var(--midnight), transparent); }
.band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.band-inner > div:first-child { min-width: 0; max-width: 100%; }
.band h1 { color: #fff; }
.band .lead { color: #e2f0fadb; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes drift-light { to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }

/* ---------- forms ---------- */
label { display: block; margin: 16px 0 7px; color: var(--ink); font-size: 14px; font-weight: 600; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 13px;
  background: var(--input-bg); color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color var(--t-press), box-shadow var(--t-select);
}
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 34%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px #50d5e833; }
.light input:focus, .light select:focus, .light textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px #2458f533; }
select { appearance: none; cursor: pointer; padding-inline-end: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] select { background-position: 20px 52%, 15px 52%; }
select option { color: #10263b; background: #fff; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; height: 18px; padding: 0; accent-color: var(--cobalt); }
input[type="file"] { padding: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-weight: 400; }
.check input { margin-top: 3px; }
.hint { margin-top: 6px; color: var(--ink-3); font-size: 13px; line-height: 1.45; }

/* ---------- pills, chips, notices ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--neutral-bg); color: var(--neutral); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill-leaf, .pill.approved, .pill.accepted { background: var(--ok-bg); color: var(--ok); }
.pill-amber, .pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill-coral, .pill.rejected, .pill.declined { background: var(--bad-bg); color: var(--bad); }
.pill-water, .pill.in_progress { background: var(--info-bg); color: var(--info); }
.chip { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 13px; font-weight: 550; }
.sector-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; }
.s-water { color: #a9c3ff; background: #3c6efa38; }
.s-agri { color: #8fe6b5; background: #32b46e33; }
.s-energy { color: #f6cf7c; background: #e6aa3233; }
.s-circular { color: #8be6e2; background: #3cbec833; }
.notice, .alert { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 12px 0; padding: 14px 18px; border-radius: var(--r-md); background: #0b5b7838; color: #bfeaf6; font-size: 15px; box-shadow: inset 0 0 0 1px #50d5e82e; }
.notice-error, .alert.error { background: #ad2d1f2e; color: #ffc2b8; box-shadow: inset 0 0 0 1px #ff8a7a40; }
.notice-leaf, .alert.success { background: #17693f33; color: #a8f0c8; box-shadow: inset 0 0 0 1px #8fe6b540; }
.notice-warn { background: #87540033; color: #ffd98c; }
.light .notice, .light .alert { background: var(--info-bg); color: var(--info); box-shadow: none; }
.light .alert.error { background: var(--bad-bg); color: var(--bad); }
.light .alert.success { background: var(--ok-bg); color: var(--ok); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 24px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(#102a4b, #0a1d38); }
.empty p { max-width: 46ch; color: var(--ink-3); }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 17px; background: var(--accent-soft); color: var(--aqua); }

/* ---------- project card ---------- */
.grid-cards, .card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pcard {
  position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(#102a4b, #0c2140); box-shadow: inset 0 1px #bee4f51a, 0 16px 36px -22px #000000b3;
  transition: transform var(--t-select) var(--ease-out), box-shadow var(--t-select) var(--ease-out);
  animation: fade-up var(--t-panel) var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 8) * 34ms);
}
.pcard:hover { transform: translateY(-4px); box-shadow: inset 0 1px #bee4f526, 0 24px 44px -20px #000000cc; }
.pcard-band { position: relative; height: 84px; overflow: hidden; background-size: cover; background-position: 50%; }
.pcard-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 30%, #041c2857); }
.band-water { background-image: url(/art/hero-ocean-1100.webp); background-position: 50% 60%; }
.band-agri { background-image: linear-gradient(115deg, #085c42db, #28aa6e80), url(/art/foam-900.webp); background-position: 100%; }
.band-energy { background-image: linear-gradient(115deg, #07162f6b, #d696289e), url(/art/lightfield-1600.webp); }
.band-circular { background-image: linear-gradient(115deg, #04283c4d, #075d7080), url(/art/foam-900.webp); background-position: 100%; }
.pcard-glyph { position: absolute; z-index: 1; top: 60px; inset-inline-start: 20px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background-color: #12305a; box-shadow: 0 8px 18px -8px #0009, inset 0 0 0 1.5px #bee4f547; }
.pcard-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 30px 22px 18px; }
.pcard-top { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; min-height: 24px; margin: -18px 0 4px; }
.pcard-top .chip { margin-inline-end: auto; padding-inline-start: 58px; }
.pcard h3 { font-size: 20px; line-height: 1.22; }
.pcard h3 a { color: inherit; text-decoration: none; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--ink-3); font-size: 13.5px; }
.pcard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pcard-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--ink-3); font-size: 15px; }
.pcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.pcard-amount { display: grid; gap: 2px; min-width: 0; }
.pcard-amount .k { color: var(--ink-4); font-size: 12.5px; font-weight: 500; }
.pcard-amount strong { font-family: var(--display); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcard-go { color: var(--aqua); }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

/* ---------- people ---------- */
.people-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.person { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(#102a4b, #0c2140); box-shadow: inset 0 1px #bee4f51a, 0 16px 36px -22px #000000b3; }
.person .avatar { width: 52px; height: 52px; border-radius: 17px; font-size: 18px; }
.person h3 { font-size: 18px; }

/* ---------- sponsor tiers ---------- */
.sponsor-tiers { display: grid; gap: 14px; width: 100%; }
.sponsor-tier { --metal: #cfd8e3; --logo: 64px; padding: 20px 22px; border: 1px solid #a0c8e62e; border-radius: var(--r-lg); background: #0a1e38b8; overflow: hidden; }
.tier-platinum { --metal: #e6f1f7; --logo: 96px; }
.tier-gold { --metal: #f0c869; --logo: 84px; }
.tier-silver { --metal: #cfd8e3; --logo: 70px; }
.tier-bronze { --metal: #dfa67c; --logo: 60px; }
.tier-institutional { --metal: #a9c3ff; }
.tier-panelist { --metal: #8be6e2; }
.tier-partner { --metal: #8fe6b5; }
.tier-media { --metal: #d7b3ff; }
.sponsor-tier h3 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--metal); font-size: 17px; }
.tier-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--metal); }
.sponsor-grid { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(calc(var(--logo) * 2.4), 1fr)); }
.sponsor-card { display: grid; place-items: center; min-height: calc(var(--logo) + 28px); padding: 14px; border-radius: var(--r-md); background: #fff; color: #10263b; font-weight: 600; text-align: center; text-decoration: none; overflow-wrap: anywhere; transition: transform var(--t-select) var(--ease-out); }
.sponsor-card:hover { transform: translateY(-3px); text-decoration: none; }
.sponsor-card img { max-width: 100%; max-height: var(--logo); object-fit: contain; }
.sponsor-tier .marquee { margin-top: 14px; }
.sponsor-tier .marquee .sponsor-card { width: calc(var(--logo) * 2.6); flex: 0 0 auto; }

/* auto-scrolling row (pauses on hover, static when motion is reduced) */
.marquee { --gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
@keyframes marquee-rtl { to { transform: translateX(calc(50% + var(--gap) / 2)); } }

/* ---------- DIVE: scroll chapters over the ocean stage ---------- */
.dive { position: relative; color: #fff; background: var(--deep-ocean); margin-inline: calc(50% - 50vw); }
.main > .dive:first-child { margin-top: 0; }
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(120% 90% at 50% 120%, #06283a, var(--deep-ocean) 62%, #03131a); }
.stage-light { position: absolute; inset: -10%; opacity: .34; background: url(/art/lightfield-1600.webp) 50% / cover no-repeat; animation: drift-light 44s ease-in-out infinite alternate; }
.stage-foam { position: absolute; inset: 0 0 0 -16%; opacity: 0; transition: opacity 1s; }
.stage.late .stage-foam { background: url(/art/foam-1800.webp) 0 / cover no-repeat; }
.stage-foam::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0000 34%, #032836d6 54%, #031e2af2); }
.stage[data-scene="steps"] .stage-foam { opacity: 1; }
.stage-glow { position: absolute; top: 50%; left: 50%; width: 92vmin; height: 92vmin; margin: -46vmin 0 0 -46vmin; border-radius: 50%; opacity: 0; transition: opacity 1s; background: radial-gradient(closest-side, #246ef56b, #1eaad229 52%, #0000); }
.stage:not([data-scene="field"]):not([data-scene="steps"]) .stage-glow { opacity: 1; }
.stage-planet { position: absolute; top: 50%; right: -22vmin; width: 118vmin; aspect-ratio: 1; margin-top: -59vmin; opacity: 0; transition: opacity 1.2s, transform 1.6s var(--ease-out); transform: scale(.9); }
.stage-planet img { width: 100%; height: 100%; }
.stage[data-scene="world"] .stage-planet { opacity: 1; transform: none; }
.stage[data-scene="world"] .stage-canvas, .stage[data-scene="steps"] .stage-canvas { opacity: .25; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .8s; }
.stage-veil { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 45%, #0000 58%, #020c129e); }

.hero { position: relative; z-index: 2; min-height: max(100svh, 700px); padding: calc(var(--nav-h) + 60px) 20px 60px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero-art { position: absolute; inset: 0 0 -30vh; z-index: 1; pointer-events: none; background: url(/art/hero-ocean-2000.webp) top / 100% calc(100% - 30vh) no-repeat; -webkit-mask-image: linear-gradient(#000 50%, #0000 75%); mask-image: linear-gradient(#000 50%, #0000 75%); }
.hero-copy { position: relative; z-index: 3; max-width: 1180px; margin-top: -3vh; }
.hero-title { margin: 0; color: #fff; font-family: var(--display); line-height: .98; text-shadow: 0 2px 34px #031e2e80; }
.hero-title .t1 { display: block; font-size: clamp(54px, 12.4vw, 186px); font-weight: 800; letter-spacing: -.035em; animation: rise-title .76s var(--ease-out) both; }
.hero-title .t2 { display: block; margin-top: .14em; font-size: clamp(25px, 5.2vw, 78px); font-weight: 200; line-height: 1.1; letter-spacing: 0; animation: rise .62s var(--ease-out) .1s both; }
:lang(ar) .hero-title .t1, :lang(ar) .hero-title .t2 { letter-spacing: 0; line-height: 1.3; }
.hero-lead { max-width: 56ch; margin: 22px auto 0; color: #e8f4faf0; font-size: clamp(16px, 1.45vw, 19px); text-shadow: 0 1px 12px #031a26cc; animation: rise .62s var(--ease-out) .18s both; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; animation: rise .62s var(--ease-out) .26s both; }
.hero-meta { margin-top: 22px; color: #e2f0fae6; font-size: 14px; font-weight: 500; text-shadow: 0 1px 10px #031a26e6; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-title { from { opacity: 0; transform: translateY(30px) scale(.98); } }

.ch { --in: 1; position: relative; z-index: 3; min-height: 128vh; display: flex; align-items: center; }
.ch-body { width: var(--page); margin: 0 auto; }
.ch.at-right .ch-body { display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.ch-index { display: inline-flex; align-items: center; gap: 12px; color: #e2f0fae6; font-family: var(--display); font-size: 15px; font-variant-numeric: tabular-nums; }
.ch-glyph { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: #50d5e81f; color: var(--aqua); box-shadow: inset 0 0 0 1px #a0e1f547; }
.ch-title {
  max-width: 100%; margin: 14px 0 16px; color: #fff; font-family: var(--display); font-size: clamp(38px, 6.9vw, 112px); font-weight: 800; line-height: .98; letter-spacing: -.03em;
  opacity: calc(.15 + var(--in) * .85); transform: translateY(calc((1 - var(--in)) * 70px)); text-shadow: 0 2px 30px #02101899;
}
/* Outlined word: <OutlineText> keeps only the outer contour (CSS filter: dilate − letters).
   .ol is the simple CSS fallback (it also strokes the overlaps inside letters). */
.ol-word { color: #fff; white-space: nowrap; position: relative; }
.ol { color: transparent; -webkit-text-stroke: 1.5px #ffffffe6; }
.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; }
.ch-title em { display: block; margin-top: .12em; font-size: .7em; font-style: normal; font-weight: 200; line-height: 1.08; letter-spacing: -.01em; }
.ch-text { max-width: 46ch; color: #e8f4faf0; font-size: clamp(17px, 1.5vw, 20px); opacity: var(--in); transform: translateY(calc((1 - var(--in)) * 36px)); text-shadow: 0 1px 12px #021018e6; }
.ch-text.ch-center { margin: 22px auto 0; text-align: center; max-width: 60ch; }
.ch-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; color: var(--aqua); font-weight: 600; text-decoration: none; opacity: var(--in); transition: gap var(--t-press), color var(--t-press); }
.ch-link:hover { gap: 12px; color: #fff; text-decoration: none; }
.ch-void { flex-direction: column; justify-content: center; min-height: 110vh; }
.ch-statement { width: var(--page); color: #fff; font-family: var(--display); font-size: clamp(34px, 6vw, 92px); font-weight: 200; line-height: 1.06; letter-spacing: -.02em; text-align: center; text-wrap: balance; opacity: var(--in); transform: translateY(calc((1 - var(--in)) * 60px)); }
.ch-statement b { color: var(--aqua); font-weight: 800; }
.ch-steps .ch-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ch-steps .ch-body > * { grid-column: 2; }
.ch-steps .ch-title { font-size: clamp(40px, 5.6vw, 84px); }
.steps { counter-reset: step; display: grid; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.step { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; border-top: 1px solid #c8ebf542; }
.step::before { content: "0" counter(step); grid-row: span 2; color: var(--aqua); font-family: var(--display); font-size: 26px; font-weight: 200; }
.step h3 { color: #fff; font-size: 21px; }
.step p { color: #e8f4faeb; font-size: 16px; }
.ch-world { flex-direction: column; justify-content: center; align-items: stretch; gap: 44px; min-height: 150vh; overflow: hidden; }
.world-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: var(--page); max-width: min(1240px, 62%); margin-block: 0; margin-inline: calc((100% - var(--page)) / 2) auto; padding: 0; list-style: none; }
.world-cols li { display: grid; align-content: start; gap: 10px; padding: 18px 20px; border-radius: 20px; color: #fff; background: #061a2ca8; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px #bee4f529, inset 0 1px #ffffff1f; opacity: var(--in); transform: translateY(calc((1 - var(--in)) * 40px)); }
.world-cols .icon { color: var(--aqua); }
.world-cols h3 { font-size: 18px; }
.world-cols p { color: #ecf6fcf2; font-size: 15.5px; }
.ch-projects, .ch-sponsors { min-height: auto; padding: 12vh 0; }
.ch-sponsors .wrap { display: grid; justify-items: start; gap: 26px; }
.ch-sponsors .ch-title, .ch-projects .ch-title { margin: 0; font-size: clamp(38px, 5.6vw, 84px); }
.ch-end { min-height: 110vh; align-items: flex-end; padding: 10vh 0 14vh; text-align: center; }
.ch-end .wrap { display: grid; justify-items: center; gap: 12px; }
.ch-end-title { color: #fff; font-family: var(--display); font-size: clamp(34px, 5vw, 76px); font-weight: 700; line-height: 1.04; }
.ch-end .ch-text { margin: 0 auto; }
.ch-mail { margin-top: 26px; color: #fff; font-family: var(--display); font-size: clamp(24px, 5.4vw, 84px); font-weight: 200; line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; transition: color var(--t-select); }
.ch-mail:hover { color: var(--aqua); text-decoration: none; }
@media (max-width: 860px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: calc(40px + var(--tabbar-h)); }
  .hero-art { background-image: url(/art/hero-ocean-tall-800.webp); }
  .hero-copy { margin-top: 0; }
  .hero-cta .btn { flex: 200px; }
  .ch { min-height: 118vh; align-items: flex-end; padding-bottom: calc(var(--tabbar-h) + 7vh); }
  .ch-void, .ch-world, .ch-steps { align-items: center; padding-bottom: 8vh; }
  .ch.at-right .ch-body { align-items: flex-start; text-align: start; }
  .ch-sector .ch-text { padding: 14px 16px; border-radius: 18px; background: #051828ad; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px #bee4f524; }
  .ch-steps .ch-body { grid-template-columns: minmax(0, 1fr); }
  .ch-steps .ch-body > * { grid-column: 1; }
  .stage-foam { left: 0; }
  .stage-foam::after { background: linear-gradient(#0000 8%, #032c3ae6 34%, #031e2af5); }
  .stage-planet { top: 30%; right: 50%; margin-right: -60vmin; }
  .world-cols { grid-template-columns: 1fr; max-width: none; margin: 0 auto; }
  .ch-end { min-height: 100vh; padding-bottom: calc(var(--tabbar-h) + 6vh); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ch { --in: 1 !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------- light sign-in page ---------- */
.auth-page {
  position: relative; isolation: isolate; overflow: hidden; flex: 1; min-height: 100svh; display: grid; place-items: center;
  padding: calc(var(--nav-h) + var(--nav-gap) + 28px) 20px calc(56px + var(--tabbar-h));
  background: radial-gradient(80% 60% at 50% 0, #fff, #0000 70%), linear-gradient(170deg, #eef4fd, #dbe8f9 62%, #cfe0f6);
}
.auth-page::before, .auth-page::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.auth-page::before { top: -120px; left: -220px; width: 520px; height: 520px; background: radial-gradient(circle at 68% 66%, #ffffffeb, #bed4f885 62%, #96baf457); box-shadow: inset 0 0 0 26px #6496f017, inset -10px -10px 40px #fffc; }
.auth-page::after { bottom: -110px; right: -130px; width: 380px; height: 380px; background: radial-gradient(circle at 34% 30%, #fffffff2, #b6d0f799); box-shadow: inset 8px 8px 30px #ffffffe6, 0 30px 60px -30px #4678dc5c; }
.auth-card {
  display: grid; gap: 22px; width: min(460px, 100%); padding: 34px 32px; border: 1px solid #fff; border-radius: var(--r-xl);
  background: linear-gradient(#ffffffdb, #f6faffc7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 1px #fff, 0 30px 60px -24px #1e469657; animation: auth-in var(--t-panel) var(--ease-out);
}
.auth-mark { justify-self: center; display: grid; place-items: center; width: 196px; height: 88px; border: 1px solid #fff; border-radius: 30px; background: linear-gradient(160deg, #fff, #e3edfb); box-shadow: inset 0 2px #fff, inset 0 -8px 16px #82aaeb38, 0 18px 34px -16px #2458f56b; }
.auth-mark img { width: 146px; height: auto; }
.auth-head { text-align: center; }
.auth-head h1 { font-size: clamp(29px, 3.4vw, 36px); }
.auth-switch { display: grid; justify-items: center; gap: 10px; color: var(--ink-3); font-size: 15px; text-align: center; }
@keyframes auth-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (max-width: 600px) { .auth-card { padding: 26px 20px; } .auth-mark { width: 168px; height: 74px; border-radius: 24px; } .auth-mark img { width: 122px; } }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 3; border-top: 1px solid #a0e1f51f; background: var(--deep-ocean); color: #e2f0fadb; }
.footer-inner { width: var(--page); margin: 0 auto; padding: 48px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: grid; gap: 12px; max-width: 340px; }
.footer-brand img { width: 150px; height: auto; }
.footer-brand p { font-size: 14.5px; }
.footer-nav { display: grid; align-content: start; gap: 6px; }
.footer-nav a { padding: 4px 0; color: #e2f0fadb; text-decoration: none; font-size: 14.5px; }
.footer-nav a:hover { color: var(--aqua); }
.footer-label { margin-bottom: 4px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.footer-band { background: var(--navy-band); color: #ffffffd6; }
.footer-band-inner { width: var(--page); margin: 0 auto; padding: 20px 0 calc(20px + var(--tabbar-h)); display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 14px; }
.footer-band img { width: 64px; height: 64px; border-radius: 12px; }
.footer-band .credit { color: #fff; font-weight: 550; }
.footer-band .copyright { flex-basis: 100%; margin: 0; color: #e2f0fadb; font-size: 13px; letter-spacing: .04em; }

/* ---------- tables & dialogs ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(#102a4b, #0c2140); box-shadow: inset 0 1px #bee4f51a, 0 16px 36px -22px #000000b3; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
th { background: #0a1d38; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td select { min-height: 38px; padding: 6px 34px 6px 10px; font-size: 14px; }
.modal-bg { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: #020c1aa6; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 26px; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: linear-gradient(#112c50, #0b1f3d); box-shadow: var(--shadow-3); animation: auth-in var(--t-panel) var(--ease-out); }

/* ---------- Dive table of contents (<DiveToc>) ----------
   ≥1100px: dot rail on the inline-start side, labels on hover/focus. Below: floating pill + sheet. */
.toc-rail { display: none; }
.toc-rail ol, .toc-sheet ol { list-style: none; margin: 0; padding: 0; }
.toc-rail a, .toc-sheet a { display: flex; align-items: center; gap: 12px; color: #e2f0fab8; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.toc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ffffff52; transition: transform var(--t-select) var(--ease-out), background var(--t-select); }
[aria-current] > .toc-dot { background: var(--aqua); transform: scale(1.5); box-shadow: 0 0 0 4px #50d5e826, 0 0 14px #50d5e8b3; }
[aria-current] > .toc-label { color: #fff; }
@media (min-width: 1100px) {
  :root:has(.toc-rail) { --page: min(1240px, calc(100% - 128px)); }
  .toc-rail {
    display: block; position: fixed; z-index: 30; top: 50%; inset-inline-start: 18px; transform: translateY(-50%);
    padding: 14px 12px; border: 1px solid transparent; border-radius: 20px;
    transition: background var(--t-panel), border-color var(--t-panel), opacity var(--t-panel);
  }
  .toc-rail ol { position: relative; display: grid; gap: 2px; }
  .toc-rail ol::before, .toc-rail ol::after { content: ""; position: absolute; inset-inline-start: 3.5px; top: 12px; width: 1px; height: calc(100% - 24px); background: #ffffff1f; }
  .toc-rail ol::after { background: linear-gradient(var(--aqua), var(--cobalt)); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .45s var(--ease-out); }
  .toc-rail a { position: relative; z-index: 1; padding: 6px 0; }
  .toc-rail .toc-label { white-space: nowrap; opacity: 0; max-width: 0; overflow: hidden; transition: opacity var(--t-select), max-width var(--t-panel) var(--ease-out); }
  .toc-rail-title { display: block; max-height: 0; overflow: hidden; opacity: 0; color: var(--aqua); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: opacity var(--t-select), max-height var(--t-panel); }
  .toc-rail:hover, .toc-rail:has(:focus-visible) { background: #07162fd9; border-color: #a0e1f526; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 50px -20px #000c; }
  .toc-rail:hover .toc-label, .toc-rail:has(:focus-visible) .toc-label { opacity: 1; max-width: 260px; }
  .toc-rail:hover .toc-rail-title, .toc-rail:has(:focus-visible) .toc-rail-title { opacity: 1; max-height: 30px; margin-bottom: 8px; }
  .toc-rail a:hover .toc-label { color: #fff; }
  .toc-rail a:hover .toc-dot { background: #fff; }
  .toc-rail.is-hidden { opacity: 0; pointer-events: none; }
  .toc-mobile { display: none; }
}
.toc-mobile { position: fixed; z-index: 41; inset-inline-start: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); transition: opacity var(--t-panel); }
.toc-mobile.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 860px) { body:has(.tabbar) .toc-mobile { bottom: calc(82px + env(safe-area-inset-bottom)); } }
.toc-fab { display: inline-flex; align-items: center; gap: 8px; height: 44px; max-width: min(78vw, 320px); padding: 0 14px; border-radius: 999px; color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; cursor: pointer; }
.toc-fab svg { flex: none; color: var(--aqua); }
.toc-fab-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-fab-count { flex: none; color: #e2f0fa8c; font-size: 12px; font-variant-numeric: tabular-nums; direction: ltr; }
.toc-sheet { position: absolute; bottom: calc(100% + 10px); inset-inline-start: 0; width: min(86vw, 320px); max-height: min(62vh, 520px); overflow: auto; padding: 10px; border-radius: 22px; animation: menu-in var(--t-select) var(--ease-out); }
.toc-sheet-title { margin: 4px 10px 6px; color: var(--aqua); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.toc-sheet a { padding: 11px 12px; border-radius: 14px; font-size: 15px; }
.toc-sheet a:hover { background: #ffffff0f; }
.toc-sheet a[aria-current] { background: #2458f533; }
@media (prefers-reduced-motion: reduce) { .toc-rail, .toc-rail *, .toc-sheet { transition: none !important; animation: none !important; } }

/* ---------- Gold accent (e.g. "Devenir sponsor") ---------- */
.gold-text {
  background: linear-gradient(100deg, #f3c55f 0%, #ffe9a8 22%, #fff7da 30%, #e8b04a 45%, #f3c55f 70%, #ffe9a8 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-weight: 600;
  filter: drop-shadow(0 0 10px #f0c86959); animation: gold-shine 6s linear infinite;
}
@keyframes gold-shine { to { background-position: -250% 0; } }
.topnav a.is-gold { font-weight: 700; background: #f0c86914; box-shadow: inset 0 0 0 1px #f0c8695c, 0 0 18px -6px #f0c86966; }
.topnav a.is-gold:hover { background: #f0c86926; box-shadow: inset 0 0 0 1px #f0c869a6, 0 0 22px -4px #f0c86980; }
.topnav a.is-gold.active { background: linear-gradient(#f6d27a33, #c98a2b1f); box-shadow: inset 0 1px #fff3, inset 0 0 0 1px #f0c86947; }
.ch-link.is-gold svg { color: #f3c55f; }
@media (prefers-reduced-motion: reduce) { .gold-text { animation: none; } }
