/* The Turnbridge Fund. Light paper, near-black ink, one colour per focus area used the same way everywhere.
   Display: Funnel Display. Text: Source Serif 4. Layout idea: the year's giving, drawn to scale, is the picture. */
@font-face { font-family: "Funnel Display"; src: url("../fonts/funnel-display-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --paper: #FBFBF8;
  --ink: #16181D;
  --muted: #555A63;
  --rule: #D9DAD4;
  --wash: #F0F1EC;
  --display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--text); }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(100% - 2 * clamp(20px, 4vw, 48px), 1440px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 10; }
.skip:focus { top: 12px; }

/* Concept notice */
.notice { background: var(--ink); color: var(--paper); font: 500 .875rem/1.4 var(--display); padding: 9px 0; }
.notice .wrap { display: flex; flex-wrap: wrap; gap: 2px 14px; justify-content: space-between; }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding: 18px 0; }
.mark { display: inline-flex; align-items: center; gap: 12px; font: 700 1.25rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; min-height: 44px; }
.mark__bars { display: flex; gap: 2px; width: 44px; height: 18px; }
.mark__bars i { display: block; height: 100%; border-radius: 1.5px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 26px; font: 500 1rem/1 var(--display); }
.nav a, .nav span { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav span { color: var(--muted); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Home: opening */
.open { display: grid; gap: 24px 48px; padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 3.4vw, 48px); }
.open h1 { font-size: clamp(2.75rem, 6.4vw, 6rem); line-height: .96; letter-spacing: -.04em; max-width: 17ch; }
.open__lede { max-width: 34ch; font-size: clamp(1.125rem, 1.4vw, 1.3125rem); display: grid; gap: 14px; align-content: end; }
.open__lede a { font: 600 1.0625rem/1.2 var(--display); display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
@media (min-width: 900px) { .open { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); align-items: end; } }

/* The split: the year's giving drawn to scale. Each block is a link into the report. */
.split__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding-bottom: 12px; font: 500 1rem/1.3 var(--display); }
.split__head h2 { font-size: 1rem; letter-spacing: 0; font-weight: 700; line-height: 1.3; }
.split__head span { color: var(--muted); }
.split { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.split li { display: flex; flex: var(--share) 1 0; min-width: 0; }
.blk { flex: 1; display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: 0 14px; min-height: calc(var(--share) * 4.6px); padding: 12px 16px; border-radius: 5px; background: var(--c); color: var(--on); text-decoration: none; font-family: var(--display); min-width: 0;
  animation: draw .9s var(--ease) both; animation-delay: calc(var(--i) * 90ms); transition: transform .25s var(--ease); }
.blk:hover { transform: translateY(-4px); }
/* Every block that can be chosen carries a small arrow, so it reads as a control and not only as a chart. */
.go { flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.blk__name, .seg__name { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.blk:hover .go { transform: translateX(4px); }
.blk__pct { font-size: 2.25rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; grid-row: 1 / span 2; }
.blk__name { font-size: 1.0625rem; font-weight: 700; line-height: 1.15; align-self: end; }
.blk__out { font-size: .9375rem; font-weight: 500; line-height: 1.25; align-self: start; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (min-width: 960px) {
  .split { flex-direction: row; }
  .blk { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: clamp(220px, 21vw, 300px); padding: 18px; }
  .blk__pct { font-size: clamp(2.5rem, 4.6vw, 4.5rem); }
  .blk__name { margin-top: auto; align-self: stretch; font-size: clamp(1rem, 1.3vw, 1.25rem); }
  .blk__out { align-self: auto; }
}

/* Home: three ways in */
.ways { display: grid; gap: 0 40px; padding: clamp(40px, 6vw, 88px) 0; }
.way { display: grid; gap: 10px; align-content: start; padding: 22px 0 26px; border-top: 2px solid var(--ink); }
.way__who { font: 500 1rem/1.3 var(--display); color: var(--muted); }
.way h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.way h2 a { text-decoration: none; }
.way h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.way p { max-width: 36ch; }
.way__fact { font: 600 1rem/1.3 var(--display); }
@media (min-width: 900px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Report */
.rep-open { padding: clamp(28px, 5vw, 72px) 0 clamp(32px, 5vw, 64px); display: grid; gap: 28px; }
.rep-open__kicker { font: 600 1rem/1.3 var(--display); }
.rep-open h1 { font-size: clamp(2.5rem, 6.4vw, 5.75rem); line-height: .96; letter-spacing: -.04em; max-width: 15ch; }
.rep-open__lede { max-width: 58ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); }
.counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.counts div { padding: 14px 0 16px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 4px; }
.counts dd { order: -1; }
.counts dt { font: 500 1rem/1.3 var(--display); color: var(--muted); }
.counts dd { margin: 0; font: 600 clamp(2.25rem, 4.4vw, 4rem)/1 var(--display); letter-spacing: -.04em; }
@media (min-width: 760px) { .counts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.chapter { padding: clamp(36px, 5vw, 72px) 0; border-top: 1px solid var(--rule); }
.chapter__head { display: grid; gap: 12px; padding-bottom: clamp(20px, 3vw, 36px); }
.chapter__n { font: 600 1rem/1.3 var(--display); color: var(--muted); }
.chapter h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); max-width: 18ch; }
.chapter__head p { max-width: 58ch; }

/* The picker: the same split, as controls */
.pick { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.pick li { display: flex; flex: var(--share) 1 0; min-width: 0; }
.seg { flex: 1; display: grid; grid-template-columns: 4.2rem 1fr; align-items: center; gap: 0 12px; min-height: 56px; padding: 10px 14px; border-radius: 5px; background: var(--c); color: var(--on); text-decoration: none; font-family: var(--display); min-width: 0; position: relative;
  transition: opacity .25s ease, transform .3s var(--ease); }
.seg__pct { font-size: 1.75rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.seg__name { font-size: 1rem; font-weight: 700; line-height: 1.15; }
.seg.is-on::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ink); border-radius: 5px 0 0 5px; }
.seg:hover .go { transform: translateY(3px); }
.seg.is-on .go { visibility: hidden; }
.pick__hint { font: 500 1rem/1.4 var(--display); color: var(--muted); padding-top: 12px; }
@media (min-width: 760px) {
  .pick { flex-direction: row; }
  .seg { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 124px; padding: 14px 16px; }
  .seg__pct { font-size: clamp(2rem, 3.2vw, 3rem); }
  .seg__name { align-self: stretch; }
  /* As tabs: the chosen block reaches down to a line in its own color, and the panel under that line belongs to it. */
  .pick.has-sel { border-bottom: 6px solid var(--sel); transition: border-color .3s ease; }
  .pick.has-sel li { padding-bottom: 12px; transition: padding .3s var(--ease); }
  .pick.has-sel li.is-on { padding-bottom: 0; }
  .pick.has-sel .seg:not(.is-on):hover { transform: translateY(-4px); }
  .seg.is-on { border-radius: 5px 5px 0 0; }
  .seg.is-on::after { content: none; }
}

.area { display: grid; gap: 28px 56px; padding: clamp(32px, 4vw, 52px) 0 8px; scroll-margin-top: 16px; }
.area + .area { border-top: 1px solid var(--rule); margin-top: 28px; }
.js .area { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.area__tag { display: inline-flex; align-items: center; gap: 10px; font: 700 1rem/1.2 var(--display); }
.area__tag i { width: 18px; height: 18px; border-radius: 4px; background: var(--c); }
.area h3 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); margin-top: 14px; max-width: 16ch; }
.area__line { margin-top: 14px; max-width: 40ch; }
.outs { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.outs li { display: grid; grid-template-columns: minmax(5.5rem, auto) 1fr; gap: 0 18px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); }
.outs b { font: 600 1.75rem/1 var(--display); letter-spacing: -.03em; }
.area__photo { margin: 0 0 28px; }
.area__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 5px; background: var(--wash); }
.area__photo figcaption { font: 500 1rem/1.4 var(--display); color: var(--muted); padding-top: 10px; }
.groups { list-style: none; margin: 0; padding: 0; }
.groups__title { font: 600 1rem/1.3 var(--display); color: var(--muted); padding-bottom: 10px; }
.groups li { padding: 16px 0 18px; border-top: 2px solid var(--ink); display: grid; gap: 4px 24px; }
.groups h4 { margin: 0; font: 600 1.375rem/1.15 var(--display); letter-spacing: -.02em; }
.groups .hood { font: 500 1rem/1.3 var(--display); color: var(--muted); }
.groups p { max-width: 52ch; }
@media (min-width: 900px) {
  .area { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .groups li { grid-template-columns: minmax(0, 1fr) auto; }
  .groups p { grid-column: 1 / -1; }
}

.tbl { margin-top: 36px; }
.tbl summary { font: 600 1rem/1.3 var(--display); cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; }
.tbl__scroll { overflow-x: auto; }
.tbl table { border-collapse: collapse; width: 100%; max-width: 760px; font: 400 1rem/1.4 var(--display); font-variant-numeric: tabular-nums; margin-top: 8px; }
.tbl th, .tbl td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); }
.tbl th { font-weight: 600; }
.tbl td i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); margin-right: 8px; }
.tbl .num { text-align: right; padding-right: 0; }

/* Footer */
.foot { border-top: 2px solid var(--ink); margin-top: clamp(32px, 5vw, 72px); padding: 28px 0 40px; display: grid; gap: 18px 48px; font: 400 1rem/1.5 var(--display); }
.foot b { font-weight: 700; }
.foot p + p { margin-top: 4px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__concept { color: var(--muted); }
@media (min-width: 960px) { .foot { grid-template-columns: 1fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Shared pieces for the inner pages ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1.2 var(--display); }
.chip i { width: 14px; height: 14px; border-radius: 3px; background: var(--c); flex: none; }
.legend, .thin__key, .areas-row { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 24px 0 0; padding: 0; }
.next { padding-top: 28px; }
.next + .next { padding-top: 0; }
.next a { font: 600 1.125rem/1.3 var(--display); display: inline-flex; align-items: center; min-height: 44px; }
.chapter h3, .story h3 { letter-spacing: -.02em; line-height: 1.1; }
.nav { gap: 0 22px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 22px; align-content: start; }

/* Reveal: only hidden once site.js has run and before the element arrives */
.anim .reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.anim .reveal:not(.in) { opacity: 0; transform: translateY(14px); }

/* Home: lately */
.latest { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 8px 48px; }
.latest__h { font-size: 1rem; letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.latest__list { list-style: none; margin: 0; padding: 0; }
.latest__list li { display: grid; gap: 2px 32px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.latest__list li:first-child { padding-top: 0; }
.latest__date { font: 500 1rem/1.4 var(--display); color: var(--muted); }
.latest__list a { font: 600 clamp(1.25rem, 2vw, 1.625rem)/1.2 var(--display); letter-spacing: -.02em; text-decoration: none; }
.latest__list a:hover { text-decoration: underline; }
@media (min-width: 900px) { .latest { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } .latest__list li { grid-template-columns: 11rem 1fr; align-items: baseline; } }

/* Report: the stream */
.stream { position: relative; }
.stream__line { display: none; color: var(--ink); }
.stream__stops { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--ink); display: grid; gap: 26px; }
.stream__stops li { position: relative; }
.stream__stops li::before { content: ""; position: absolute; left: -31px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.stream__stops h3 { font-size: 1.375rem; }
.stream__n { font: 500 1rem/1.4 var(--display); color: var(--muted); }
.stream__dots { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 0; max-width: 8.5rem; }
.stream__dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.stream__note { font-size: 1rem; max-width: 22ch; }
@media (min-width: 900px) {
  .stream__line { display: block; width: 100%; height: 60px; }
  .stream__stops { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 20px; border-left: 0; padding: 0; margin-top: -8px; }
  .stream__stops li { padding-top: 26px; }
  .stream__stops li::before { left: 0; top: calc(var(--y, 30) * 1px - 59.5px); }
}

/* Report: stories */
.stories { display: grid; gap: 40px 48px; }
.story { border-top: 6px solid var(--c); padding-top: 18px; display: grid; gap: 14px; align-content: start; }
.story__tag { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font: 500 1rem/1.3 var(--display); color: var(--muted); }
.story__tag .chip { color: var(--ink); }
.story h3 { font-size: clamp(1.625rem, 2.4vw, 2.125rem); }
.story blockquote { margin: 6px 0 0; padding: 0; }
.story blockquote p { font: 500 1.3125rem/1.3 var(--display); letter-spacing: -.01em; }
.story blockquote footer { font: 500 1rem/1.4 var(--display); color: var(--muted); padding-top: 8px; }
@media (min-width: 900px) { .stories { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Report: months, steps */
.months { list-style: none; margin: 0; padding: 0; max-width: 980px; }
.months li { display: grid; gap: 4px 32px; padding: 18px 0; border-top: 1px solid var(--rule); }
.months li:first-child { border-top: 2px solid var(--ink); }
.months__m { font: 600 1.125rem/1.3 var(--display); }
.months h3 { font-size: 1.375rem; }
.months p { max-width: 52ch; padding-top: 4px; }
@media (min-width: 700px) { .months li { grid-template-columns: 9rem 1fr; align-items: baseline; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 28px; counter-reset: none; }
.steps li { display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps__n { font: 600 2.5rem/1 var(--display); letter-spacing: -.04em; }
.steps h3 { font-size: 1.25rem; }
.steps p { font-size: 1rem; }
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Grants */
.yesno { display: grid; gap: 32px 56px; }
.yesno h3 { font-size: 1.5rem; padding-bottom: 6px; }
.ticks, .crosses { list-style: none; margin: 0; padding: 0; }
.ticks li, .crosses li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--rule); max-width: 46ch; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 11px; font: 700 1.25rem/1.4 var(--display); }
.ticks li::before { content: "\2713"; }
.crosses li::before { content: "\00D7"; }
@media (min-width: 800px) { .yesno { grid-template-columns: 1fr 1fr; } }
.rounds { display: grid; gap: 36px 56px; }
.round h3 { font-size: 1.5rem; padding-bottom: 12px; }
.round ol { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--ink); }
.round li { position: relative; display: grid; gap: 0 20px; padding: 0 0 20px; }
.round li:last-child { padding-bottom: 0; }
.round li::before { content: ""; position: absolute; left: -31px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.round__d { font: 600 1.125rem/1.4 var(--display); }
@media (min-width: 800px) { .rounds { grid-template-columns: 1fr 1fr; } .round li { grid-template-columns: 8.5rem 1fr; align-items: baseline; } }

/* Forms */
.form { max-width: 820px; }
.form__grid { display: grid; gap: 18px 24px; }
@media (min-width: 700px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font: 600 1rem/1.3 var(--display); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 1.0625rem/1.4 var(--display); color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 5px; padding: 11px 12px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 22px; font: 400 1rem/1.4 var(--display); }
.form button[type="submit"], .dir__none button { font: 600 1.0625rem/1 var(--display); color: var(--paper); background: var(--ink); border: 0; border-radius: 5px; padding: 0 22px; min-height: 48px; cursor: pointer; }
.form button[type="submit"]:hover, .dir__none button:hover { background: #2B2E36; }
.form__done { margin-top: 20px; padding: 16px 18px; border-left: 6px solid var(--ink); background: var(--wash); font: 500 1.0625rem/1.45 var(--display); max-width: 60ch; }
.form__done.is-error { border-color: #B3261E; }

/* Directory */
.dir { padding-bottom: 8px; }
.filters { display: grid; gap: 14px; padding: 0 0 8px; }
.filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters legend { font: 600 1rem/1.3 var(--display); padding: 0 0 8px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font: 500 1rem/1 var(--display); color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 5px; cursor: pointer; }
.filters button i { width: 14px; height: 14px; border-radius: 3px; background: var(--c); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters button[aria-pressed="true"] i { outline: 2px solid var(--paper); }
.dir__count { font: 500 1rem/1.4 var(--display); color: var(--muted); padding: 14px 0; }
.dir__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
.dir__list li { border-top: 6px solid var(--c); padding: 16px 0 30px; display: grid; gap: 8px; align-content: start; }
.dir__list li[hidden] { display: none; }
.dir__list h2 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; }
.dir__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 500 1rem/1.3 var(--display); color: var(--muted); }
.dir__meta .chip { color: var(--ink); }
.dir__none { padding: 8px 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font: 500 1.0625rem/1.4 var(--display); }
@media (min-width: 700px) { .dir__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dir__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Give */
.rows { list-style: none; margin: 0; padding: 0; max-width: 1040px; }
.rows li { display: grid; gap: 6px 40px; padding: 18px 0; border-top: 1px solid var(--rule); }
.rows li:first-child { border-top: 2px solid var(--ink); }
.rows h3 { font-size: 1.375rem; }
.rows p { max-width: 54ch; }
@media (min-width: 800px) { .rows li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; } }
.thin { display: flex; gap: 2px; height: 28px; max-width: 1040px; }
.thin i { display: block; border-radius: 4px; }
.thin__key li { display: inline-flex; gap: 10px; align-items: baseline; font: 400 1rem/1.3 var(--display); }

/* People */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
.people li { border-top: 2px solid var(--ink); padding: 14px 0 30px; display: grid; gap: 6px; align-content: start; }
.people h3 { font-size: 1.5rem; }
.people__role { font: 500 1rem/1.3 var(--display); color: var(--muted); }
.people__why { padding-top: 6px; max-width: 34ch; }
@media (min-width: 620px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.people + * { margin-top: 0; }

/* News */
.posts { max-width: 1040px; padding-bottom: 8px; }
.post { display: grid; gap: 8px 40px; padding: 26px 0 30px; border-top: 1px solid var(--rule); }
.post:first-child { border-top: 2px solid var(--ink); }
.post__date { font: 500 1rem/1.4 var(--display); color: var(--muted); }
.post h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); padding-bottom: 10px; max-width: 24ch; }
.post p + p { padding-top: 12px; }
.post div p { max-width: 60ch; }
@media (min-width: 800px) { .post { grid-template-columns: 11rem 1fr; } }

/* Contact */
.contact { display: grid; gap: 40px 64px; padding-bottom: 8px; }
.contact__facts { margin: 0; }
.contact__facts div { padding: 14px 0 16px; border-top: 1px solid var(--rule); display: grid; gap: 2px; }
.contact__facts div:first-child { border-top: 2px solid var(--ink); }
.contact__facts dt { font: 500 1rem/1.3 var(--display); color: var(--muted); }
.contact__facts dd { margin: 0; font: 500 1.25rem/1.35 var(--display); }
.contact__h { font-size: 1.75rem; padding-bottom: 18px; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.latest__list a { display: inline-flex; align-items: center; min-height: 44px; }
[hidden] { display: none !important; }

/* Review fixes: swatches keep an edge so they read without relying on colour; small links get full tap height */
.chip i, .stream__dots i, .filters button i, .area__tag i, .tbl td i { box-shadow: inset 0 0 0 1.5px rgba(22, 24, 29, .6); }
.nav a, .foot__nav a { min-width: 44px; justify-content: center; }
.way h2 a, .contact__facts a, .form__foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Data that draws itself as it scrolls into view ----------
   Every start state below needs .anim (set by site.js) and the absence of .in, so nothing is hidden without the script. */
.seg { transition: clip-path .9s var(--ease) calc(var(--i) * 90ms), transform .3s var(--ease); clip-path: inset(0 0 0 0); }
.anim .pick:not(.in) .seg { clip-path: inset(0 100% 0 0); }

.stream__line { transition: clip-path 1.8s var(--ease); clip-path: inset(-10px 0 -10px 0); }
.anim .stream:not(.in) .stream__line { clip-path: inset(-10px 100% -10px 0); }
.stream__stops li { transition: opacity .6s var(--ease) calc(var(--n) * 240ms + 150ms), transform .6s var(--ease) calc(var(--n) * 240ms + 150ms); }
.anim .stream:not(.in) .stream__stops li { opacity: 0; transform: translateY(12px); }
.stream__dots i { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--n) * 240ms + 450ms); }
.stream__dots i:nth-child(2) { transition-delay: calc(var(--n) * 240ms + 520ms); }
.stream__dots i:nth-child(3) { transition-delay: calc(var(--n) * 240ms + 590ms); }
.stream__dots i:nth-child(4) { transition-delay: calc(var(--n) * 240ms + 660ms); }
.stream__dots i:nth-child(5) { transition-delay: calc(var(--n) * 240ms + 730ms); }
.anim .stream:not(.in) .stream__dots i { transform: scale(0); }

.thin i { transition: flex-grow 1.1s var(--ease); }
.anim .thin:not(.in) i { flex-grow: 0 !important; }
.anim .thin:not(.in) i:first-child { flex-grow: .001 !important; }

.story, .dir__list li { border-top: 0; position: relative; }
.story { padding-top: 24px; }
.dir__list li { padding-top: 22px; }
.story::before, .dir__list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); transform-origin: 0 50%; transition: transform .8s var(--ease) .1s; }
.anim .story:not(.in)::before, .anim .dir__list li:not(.in)::before { transform: scaleX(0); }

.round ol { border-left: 0; padding-left: 25px; position: relative; }
.round ol::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--ink); transform-origin: 50% 0; transition: transform 1.2s var(--ease); }
.round li { transition: opacity .5s var(--ease) calc(var(--n) * 180ms + 100ms), transform .5s var(--ease) calc(var(--n) * 180ms + 100ms); }
.anim .round:not(.in) ol::before { transform: scaleY(0); }
.anim .round:not(.in) li { opacity: 0; transform: translateX(-8px); }

.months { position: relative; }
.months li:first-child { border-top-color: transparent; }
.months::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: 0 50%; transition: transform 1s var(--ease); }
.anim .months:not(.in)::before { transform: scaleX(0); }
.steps li:nth-child(2) { transition-delay: 80ms; } .steps li:nth-child(3) { transition-delay: 160ms; }
.steps li:nth-child(4) { transition-delay: 240ms; } .steps li:nth-child(5) { transition-delay: 320ms; }
.people li:nth-child(4n+2), .way:nth-child(2) { transition-delay: 70ms; } .people li:nth-child(4n+3), .way:nth-child(3) { transition-delay: 140ms; } .people li:nth-child(4n+4) { transition-delay: 210ms; }

/* Report reading progress, in the five focus colours. Needs scroll-driven animation support; otherwise it is not shown. */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: flex; gap: 2px; position: fixed; left: 0; right: 0; top: 0; height: 5px; z-index: 5; transform-origin: 0 50%; animation: read linear both; animation-timeline: scroll(root block); }
  .progress i { display: block; }
  @keyframes read { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) { .progress { display: none !important; } }

/* Page photos */
.banner { margin: 0 0 clamp(8px, 2vw, 24px); }
.banner img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 5px; background: var(--wash); }
.banner figcaption { font: 500 1rem/1.4 var(--display); color: var(--muted); padding-top: 10px; }
@media (min-width: 760px) { .banner img { aspect-ratio: 21 / 9; } }
.anim .banner img { transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 0 0 round 5px); }
.anim .banner:not(.in) img { clip-path: inset(0 100% 0 0 round 5px); }
.banner { margin-bottom: clamp(28px, 4vw, 48px); }
