/* CICA — redesign, front only
   Direction: "The printed annual" (editorial report). One face: Literata (Latin + Cyrillic).
   Palette kept from the CICA brand blue (#005BAA) and the navy of the existing site. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F3F5F7;
  --surface: #E6ECF2;
  --surface-2: #DCE5EE;
  --ink: #0A1A2A;
  --muted: #4A5868;
  --accent: #005BAA;
  --accent-strong: #00467F;
  --accent-ink: #FFFFFF;
  --field: #0C2D4C;
  --field-2: #12395E;
  --on-field: #EEF4FA;
  --on-field-muted: #AFC3D7;
  --pale: #D3E4F4;
  --dot: #8CC8F0;
  --sky: #59B3E8;

  --font: "Literata", "Iowan Old Style", Georgia, serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.2rem + 3.2vw, 4.25rem);
  --step-display: clamp(3.4rem, 0.6rem + 8.6vw, 9rem);
  --step-display-m: clamp(3.25rem, 14.5vw, 6.5rem);
  --step-title: clamp(1.25rem, 0.25rem + 2.6vw, 3rem); /* long titles of news and documents: two lines at every width */

  --m: clamp(1.25rem, 2.2vw, 2rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --axis: 34%;
  --section: clamp(6rem, 12vw, 12rem);
  --bar-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #08131E;
    --surface: #0F1E2D;
    --surface-2: #14283B;
    --ink: #E8EEF4;
    --muted: #9BAEC1;
    --accent: #5AAAEC;
    --accent-strong: #8AC3F3;
    --accent-ink: #04121F;
    --field: #0E2A45;
    --field-2: #143656;
    --on-field: #EEF4FA;
    --on-field-muted: #A6BCD1;
    --pale: #112538;
    --dot: #8CC8F0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08131E;
  --surface: #0F1E2D;
  --surface-2: #14283B;
  --ink: #E8EEF4;
  --muted: #9BAEC1;
  --accent: #5AAAEC;
  --accent-strong: #8AC3F3;
  --accent-ink: #04121F;
  --field: #0E2A45;
  --field-2: #143656;
  --on-field: #EEF4FA;
  --on-field-muted: #A6BCD1;
  --pale: #112538;
  --dot: #8CC8F0;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.55;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color 300ms ease, color 300ms ease;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: calc(var(--bar-h) + 1rem); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.field :focus-visible, .foot :focus-visible { outline-color: var(--sky); }
h1, h2, h3 { font-weight: 500; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.05; }
p { text-wrap: pretty; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; }
.skip:focus { top: 0.5rem; }

.head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; }
.lead { font-size: var(--step-lead); line-height: 1.4; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.sec { padding-block: var(--section) 0; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-body); font-weight: 500; text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn::after { content: "→"; transition: transform var(--t-hover) var(--ease-out); }
.btn--small { min-height: 40px; padding: 0 1rem; font-size: var(--step-small); white-space: nowrap; }
.btn--small::after { content: none; }
.btn:active { transform: scale(0.97); }

.link {
  text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}

.round {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); color: var(--ink); font-size: var(--step-body);
  display: inline-grid; place-items: center;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.round:active { transform: scale(0.92); }
.round:disabled { opacity: 0.35; cursor: default; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-strong); }
  .btn:hover::after { transform: translateX(4px); }
  .link:hover { text-decoration-color: currentColor; }
  .round:not(:disabled):hover { background: var(--accent); color: var(--accent-ink); }
}

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  transition: background-color 300ms ease;
}
.bar.is-scrolled { background: var(--surface); }
.bar__in {
  height: var(--bar-h); padding-inline: var(--m);
  display: grid; grid-template-columns: var(--axis) 1fr auto; align-items: center; gap: var(--gap);
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: auto; flex: none; }
.brand__name { display: flex; flex-direction: column; min-width: 0; }
.brand__short { font-size: var(--step-body); font-weight: 600; letter-spacing: 0.02em; line-height: 1; }
.brand__long { font-size: var(--step-small); line-height: 1.35; color: var(--muted); max-width: 40ch; margin-top: 0.2rem; }

.nav__list { display: flex; gap: clamp(1rem, 2vw, 2.25rem); }
.nav__item { position: relative; }
.nav__top {
  font-size: var(--step-small); padding: 0.5rem 0; display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color var(--t-hover) ease;
}
.nav__top::after {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--t-ui) var(--ease-out); opacity: 0.6;
}
.nav__item.is-open .nav__top::after { transform: translateY(1px) rotate(-135deg); }

.drop {
  position: absolute; top: calc(100% + 14px); left: -1.5rem; z-index: 60;
  display: flex; gap: 2.5rem; padding: 1.5rem 1.75rem 1.75rem;
  background: var(--bg); min-width: 280px; width: max-content; max-width: 640px;
  box-shadow: 0 24px 60px -20px rgb(4 18 31 / 0.35); /* taste-skill-ignore: a real floating menu */
  transform-origin: top left;
  opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none; visibility: hidden;
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui);
}
.nav__item.is-open .drop {
  opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s;
}
.drop__col { display: flex; flex-direction: column; gap: 0.15rem; min-width: 200px; }
.drop__title { font-size: var(--step-small); color: var(--muted); margin-bottom: 0.4rem; }
.drop a {
  text-decoration: none; padding: 0.35rem 0; font-size: var(--step-small); line-height: 1.35;
  transition: color var(--t-hover) ease, transform var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__top:hover, .drop a:hover { color: var(--accent); }
  .drop a:hover { transform: translateX(3px); }
}

.tools { display: flex; align-items: center; gap: 0.6rem; }
.lang { display: flex; gap: 0.15rem; font-size: var(--step-small); }
.lang a { text-decoration: none; padding: 0.4rem 0.45rem; color: var(--muted); transition: color var(--t-hover) ease; }
.lang a[aria-current] { color: var(--ink); font-weight: 600; }
.theme {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.bar.is-scrolled .theme { background: var(--surface-2); }
.theme:active { transform: scale(0.92); }
.theme svg { width: 19px; height: 19px; grid-area: 1 / 1; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  transition: transform 500ms var(--ease-out), opacity 300ms ease; }
.theme__moon { fill: currentColor; stroke: none; }
.theme__moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
:root[data-theme="dark"] .theme__sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
:root[data-theme="dark"] .theme__moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme__sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
  :root:not([data-theme="light"]) .theme__moon { opacity: 1; transform: none; }
}
@media (hover: hover) and (pointer: fine) {
  .lang a:hover { color: var(--accent); }
  .theme:hover { background: var(--accent); color: var(--accent-ink); }
}

.burger { display: none; align-items: center; gap: 0.6rem; min-height: 44px; font-size: var(--step-small); }
.burger__lines { width: 22px; height: 12px; position: relative; display: block; }
.burger__lines span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform var(--t-ui) var(--ease-out), top var(--t-ui) var(--ease-out); }
.burger__lines span:first-child { top: 0; }
.burger__lines span:last-child { top: 10px; }
.burger[aria-expanded="true"] .burger__lines span:first-child { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:last-child { top: 5px; transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: var(--bar-h) 0 0; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  padding: 1rem var(--m) calc(2rem + env(safe-area-inset-bottom));
}
.sheet:not([hidden]) { animation: sheet-in 320ms var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }
.sheet__in { display: flex; flex-direction: column; gap: 0.25rem; }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-size: var(--step-head); padding: 0.7rem 0; letter-spacing: -0.015em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: var(--step-lead); color: var(--muted); transition: transform var(--t-ui) var(--ease-out); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc__panel > div { display: flex; flex-direction: column; padding: 0 0 1rem; }
.acc__panel a { padding: 0.55rem 0; text-decoration: none; color: var(--muted); font-size: var(--step-body); }
.sheet__login { margin-top: 1.5rem; }
.sheet__lang { margin-top: 1rem; gap: 1rem; font-size: var(--step-body); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: var(--axis) 1fr; gap: 0 var(--gap);
  padding: 0 var(--m); min-height: calc(100svh - var(--bar-h));
}
.hero__side { padding-top: 26vh; display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.hero__lead { font-size: var(--step-lead); line-height: 1.38; max-width: 24ch; }
.hero__main { padding-top: clamp(1.5rem, 6vh, 4rem); min-width: 0; }
.hero__title { font-size: var(--step-display); font-weight: 600; line-height: 0.92; letter-spacing: -0.035em; }
.hero__media { position: relative; margin-top: clamp(6rem, 14vh, 9rem); }
.hero__frame { height: clamp(320px, 64vh, 720px); overflow: hidden; background: var(--surface); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__fig {
  position: absolute; top: 0; left: 0; translate: 0 -50%; width: 280px;
  background: var(--accent); color: var(--accent-ink); padding: 1.1rem 1.25rem 1.25rem;
}
.hero__fig p { font-size: var(--step-small); line-height: 1.35; max-width: 22ch; }
.hero__fig .hero__num { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 0.35rem; font-variant-numeric: tabular-nums; max-width: none; }
.hero__media figcaption { margin-top: 0.75rem; }

/* ---------- masked lines ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.lines [data-line], .lines [data-line-io] { display: block; }

/* ---------- news ---------- */
.news { padding-inline: var(--m); }
.news__title { max-width: 14ch; padding-left: 3vw; }
.news__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(3rem, 7vw, 6rem); align-items: end; }
.news__frame { grid-column: 1 / span 4; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); align-self: start; position: sticky; top: calc(var(--bar-h) + 2rem); }
.news__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 500ms ease, transform 1200ms var(--ease-soft); }
.news__frame img.is-on { opacity: 1; transform: none; }
.news__list { grid-column: 6 / span 7; align-self: start; }
.news__label { margin-bottom: 0.75rem; }
.news__label--gap { margin-top: 3rem; }
.rows li + li { margin-top: 0.25rem; }
.rows .rows__gap { margin-top: 1.75rem; }
.row {
  display: grid; grid-template-columns: 5.5rem 1fr 1.5rem; gap: 1rem; align-items: baseline;
  padding: 0.85rem 1rem; margin-inline: -1rem; text-decoration: none;
  transition: background-color var(--t-hover) ease, opacity var(--t-hover) ease;
}
.row time, .row__k { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row__t { font-size: var(--step-body); line-height: 1.35; }
.row__a { color: var(--accent); justify-self: end; transition: transform var(--t-hover) var(--ease-out); }
.news__all { display: inline-block; margin-top: 2rem; font-size: var(--step-body); }
@media (hover: hover) and (pointer: fine) {
  .row:hover { background: var(--surface); }
  .row:hover .row__a { transform: translateX(5px); }
}
.row:focus-visible { background: var(--surface); }

/* ---------- statement tiles ---------- */
.tiles { padding: var(--section) 8px 0; }
.tiles__board {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, minmax(260px, 38svh)); gap: 8px;
}
.tile { position: relative; overflow: hidden; }
.tile--a { grid-column: 1 / span 8; grid-row: 1 / span 2; background: var(--field); color: var(--on-field); display: flex; align-items: flex-end; padding: clamp(1.25rem, 2.4vw, 2.5rem); }
.tile__slogan { font-size: var(--step-display); font-weight: 600; line-height: 0.9; letter-spacing: -0.035em; }
.tile--b { grid-column: 9 / span 4; grid-row: 1; background: var(--pale); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.25rem, 2vw, 2rem); }
.tile__word { font-size: var(--step-display); font-weight: 600; line-height: 0.85; letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.tile__note { font-size: var(--step-small); margin-top: 0.75rem; max-width: 30ch; }
.tile--c { grid-column: 9 / span 4; grid-row: 2; background: var(--surface); }
.tile--c img { width: 100%; height: 100%; object-fit: cover; }
.tile--c figcaption { z-index: 2; position: absolute; left: 0; bottom: 0; padding: 0.5rem 0.8rem; background: var(--bg); font-size: var(--step-small); }
.tiles__text { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(2.5rem, 5vw, 4.5rem) calc(var(--m) - 8px) 0; }
.tiles__text > * { grid-column: 7 / span 6; max-width: 40ch; }
.tiles__text > p + p { margin-top: 1.25rem; max-width: 56ch; }

/* ---------- map ---------- */
.field { background: var(--field); color: var(--on-field); }
.map { margin-top: var(--section); padding: clamp(4rem, 9vw, 8rem) var(--m) clamp(4rem, 8vw, 7rem); }
.map__wrap { display: grid; grid-template-columns: var(--axis) 1fr; gap: var(--gap); align-items: start; }
.map__head { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; padding-right: 1rem; }
.map__head h2 { max-width: none; font-size: clamp(1.75rem, 1.1rem + 1.9vw, 3rem); }
.map__lede { max-width: 40ch; color: var(--on-field-muted); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  min-height: 46px; padding: 0 1.1rem; border-radius: 999px; background: var(--field-2); color: var(--on-field);
  font-size: var(--step-small); display: inline-flex; gap: 0.5rem; align-items: center;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.seg button span { color: var(--on-field-muted); font-variant-numeric: tabular-nums; transition: color var(--t-hover) ease; }
.seg button[aria-selected="true"] { background: var(--on-field); color: var(--field); }
.seg button[aria-selected="true"] span { color: var(--field); }
.seg button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .seg button[aria-selected="false"]:hover { background: color-mix(in srgb, var(--field-2) 70%, var(--on-field) 30%); } }

.map__canvas { position: relative; position: sticky; top: calc(var(--bar-h) + 1.5rem); }
#mapsvg { width: 100%; height: auto; overflow: hidden; background: color-mix(in srgb, var(--field) 80%, #000 20%); }
.land { fill: var(--field-2); transition: fill 300ms ease; }
.land.is-m { fill: #2C6FA8; cursor: pointer; }
.land.is-o { fill: #1D4F7E; cursor: pointer; }
.land.is-dim { fill: var(--field-2); }
.land.is-hot { fill: #6DB3E6; }
.has-land .mdot circle.c { r: 5; }
.has-land .mdot.is-hub circle.c { r: 9; }
.has-land .mdot.is-observer circle.c { stroke-width: 2; }
.map__hint { margin-top: 0.9rem; color: var(--on-field); min-height: 1.5em; }
.map__credit { color: var(--on-field-muted); margin-top: 0.25rem; }
.mdot { cursor: pointer; }
.mdot circle.c { fill: var(--dot); transition: r 260ms var(--ease-out), fill 200ms ease, opacity 300ms ease; }
.mdot.is-observer circle.c { fill: transparent; stroke: var(--dot); stroke-width: 2.5; }
.mdot.is-hub circle.c { fill: var(--on-field); }
.mdot circle.hit { fill: transparent; }
.mdot.is-dim { opacity: 0.16; }
.mdot.is-hot circle.c { fill: var(--on-field); }
.mdot.is-observer.is-hot circle.c { stroke: var(--on-field); fill: var(--on-field); }
.mdot { transition: opacity 400ms ease; }
.hubring { fill: none; stroke: var(--on-field); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.mlabel rect { fill: var(--on-field); }
.mlabel text { fill: var(--field); font-family: var(--font); font-size: 22px; }
.mspoke { stroke: var(--dot); stroke-width: 1.2; opacity: 0.35; }

.states { columns: 2; column-gap: 1.5rem; font-size: var(--step-small); width: 100%; margin-top: 1rem; }
.states li { break-inside: avoid; }
.states button {
  display: flex; align-items: center; gap: 0.55rem; width: 100%; text-align: left; padding: 0.3rem 0;
  color: var(--on-field); transition: color var(--t-hover) ease, opacity 300ms ease;
}
.states button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }
.states li.is-observer button::before { background: transparent; border: 2px solid var(--dot); }
.states li.is-dim button { opacity: 0.35; }
.states button.is-hot { color: var(--sky); }
@media (hover: hover) and (pointer: fine) { .states button:hover { color: var(--sky); } }

.orgs { display: grid; grid-template-columns: var(--axis) 1fr 1fr; gap: var(--gap); margin-top: clamp(4rem, 8vw, 7rem); }
.orgs__col:first-child { grid-column: 2; }
.orgs__title { font-size: var(--step-lead); margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.orgs li { display: flex; align-items: center; gap: 1rem; padding: 0.45rem 0; font-size: var(--step-small); line-height: 1.35; }
.orgs img, .orgs__blank { width: 56px; height: 37px; object-fit: contain; background: #fff; padding: 3px; flex: none; }
.orgs__blank { display: grid; place-items: center; color: #0A1A2A; font-size: var(--step-small); font-weight: 600; }

/* ---------- two figures ---------- */
.pair { background: var(--surface); padding: clamp(4rem, 8vw, 7rem) var(--m) 0; overflow: hidden; }
.pair__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.pair__title { grid-column: 1 / span 5; font-size: var(--step-lead); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.pair__top p { grid-column: 7 / span 6; max-width: 48ch; }
.pair__specs { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 12vh; height: clamp(200px, 23vw, 340px); overflow: hidden; }
.spec { grid-column: 1 / span 6; display: flex; align-items: flex-start; gap: 1.25rem; }
.spec__cap { padding-top: 1.2em; max-width: 12ch; }
.spec + .spec { grid-column: 7 / span 6; }
.spec__cap { font-size: var(--step-body); color: var(--muted); }
.spec__fig { font-size: clamp(11rem, 30.5vw, 33rem); font-weight: 500; line-height: 0.8; letter-spacing: -0.06em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.spec--inv .spec__fig { color: var(--accent); }

/* ---------- confidence building ---------- */
.cbm { padding-inline: var(--m); }
.cbm__row { display: grid; grid-template-columns: var(--axis) 1fr; gap: var(--gap); }
.facts { display: flex; flex-direction: column; gap: 1.4rem; max-width: 200px; }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { font-size: var(--step-small); }
.cbm__para { font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; letter-spacing: -0.01em; }
.cbm__row--rec { margin-top: clamp(4rem, 8vw, 7.5rem); grid-template-columns: var(--axis) repeat(3, 1fr); align-items: start; }
.cbm__word { font-size: var(--step-small); color: var(--muted); }
.rec__title { font-size: var(--step-body); font-weight: 600; margin-bottom: 1rem; }
.rec__list a {
  display: flex; flex-direction: column; padding: 0.45rem 0; text-decoration: none; font-size: var(--step-small); line-height: 1.35;
  transition: color var(--t-hover) ease;
}
.rec__list a span + span { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .rec__list a:hover { color: var(--accent); } }

/* ---------- secretary general ---------- */
.sg { margin-top: var(--section); display: grid; grid-template-columns: var(--axis) 1fr; gap: var(--gap); padding: clamp(4rem, 8vw, 7rem) var(--m); align-items: end; }
.sg__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--field-2); --cover: var(--field); }
.sg__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.sg__text { padding-bottom: 0.5rem; }
.sg__role { color: var(--on-field-muted); font-size: var(--step-body); margin-bottom: 1rem; }
.sg__p { margin-top: 2rem; max-width: 48ch; color: var(--on-field); font-size: var(--step-body); }
.sg__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-top: 2.5rem; font-size: var(--step-body); }
.sg .link { text-decoration-color: color-mix(in srgb, var(--on-field) 40%, transparent); }

/* ---------- gallery ---------- */
.gal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-inline: 6vw var(--m); margin-bottom: 2rem; }
.gal__title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; }
.gal__ctrl { display: flex; align-items: center; gap: 0.5rem; }
.gal__ctrl p { margin-right: 0.75rem; font-variant-numeric: tabular-nums; }
.gal__row {
  --h: clamp(360px, 68svh, 760px);
  display: flex; gap: 12px; height: var(--h); padding-inline: 6vw var(--m);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 6vw;
  scrollbar-width: none; cursor: grab;
}
.gal__row::-webkit-scrollbar { display: none; }
.gal__row.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gal__row.is-drag a { pointer-events: none; }
.mod { flex: none; height: 100%; scroll-snap-align: start; }
.mod--tall { width: calc(var(--h) * 0.75); }
.mod--wide { width: calc(var(--h) * 1.6); }
.mod--pair { width: calc((var(--h) - 12px) / 2 * 1.333); display: flex; flex-direction: column; gap: 12px; }
.mod--pair > a { flex: 1; }
.mod a, a.mod { position: relative; display: block; overflow: hidden; background: var(--surface); text-decoration: none; }
.mod img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); -webkit-user-drag: none; user-select: none; }
.mod span {
  position: absolute; left: 0; bottom: 0; max-width: calc(100% - 1rem);
  background: var(--bg); color: var(--ink); padding: 0.45rem 0.8rem; font-size: var(--step-small); line-height: 1.3;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .mod a:hover img, a.mod:hover img { transform: scale(1.045); }
  .mod a:hover span, a.mod:hover span { background: var(--accent); color: var(--accent-ink); }
}

/* ---------- publications ---------- */
.pubs { padding-inline: var(--m); }
.pubs__title { font-size: var(--step-head); display: flex; flex-direction: column; line-height: 1.02; }
.pubs__title span + span { padding-left: calc((100% - 11 * var(--gap)) / 12 * 2 + 2 * var(--gap)); }
.shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); margin-top: clamp(3rem, 6vw, 5rem); align-items: end; }
.book { text-decoration: none; display: flex; flex-direction: column; gap: 1rem; }
.book img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; background: var(--surface); transition: transform 500ms var(--ease-out); }
.book span { font-size: var(--step-small); line-height: 1.35; min-height: 3.6em; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .book:hover img { transform: translateY(-8px); }
  .book:hover span { color: var(--accent); }
}
.digest { width: 100%; border-collapse: collapse; margin-top: clamp(4rem, 7vw, 6rem); font-size: var(--step-body); }
.digest th, .digest td { padding: 0.9rem 1rem; text-align: left; font-weight: 400; vertical-align: baseline; }
.digest tbody tr:nth-child(odd) { background: var(--surface); }
.digest th[scope="row"] { width: 16%; font-weight: 600; font-variant-numeric: tabular-nums; }
.digest td:nth-child(3) { color: var(--muted); }
.digest td:last-child { text-align: right; }
.digest__gap th, .digest__gap td { padding-top: 0.9rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(7rem, 12vw, 10rem) var(--m) clamp(5rem, 9vw, 7.5rem); align-items: start; }
.contact__s { grid-column: 1 / span 5; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; max-width: 26ch; }
.contact__img { grid-column: 8 / span 2; aspect-ratio: 1; overflow: hidden; max-width: 170px; background: var(--surface); }
.contact__img img { width: 100%; height: 100%; object-fit: cover; }
.contact__links { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 0.5rem; font-size: var(--step-body); }
.contact__q { font-weight: 600; }
.contact__now { margin-bottom: 0.75rem; font-variant-numeric: tabular-nums; }
.contact__links .small { margin-top: 0.75rem; }

/* ---------- footer ---------- */
.foot { background: var(--field); color: var(--on-field); padding: clamp(4.5rem, 7vw, 6rem) var(--m) calc(2rem + env(safe-area-inset-bottom)); overflow: hidden; }
.foot__mark { font-size: 30.5vw; font-weight: 600; line-height: 0.78; letter-spacing: -0.045em; margin-left: -0.04em; color: var(--on-field); }
.foot__mark:lang(ru) { font-size: calc((100vw - 2 * var(--m)) * 0.275); } /* "СВМДА" is one letter longer than "CICA" */
.foot__row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(3rem, 6vw, 4.5rem); }
.foot__places { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 0.35rem; }
.foot__places a { font-size: var(--step-lead); color: var(--dot); text-decoration: none; letter-spacing: -0.015em; transition: color var(--t-hover) ease; }
.foot__places p { color: var(--on-field); line-height: 1.5; }
.foot__places p + p { margin-top: 0.35rem; }
.foot__places a { font-size: inherit; letter-spacing: 0; }
.foot__h { font-size: var(--step-lead); font-weight: 600; margin-bottom: 0.75rem; }
.foot__k { color: var(--on-field-muted); margin-right: 0.35rem; }
.tools .clock { font-size: var(--step-small); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tools .clock__city { color: var(--ink); }
@media (max-width: 1599px) { .tools .clock { display: none; } }
.foot__cols { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.foot__cols a { display: inline-block; padding: 0.25rem 0; text-decoration: none; font-size: var(--step-small); color: var(--on-field); transition: color var(--t-hover) ease; }
.foot__legal { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: clamp(4rem, 7vw, 6rem); font-size: var(--step-small); color: var(--on-field-muted); }
.foot__legal p a { margin-left: 0.9rem; }
.foot__legal a { color: var(--on-field-muted); transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .foot__places a:hover, .foot__cols a:hover, .foot__legal a:hover { color: var(--on-field); }
  .foot__places a:hover { color: #fff; }
}

/* ---------- clarity layer: patterns shared by OSCE, SCO, NATO, EEC, CBSS ---------- */

/* larger text, kept between visits (SCO, EEC and CBSS offer the same control) */
:root[data-text="1"] { font-size: 112.5%; }
:root[data-text="2"] { font-size: 125%; }

/* header icon buttons: search, text size */
.ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.bar.is-scrolled .ico { background: var(--surface-2); }
.ico:active { transform: scale(0.92); }
.ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.ico--text span { font-size: 1rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.ico--text small { font-size: 0.7em; }
.ico--text[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .ico:hover { background: var(--accent); color: var(--accent-ink); } }

.nav__top--link { text-decoration: none; }
.nav__top--link::after { content: none; }
.btn--ghost { background: var(--surface); color: var(--ink); gap: 0.45rem; }
.bar.is-scrolled .btn--ghost { background: var(--surface-2); }
.btn--ghost svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--accent); color: var(--accent-ink); } }

.acc__link { font-size: var(--step-head); padding: 0.7rem 0; letter-spacing: -0.015em; text-decoration: none; }
.sheet__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.sheet__row .sheet__lang { margin-top: 0; }

/* search */
.find {
  width: min(760px, calc(100% - 2 * var(--m))); max-height: min(80svh, 720px); margin: calc(var(--bar-h) + 1rem) auto auto;
  padding: 0; border: 0; background: var(--bg); color: var(--ink);
  box-shadow: 0 30px 80px -24px rgb(4 18 31 / 0.5); /* taste-skill-ignore: a real floating dialog */
}
.find::backdrop { background: rgb(4 18 31 / 0.55); }
.find[open] { animation: find-in 260ms var(--ease-out); }
@keyframes find-in { from { opacity: 0; transform: translateY(-10px); } }
.find__in { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.find__label { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; }
.find__field { position: relative; display: flex; align-items: center; background: var(--surface); }
.find__field svg { position: absolute; left: 1rem; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.find__field input {
  flex: 1; min-width: 0; min-height: 60px; padding: 0 1rem 0 3rem; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: var(--step-lead);
}
.find__field input:focus { outline: none; }
.find__field:focus-within { outline: 2px solid var(--accent); outline-offset: 0; }
.find__field input::placeholder { color: var(--muted); opacity: 1; }
.find__field input::-webkit-search-cancel-button { display: none; }
.find__close { margin-right: 0.6rem; padding: 0.35rem 0.6rem; font-size: var(--step-small); color: var(--muted); background: var(--bg); }
.find__list { overflow-y: auto; max-height: calc(min(80svh, 720px) - 12rem); margin-inline: -0.5rem; }
.find__list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.7rem 0.5rem; text-decoration: none;
  transition: background-color var(--t-hover) ease;
}
.find__list a span:last-child { font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.find__list a:focus-visible, .find__list a.is-active { background: var(--surface); outline: none; }
.find__list mark { background: var(--pale); color: inherit; }
@media (hover: hover) and (pointer: fine) { .find__list a:hover { background: var(--surface); } }

/* quick access, under the first screen (CBSS, NATO) */
.quick { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 8px; padding: clamp(3rem, 6vw, 5rem) var(--m) 0; }
.quick__cell {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  min-height: 140px; padding: 1.1rem 1.25rem 1.25rem; background: var(--surface); text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.quick__cell::after { content: "→"; position: absolute; top: 1rem; right: 1.1rem; color: var(--accent); transition: transform var(--t-hover) var(--ease-out); }
.quick__k { font-size: var(--step-small); color: var(--muted); padding-right: 1.5rem; }
.quick__v { font-size: var(--step-body); font-weight: 500; line-height: 1.4; }
.quick__cell--chair { background: var(--field); color: var(--on-field); }
.quick__cell--chair .quick__k { color: var(--on-field-muted); }
.quick__cell--chair .quick__v { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; }
.quick__cell--chair::after { color: var(--dot); }
@media (hover: hover) and (pointer: fine) {
  .quick__cell:hover { background: var(--accent); color: var(--accent-ink); }
  .quick__cell:hover .quick__k, .quick__cell:hover::after { color: var(--accent-ink); }
  .quick__cell:hover::after { transform: translateX(4px); }
}

/* events with a date badge (OSCE, EEC, CBSS) */
.events { margin-top: clamp(3.5rem, 6vw, 5rem); }
.events__title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 1rem; }
.cal li + li { margin-top: 6px; }
.cal__row {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem; align-items: center; text-decoration: none;
  padding: 0.5rem 1rem 0.5rem 0.5rem; margin-inline: -0.5rem; transition: background-color var(--t-hover) ease;
}
.cal__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1;
  background: var(--surface); font-variant-numeric: tabular-nums; transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.cal__date span:first-child { font-size: var(--step-lead); font-weight: 600; line-height: 1; }
.cal__date span:last-child { font-size: var(--step-small); color: var(--muted); margin-top: 0.15rem; }
.cal__date--tba span:first-child { font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.cal__date--tba span:last-child { font-size: var(--step-body); font-weight: 600; color: var(--ink); }
.cal__body { display: flex; flex-direction: column; gap: 0.15rem; }
.cal__k { font-size: var(--step-small); color: var(--muted); }
.cal__t { font-size: var(--step-body); line-height: 1.35; }
.events__more { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 1.5rem; font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) {
  .cal__row:hover { background: var(--surface); }
  .cal__row:hover .cal__date { background: var(--accent); color: var(--accent-ink); }
  .cal__row:hover .cal__date span { color: var(--accent-ink); }
}
.cal__row:focus-visible { background: var(--surface); }

/* plain section headings and the links that lead on from them */
.tiles__h { padding-inline: calc(var(--m) - 8px); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.tiles__links, .map__more { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 2rem; font-size: var(--step-body); }
.map__more { margin-top: 0.5rem; font-size: var(--step-small); }
.map .link { text-decoration-color: color-mix(in srgb, var(--on-field) 40%, transparent); }
.cbm__row--head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cbm__row--head h2 { grid-column: 2; }
.cbm__doc { display: flex; flex-direction: column; gap: 0.3rem; max-width: 22ch; text-decoration: none; font-size: var(--step-body); font-weight: 600; line-height: 1.3; }
.cbm__doc span:first-child::after { content: " ↓"; color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .cbm__doc:hover span:first-child { color: var(--accent); } }

/* key documents (SCO, EEC put them on the home page) */
.docs { display: grid; grid-template-columns: var(--axis) 1fr; gap: var(--gap); padding-inline: var(--m); align-items: start; }
.docs__side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; position: sticky; top: calc(var(--bar-h) + 2rem); padding-right: 1rem; }
.docs__lede { max-width: 34ch; }
.docs__cats a { display: inline-block; padding: 0.3rem 0; font-size: var(--step-small); text-decoration: none; color: var(--muted); transition: color var(--t-hover) ease; }
.docs__all { margin-top: 0.5rem; }
.doclist { padding-top: 0.5rem; }
.doclist li + li { margin-top: 4px; }
.doc {
  display: grid; grid-template-columns: 6rem 1fr auto; grid-template-areas: "y t f" "y m f"; gap: 0.2rem 1.5rem; align-items: baseline;
  padding: 1.1rem 1.25rem; margin-inline: -1.25rem; text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.doc__y { grid-area: y; font-size: var(--step-lead); font-weight: 600; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em; }
.doc__t { grid-area: t; font-size: var(--step-body); line-height: 1.35; font-weight: 500; }
.doc__m { grid-area: m; font-size: var(--step-small); color: var(--muted); }
.doc__f { grid-area: f; align-self: center; font-size: var(--step-small); padding: 0.3rem 0.65rem; background: var(--surface); white-space: nowrap; transition: background-color var(--t-hover) ease; }
.doc__f::after { content: " ↓"; }
@media (hover: hover) and (pointer: fine) {
  .docs__cats a:hover { color: var(--accent); }
  .doc:hover { background: var(--accent); color: var(--accent-ink); }
  .doc:hover .doc__y, .doc:hover .doc__m { color: var(--accent-ink); }
  .doc:hover .doc__f { background: var(--accent-strong); color: var(--accent-ink); }
}


/* ---------- inner pages ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.3rem 0; font-size: var(--step-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 0.55rem; opacity: 0.6; }
.crumbs a { color: var(--muted); text-decoration: none; transition: color var(--t-hover) ease; }
.crumbs [aria-current] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--accent); } }

.phead { display: grid; grid-template-columns: var(--axis) 1fr; gap: var(--gap); padding: clamp(3rem, 7vw, 6rem) var(--m) clamp(3rem, 6vw, 5rem); align-items: start; }
.phead .crumbs { padding-top: 0.6em; }
.phead__main > .lead { margin-top: 1.5rem; max-width: 46ch; }
/* articles: long titles take the full width; the trail goes under them */
.phead--wide { display: flex; flex-direction: column-reverse; gap: 2rem; }
.phead--wide .crumbs { padding-top: 0; }
.phead--wide .art__title { max-width: 30em; }
.phead__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 1.75rem; font-size: var(--step-small); color: var(--muted); }

.pbody { display: grid; grid-template-columns: var(--axis) 1fr; gap: var(--gap); padding: 0 var(--m) var(--section); align-items: start; }
.side { position: sticky; top: calc(var(--bar-h) + 2rem); padding-right: 1rem; }
.side__title { font-size: var(--step-small); color: var(--muted); margin-bottom: 0.6rem; }
.side nav a { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.4rem 0; font-size: var(--step-small); text-decoration: none; transition: color var(--t-hover) ease; }
.side nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; flex: none; transform: translateY(-2px); transition: background-color var(--t-hover) ease; }
.side nav a[aria-current] { color: var(--accent); font-weight: 600; }
.side nav a[aria-current]::before { background: var(--accent); }
.side__count { margin-left: auto; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .side nav a:hover { color: var(--accent); } }

/* running text */
.prose { max-width: 64ch; }
.prose > * + * { margin-top: 1.25rem; }
.prose > h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-top: clamp(3rem, 5vw, 4.5rem); }
.prose > h2 + * { margin-top: 1rem; }
.prose > .lead { font-size: var(--step-lead); line-height: 1.4; }
.prose ul { display: flex; flex-direction: column; gap: 0.5rem; }
.prose ul li { display: flex; gap: 0.8rem; }
.prose ul li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(0.62em); }
.prose blockquote { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; color: var(--accent); max-width: 30ch; margin-block: 2.5rem; }
.prose a:not(.btn):not(.org__box) { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.pfig { margin-block: clamp(2.5rem, 5vw, 4rem); max-width: none; }
.pfig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface); }
.pfig figcaption { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-block: clamp(2.5rem, 5vw, 4rem); max-width: none; }
.stats dt { font-size: var(--step-small); color: var(--muted); order: 2; margin-top: 0.4rem; }
.stats dd { font-size: var(--step-head); font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.stats > div { display: flex; flex-direction: column; }

.bodies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-block: 2rem; max-width: none; }
.bodies > div { background: var(--surface); padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.bodies b { font-weight: 600; }
.bodies span { font-size: var(--step-small); color: var(--muted); }
.bodies .bodies__top { grid-column: 1 / -1; background: var(--field); color: var(--on-field); }
.bodies .bodies__top span { color: var(--on-field-muted); }

/* tabs and filter on light ground */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tabs button, .tabs a {
  min-height: 46px; padding: 0 1.1rem; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none;
  font-size: var(--step-small); display: inline-flex; gap: 0.5rem; align-items: center;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.tabs span { color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs [aria-selected="true"], .tabs [aria-current] { background: var(--accent); color: var(--accent-ink); }
.tabs [aria-selected="true"] span, .tabs [aria-current] span { color: var(--accent-ink); }
.tabs button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .tabs [aria-selected="false"]:hover, .tabs a:not([aria-current]):hover { background: var(--surface-2); } }
.filter { position: relative; display: flex; align-items: center; min-width: min(100%, 340px); background: var(--surface); }
.filter svg { position: absolute; left: 0.9rem; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.filter input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem 0 2.7rem; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--step-small); }
.filter input::placeholder { color: var(--muted); opacity: 1; }
.filter input:focus { outline: none; }
.filter:focus-within { outline: 2px solid var(--accent); }
.empty { font-size: var(--step-body); color: var(--muted); padding: 2rem 0; }

/* member directory, grouped by letter */
.dir__g { display: grid; grid-template-columns: 5rem 1fr; gap: var(--gap); padding-block: 1.25rem; }
.dir__l { font-size: var(--step-head); font-weight: 500; line-height: 0.9; color: var(--accent); letter-spacing: -0.03em; }
.dir__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem 2rem; }
.ent { display: flex; flex-direction: column; gap: 0.15rem; }
.ent__n { font-size: var(--step-body); font-weight: 600; line-height: 1.3; }
.ent__m { font-size: var(--step-small); color: var(--muted); }
.ent__a { font-size: var(--step-small); margin-top: 0.3rem; align-self: flex-start; }
.ent__link { text-decoration: none; color: var(--ink) !important; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .ent__link:hover { color: var(--accent) !important; } }
.prose--site .dir__list > li { padding-left: 0; }
.prose--site .dir__list > li::before { content: none; }
.ent--org { flex-direction: row; align-items: center; gap: 1rem; }
.ent--org img, .ent--org .orgs__blank { width: 64px; height: 42px; object-fit: contain; background: #fff; padding: 3px; flex: none; }
.ent--org > div { display: flex; flex-direction: column; gap: 0.15rem; }
.dir__sec + .dir__sec { margin-top: clamp(3rem, 6vw, 5rem); }
.dir__h--gap { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.dir__sec[hidden], [data-filter-group][hidden], [data-filter-item][hidden] { display: none; }
.dir__h { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 1rem; }

/* press archive */
.feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; text-decoration: none; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.feature__img { grid-column: 1 / span 7; overflow: hidden; background: var(--surface); }
.feature__img img { width: 100%; height: auto; transition: transform 900ms var(--ease-soft); }
.feature__txt { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 1rem; padding-bottom: 0.5rem; }
.feature__txt time { font-size: var(--step-small); color: var(--muted); }
.feature__t { font-size: var(--step-lead); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; transition: color var(--t-hover) ease; }
.feature__txt p { color: var(--muted); }
.feature__go { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .feature:hover .feature__img img { transform: scale(1.03); } .feature:hover .feature__t { color: var(--accent); } }
.month + .month { margin-top: clamp(3rem, 5vw, 4rem); }
.month__h { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 0.75rem; }
.row--pic { grid-template-columns: 5.5rem 1fr 112px 1.5rem; align-items: center; }
.row--pic time { align-self: baseline; padding-top: 0.2em; }
.row__img { width: 112px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); }
.row__k2 { display: block; font-size: var(--step-small); color: var(--muted); margin-top: 0.2rem; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: clamp(3rem, 6vw, 4.5rem); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 0.9rem; display: inline-grid; place-items: center; background: var(--surface); text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.pager [aria-current] { background: var(--accent); color: var(--accent-ink); }
.pager .pager__gap { background: none; min-width: 0; padding: 0 0.25rem; }
@media (hover: hover) and (pointer: fine) { .pager a:not([aria-current]):hover { background: var(--surface-2); } }

/* one press release */
.art__title { font-size: var(--step-title); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.art__media { margin: 0 var(--m) clamp(3rem, 6vw, 5rem); }
.art__media img { width: 100%; height: auto; background: var(--surface); } /* press graphics carry text: never crop them */
.art__media figcaption { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.meta { display: flex; flex-direction: column; gap: 1.4rem; }
.meta dt { font-size: var(--step-small); color: var(--muted); }
.meta dd { font-size: var(--step-small); }
.share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.4rem; }
.share a, .share button { min-height: 40px; padding: 0 0.85rem; display: inline-flex; align-items: center; background: var(--surface); font-size: var(--step-small); text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .share a:hover, .share button:hover { background: var(--accent); color: var(--accent-ink); } }
.more { padding: clamp(4rem, 8vw, 6rem) var(--m); background: var(--surface); display: grid; grid-template-columns: var(--axis) 1fr; gap: var(--gap); }
.more__h { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.more .row:hover, .more .row:focus-visible { background: var(--surface-2); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2.5rem; }
.prevnext a { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.25rem; background: var(--bg); text-decoration: none; font-size: var(--step-small); line-height: 1.35; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.prevnext a span:first-child { color: var(--muted); }
.prevnext a:last-child { text-align: right; }
@media (hover: hover) and (pointer: fine) { .prevnext a:hover { background: var(--accent); color: var(--accent-ink); } .prevnext a:hover span { color: var(--accent-ink); } }

/* document library */
.lib__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.lib__h { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.lib__h span { color: var(--muted); font-weight: 400; margin-left: 0.4rem; font-variant-numeric: tabular-nums; }
.ldoc { display: grid; grid-template-columns: 5rem 1fr auto; grid-template-areas: "y t f" "y m f"; gap: 0.2rem 1.5rem; align-items: baseline; padding: 1.1rem 1.25rem; margin-inline: -1.25rem; transition: background-color var(--t-hover) ease; }
.ldoc + .ldoc { margin-top: 4px; }
.ldoc__y { grid-area: y; font-size: var(--step-lead); font-weight: 600; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em; }
.ldoc__t { grid-area: t; font-size: var(--step-body); line-height: 1.35; font-weight: 500; text-decoration: none; }
.ldoc__m { grid-area: m; font-size: var(--step-body); color: var(--muted); }
.ldoc__f { grid-area: f; align-self: center; display: flex; gap: 6px; }
.ldoc__f a { font-size: var(--step-small); padding: 0.35rem 0.7rem; background: var(--surface); text-decoration: none; white-space: nowrap; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.ldoc__f a::after { content: " ↓"; }
@media (hover: hover) and (pointer: fine) {
  .ldoc:hover { background: var(--surface); }
  .ldoc:hover .ldoc__f a { background: var(--bg); }
  .ldoc__t:hover { color: var(--accent); }
  .ldoc .ldoc__f a:hover { background: var(--accent); color: var(--accent-ink); }
}
.lib__note { margin-top: 2.5rem; max-width: 60ch; }

/* ---------- section pages ---------- */
.pmain { min-width: 0; }
.pwrap { padding: 0 var(--m) var(--section); }


/* organisation chart */
.org { display: flex; flex-direction: column; gap: 6px; margin-block: 1rem 3rem; max-width: none; }
.org__h { font-size: var(--step-body); font-weight: 600; letter-spacing: 0; margin: 1.75rem 0 0.4rem; }
.org__lvl { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: 6px; }
.org__box { background: var(--surface); padding: 1rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.org__box b { font-weight: 600; line-height: 1.3; }
.org__box span { color: var(--muted); line-height: 1.35; }
.org__box--top { background: var(--field); color: var(--on-field); }
.org__box--top span { color: var(--on-field-muted); }
.org__down { text-align: center; color: var(--accent); line-height: 1; padding: 0.15rem 0; }
@media (hover: hover) and (pointer: fine) { a.org__box:hover { background: var(--accent); color: var(--accent-ink); } a.org__box:hover span { color: var(--accent-ink); } }

/* timeline */
.tl { max-width: none; }
.tl > li { display: grid; grid-template-columns: 10rem 1fr; gap: var(--gap); padding-block: clamp(1.75rem, 3vw, 2.5rem); }
.tl > li + li { margin-top: 4px; }
.tl__when { display: flex; flex-direction: column; gap: 0.25rem; }
.tl__y { font-size: var(--step-head); font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.tl__d { font-size: var(--step-small); color: var(--muted); }
.tl__what h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.tl__what p { margin-top: 0.75rem; max-width: 60ch; }
.tl__what img { margin-top: 1.25rem; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }

/* people */
.people-sec + .people-sec { margin-top: clamp(3rem, 6vw, 4.5rem); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2.25rem 1.25rem; }
.person { display: flex; flex-direction: column; gap: 0.25rem; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; background: var(--surface); margin-bottom: 0.75rem; }
.person b { font-weight: 600; line-height: 1.3; }
.person span { color: var(--muted); line-height: 1.35; }
.person a { font-size: var(--step-small); margin-top: 0.35rem; overflow-wrap: anywhere; align-self: flex-start; }
.profile { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--gap); align-items: start; }
.profile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; background: var(--surface); }

/* chairmanship */
.chairs { margin-top: 1.5rem; }
.chairs li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.8rem 1rem; margin-inline: -1rem; align-items: baseline; }
.chairs li + li { margin-top: 4px; }
.chairs time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--step-small); }
.chairs .is-now { background: var(--field); color: var(--on-field); }
.chairs .is-now time { color: var(--on-field-muted); }
.chairs b { font-weight: 600; }

/* photo albums and the photos inside them */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem 1rem; }
.album { display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none; }
.album__img { overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.album__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.album b { font-weight: 600; line-height: 1.3; transition: color var(--t-hover) ease; }
.album span { font-size: var(--step-small); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .album:hover img { transform: scale(1.04); } .album:hover b { color: var(--accent); } }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-width: none; }
.photos a { display: block; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; cursor: zoom-in; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .photos a:hover img { transform: scale(1.04); } }
.lb { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(4 18 31 / 0.94); color: #EEF4FA; }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: find-in 220ms var(--ease-out); }
.lb::backdrop { background: transparent; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--m); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.lb__stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--m); }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__nav { display: flex; justify-content: center; gap: 0.75rem; padding: 1rem var(--m) calc(1.25rem + env(safe-area-inset-bottom)); }
.lb .round { background: rgb(255 255 255 / 0.12); color: #fff; }

/* forthcoming and plan lists */
.plan__row { display: grid; grid-template-columns: 2.75rem 1fr 11rem; gap: 1.25rem; align-items: baseline; padding: 0.95rem 1rem; margin-inline: -1rem; }
.plan__row + .plan__row { margin-top: 4px; }
.plan__n { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.plan__t { display: flex; flex-direction: column; gap: 0.2rem; }
.plan__t b { font-weight: 500; line-height: 1.35; }
.plan__t span { color: var(--muted); line-height: 1.4; }
.plan__d { font-size: var(--step-small); text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; vertical-align: middle; margin-left: 0.6rem; padding: 0.2rem 0.6rem; font-size: var(--step-small); font-weight: 400; letter-spacing: 0; background: var(--accent); color: var(--accent-ink); border-radius: 999px; }
.badge--muted { background: var(--surface); color: var(--muted); }
.cal--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--gap); }
.cal--grid li + li { margin-top: 0; }
.cal__row.is-next .cal__date { background: var(--accent); color: var(--accent-ink); }
.cal__row.is-next .cal__date span { color: var(--accent-ink); }

/* plain link lists without dates */
.row--plain { grid-template-columns: 1fr 1.5rem; }

/* empty states and notes */
.empty-state { background: var(--surface); padding: clamp(1.75rem, 4vw, 2.75rem); max-width: 62ch; }
.empty-state b { display: block; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 0.75rem; }
.empty-state p + p { margin-top: 0.75rem; }
.note { color: var(--muted); max-width: 64ch; margin-top: 2rem; }

/* contacts */
.cblocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem var(--gap); margin-bottom: clamp(3rem, 6vw, 4rem); }
.cblocks dt { font-size: var(--step-small); color: var(--muted); margin-bottom: 0.35rem; }
.cblocks dd { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cblocks dd small { display: block; font-size: var(--step-small); color: var(--muted); margin-top: 0.35rem; letter-spacing: 0; }

/* member login */
.login { max-width: 480px; display: flex; flex-direction: column; gap: 1.25rem; }
.login label { display: flex; flex-direction: column; gap: 0.45rem; font-size: var(--step-small); color: var(--muted); }
.login input { min-height: 54px; padding: 0 1rem; border: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--step-body); }
.login input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.login .btn { align-self: flex-start; margin-top: 0.5rem; }

/* site map */
.smap { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2.5rem var(--gap); }
.smap h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 0.75rem; }
.smap a { display: inline-block; padding: 0.3rem 0; text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .smap a:hover { color: var(--accent); } }

/* dimension sections */
.dim + .dim { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.dim .lead { max-width: 52ch; }
.dim__h { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; margin-bottom: 1.25rem; }
.dim__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem var(--gap); margin-top: 1.75rem; }
.dim__cols h3 { font-size: var(--step-body); font-weight: 600; margin-bottom: 0.6rem; }
.dim__cols li a, .dim__cols li span { display: block; max-width: 60ch; padding: 0.35rem 0; line-height: 1.4; text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .dim__cols li a:hover { color: var(--accent); } }
.flags { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.75rem; font-size: var(--step-small); }
.flags span { display: inline-flex; align-items: center; gap: 0.45rem; }
.flags img { width: 24px; height: 18px; object-fit: cover; }

/* ---------- original site content in the new design ---------- */
.prose--site { max-width: 72ch; }
.prose--wide { max-width: none; }
.prose--site > * + * { margin-top: 1.1rem; }
.prose--site h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.prose--site h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: 0; line-height: 1.35; margin-top: 2rem; }
.prose--site h4 { font-size: var(--step-body); font-weight: 600; line-height: 1.35; margin-top: 1.75rem; color: var(--accent); }
.prose--site > :first-child { margin-top: 0; }
.prose--site img { max-width: 100%; height: auto; margin-block: 1rem; background: var(--surface); }
.prose--site iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.prose--site a:not(.btn):not(.ldoc__t):not(.row) { color: var(--accent); }
.prose--site ul { display: flex; flex-direction: column; gap: 0.45rem; }
.prose--site ul > li { display: block; position: relative; padding-left: 1.2rem; }
.prose--site ul > li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose--site ol:not(.liblist):not(.rows) { padding-left: 1.4rem; list-style: decimal; }
.prose--site ol:not(.liblist):not(.rows) > li + li { margin-top: 0.4rem; }
.prose--site .liblist, .prose--site .rows { list-style: none; padding: 0; }
.prose--site .liblist > li::before, .prose--site .rows > li::before { content: none; }
.prose--site .liblist > li, .prose--site .rows > li { padding-left: 0; }
.tablewrap { overflow-x: auto; max-width: 100%; margin-block: 1.5rem; }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
.tablewrap th, .tablewrap td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; }
.tablewrap thead th { font-weight: 600; background: var(--field); color: var(--on-field); }
.tablewrap tbody tr:nth-child(odd) { background: var(--surface); }
.tablewrap td[colspan] { font-weight: 600; background: var(--surface-2); }
.row--nodate { grid-template-columns: 1fr 1.5rem; }
.row--nodate.row--pic { grid-template-columns: 1fr 112px 1.5rem; }
.person__bio { margin-top: 0.5rem; font-size: var(--step-small); }
.person__bio summary { cursor: pointer; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.person__bio summary::-webkit-details-marker { display: none; }
.person__bio summary::after { content: "+"; transition: transform var(--t-ui) var(--ease-out); }
.person__bio[open] summary::after { transform: rotate(45deg); }
.person__bio > div { margin-top: 0.6rem; color: var(--ink); line-height: 1.5; }
.person__bio > div > * + * { margin-top: 0.6rem; }

/* directory of states: compact columns */
.prose--site .dirwrap { columns: 3 15rem; column-gap: var(--gap); }
.prose--site .dirwrap .dir__g { break-inside: avoid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; padding-block: 0.6rem; }
.prose--site .dirwrap .dir__l { font-size: var(--step-lead); }
.prose--site .dirwrap .dir__list { grid-template-columns: 1fr; gap: 0.6rem; }

/* team as wide rows */
#content .people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 2.5rem var(--gap); list-style: none; padding: 0; }
#content .people > li { padding-left: 0; }
#content .people > li::before { content: none; }
#content .person { display: grid; grid-template-columns: 132px 1fr; column-gap: 1.25rem; align-content: start; }
#content .person img { grid-row: 1 / span 5; margin: 0; }
#content .person__bio { font-size: var(--step-body); }
#content .person__bio > div { max-width: 60ch; }

/* reading width inside wide content */
.prose--wide > p, .prose--wide > h2, .prose--wide > h3, .prose--wide > h4 { max-width: 72ch; }
.prose--wide .rows { max-width: 900px; }
.tablewrap table { font-size: var(--step-body); }

/* home page blocks */
.hero--site { min-height: 0; padding-bottom: clamp(3rem, 6vw, 5rem); align-items: end; }
.hero--site .hero__side { padding-top: clamp(4rem, 14vh, 9rem); }
.hero--site .hero__title { font-size: var(--step-display); }
.hero--site .hero__lead { max-width: 22ch; font-size: var(--step-lead); }
.hero--site .hero__main { padding-top: clamp(1.5rem, 6vh, 4rem); }
.hero__news { display: block; text-decoration: none; }
.hero__news .hero__frame { display: block; height: auto; aspect-ratio: 16 / 9; }
.hero__news img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.hero__cap { display: block; margin-top: 1rem; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; max-width: 40ch; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .hero__news:hover img { transform: scale(1.02); } .hero__news:hover .hero__cap { color: var(--accent); } }
.hsec { padding: clamp(5.5rem, 8vw, 7rem) var(--m) 0; }
.hero--site ~ .hsec:last-child { padding-bottom: clamp(6rem, 9vw, 8rem); }
.hsec.gal { padding-inline: 0; }
.hsec.gal .gal__head { padding-inline: var(--m); }
.hsec__h { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.hsec__h a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .hsec__h a:hover { color: var(--accent); } }
.hsec .rows { max-width: 980px; }
.hsec__more { margin-top: 1.5rem; }
.hsec__sub { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin: 3rem 0 0.75rem; max-width: 40ch; }
.hsec__sub a { text-decoration: none; }
.hsec .row time { white-space: nowrap; }
.quick--dims, .quick--bodies { padding: 0; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.quick--dims .quick__cell, .quick--bodies .quick__cell { min-height: 120px; justify-content: flex-end; }
.bodies3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.bodies3__h { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 1rem; }
.bodies3__list li + li { margin-top: 6px; }
.bodies3__list a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; background: var(--surface); text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.bodies3__list a::after { content: "→"; color: var(--accent); transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .bodies3__list a:hover { background: var(--accent); color: var(--accent-ink); } .bodies3__list a:hover::after { color: var(--accent-ink); transform: translateX(3px); } }
.sg__kicker { color: var(--on-field-muted); margin-bottom: 0.5rem; }
.sg .sg__role { font-size: var(--step-body); font-weight: 400; letter-spacing: 0; color: var(--on-field-muted); margin-bottom: 1.25rem; }
.map__lists { display: grid; grid-template-columns: var(--axis) 1fr; gap: var(--gap); margin-top: clamp(3rem, 6vw, 4.5rem); }
.map__lists > div:first-child { grid-column: 2; }
.map__lists > div + div { grid-column: 2; }
.map__lists h3 { font-size: var(--step-lead); font-weight: 500; margin-bottom: 1rem; }
.map__lists h3 a { text-decoration: none; color: var(--on-field); }
.maplist { columns: 3 14rem; column-gap: var(--gap); }
.maplist li { break-inside: avoid; padding: 0.25rem 0; font-size: var(--step-small); }
.maplist a { color: var(--on-field); text-decoration-color: color-mix(in srgb, var(--on-field) 35%, transparent); }
.orglist { columns: 2 22rem; column-gap: var(--gap); max-width: 1100px; }
.orglist li { break-inside: avoid; }
.orglist a { display: block; padding: 0.6rem 0; text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .orglist a:hover { color: var(--accent); } }

/* section header: title of the block and its link on the right */
.shead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.shead__h { font-size: clamp(1.75rem, 1.1rem + 1.9vw, 3rem); font-weight: 500; letter-spacing: -0.022em; line-height: 1.08; max-width: 24ch; }
.shead__h a { text-decoration: none; transition: color var(--t-hover) ease; }
.shead__more { font-size: var(--step-small); color: var(--accent); text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .shead__h a:hover, .shead__more:hover { color: var(--accent-strong); } }
.field .shead__h a, .map__head h2 a { color: inherit; text-decoration: none; }

/* news cards under the lead story */
.hsec--news { padding-top: clamp(2.5rem, 5vw, 4rem); }
.ncards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem var(--gap); }
.ncard { display: flex; flex-direction: column; gap: 0.85rem; text-decoration: none; }
.ncard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.ncard__t { font-size: var(--step-body); line-height: 1.4; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .ncard:hover img { transform: scale(1.04); } .ncard:hover .ncard__t { color: var(--accent); } }

/* the five dimensions across the width */
.dimtiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dimtile { position: relative; display: flex; align-items: flex-end; min-height: 168px; padding: 1.25rem; background: var(--field); color: var(--on-field); text-decoration: none; font-size: var(--step-body); font-weight: 500; line-height: 1.35; transition: background-color var(--t-hover) ease; }
.dimtile:nth-child(even) { background: var(--field-2); }
.dimtile::after { content: "→"; position: absolute; top: 1.1rem; right: 1.2rem; color: var(--dot); transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .dimtile:hover { background: var(--accent); } .dimtile:hover::after { transform: translateX(4px); color: var(--accent-ink); } }

/* two blocks side by side */
.twoup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.shead__h--sub { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; max-width: 34ch; }
.rows--cols { columns: 2 24rem; column-gap: var(--gap); max-width: none !important; }
.rows--cols li { break-inside: avoid; }

/* organizations with the logos the site uses */
.orgs2 { display: grid; gap: 6px; }
.org { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: center; padding: 0.75rem 1rem; background: var(--surface); text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.org img { width: 72px; height: 46px; object-fit: contain; background: #fff; padding: 4px; }
.org span { line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .org:hover { background: var(--accent); color: var(--accent-ink); } }

/* documents: titles read as titles, not as underlined links */
#content a.ldoc__t, #content .ldoc__f a, #content a.row, #content a.album, #content .photos a, #content a.ent__link { text-decoration: none; }
#content a.ldoc__t, #content a.row { color: var(--ink); }
#content .ldoc__f a { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { #content a.ldoc__t:hover, #content a.row:hover .row__t { color: var(--accent); } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 520ms); }
  .js .hero__title [data-line] { transform: translateY(105%); animation: line-up 950ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js .hero__frame { clip-path: inset(100% 0 0 0); animation: shutter-up 1300ms var(--ease-in-out) 350ms forwards; }
  .js .hero__frame img { transform: scale(1.12); animation: settle 1800ms var(--ease-soft) 350ms forwards; }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js [data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(min(var(--n, 0), 10) * 60ms); }
  .js [data-stagger].is-in > * { opacity: 1; transform: none; }

  .js [data-line-io] { transform: translateY(105%); transition: transform 950ms var(--ease-out); transition-delay: calc(var(--i) * 110ms + 100ms); }
  .js .is-in [data-line-io] { transform: none; }

  /* a cover lifts off the picture; nothing is clipped, so lazy loading and observers see it */
  .js [data-reveal-shutter] { position: relative; }
  .js [data-reveal-shutter]::after { content: ""; position: absolute; inset: 0; background: var(--cover, var(--surface)); transform-origin: 50% 0; transition: transform 1100ms var(--ease-in-out); pointer-events: none; }
  .js [data-reveal-shutter].is-in::after { transform: scaleY(0); }
  .js [data-reveal-shutter] img { transform: scale(1.14); transition: transform 1600ms var(--ease-soft); }
  .js [data-reveal-shutter].is-in img { transform: none; }

  .hubring { animation: pulse 2.8s var(--ease-out) infinite; }

  @supports (animation-timeline: view()) {
    .drift { animation: drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .js .hero__frame img.drift { animation: settle 1800ms var(--ease-soft) 350ms both, drift linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
    .foot__mark { animation: mark-in linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes shutter-up { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
@keyframes drift { from { transform: translateY(0) scale(1); } to { transform: translateY(7%) scale(1.06); } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes mark-in { from { transform: translateY(18%); opacity: 0.2; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1499px) {
  .brand__long { display: none; }
  .bar__in { grid-template-columns: auto 1fr auto; }
  .nav { justify-self: center; }
}
@media (max-width: 1280px) {
  .tools__login { width: 40px; padding: 0; border-radius: 50%; }
  .tools__login-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1200px) {
  .quick { grid-template-columns: repeat(4, 1fr); }
  .quick__cell--chair { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 1.5rem; }
}
@media (max-width: 1080px) {
  :root { --bar-h: 64px; }
  .bar__in { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .tools__login { display: none; }
  .brand__long { display: block; max-width: 34ch; }
  .cbm__row--rec { grid-template-columns: 1fr 1fr 1fr; }
  .cbm__doc { grid-column: 1 / -1; max-width: none; }
  .tools #textsize { display: none; }
  .orgs { grid-template-columns: 1fr 1fr; }
  .orgs__col:first-child { grid-column: auto; }
}
@media (max-width: 860px) {
  /* home blocks */
  .ncards { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .dimtiles { grid-template-columns: 1fr 1fr; }
  .dimtile { min-height: 120px; }
  .twoup { grid-template-columns: 1fr; }

  /* tables become one card per row */
  .tablewrap { overflow: visible; }
  .tablewrap table, .tablewrap tbody, .tablewrap tr, .tablewrap td { display: block; width: 100%; }
  .tablewrap thead { display: none; }
  .tablewrap tr { padding: 0.75rem 1rem; }
  .tablewrap td { padding: 0.2rem 0; }
  .tablewrap td[data-label]::before { content: attr(data-label); display: block; font-size: var(--step-small); color: var(--muted); }
  .tablewrap td:empty { display: none; }
  #content .person { grid-template-columns: 96px 1fr; }

  /* original content and home blocks */
  .hero--site { display: flex; flex-direction: column; }
  .hero--site .hero__side { order: 1; width: 100%; padding-top: 2.5rem; gap: 1rem; }
  .hero--site .hero__title { order: 0; padding-top: 0; font-size: var(--step-display-m); }
  .hero--site .hero__main { order: 2; display: block; width: 100%; padding-top: 2rem; }
  .map__lists { display: flex; flex-direction: column; }
  .bodies3 { grid-template-columns: 1fr; gap: 2.5rem; }
  .maplist { columns: 2; }
  .row--nodate.row--pic { grid-template-columns: 1fr auto; }

  /* section pages */
  .org__lvl { grid-template-columns: 1fr; }
  .tl > li { grid-template-columns: 1fr; gap: 0.75rem; }
  .profile { grid-template-columns: 1fr; }
  .profile img { max-width: 320px; }
  .chairs li { grid-template-columns: 1fr; gap: 0.2rem; }
  .plan__row { grid-template-columns: 2rem 1fr; }
  .plan__d { grid-column: 2; text-align: left; }
  .cblocks, .dim__cols, .cal--grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .photos { grid-template-columns: 1fr 1fr; }

  /* inner pages */
  .phead { display: flex; flex-direction: column-reverse; gap: 1.75rem; padding-top: 2.5rem; }
  .phead .crumbs { padding-top: 0; }
  .pbody { display: flex; flex-direction: column; gap: 2.5rem; }
  .side { position: static; padding-right: 0; width: 100%; }
  .side nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .side__title { width: 100%; }
  .side nav a { padding: 0.5rem 0.85rem; background: var(--surface); }
  .side nav a::before { display: none; }
  .side nav a[aria-current] { background: var(--accent); color: var(--accent-ink); }
  .side nav a[aria-current] .side__count { color: var(--accent-ink); }
  .stats { grid-template-columns: 1fr 1fr; }
  .bodies { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .filter { min-width: 0; }
  .lib__head .filter { width: 100%; }
  .dir__g { grid-template-columns: 2.75rem 1fr; gap: 1rem; }
  .dir__list { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  .feature { display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .art__media { margin-inline: 0; }
  .art__media figcaption { padding-inline: var(--m); }
  .side--end { order: 2; }
  .more { display: flex; flex-direction: column; gap: 1.5rem; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext a:last-child { text-align: left; }
  .ldoc { grid-template-columns: 1fr; grid-template-areas: "y" "t" "m" "f"; padding: 1rem; margin-inline: -1rem; }
  .ldoc__f { margin-top: 0.6rem; }

  :root { --axis: 100%; }
  .brand__long { display: none; }
  .lang { display: none; }
  .sheet .lang { display: flex; }

  /* hero: headline first, then sentence, action, photo */
  .hero { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
  .hero__main { display: contents; }
  .hero__title { order: 1; padding-top: 2.5rem; font-size: var(--step-display-m); line-height: 0.9; }
  .hero__side { order: 2; padding-top: 1.5rem; gap: 1.5rem; }
  .hero__lead { font-size: var(--step-lead); max-width: 34ch; }
  .hero__side .btn { width: 100%; }
  .hero__media { order: 3; margin: 8rem calc(var(--m) * -1) 0; }
  .hero__frame { height: auto; aspect-ratio: 4 / 3; }
  .hero__fig { width: 62%; left: var(--m); }
  .hero__media figcaption { padding-inline: var(--m); }

  .news__title { padding-left: 0; }
  .news__grid { display: block; margin-top: 2rem; }
  .news__frame { position: relative; top: auto; width: 62%; margin-left: auto; margin-bottom: 2rem; aspect-ratio: 4 / 5; }
  .row { grid-template-columns: 1fr auto; grid-template-areas: "k a" "t t"; gap: 0.3rem 1rem; padding-block: 0.9rem; }
  .row time, .row__k { grid-area: k; }
  .row__a { grid-area: a; }
  .row__t { grid-area: t; }
  .row--pic { grid-template-columns: 1fr auto; grid-template-areas: "k a" "t t" "i i"; }
  .row__img { grid-area: i; width: 100%; max-width: 280px; margin-top: 0.5rem; }

  .tiles { padding-inline: 6px; }
  .tiles__board { grid-template-columns: 1fr 1fr; grid-template-rows: 46svh auto; gap: 6px; }
  .tile--a { grid-column: 1 / -1; grid-row: 1; }
  .tile__slogan { font-size: clamp(2.6rem, 11.5vw, 5.5rem); }
  .tile--b, .tile--c { grid-column: auto; grid-row: 2; aspect-ratio: 1; }
  .tile__word { font-size: var(--step-head); }
  .tile__note { font-size: var(--step-small); }
  .tiles__text { display: block; padding: 2.5rem calc(var(--m) - 6px) 0; }

  .map__wrap { display: flex; flex-direction: column; gap: 2rem; }
  .map__head { display: contents; }
  .map__head > h2, .map__lede, .seg { order: 0; }
  .map__canvas { order: 1; position: relative; top: auto; margin-inline: calc(var(--m) * -1); }
  .map__hint, .map__credit { padding-inline: var(--m); }
  .states { order: 2; columns: 2; margin-top: 0; }
  .orgs { grid-template-columns: 1fr; gap: 3rem; }

  .pair__top { display: flex; flex-direction: column; gap: 1.25rem; }
  .pair__specs { display: flex; flex-direction: column; gap: 0; height: auto; margin: 3rem calc(var(--m) * -1) 0; }
  .spec { height: 38svh; min-height: 220px; overflow: hidden; padding: 1.5rem var(--m) 0; }
  .spec__fig { font-size: 60vw; }
  .spec { gap: 1rem; }
  .spec--inv { background: var(--field); }
  .spec--inv .spec__cap { color: var(--on-field-muted); }
  .spec--inv .spec__fig { color: var(--on-field); }

  .quick { grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 3rem; }
  .quick__cell { min-height: 112px; gap: 1rem; padding: 0.9rem 1rem 1rem; }
  .quick__cell--chair { flex-direction: column; gap: 0.5rem; }

  .cal__row { grid-template-columns: 4rem 1fr; gap: 1rem; }

  .docs { display: block; }
  .docs__side { position: static; padding-right: 0; margin-bottom: 2rem; }
  .docs__all { width: 100%; }
  .doc { grid-template-columns: 1fr auto; grid-template-areas: "y f" "t t" "m m"; padding: 1rem; margin-inline: -1rem; }

  .cbm__row--head h2 { grid-column: 1; }
  .cbm__row, .cbm__row--rec { grid-template-columns: 1fr; }
  .cbm__row:nth-child(2) { display: flex; flex-direction: column-reverse; gap: 2.5rem; }
  .facts { flex-direction: row; flex-wrap: wrap; gap: 1.25rem 2rem; max-width: none; }
  .cbm__para { font-size: var(--step-lead); }
  .cbm__row--rec { gap: 2.5rem; }

  .sg { grid-template-columns: 1fr; gap: 2.5rem; }
  .sg__photo { width: 72%; }

  .gal__head { padding-inline: var(--m); }
  .gal__ctrl .round { display: none; }
  .gal__row { --h: 62svh; gap: 8px; padding-inline: var(--m); scroll-padding-inline: var(--m); scroll-snap-type: x mandatory; }
  .mod--tall { width: 72vw; }
  .mod--pair { width: 64vw; gap: 8px; }
  .mod--wide { width: 88vw; height: 70%; align-self: center; }

  .pubs__title span + span { padding-left: 0; }
  .shelf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42vw; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--m) * -1); padding-inline: var(--m); scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .book { scroll-snap-align: start; }
  .digest thead { display: none; }
  .digest, .digest tbody, .digest tr { display: block; }
  .digest tr { display: grid; grid-template-columns: 1fr auto; padding: 0.85rem 1rem; gap: 0.15rem 1rem; }
  .digest th, .digest td { padding: 0; }
  .digest th[scope="row"] { grid-column: 1 / -1; width: auto; font-size: var(--step-lead); }
  .digest th[scope="row"]:empty { display: none; }
  .digest td:nth-child(2) { grid-column: 1; }
  .digest td:nth-child(3) { grid-column: 1; font-size: var(--step-small); }
  .digest td:last-child { grid-column: 2; grid-row: span 2; align-self: center; }
  .digest th[scope="row"]:not(:empty) ~ td:last-child { grid-row: 2 / span 2; }

  .contact { display: grid; grid-template-columns: 96px 1fr; gap: 2rem 1.25rem; }
  .contact__s { grid-column: 1 / -1; font-size: var(--step-lead); }
  .contact__img { grid-column: 1; width: 96px; }
  .contact__links { grid-column: 2; overflow-wrap: anywhere; }

  .foot__row { display: flex; flex-direction: column; gap: 3rem; }
  .foot__places a { font-size: var(--step-lead); }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__legal p a { margin-left: 0; margin-right: 0.9rem; }
  .foot__mark { font-size: 30.5vw; }
}
@media (max-width: 420px) {
  .ncards { grid-template-columns: 1fr; }
  .brand__short { font-size: 1.2rem; }
  .tools { gap: 0.5rem; }
}

/* =====================================================================
   Strict layer: the manner of institutional sites (SCO Secretariat,
   Kazakh Invest): one sans face, white panels on a light grey ground,
   the CICA blue for action, a clear grid with one content width.
   ===================================================================== */
:root {
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --panel: #FFFFFF;
  --line: #DCE3EA;
  --r: 6px;
  --wrap: 1376px;
  --gutter: max(var(--m), calc((100% - var(--wrap)) / 2));
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --step-head: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  --step-display: clamp(3rem, 1.2rem + 5vw, 6rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --panel: #0E1D2C; --line: #1D3348; }
}
:root[data-theme="dark"] { --panel: #0E1D2C; --line: #1D3348; }

body { line-height: 1.6; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
.head { letter-spacing: -0.015em; font-weight: 600; }

/* header: a white bar with a hairline, upper-case menu */
.bar, .bar.is-scrolled { background: var(--panel); }
.brand__short { font-weight: 700; letter-spacing: 0.06em; }
.nav__top { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.drop { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.drop__title { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; font-weight: 600; }
.theme, .ico, .bar.is-scrolled .theme, .bar.is-scrolled .ico { background: var(--bg); }
.btn--ghost, .bar.is-scrolled .btn--ghost { background: var(--accent); color: var(--accent-ink); border-radius: var(--r); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--accent-strong); color: var(--accent-ink); } }
.btn { border-radius: var(--r); }
.round { border-radius: var(--r); background: var(--panel); }

/* ---------- home: one width for every block ---------- */
.top, .hsec, .map__in { padding-inline: var(--gutter); }
.hsec { padding-top: clamp(3.5rem, 6vw, 5rem); }
.hsec.gal { padding-inline: var(--gutter); }
.hsec.gal .gal__head { padding-inline: 0; }
#main > .hsec:last-child { padding-bottom: clamp(4rem, 7vw, 6rem); }

.shead { align-items: center; margin-bottom: 1.5rem; }
.shead__h { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.25rem); font-weight: 600; letter-spacing: -0.01em; max-width: none; }
.shead__h--sub { font-size: var(--step-lead); }
.shead__more {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0 1rem;
  border-radius: var(--r); background: var(--panel);
  font-size: 0.875rem; font-weight: 600; color: var(--accent);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .shead__more:hover { background: var(--accent); color: var(--accent-ink); } }

/* first screen: the lead story large, the organisation beside it */
.top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 16px; padding-top: 24px; }
.top__main { min-width: 0; }
.top__lead {
  position: relative; display: block; height: 100%; min-height: clamp(420px, 64vh, 660px);
  overflow: hidden; border-radius: var(--r); background: var(--field); color: #fff; text-decoration: none;
}
.top__frame { position: absolute; inset: 0; }
.top__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.top__cap {
  position: absolute; left: 0; bottom: 0; max-width: min(900px, 94%);
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 2.2vw, 2rem);
  background: var(--field); border-top-right-radius: var(--r);
}
.top__t { font-size: clamp(1.25rem, 0.95rem + 0.9vw, 1.875rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) { .top__lead:hover img { transform: scale(1.03); } }

.top__side { display: flex; flex-direction: column; gap: 16px; }
.top__id {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem); border-radius: var(--r);
  background: #0B5AA6; color: #fff;
}
.top__logo { width: 84px; height: 84px; object-fit: contain; padding: 10px; border-radius: 50%; background: #fff; margin-bottom: auto; }
.top__h { font-size: clamp(3rem, 1.8rem + 3.4vw, 5.25rem); font-weight: 700; letter-spacing: 0.03em; line-height: 1; }
.top__name { font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; color: rgb(255 255 255 / 0.88); }
.top__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.top__tile {
  position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem 1.25rem;
  background: var(--panel); border-radius: var(--r); text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.top__n { font-size: clamp(2.25rem, 1.8rem + 1.2vw, 3rem); font-weight: 600; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.top__l { font-size: 0.9375rem; line-height: 1.35; }
.top__a { position: absolute; top: 1rem; right: 1.1rem; color: var(--accent); transition: transform var(--t-hover) var(--ease-out); }
.top__tile:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .top__tile:hover { background: var(--accent); color: var(--accent-ink); } .top__tile:hover .top__n, .top__tile:hover .top__a { color: var(--accent-ink); } .top__tile:hover .top__a { transform: translateX(4px); } }

/* press releases: white cards with the photograph on top */
.hsec--news { padding-top: clamp(3rem, 5vw, 4rem); }
.ncards { gap: 16px; }
.ncard {
  position: relative; height: 100%; gap: 0; background: var(--panel); border-radius: var(--r); overflow: hidden;
  transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.ncard__img { aspect-ratio: 16 / 10; border-radius: 0; }
.ncard__t { padding: 1rem 1.15rem 2.75rem; font-size: 1rem; font-weight: 500; line-height: 1.45; }
.ncard__a { position: absolute; left: 1.15rem; bottom: 0.9rem; color: var(--accent); transition: transform var(--t-hover) var(--ease-out); }
.ncard:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .ncard:hover .ncard__a { transform: translateX(4px); } }

/* dimensions: five panels with a drawn sign each */
.dimtiles { gap: 16px; }
.dimtile {
  flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; min-height: 176px;
  padding: 1.35rem 1.35rem 1.5rem; background: var(--panel); color: var(--ink); border-radius: var(--r);
  font-size: 1.0625rem; font-weight: 600; line-height: 1.3;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.dimtile:nth-child(even) { background: var(--panel); }
.dimtile::after { color: var(--accent); }
.dimtile__i { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .dimtile:hover { background: var(--accent); color: var(--accent-ink); }
  .dimtile:hover .dimtile__i { stroke: var(--accent-ink); }
}

/* secretariat: a navy panel inside the content width */
.sg {
  margin: clamp(3.5rem, 6vw, 5rem) var(--gutter) 0; padding: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; border-radius: var(--r);
}
.sg__photo { border-radius: 4px; }
.sg .sg__role { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--dot); }
.sg .sg__kicker { margin: 0.6rem 0 0; font-size: var(--step-lead); color: var(--on-field-muted); }
.sg .head { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); }
.sg__links { gap: 10px; margin-top: 2rem; }
.sg__links .link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid rgb(255 255 255 / 0.28); border-radius: var(--r);
  text-decoration: none; font-size: 0.9375rem; font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .sg__links .link:hover { background: var(--on-field); color: var(--field); } }

/* gallery: framed pictures in one row */
.gal__row { --h: clamp(300px, 42vh, 420px); gap: 16px; padding-inline: 0; }
.mod a, a.mod { border-radius: var(--r); }

/* events, holidays, bodies, digest, organisations: white panels */
.twoup { gap: 16px; }
.twoup > div, .bodies3__col, #publications .shelf, #digest .rows {
  background: var(--panel); border-radius: var(--r); padding: clamp(1.25rem, 2vw, 1.75rem);
}
.twoup .rows, #digest .rows { max-width: none; }
.twoup .row, #digest .row { margin-inline: 0; padding-inline: 0.75rem; border-radius: 4px; }
.rows li + li { margin-top: 2px; }
.twoup .shead, .bodies3__col .shead { margin-bottom: 0.75rem; }
.twoup .shead__h { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); }
.row__t { font-size: 1rem; }

.bodies3 { gap: 16px; }
.bodies3__h { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 0.75rem; color: var(--accent); }
.bodies3__list li + li { margin-top: 2px; }
.bodies3__list a { background: transparent; padding: 0.7rem 0.75rem; font-size: 1rem; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .bodies3__list a:hover { background: var(--bg); color: var(--accent); } .bodies3__list a:hover::after { color: var(--accent); } }

#publications .shelf { margin-top: 0; gap: clamp(1rem, 2vw, 2rem); }
.book img { border-radius: 3px; background: var(--bg); }
.book span { font-weight: 500; }
#digest .rows { columns: 2 24rem; column-gap: 2rem; }
#digest .rows li { margin: 0 0 2px; }

.twoup--orgs > div { padding: clamp(1.25rem, 2vw, 1.75rem); }
.orgs2 { gap: 0; }
.orgs2 .org { margin: 0; background: transparent; padding: 0.6rem 0.75rem; border-radius: 4px; }
.org img { border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .orgs2 .org:hover { background: var(--bg); color: var(--accent); } }

/* ---------- the map of the Conference, as in the first version ---------- */
.map { margin-top: clamp(3.5rem, 6vw, 5rem); padding: clamp(3.5rem, 6vw, 5rem) 0; }
.map__head { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: 0; }
.map__h { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.25rem); font-weight: 600; letter-spacing: -0.01em; }
.map__h a { color: inherit; text-decoration: none; }
.seg button { border-radius: var(--r); }
.map__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 30%); gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3rem); align-items: start; }
.map__canvas { position: relative; top: auto; }
.map__side { display: flex; flex-direction: column; }
.states__h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; padding-bottom: 0.25rem; }
.states__h a { color: var(--on-field); text-decoration: none; }
.states__h span { color: var(--on-field-muted); font-variant-numeric: tabular-nums; }
.states + .states__h { margin-top: 2rem; }
.map__side .states { columns: 2; column-gap: 1.25rem; margin-top: 0.6rem; font-size: 0.9375rem; }
.map__side .states li { break-inside: avoid; }
.map__side .states a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0; color: var(--on-field); text-decoration: none; transition: color var(--t-hover) ease, opacity var(--t-hover) ease;
}
.map__side .states a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }
.map__side .states li.is-observer a::before { background: transparent; border: 2px solid var(--dot); }
.map__side .states li.is-dim a { opacity: 0.4; }
.map__side .states li.is-hot a { color: var(--sky); }
@media (hover: hover) and (pointer: fine) { .map__side .states a:hover { color: var(--sky); } }
.land { fill: #10365A; }
.land.is-m { fill: #1C5486; }
.land.is-o { fill: #164673; }
.land.is-dim { fill: #10365A; }
.land.is-hot { fill: #3E86C6; }
.mspoke { stroke: var(--dot); stroke-width: 1.2; opacity: 0.35; transition: opacity 300ms ease; }
.mlabel text { font-family: var(--font); font-weight: 600; font-size: 20px; }

@media (max-width: 1080px) {
  .top { grid-template-columns: 1fr; }
  .top__lead { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .top__side { display: grid; grid-template-columns: 1fr 1fr; }
  .top__id { grid-row: span 1; }
  .top__tiles { grid-template-columns: 1fr; }
  .dimtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map__body { grid-template-columns: 1fr; }
  .map__side { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .map__side .states__h:nth-of-type(2) { grid-column: 2; grid-row: 1; margin-top: 0; }
  .map__side #states-obs { grid-column: 2; grid-row: 2; }
  .map__side .states { columns: 2; }
  .map__side #states-obs { columns: 1; }
}
@media (max-width: 860px) {
  .top { padding-top: 12px; gap: 12px; }
  .top__side { display: flex; flex-direction: column; gap: 12px; }
  .top__lead { aspect-ratio: auto; display: flex; flex-direction: column; }
  .top__frame { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .top__cap { position: static; max-width: none; border-radius: 0; }
  .top__id { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.75rem 1rem; }
  .row--nodate { grid-template-columns: 1fr auto; grid-template-areas: "t a"; align-items: center; }
  #publications .shelf { margin-inline: 0; padding-inline: 1rem; grid-auto-columns: 46%; }
  .top__logo { width: 56px; height: 56px; padding: 6px; margin: 0; }
  .top__name { flex-basis: 100%; }
  .top__tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ncards, .dimtiles, .twoup, .bodies3 { gap: 12px; }
  .dimtiles { grid-template-columns: 1fr 1fr; }
  .dimtile { min-height: 140px; }
  .sg { grid-template-columns: 1fr; margin-inline: var(--m); }
  .sg__photo { width: 100%; max-width: 280px; }
  .gal__row { --h: 56svh; padding-inline: 0; }
  .map__canvas { margin-inline: 0; }
  .map__side { display: flex; }
  .map__canvas, .map__side .states, .map__side .states__h { order: 0; grid-column: auto; grid-row: auto; }
  .map__side .states, .map__side #states-obs { columns: 2; }
  .map__side .states + .states__h { margin-top: 2rem; }
  #digest .rows { columns: 1; }
}
@media (max-width: 420px) {
  .ncards { grid-template-columns: 1fr; }
  .dimtiles { grid-template-columns: 1fr; }
  .dimtile { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; padding-right: 3rem; }
  .dimtile__i { width: 32px; height: 32px; flex: none; }
}

/* the footer stays a plain institutional footer */
.foot__mark { display: none; }

/* multi-line titles get room between lines */
.top__t, .sg .head, .bodies3__h, .shead__h, .map__h, .twoup .shead__h { line-height: 1.3; }

/* =====================================================================
   Home, modern pass: figures under the name, a news slider with its
   headlines, calendar dates, document cards, a wall of logos.
   ===================================================================== */
.bar.is-scrolled { background: color-mix(in srgb, var(--panel) 84%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.hsec { padding-top: clamp(3.5rem, 6vw, 5.5rem); }

/* name and figures */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem 3rem; padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(1.25rem, 2vw, 1.75rem); }
.intro__id { display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: center; }
.intro__logo { grid-row: span 2; width: 80px; height: 80px; object-fit: contain; padding: 10px; border-radius: 50%; background: #fff; }
.intro__h { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4rem); font-weight: 700; letter-spacing: 0.04em; line-height: 1; color: var(--accent); }
.intro__name { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; margin-top: 0.35rem; }
.intro__stats { display: grid; grid-template-columns: repeat(4, minmax(132px, 1fr)); gap: 10px; }
.stat {
  display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 0.95rem 1.1rem 1.05rem;
  background: var(--panel); border-radius: var(--r); text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform 220ms var(--ease-out);
}
.stat__n { font-size: 2.25rem; font-weight: 600; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; transition: color var(--t-hover) ease; }
.stat__l { font-size: 0.875rem; line-height: 1.35; color: var(--muted); transition: color var(--t-hover) ease; }
.stat:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .stat:hover { background: var(--accent); transform: translateY(-3px); }
  .stat:hover .stat__n, .stat:hover .stat__l { color: var(--accent-ink); }
}

/* news slider and its headlines */
.hub { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr); gap: 16px; padding-inline: var(--gutter); }
.hub__stage { position: relative; display: grid; overflow: hidden; border-radius: var(--r); background: var(--field); min-height: clamp(420px, 60vh, 620px); isolation: isolate; }
.hub__slide {
  grid-area: 1 / 1; position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity 700ms ease, visibility 0s linear 700ms;
}
.hub__slide.is-on { opacity: 1; visibility: visible; z-index: 1; transition: opacity 700ms ease; }
.hub__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 7600ms linear; }
.hub__slide.is-on img { transform: scale(1); }
.hub__cap { position: absolute; left: 0; bottom: 0; max-width: min(860px, 90%); padding: 1.4rem 1.75rem 4.1rem; background: var(--field); border-top-right-radius: var(--r); }
.hub__t { display: block; font-size: clamp(1.25rem, 0.95rem + 0.9vw, 1.75rem); font-weight: 600; line-height: 1.3; transform: translateY(10px); opacity: 0; transition: transform 700ms var(--ease-out) 150ms, opacity 700ms ease 150ms; }
.hub__slide.is-on .hub__t { transform: none; opacity: 1; }
.hub__ctrl { position: absolute; z-index: 2; left: 1.75rem; bottom: 1.15rem; display: flex; align-items: center; gap: 0.5rem; color: #fff; }
.hub__count { margin-right: 0.6rem; font-size: 0.875rem; color: rgb(255 255 255 / 0.72); font-variant-numeric: tabular-nums; }
.hub__count b { color: #fff; font-weight: 600; }
.hub__btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.14); color: #fff; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.hub__btn:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .hub__btn:hover { background: #fff; color: var(--field); } .hub__slide:hover img { transform: scale(1.02); } }
.hub__bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / 0.16); }
.hub__bar span { display: block; height: 100%; background: var(--dot); transform-origin: left; transform: scaleX(0); animation: hubbar 7000ms linear forwards; }
.is-paused .hub__bar span { animation-play-state: paused; }
@keyframes hubbar { to { transform: scaleX(1); } }

.hub__side { display: flex; flex-direction: column; padding: 1.25rem 1rem 1rem; background: var(--panel); border-radius: var(--r); }
.hub__side .shead { margin: 0 0.25rem 0.75rem; }
.hub__side .shead__h { font-size: 1.5rem; }
.hub__side .shead__more { background: var(--bg); }
.hub__list { display: flex; flex-direction: column; gap: 4px; }
.hub__item { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 0.9rem; align-items: center; padding: 0.55rem; border-radius: 6px; text-decoration: none; transition: background-color var(--t-hover) ease; }
.hub__item::before { content: ""; position: absolute; left: -1rem; top: 0.7rem; bottom: 0.7rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); transform: scaleY(0); transition: transform 300ms var(--ease-out); }
.hub__thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--surface); }
.hub__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hub__it { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--t-hover) ease; }
.hub__item.is-on { background: var(--bg); }
.hub__item.is-on::before { transform: none; }
.hub__item.is-on .hub__it { color: var(--accent); }

/* dimensions: the sign in a tinted square */
.dimtile { transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform 220ms var(--ease-out); }
.dimtile__i { width: 56px; height: 56px; padding: 13px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 11%, transparent); transition: background-color var(--t-hover) ease, stroke var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .dimtile:hover { transform: translateY(-4px); } .dimtile:hover .dimtile__i { background: rgb(255 255 255 / 0.16); } }

/* secretariat */
.sg__photo { aspect-ratio: 1; }
.sg__photo img { object-position: 50% 25%; }

/* gallery: the title under each picture */
.gal__row { --h: clamp(320px, 46vh, 440px); }
.gal__row a.mod { display: flex; flex-direction: column; background: var(--panel); }
.gal__row a.mod img { flex: 1; min-height: 0; }
.gal__row .mod span { position: static; max-width: none; padding: 0.75rem 0.95rem 0.85rem; background: var(--panel); font-size: 0.9375rem; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .gal__row a.mod:hover span { background: var(--panel); color: var(--accent); } }

/* events and national days */
.evs, .cals { display: flex; flex-direction: column; gap: 6px; }
.ev { display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center; padding: 0.75rem 1rem 0.75rem 0.75rem; border-radius: 6px; background: var(--bg); text-decoration: none; transition: background-color var(--t-hover) ease; }
.ev__i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--panel); fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.ev__t { line-height: 1.4; font-weight: 500; }
.cal { display: grid; grid-template-columns: 62px 1fr auto; gap: 1rem; align-items: center; padding: 0.5rem 1rem 0.5rem 0.5rem; border-radius: 6px; text-decoration: none; transition: background-color var(--t-hover) ease; }
.cal__d { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 8px; background: #0B5AA6; color: #fff; line-height: 1; }
.cal__d b { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal__d small { font-size: 0.75rem; margin-top: 0.25rem; opacity: 0.9; }
.cal__t { display: flex; flex-direction: column; gap: 0.1rem; line-height: 1.35; }
.cal__t b { font-weight: 600; }
.cal__t span { font-size: 0.9375rem; color: var(--muted); }
.ev .row__a, .cal .row__a { transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ev:hover { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
  .cal:hover { background: var(--bg); }
  .ev:hover .row__a, .cal:hover .row__a { transform: translateX(4px); }
}

/* the three kinds of bodies */
.bodies3__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.bodies3__i { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 11%, transparent); fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bodies3__n { font-size: 2.25rem; font-weight: 600; line-height: 1; color: color-mix(in srgb, var(--accent) 38%, transparent); font-variant-numeric: tabular-nums; }
.bodies3__h { color: var(--ink); }

/* digest: one card per issue */
.dgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dg {
  position: relative; display: flex; flex-direction: column; gap: 1.25rem; height: 100%; padding: 1.15rem 1.15rem 1.25rem;
  background: var(--panel); border-radius: var(--r); text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform 220ms var(--ease-out);
}
.dg__i { width: 38px; height: 38px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; transition: stroke var(--t-hover) ease; }
.dg__t { flex: 1; font-weight: 500; line-height: 1.4; }
.dg__f { align-self: flex-start; padding: 0.2rem 0.55rem; border-radius: 4px; background: var(--bg); color: var(--accent); font-size: 0.8125rem; font-weight: 600; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .dg:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-4px); }
  .dg:hover .dg__i { stroke: var(--accent-ink); }
  .dg:hover .dg__f { background: rgb(255 255 255 / 0.18); color: var(--accent-ink); }
}

/* organisations: a wall of logos */
.orgwall { display: flex; flex-direction: column; gap: clamp(2.5rem, 4vw, 3.5rem); }
.orgrow .shead { margin-bottom: 1rem; }
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.logo { display: flex; flex-direction: column; gap: 1rem; height: 100%; padding: 1rem 1rem 1.15rem; background: var(--panel); border-radius: var(--r); text-decoration: none; transition: transform 220ms var(--ease-out), color var(--t-hover) ease; }
.logo__img { display: grid; place-items: center; height: 84px; border-radius: 4px; background: #fff; }
.logo__img img { max-width: 72%; max-height: 60px; object-fit: contain; }
.logo__t { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .logo:hover { transform: translateY(-4px); color: var(--accent); } }

/* cards lift a little under the pointer */
@media (hover: hover) and (pointer: fine) {
  .book:hover img { transform: translateY(-6px); }
}

@media (max-width: 1180px) {
  .intro { grid-template-columns: 1fr; }
  .hub { grid-template-columns: 1fr; }
  .hub__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .dgs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .intro { padding-top: 1.5rem; gap: 1.25rem; }
  .intro__logo { width: 60px; height: 60px; padding: 7px; }
  .intro__stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { min-width: 0; }
  .hub { gap: 12px; }
  .hub__stage { min-height: 0; }
  .hub__slide { display: flex; flex-direction: column; }
  .hub__slide img { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 10; }
  .hub__cap { position: relative; max-width: none; flex: 1; border-radius: 0; padding: 1.1rem 1.25rem 4rem; }
  .hub__ctrl { left: 1.25rem; }
  .hub__list { display: flex; }
  .hub__item::before { left: -0.75rem; }
  .hub__side { padding: 1rem 0.75rem 0.75rem; }
  .dgs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .logos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gal__row { --h: 52svh; }
}
@media (max-width: 420px) {
  .hub__item { grid-template-columns: 76px 1fr; }
  .dgs { grid-template-columns: 1fr; }
}
.hub__it, .logo__t, .cal__t span, .gal__row .mod span, .stat__l { font-size: 1rem; }
.ev .row__a, .cal .row__a { grid-area: auto; }
@media (max-width: 860px) {
  .dg { flex-direction: row; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; }
  .dg__i { width: 30px; height: 30px; flex: none; }
  .dg__f { align-self: center; }
  .ev { padding-right: 0.75rem; gap: 0.75rem; }
}
.intro { grid-template-columns: minmax(340px, 1fr) minmax(0, 1.25fr); }
.intro__logo { flex: none; min-width: 80px; }
.intro__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub__cap { max-width: min(900px, 94%); }
.hub__t { font-size: clamp(1.2rem, 0.95rem + 0.7vw, 1.55rem); }
@media (max-width: 1180px) { .intro { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .intro__stats { grid-template-columns: 1fr 1fr; } .intro__logo { min-width: 60px; } }
.bodies3__n { color: var(--accent); }

/* =====================================================================
   Inner pages in the manner of the home page: a navy title band,
   the section menu and the text on white panels that overlap it.
   ===================================================================== */
.phead, .phead--wide {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) var(--gutter) calc(clamp(2rem, 4vw, 3rem) + 56px);
  background: var(--field); color: var(--on-field);
}
.phead .crumbs, .phead--wide .crumbs { padding-top: 0; order: 0; }
.phead__main { order: 1; }
.phead .crumbs ol { font-size: 0.875rem; color: var(--on-field-muted); }
.phead .crumbs a { color: var(--on-field-muted); }
.phead .crumbs [aria-current] { color: var(--on-field); }
@media (hover: hover) and (pointer: fine) { .phead .crumbs a:hover { color: #fff; } }
.phead h1.head { font-size: clamp(2rem, 1.35rem + 2.1vw, 3.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; max-width: 28ch; color: #fff; }
.phead h1.art__title { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.5rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; max-width: 44ch; color: #fff; }

.pbody, .pwrap { position: relative; margin-top: -56px; padding: 0 var(--gutter) clamp(4rem, 7vw, 6rem); }
.pbody { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.pmain #content, .pmain .prose--site {
  max-width: none; background: var(--panel); border-radius: var(--r);
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3.5vw, 3rem) clamp(1.75rem, 3.5vw, 3rem);
}
.prose--site:not(.prose--wide) > p, .prose--site:not(.prose--wide) > ul, .prose--site:not(.prose--wide) > ol,
.prose--site:not(.prose--wide) > h2, .prose--site:not(.prose--wide) > h3, .prose--site:not(.prose--wide) > h4 { max-width: 76ch; }
.prose--site { line-height: 1.7; }
.prose--site h2 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.3; }
.prose--site h3, .prose--site h4 { line-height: 1.4; }
.prose--site img { border-radius: 4px; }
#content > img:first-child, #content > p:first-child > img:only-child { width: 100%; max-height: 640px; object-fit: contain; background: var(--bg); margin-top: 0; }

/* section menu */
.side { position: sticky; top: calc(var(--bar-h) + 16px); padding: 1.1rem 0.75rem 0.9rem; background: var(--panel); border-radius: var(--r); max-height: calc(100vh - var(--bar-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
.side__title { padding: 0 0.75rem 0.6rem; margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.side__title ~ .side__title { margin-top: 1rem; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 6px; font-size: 0.9375rem; line-height: 1.35; color: var(--ink); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.side nav a::before { content: none; }
.side nav a[aria-current] { background: color-mix(in srgb, var(--accent) 10%, var(--panel)); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
@media (hover: hover) and (pointer: fine) { .side nav a:not([aria-current]):hover { background: var(--bg); color: var(--accent); } }

/* list head: count and filter */
.lib__head { align-items: center; margin-bottom: 1.25rem; padding-bottom: 1.25rem; box-shadow: 0 1px 0 var(--bg); }
.lib__h { font-size: 1.0625rem; font-weight: 500; color: var(--muted); }
.lib__h span { color: var(--accent); font-weight: 600; font-size: 1.5rem; margin: 0 0.25rem 0 0; }
.filter { background: var(--bg); border-radius: var(--r); }
.filter:focus-within { outline-offset: 0; }

/* news and other dated lists */
#content .rows li + li { margin-top: 4px; }
#content .row { grid-template-columns: 7.5rem 1fr 1.5rem; align-items: center; margin-inline: 0; padding: 0.9rem 1rem; border-radius: 6px; background: var(--bg); transition: background-color var(--t-hover) ease, transform 200ms var(--ease-out); }
#content .row time { display: inline-flex; align-self: center; justify-self: start; padding: 0.2rem 0.55rem; border-radius: 4px; background: var(--panel); color: var(--accent); font-size: 0.875rem; font-weight: 600; }
#content .row--nodate { grid-template-columns: 1fr 1.5rem; }
#content .row__t { font-weight: 500; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) { #content .row:hover { background: color-mix(in srgb, var(--accent) 9%, var(--bg)); } }
.prose--wide .rows { max-width: none; }

/* documents */
.ldoc { margin-inline: 0; padding: 1rem 1.1rem; border-radius: 6px; background: var(--bg); align-items: center; grid-template-columns: 4.5rem 1fr auto; }
.ldoc + .ldoc { margin-top: 4px; }
.ldoc__y { align-self: start; font-size: 1.125rem; }
.ldoc__t { line-height: 1.45; }
.ldoc__m { font-size: 0.9375rem; }
#content .ldoc__f a { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.7rem; border-radius: 4px; background: var(--panel); color: var(--accent); font-weight: 600; font-size: 0.875rem; }
@media (hover: hover) and (pointer: fine) {
  .ldoc:hover { background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
  #content .ldoc__f a:hover { background: var(--accent); color: var(--accent-ink); }
}

/* directories of states and organisations */
.prose--site .dirwrap .dir__g { padding: 0.75rem; border-radius: 6px; }
.dir__l { font-weight: 700; }
.ent__m { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { #content a.ent__link:hover { color: var(--accent) !important; } }

/* tables */
.tablewrap { border-radius: 6px; }
.tablewrap thead th { background: var(--field); color: var(--on-field); }
.tablewrap tbody tr:nth-child(odd) { background: var(--bg); }
.tablewrap td[colspan] { background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }

/* pager */
.pager { margin-top: 2rem; }
.pager a, .pager span { border-radius: 6px; background: var(--bg); }
#content .pager a { color: var(--ink); text-decoration: none; }
.pager [aria-current] { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { #content .pager a:hover { background: var(--accent); color: var(--accent-ink); } }

/* albums and photographs */
.albums { gap: 1.5rem 16px; }
.album__img, .photos a { border-radius: 6px; }
.photos { gap: 8px; }
.album:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .album:hover .album__img img, .photos a:hover img { transform: scale(1.04); } .album:hover b { color: var(--accent); } }

/* team */
#content .person { padding: 1rem; border-radius: 6px; background: var(--bg); }
#content .person img { border-radius: 4px; }

/* forms */
.login input { background: var(--bg); border-radius: var(--r); }
.empty-state { background: var(--bg); border-radius: var(--r); }

@media (max-width: 1080px) {
  .pbody { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .phead, .phead--wide { padding-bottom: calc(1.75rem + 40px); }
  .pbody, .pwrap { margin-top: -40px; }
  .pbody { display: flex; flex-direction: column; gap: 12px; }
  .side { position: static; max-height: none; width: 100%; padding: 0.9rem 0.75rem; }
  .side nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side nav a { padding: 0.45rem 0.8rem; background: var(--bg); }
  .side nav a[aria-current] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
  .side__title { padding-bottom: 0.6rem; }
  .pmain { width: 100%; }
  #content .row { grid-template-columns: 1fr auto; grid-template-areas: "k a" "t t"; gap: 0.5rem 1rem; }
  #content .row--nodate { grid-template-areas: "t a"; }
  .ldoc { grid-template-columns: 1fr; grid-template-areas: "y" "t" "m" "f"; margin-inline: 0; }
  #content .person { grid-template-columns: 88px 1fr; }
}
.lib__head { box-shadow: none; }
.side nav a[aria-current] { box-shadow: none; position: relative; }
.side nav a[aria-current]::before { content: ""; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
@media (max-width: 860px) {
  .side nav a[aria-current]::before { content: none; }
  .phead h1.art__title { font-size: 1.375rem; }
}
#content .ent { display: flex; flex-direction: column; gap: 0.1rem; }
#content .ent--org { flex-direction: row; align-items: center; }
.ent__m { font-size: 0.875rem; }
.pwrap .pmain > .prose--site:not(.prose--wide) { max-width: 1040px; }
.side nav a[aria-current]::before { width: 3px; height: auto; transform: none; flex: none; }
/* pages that list organisations as logo + name */
#content:has(> a > img + h4) { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: stretch; }
#content:has(> a > img + h4) > * { margin: 0; }
#content:has(> a > img + h4) > :not(a) { grid-column: 1 / -1; }
#content > a:has(> img + h4) {
  display: flex; flex-direction: column; gap: 1rem; padding: 1rem 1rem 1.15rem; border-radius: 6px; background: var(--bg);
  color: var(--ink); text-decoration: none; transition: transform 220ms var(--ease-out), color var(--t-hover) ease;
}
#content > a:has(> img + h4) img { width: 100%; height: 120px; margin: 0; padding: 1rem; object-fit: contain; background: #fff; border-radius: 4px; }
#content > a:has(> img + h4) h4 { margin: 0; color: inherit; font-size: 1rem; font-weight: 600; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { #content > a:has(> img + h4):hover { transform: translateY(-4px); color: var(--accent); } }
/* the long name beside the logo stays inside the bar with room above and below */
.brand__long { font-size: 0.8125rem; line-height: 1.3; margin-top: 0.15rem; max-width: 36ch; }
