/* Earth Riyadh ITC — visual system follows ISC digital assets (digitalassets.iscoglobal.site):
   Raleway, oxford navy ground, hairline guides, pill labels, circle buttons, livingston (gold) accent.
   Gold is reserved for one meaning: a what-if value that differs from the engineer's report. */
:root {
  --oxford: #1b2336; --space: #212e4e; --indigo: #374775; --jordi: #97b3dd; --lavender: #dae1f1;
  --mist: #eef2f8; --paper: #f7f9fc; --white: #ffffff;
  --ink: #1b2336; --ink-2: #4b5674; --ink-3: #7a849c;
  --on-dark: #eef2f8; --on-dark-2: #a7b4cd; --on-dark-3: #6f7d9b;
  --line-dark: rgba(151, 179, 221, 0.16); --line-dark-2: rgba(151, 179, 221, 0.30);
  --line-light: rgba(27, 35, 54, 0.10); --line-light-2: rgba(27, 35, 54, 0.18);
  --gold: #a2987f; --gold-ink: #6f664c; --gold-on-dark: #d4c8a4; --gold-tint: rgba(162, 152, 127, 0.16);
  --late: #b4523f; --late-on-dark: #e79b88; --late-tint: rgba(180, 82, 63, 0.10);
  --ok: #3f7a5c; --ok-on-dark: #93c7aa; --ok-tint: rgba(63, 122, 92, 0.10);
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  --fs-display: clamp(3rem, min(8vw, 13vh), 8.5rem);
  --fs-h1: clamp(2.1rem, min(4.4vw, 8vh), 4.4rem);
  --fs-h2: clamp(1.5rem, 2.3vw, 2.25rem);
  --fs-h3: 1.06rem; --fs-body: 0.97rem; --fs-small: 0.84rem; --fs-tiny: 0.75rem;
  --r-xl: clamp(18px, 2vw, 30px); --r-l: 20px; --r-m: 12px;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(0.77, 0, 0.18, 1); --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; color: var(--on-dark); background: var(--oxford);
  font-variant-numeric: lining-nums proportional-nums; font-feature-settings: "lnum";
}
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.num, .tab { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum", "tnum"; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar { font-family: var(--arabic); direction: rtl; }

/* ------------------------------------------------------------------ shared atoms */
.pill { display: inline-flex; align-items: center; gap: .5em; padding: .38em 1em; border: 1px solid currentColor; border-radius: 999px;
  font-size: var(--fs-small); font-weight: 500; line-height: 1.2; white-space: nowrap; opacity: .92; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.circle { --s: 46px; width: var(--s); height: var(--s); display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid currentColor;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out); flex: 0 0 auto; }
.circle svg { width: 42%; height: 42%; }
.circle:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--oxford); }
.circle:disabled { opacity: .3; cursor: default; }
.btn { display: inline-flex; align-items: center; gap: .7em; padding: .85em 1.45em; border-radius: 999px; background: var(--lavender); color: var(--oxford);
  font-weight: 600; font-size: var(--fs-small); text-decoration: none; transition: background-color .3s var(--ease-out); }
.btn:hover { background: var(--white); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { background: rgba(218, 225, 241, .12); }
.btn--ink { background: var(--oxford); color: var(--on-dark); }
.btn--ink:hover { background: var(--indigo); }
.btn svg { width: 1.1em; height: 1.1em; }
.ic { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.muted { color: var(--on-dark-2); }
.logo { height: 30px; width: auto; color: var(--on-dark); }

/* ------------------------------------------------------------------ chrome (dark) */
.chrome { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.chrome__nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.navlink { padding: .5em 1em; border-radius: 999px; font-size: var(--fs-small); font-weight: 500; color: var(--on-dark-2); text-decoration: none; transition: color .25s, background-color .25s; }
.navlink:hover { color: var(--on-dark); background: rgba(218,225,241,.08); }
.navlink[aria-current="page"] { color: var(--oxford); background: var(--lavender); }
.who { display: inline-flex; align-items: center; gap: 10px; padding-left: 12px; margin-left: 6px; border-left: 1px solid var(--line-dark-2); font-size: var(--fs-small); color: var(--on-dark-2); }
.who b { font-weight: 600; color: var(--on-dark); }

/* ------------------------------------------------------------------ welcome */
.welcome { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; position: relative; overflow: hidden; }
.guides { position: absolute; inset: 0; pointer-events: none; }
.guides::before { content: ""; position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--line-dark); }
.guides::before { left: 50%; }
.welcome__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 48px);
  padding: clamp(8px, 2vh, 24px) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(24px, 4vh, 48px) max(var(--gutter), env(safe-area-inset-left, 0px)); align-items: stretch; position: relative; }
.welcome__copy { display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 34px); padding-block: 2vh; }
.welcome h1 { font-size: var(--fs-display); font-weight: 300; line-height: .96; letter-spacing: -0.035em; }
.welcome .lead { font-size: clamp(1.02rem, 1.3vw, 1.3rem); color: var(--on-dark-2); max-width: 36ch; }
.welcome__tile { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: min(70vh, 720px); background: var(--space); isolation: isolate; }
.welcome__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.welcome__tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,35,54,0) 45%, rgba(27,35,54,.88) 100%); }
.welcome__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.4vw, 36px); display: grid; gap: 6px; }
.welcome__caption p { font-size: var(--fs-small); color: var(--on-dark-2); max-width: 46ch; }
.form { display: grid; gap: 22px; max-width: 520px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: var(--fs-small); color: var(--on-dark-2); }
.underline-input { background: transparent; border: 0; border-bottom: 1px solid var(--line-dark-2); padding: 10px 0; font-size: 1.35rem; font-weight: 300; color: var(--on-dark); outline: none; }
.underline-input:focus { border-bottom-color: var(--gold-on-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .5em 1.05em; border-radius: 999px; border: 1px solid var(--line-dark-2); font-size: var(--fs-small); color: var(--on-dark-2); transition: all .25s var(--ease-out); }
.chip:hover { border-color: var(--jordi); color: var(--on-dark); }
.chip[aria-pressed="true"] { background: var(--lavender); color: var(--oxford); border-color: var(--lavender); }
.welcome__foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--on-dark-3);
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 22px max(var(--gutter), env(safe-area-inset-left, 0px)); position: relative; }
.hint { font-size: var(--fs-small); color: var(--on-dark-3); }

/* ------------------------------------------------------------------ months (dial) */
.months { min-height: 100dvh; position: relative; overflow-x: hidden; }
.months__body { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(16px, 3vw, 56px); align-items: center;
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px)); }
.dial-wrap { position: relative; width: 100%; max-width: 820px; justify-self: center; }
.dial { width: 100%; height: auto; display: block; overflow: visible; }
.dial .spoke { cursor: pointer; }
.dial .spoke:focus { outline: none; }
.dial .spoke:focus-visible .hit { stroke: var(--gold-on-dark); stroke-width: 1.5; }
.dial__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40%; text-align: center; display: grid; gap: 4px; pointer-events: none; }
.dial__center .k { font-size: clamp(.72rem, 1vw, .86rem); color: var(--on-dark-2); }
.dial__center .big { font-size: clamp(2rem, 4.6vw, 4.2rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.dial__center .sub { font-size: clamp(.72rem, 1vw, .9rem); color: var(--on-dark-2); }
.glance { display: grid; gap: 26px; align-content: center; }
.glance__head { display: grid; gap: 10px; }
.glance__head h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.04; letter-spacing: -0.028em; }
.glance__list { display: grid; border-top: 1px solid var(--line-dark); }
.glance__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
.glance__row dt { font-size: var(--fs-small); color: var(--on-dark-2); }
.glance__row dd { margin: 0; text-align: right; font-size: 1.15rem; font-weight: 400; }
.glance__row dd small { display: block; font-size: var(--fs-tiny); color: var(--on-dark-3); font-weight: 500; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--fs-tiny); color: var(--on-dark-2); }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.stake-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); margin-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.stake-strip div { padding: 16px 12px 22px 0; display: grid; gap: 4px; align-content: start; }
.stake-strip span { font-size: var(--fs-tiny); color: var(--on-dark-3); }
.stake-strip b { font-size: var(--fs-small); font-weight: 500; color: var(--on-dark); line-height: 1.35; }

/* ------------------------------------------------------------------ report (light) */
.report { background: var(--paper); color: var(--ink); min-height: 100dvh; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--oxford); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.topbar .chrome { min-height: 68px; }
.monthnav { display: inline-flex; align-items: center; gap: 10px; }
.monthnav .circle { --s: 36px; color: var(--on-dark-2); }
.monthnav__label { font-size: var(--fs-small); font-weight: 600; min-width: 9.5em; text-align: center; }
.hero { background: var(--oxford); color: var(--on-dark); position: relative; overflow: hidden; }
.hero__inner { position: relative; padding: clamp(24px, 4vh, 44px) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(28px, 5vh, 56px) max(var(--gutter), env(safe-area-inset-left, 0px)); display: grid; gap: clamp(22px, 4vh, 40px); }
.hero__title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; }
.hero__title h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.02; letter-spacing: -0.03em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--on-dark-2); }
.instruments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.instrument { padding: 20px 20px 4px 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.instrument + .instrument { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.instrument h2 { font-size: var(--fs-small); font-weight: 500; color: var(--on-dark-2); }
td.r .n-wrap { justify-items: end; }
.instrument .big .n__was { font-size: .72rem; margin-top: 4px; }
.instrument .big { font-size: clamp(2.1rem, 3.6vw, 3.4rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.instrument .vs { font-size: var(--fs-small); color: var(--on-dark-2); }
.instrument .vs b { font-weight: 500; color: var(--on-dark); }
.track { position: relative; height: 6px; border-radius: 3px; background: rgba(151, 179, 221, .14); overflow: visible; }
.track .plan { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--jordi); border-radius: 1px; }
.track .act { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--lavender); transition: width .5s var(--ease-out); }
.track.is-gold .act { background: var(--gold-on-dark); }
.pairs { display: grid; gap: 6px; }
.pair { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: var(--fs-tiny); color: var(--on-dark-2); }

.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px);
  padding: 36px max(var(--gutter), env(safe-area-inset-right, 0px)) 120px max(var(--gutter), env(safe-area-inset-left, 0px)); max-width: 1560px; margin-inline: auto; }
.rail { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; max-height: calc(100dvh - 110px); overflow: auto; padding-right: 4px; }
.rail a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-radius: 10px; font-size: var(--fs-small); color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; }
.rail a:hover { background: var(--mist); color: var(--ink); }
.rail a.is-on { color: var(--ink); font-weight: 600; border-left-color: var(--oxford); background: var(--white); }
.rail a .n { font-size: var(--fs-tiny); color: var(--ink-3); font-weight: 500; }
.rail__group { font-size: var(--fs-tiny); color: var(--ink-3); padding: 14px 12px 4px; }
.sections { display: grid; gap: 72px; min-width: 0; }
.section { display: grid; gap: 22px; scroll-margin-top: 92px; min-width: 0; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line-light-2); }
.section__head h2 { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.section__head p { font-size: var(--fs-small); color: var(--ink-2); margin-top: 6px; max-width: 70ch; }
.section__tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tool { display: inline-flex; align-items: center; gap: 7px; padding: .45em .95em; border-radius: 999px; border: 1px solid var(--line-light-2); font-size: var(--fs-tiny); font-weight: 600; color: var(--ink-2); text-decoration: none; background: var(--white); }
.tool:hover { border-color: var(--ink); color: var(--ink); }
.tool .count { min-width: 1.6em; padding: 0 .4em; border-radius: 999px; background: var(--oxford); color: var(--on-dark); font-size: .68rem; text-align: center; }
.panel { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--r-l); padding: clamp(16px, 2vw, 26px); min-width: 0; }
.panel h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.005em; }
.panel .cap { font-size: var(--fs-tiny); color: var(--ink-3); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stack { display: grid; gap: 14px; align-content: start; }
.note { font-size: var(--fs-small); color: var(--ink-2); }
.empty { padding: 28px; border: 1px dashed var(--line-light-2); border-radius: var(--r-l); color: var(--ink-2); font-size: var(--fs-small); }

/* facts list */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-light); align-items: baseline; }
.facts dt { font-size: var(--fs-small); color: var(--ink-2); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }

/* tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.t th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: var(--fs-tiny); padding: 8px 10px; border-bottom: 1px solid var(--line-light-2); vertical-align: bottom; }
.t td { padding: 10px 10px; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.t td.r, .t th.r { text-align: right; }
.t tr:hover td { background: rgba(238, 242, 248, .6); }
.t tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--line-light-2); }
.t .sub { color: var(--ink-3); font-size: var(--fs-tiny); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-tiny); font-weight: 600; padding: .2em .7em; border-radius: 999px; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.status.is-late { background: var(--late-tint); color: var(--late); }
.status.is-ok { background: var(--ok-tint); color: var(--ok); }
.status.is-gold { background: var(--gold-tint); color: var(--gold-ink); }
.neg { color: var(--late); }
.pos { color: var(--ok); }

/* progress blocks (KPIs) */
.kpi { display: grid; gap: 12px; }
.kpi__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.kpi__top h3 { font-size: var(--fs-h3); font-weight: 600; }
.kpi .big { font-size: 2rem; font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.lbar { position: relative; height: 10px; border-radius: 5px; background: var(--mist); }
.lbar .act { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--oxford); transition: width .5s var(--ease-out); }
.lbar .plan { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--jordi); }
.lbar.is-gold .act { background: var(--gold); }
.kpi__rows { display: grid; gap: 4px; font-size: var(--fs-tiny); color: var(--ink-2); }
.kpi__rows div { display: flex; justify-content: space-between; gap: 10px; }

/* numbers + what-if */
.n { position: relative; white-space: nowrap; border-radius: 4px; }
.n--edit { cursor: pointer; text-decoration: underline dotted rgba(162, 152, 127, .9); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.n--edit:hover { background: var(--gold-tint); }
.n--changed { color: var(--gold-ink); background: var(--gold-tint); padding-inline: .15em; }
.dark .n--changed, .hero .n--changed, .months .n--changed { color: var(--gold-on-dark); }
.n-wrap { display: inline-grid; justify-items: inherit; vertical-align: top; }
.n__was { display: block; font-size: .68rem; font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--ink-3); white-space: nowrap; }
.hero .n__was { color: var(--on-dark-3); }
.n__was s { text-decoration-thickness: 1px; }
.pop { position: fixed; z-index: 80; width: min(360px, calc(100vw - 32px)); background: var(--white); color: var(--ink); border: 1px solid var(--line-light-2); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(27, 35, 54, .28); padding: 18px; display: grid; gap: 12px; font-size: var(--fs-small); }
.pop h4 { font-size: var(--fs-small); font-weight: 600; }
.pop .src { font-size: var(--fs-tiny); color: var(--ink-3); line-height: 1.5; }
.pop .src code { font-family: inherit; font-weight: 600; color: var(--ink-2); }
.pop input[type="range"] { width: 100%; accent-color: var(--gold); }
.pop .row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pop .in { border: 1px solid var(--line-light-2); border-radius: 10px; padding: 7px 10px; width: 11em; background: var(--paper); }
.pop .linkbtn { font-size: var(--fs-tiny); font-weight: 600; color: var(--ink-2); text-decoration: underline; }
.pop .effects { font-size: var(--fs-tiny); color: var(--ink-2); border-top: 1px solid var(--line-light); padding-top: 10px; }
.whatif-bar { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: min(920px, calc(100vw - 32px)); background: var(--oxford); color: var(--on-dark); border-radius: 999px; padding: 10px 10px 10px 22px;
  display: flex; align-items: center; gap: 14px; box-shadow: 0 18px 50px rgba(27, 35, 54, .35); border: 1px solid var(--gold); }
.whatif-bar p { font-size: var(--fs-small); flex: 1; min-width: 0; }
.whatif-bar b { color: var(--gold-on-dark); font-weight: 600; }
.toggle { display: inline-flex; border: 1px solid var(--line-light-2); border-radius: 999px; overflow: hidden; }
.toggle button { padding: .25em .7em; white-space: nowrap; font-size: var(--fs-tiny); font-weight: 600; color: var(--ink-3); }
.toggle button[aria-pressed="true"] { background: var(--oxford); color: var(--on-dark); }
.toggle.is-gold button[aria-pressed="true"] { background: var(--gold); color: var(--oxford); }

/* charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--ink-3); font-size: 11px; }
.chart .grid line { stroke: var(--line-light); }
.chart .axis { stroke: var(--line-light-2); }

/* concerns */
.concern { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.concern__no { font-size: 2.4rem; font-weight: 300; color: var(--ink-3); line-height: 1; }
.concern h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.concern dl { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 8px 16px; font-size: var(--fs-small); }
.concern dt { color: var(--ink-3); }
.concern dd { margin: 0; white-space: pre-line; }

/* photos */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.photo { border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line-light); display: grid; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.photo figcaption { padding: 10px 14px; font-size: var(--fs-small); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(27, 35, 54, .94); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 86vh; border-radius: 12px; }
.lightbox .circle { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); color: var(--on-dark); }

/* drawer (discussion) */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(27, 35, 54, .45); }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--paper); color: var(--ink); display: grid; grid-template-rows: auto 1fr auto;
  box-shadow: -20px 0 60px rgba(27, 35, 54, .25); padding-top: env(safe-area-inset-top, 0px); }
.drawer__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 22px 24px 16px; border-bottom: 1px solid var(--line-light); }
.drawer__head h2 { font-size: 1.4rem; font-weight: 300; letter-spacing: -0.01em; }
.drawer__body { overflow: auto; padding: 18px 24px; display: grid; gap: 14px; align-content: start; }
.drawer__foot { padding: 16px 24px max(16px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-light); background: var(--white); display: grid; gap: 10px; }
.drawer .circle { --s: 38px; color: var(--ink-2); }
.thread { background: var(--white); border: 1px solid var(--line-light); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.thread h3 { font-size: var(--fs-body); font-weight: 600; }
.thread .meta, .post .meta { font-size: var(--fs-tiny); color: var(--ink-3); }
.post { border-left: 2px solid var(--line-light-2); padding: 4px 0 4px 12px; display: grid; gap: 2px; }
.post p { white-space: pre-wrap; font-size: var(--fs-small); }
.ta, .ti, .sel { width: 100%; border: 1px solid var(--line-light-2); border-radius: 12px; padding: 9px 12px; background: var(--white); font-size: var(--fs-small); }
.ta { min-height: 76px; resize: vertical; }
.storage-note { font-size: var(--fs-tiny); color: var(--ink-3); }

/* discussions page / library / project (light) */
.page { padding: 40px max(var(--gutter), env(safe-area-inset-right, 0px)) 120px max(var(--gutter), env(safe-area-inset-left, 0px)); max-width: 1400px; margin-inline: auto; display: grid; gap: 40px; }
.page__head h1 { font-size: var(--fs-h1); font-weight: 300; letter-spacing: -0.03em; line-height: 1.04; }
.page__head p { color: var(--ink-2); margin-top: 10px; max-width: 70ch; }
.stakeholders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stakeholder { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--r-l); padding: 18px; display: grid; gap: 12px; align-content: start; }
.stakeholder .logo-box { height: 56px; display: flex; align-items: center; }
.stakeholder .logo-box img { max-height: 56px; max-width: 160px; object-fit: contain; }
.stakeholder .wordmark { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; color: var(--indigo); }
.stakeholder span { font-size: var(--fs-tiny); color: var(--ink-3); }
.stakeholder b { font-weight: 600; font-size: var(--fs-small); }
.render { border-radius: var(--r-xl); overflow: hidden; }
.render img { width: 100%; }
.srcnote { font-size: var(--fs-tiny); color: var(--ink-3); }
.flag { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--late-tint); color: var(--ink); font-size: var(--fs-small); }
.flag b { color: var(--late); font-weight: 600; }
.info { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--mist); color: var(--ink); font-size: var(--fs-small); }

/* responsive */
@media (max-width: 1100px) {
  .months__body { grid-template-columns: minmax(0, 1fr); }
  .stake-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .instruments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instrument:nth-child(3) { padding-left: 0; border-left: 0; }
  .instrument:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stakeholders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .welcome__grid { grid-template-columns: minmax(0, 1fr); }
  .welcome__tile { min-height: 300px; }
  .guides::before { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .rail { position: sticky; top: 68px; z-index: 20; display: flex; overflow-x: auto; max-height: none; background: var(--paper); padding: 10px 0; margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line-light); }
  .rail a { white-space: nowrap; border-left: 0; }
  .rail a.is-on { background: var(--oxford); color: var(--on-dark); }
  .rail__group { display: none; }
  .section { scroll-margin-top: 130px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .who span { display: none; }
}
@media (max-width: 560px) {
  .instruments, .grid4 { grid-template-columns: minmax(0, 1fr); }
  .instrument, .instrument + .instrument { padding-left: 0; border-left: 0; }
  .instrument + .instrument { border-top: 1px solid var(--line-dark); }
  .stake-strip, .stakeholders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photos { grid-template-columns: minmax(0, 1fr); }
  .concern { grid-template-columns: minmax(0, 1fr); }
  .concern dl { grid-template-columns: minmax(0, 1fr); }
  .whatif-bar { border-radius: 20px; flex-wrap: wrap; }
  .chrome { min-height: 64px; }
  .navlink { padding: .45em .7em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 760px) {
  .chrome { flex-wrap: wrap; row-gap: 8px; padding-block: 10px; min-height: 0; }
  .topbar .chrome { min-height: 0; }
  .chrome__nav { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .logo > span:last-child { display: none !important; }
  .monthnav__label { min-width: 0; }
  .who { margin-left: auto; }
  .rail { top: 104px; }
  .section { scroll-margin-top: 170px; }
}

/* ------------------------------------------------------------------ months timeline */
.tl { position: relative; display: grid; gap: clamp(14px, 2.5vh, 28px); padding: 4px max(var(--gutter), env(safe-area-inset-right, 0px)) 36px max(var(--gutter), env(safe-area-inset-left, 0px)); }
.tl__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.tl__head h1 { font-size: var(--fs-h1); font-weight: 300; letter-spacing: -0.028em; line-height: 1.04; }
.tl__chart { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: -8px; }
.timeline { display: block; width: 100%; min-width: 860px; height: auto; overflow: visible; font-family: var(--font); }
.timeline .stop { cursor: pointer; outline: none; }
.timeline .stop:focus-visible rect { stroke: var(--gold-on-dark); stroke-width: 1; }
.tl__glance { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 3fr); gap: clamp(16px, 3vw, 48px); border-top: 1px solid var(--line-dark-2); padding-top: 22px; align-items: start; }
.tl__title { display: grid; gap: 10px; justify-items: start; }
.tl__title h2 { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.tl__nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 24px; margin: 0; }
.tl__num { display: grid; gap: 2px; align-content: start; padding-left: 14px; border-left: 1px solid var(--line-dark); }
.tl__num dt { font-size: var(--fs-tiny); color: var(--on-dark-2); }
.tl__num dd { margin: 0; white-space: nowrap; font-size: 1.3rem; font-weight: 300; letter-spacing: -0.01em; }
.tl__num dd.tl__sub { font-size: var(--fs-tiny); color: var(--on-dark-3); font-weight: 500; letter-spacing: 0; }
@media (max-width: 900px) { .tl__glance { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tl__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tl__num dd { font-size: 1.1rem; white-space: normal; } }
