/* Civic MaaS: shared styles for civicmaas.com
   Layout: light header, navy hero on the home page, light surfaces for evidence; one 72rem reading column. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  /* colours from the approved logo */
  --navy: #043657;          /* logo outline */
  --ink: #0B2E4A;           /* body text */
  --blue-deep: #034977;     /* links and buttons on light */
  --blue: #107AAF;          /* central projection, accents */
  --blue-bright: #1BA0D3;
  --teal: #037A75;          /* wordmark teal, accents on light */
  --teal-bright: #36D6B6;   /* accents on navy */
  --green: #11984E;         /* small highlights only */
  --green-bright: #48BB53;
  /* data-only colour for the high-price case, as in the approved chart */
  --copper: #A2541A;
  --copper-wash: #F6E6D6;
  /* surfaces */
  --white: #FFFFFF;
  --ice: #F2F6FA;
  --tint: #E6EFF6;
  --border: #CBD8E3;
  --muted: #4A6278;
  --focus: #F2B705;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;

  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: 1.2rem;
  --t-h3: 1.3rem;
  --t-h2: clamp(1.75rem, 1.35rem + 1.4vw, 2.4rem);
  --t-h1: clamp(2.35rem, 1.5rem + 3.2vw, 3.9rem);

  --wrap: 72rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: var(--t-body); line-height: 1.6; font-variant-numeric: lining-nums; }
img, svg { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--blue-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 620; line-height: 1.15; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: var(--t-h1); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0; max-width: 66ch; }
ul { margin: 0; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 12px; color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7rem 1.25rem; border-radius: 8px; font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue-deep); color: #fff; }
.btn-light { background: #E8F7F3; color: var(--navy); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--ice); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; flex-wrap: wrap; }
.logo { display: block; flex: none; }
.logo img { height: 124px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.nav a { color: var(--navy); font-weight: 700; font-size: 0.98rem; text-decoration: none; padding: 0.6rem 0.85rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--ice); }
.nav a[aria-current="page"] { background: var(--ice); }
.nav a.case { box-shadow: inset 0 0 0 2px var(--teal); }
.nav a.case[aria-current="page"] { background: #E3F5F1; }
@media (max-width: 560px) {
  .logo img { height: 96px; }
  .nav a { padding: 0.5rem 0.65rem; font-size: 0.93rem; }
}

/* home hero */
.hero { background: var(--navy); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { color: #fff; max-width: 16ch; }
.eyebrow { font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; margin-bottom: 0.9rem; }
.hero .eyebrow { color: var(--teal-bright); }
.hero .intro { font-size: var(--t-lead); line-height: 1.55; margin: 1.25rem 0 1.75rem; color: #E3EDF5; max-width: 44ch; }
.video-slot { background: #0A4A72; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); overflow: hidden; }
.video-frame { aspect-ratio: 16 / 9; width: 100%; max-width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35rem; padding: clamp(1rem, 3vw, 1.6rem); background: linear-gradient(0deg, rgba(4,54,87,0.92), rgba(4,54,87,0.92)), repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 12px, transparent 12px 24px); }
.video-frame .label { font-weight: 700; color: var(--teal-bright); font-size: 0.95rem; }
.video-frame .what { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.3; color: #fff; max-width: 26ch; }
.video-frame .when { color: #C8D9E6; font-size: 0.9rem; }
.video-slot iframe, .video-slot video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

/* sections */
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section.ice { background: var(--ice); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 2rem; max-width: 62ch; }
.section-head .eyebrow { color: var(--teal); margin: 0; }
.section-head p { color: var(--muted); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 1rem; }
.prose h3 { margin-top: 0.5rem; }
.flow { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.25rem; }
.flow-title { font-family: var(--serif); font-weight: 620; color: var(--navy); font-size: 1.2rem; margin-bottom: 1rem; }
.flow ol { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.flow li { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.9rem; padding-bottom: 1.25rem; }
.flow li::before { counter-increment: step; content: counter(step); width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--navy); }
.flow li:nth-child(2)::before { background: var(--blue-deep); }
.flow li:nth-child(3)::before { background: var(--teal); }
.flow li:nth-child(4)::before { background: var(--green); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 1.3rem; top: 2.8rem; bottom: 0.2rem; border-left: 2px dashed var(--border); }
.flow b { display: block; color: var(--navy); }
.flow span { color: var(--muted); font-size: 0.95rem; }
.hope { margin-top: 0.5rem; }
.case-text { margin: 0.75rem 0 1.25rem; }
.principles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2.5rem; margin-top: 0.5rem; }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.principles li { border-top: 3px solid var(--tint); padding-top: 0.9rem; }
.principles li:first-child { border-top-color: var(--green-bright); }
.principles b { color: var(--navy); }
.subhead { font-family: var(--serif); font-size: var(--t-h3); color: var(--navy); font-weight: 620; margin: 2.5rem 0 1rem; }

/* case-study link */
.case-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: center; background: var(--white); border: 1px solid var(--border); border-left: 6px solid var(--teal); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 860px) { .case-card { grid-template-columns: minmax(0, 1fr); } }
.case-label { display: inline-block; font-weight: 800; font-size: 0.85rem; color: var(--teal); background: #E3F5F1; border-radius: 999px; padding: 0.2rem 0.7rem; margin-bottom: 0.6rem; }
.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
@media (max-width: 560px) { .case-facts { grid-template-columns: minmax(0, 1fr); } }
.case-facts div { display: grid; gap: 0.15rem; }
.case-facts dt { color: var(--muted); font-size: var(--t-small); order: 2; }
.case-facts dd { margin: 0; font-family: var(--serif); font-weight: 650; font-size: 1.6rem; color: var(--navy); line-height: 1.1; order: 1; }

/* meet Pedro */
.person { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.avatar { width: 128px; height: 128px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; font-weight: 650; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-link { display: block; border-radius: 50%; flex: none; text-decoration: none; color: inherit; }
.avatar-link:hover .avatar { box-shadow: 0 0 0 3px var(--teal-bright); }
.person-link { margin-top: 0.25rem; }
.person .text { flex: 1 1 22rem; min-width: 0; display: grid; gap: 0.5rem; }

/* footer */
.site-footer { background: var(--ice); border-top: 1px solid var(--border); padding-block: 2rem; font-size: var(--t-small); color: var(--muted); }
.site-footer .wrap { display: grid; gap: 0.45rem; }
.site-footer strong { color: var(--navy); }

/* ---------- NHSE page ---------- */
.crumbs { background: var(--ice); border-bottom: 1px solid var(--border); font-size: var(--t-small); }
.crumbs .wrap { padding-block: 0.55rem; }
.crumbs a { font-weight: 700; }
.case-hero { background: var(--white); }
.case-hero .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem); }
@media (max-width: 960px) { .case-hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.case-hero .lead { font-size: var(--t-lead); line-height: 1.55; margin: 1.1rem 0 1.6rem; max-width: 46ch; }
.chart-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(0.9rem, 2.5vw, 1.4rem); }
.chart-card h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.chart-card svg text { font-family: var(--sans); }
.chart-card svg text.v { font-family: var(--serif); }
.legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; list-style: none; padding: 0; margin: 0.6rem 0 0; font-size: var(--t-small); color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.key { display: inline-block; width: 24px; height: 0; border-top: 3px solid var(--navy); }
.key.central { border-top: 3px dashed var(--blue); }
.key.high { height: 10px; border: 0; background: var(--copper-wash); border-bottom: 3px solid var(--copper); }
.key.band { width: 16px; height: 12px; border: 0; background: var(--ice); outline: 1px solid var(--border); }
.chart-note { font-size: var(--t-small); color: var(--muted); margin-top: 0.6rem; }

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
@media (max-width: 820px) { .figures { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } }
.figure { padding: 0.25rem clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--border); display: grid; gap: 0.35rem; align-content: start; }
.figure:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 820px) { .figure { border-left: 0; padding: 0 0 1.25rem; border-bottom: 1px solid var(--border); } .figure:last-child { border-bottom: 0; } }
.figure .label { font-weight: 700; color: var(--muted); font-size: 0.95rem; }
.figure .value { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 1.6rem + 1.6vw, 3rem); line-height: 1.05; color: var(--navy); font-variant-numeric: tabular-nums lining-nums; }
.figure .value.high { color: var(--copper); }
.figure .sub { color: var(--muted); font-size: 0.95rem; }
.assume { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--copper); background: var(--copper-wash); border-radius: 999px; padding: 0.15rem 0.6rem; justify-self: start; }
.central-line { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px dashed var(--border); color: var(--muted); font-size: 0.95rem; max-width: none; }

/* dashboard */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 760px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: grid; gap: 0.2rem; }
.tile .value { font-family: var(--serif); font-weight: 650; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.tile .value small { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--teal); margin-left: 0.2rem; }
.tile .what { font-weight: 700; color: var(--ink); }
.tile .when { color: var(--muted); font-size: var(--t-small); }
.views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .views { grid-template-columns: minmax(0, 1fr); } }
.view { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem; display: grid; gap: 0.75rem; align-content: start; min-width: 0; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.view:hover { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.view h3 { font-size: 1.2rem; }
.view > .meta { color: var(--muted); font-size: 0.85rem; margin-top: -0.4rem; }
.summary { display: grid; gap: 0.7rem; min-width: 0; }
.summary .meta { color: var(--muted); font-size: 0.85rem; }
.view .open { justify-self: start; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.5rem 0.9rem; border-radius: 8px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); font: 700 0.92rem/1.2 var(--sans); cursor: pointer; }
.view .open:hover { background: var(--ice); }
.view .open svg { width: 16px; height: 16px; }
.mini-bars { display: grid; gap: 0.45rem; }
.mini-row { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: 0.6rem; align-items: center; font-size: 0.86rem; }
.mini-row .name { color: var(--ink); line-height: 1.25; }
.pair { display: grid; gap: 3px; }
.bar { height: 10px; border-radius: 2px; background: var(--border); }
.bar.y0 { background: #A9BCCB; }
.bar.y1 { background: var(--blue-deep); }
.keys { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.82rem; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.keys li { display: inline-flex; align-items: center; gap: 0.4rem; }
.sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.split-line { font-size: 0.9rem; background: var(--ice); border-radius: 8px; padding: 0.6rem 0.8rem; max-width: none; }
.stack { display: flex; height: 22px; border-radius: 3px; overflow: hidden; background: var(--ice); }
.stack span { display: block; height: 100%; }
.stack-row { display: grid; gap: 0.25rem; }
.stack-row .yr { font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.region-row { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr) 4.2rem; gap: 0.6rem; align-items: center; font-size: 0.86rem; }
.diverge { position: relative; height: 12px; background: var(--ice); border-radius: 2px; }
.diverge::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 1px solid var(--muted); }
.diverge span { position: absolute; top: 0; height: 100%; border-radius: 2px; }
.region-row .pct { text-align: right; font-variant-numeric: tabular-nums; }

table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums lining-nums; font-size: 0.92rem; }
th, td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--navy); vertical-align: bottom; font-size: 0.82rem; }
td.na { color: var(--muted); font-style: italic; }
.mini-table td, .mini-table th { padding: 0.4rem 0.5rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll table { min-width: 44rem; }
.table-scroll th:first-child, .table-scroll td:first-child { position: sticky; left: 0; background: var(--white); box-shadow: 1px 0 0 var(--border); min-width: 10rem; max-width: 15rem; white-space: normal; }
.up { color: var(--copper); }
.down { color: var(--green); }

/* dialogs */
dialog.viewer { width: min(1100px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 12px; padding: 0; color: var(--ink); background: var(--white); box-shadow: 0 20px 60px rgba(4, 54, 87, 0.35); }
dialog.viewer::backdrop { background: rgba(4, 30, 50, 0.55); }
.viewer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.25rem; background: var(--white); border-bottom: 1px solid var(--border); }
.viewer-head h3 { font-size: 1.25rem; }
.viewer-close { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.45rem 0.9rem; border-radius: 8px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); font: 700 0.95rem/1 var(--sans); cursor: pointer; flex: none; }
.viewer-close:hover { background: var(--ice); }
.viewer-body { padding: 1.1rem 1.25rem 1.5rem; display: grid; gap: 1rem; overflow: auto; }
.viewer-body .meta { color: var(--muted); font-size: 0.88rem; }
.big-bars { display: grid; gap: 0.7rem; }
.big-row { display: grid; grid-template-columns: minmax(9rem, 16rem) minmax(0, 1fr); gap: 0.8rem; align-items: center; border-radius: 6px; padding: 0.2rem 0.3rem; }
.big-row:hover, .big-row:focus-visible { background: var(--ice); }
.big-row .name { font-size: 0.9rem; line-height: 1.3; }
.big-row .pair .bar { height: 14px; }
.readout { min-height: 2.6rem; background: var(--ice); border-radius: 8px; padding: 0.6rem 0.8rem; font-size: 0.92rem; }
.axis { display: grid; grid-template-columns: minmax(9rem, 16rem) minmax(0, 1fr); gap: 0.8rem; font-size: 0.78rem; color: var(--muted); }
.axis .ticks { position: relative; height: 1.2rem; border-top: 1px solid var(--muted); }
.axis .ticks span { position: absolute; top: 0.2rem; transform: translateX(-50%); white-space: nowrap; }
.axis .ticks span:first-child { transform: none; }
.axis .ticks span:last-child { transform: translateX(-100%); }
td.txt, th.txt { text-align: left; }
@media (max-width: 600px) {
  .mini-row, .big-row, .axis { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .axis .ticks { margin-top: 0.2rem; }
  .region-row { grid-template-columns: minmax(0, 1fr) 4rem; }
  .region-row .diverge { grid-column: 1 / -1; grid-row: 2; }
}

/* trust lookup */
.lookup { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.lookup .field { flex: 1 1 26rem; max-width: 40rem; display: grid; gap: 0.35rem; }
.lookup label { font-weight: 700; }
select { width: 100%; min-height: 48px; font: 400 1rem/1.3 var(--sans); color: var(--ink); background: var(--white); border: 2px solid var(--muted); border-radius: 8px; padding: 0.6rem 0.75rem; }
select:focus { border-color: var(--navy); }
.hint { color: var(--muted); font-size: 0.92rem; margin-top: 0.6rem; }
.result { margin-top: 1.5rem; }
.result:empty { margin-top: 0; }
.trust-head { margin-bottom: 1.25rem; }
.trust-head h3 { font-size: 1.5rem; }
.trust-head p { color: var(--muted); font-size: 0.92rem; margin-top: 0.25rem; }
.trust-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 820px) { .trust-figs { grid-template-columns: minmax(0, 1fr); } }
.tfig { border-left: 4px solid var(--navy); padding: 0.2rem 0 0.2rem 1rem; display: grid; gap: 0.2rem; }
.tfig.proj { border-left-color: var(--copper); }
.tfig.chg { border-left-color: var(--copper); }
.tfig .label { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.tfig .value { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums lining-nums; }
.tfig .value.high { color: var(--copper); }
.tfig .sub { color: var(--muted); font-size: 0.88rem; }
.trust-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
@media (max-width: 820px) { .trust-facts { grid-template-columns: minmax(0, 1fr); } }
.fact { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem 1rem; display: grid; gap: 0.25rem; }
.fact .label { font-weight: 700; color: var(--muted); font-size: 0.88rem; }
.fact .value b { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
.trust-split { margin-top: 1rem; max-width: none; }

/* notes */
.notes { background: var(--white); border-top: 1px solid var(--border); padding-block: clamp(2rem, 4vw, 3rem); font-size: 0.92rem; color: var(--muted); }
.notes h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.notes dl { margin: 0; max-width: 75ch; }
.notes dt { font-weight: 700; color: var(--ink); margin-top: 0.9rem; }
.notes dt:first-child { margin-top: 0; }
.notes dd { margin: 0.2rem 0 0; }
.notes h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.notes ul { padding-left: 1.2rem; max-width: 75ch; }
.notes li { margin-bottom: 0.3rem; }
.licence { margin-top: 1.25rem; }

@media print {
  .site-header .nav, .actions, .view .open, .crumbs { display: none !important; }
  .hero { background: #fff; color: #000; }
}
