/* Collie stylesheet
 *
 * Lifted from the approved prototype (prototype/registry-prototype.html).
 * Light theme only: the palette on :root is the whole palette. Do not add a
 * prefers-color-scheme block or a [data-theme="dark"] block - see CLAUDE.md.
 *
 * Every colour is a custom property so a value is defined once and reused.
 * Prototype-only rules (role switcher, access annotations) are not carried over.
 */

/* ---------- tokens ---------------------------------------------------- */
:root{
  --paper:#F2F3EF; --surface:#FBFBF9; --surface-2:#E9EBE5; --sunk:#EAECE6;
  --ink:#161A20; --ink-2:#4A5462;
  /* The quietest text colour, and the one most text is set in: captions, hints,
     labels, counts. Dark enough for 4.5:1 on every surface it sits on, the
     table-header grey and the pale blue included. #77818E looked calmer and
     failed the small-text contrast minimum on all of them. */
  --ink-3:#5F6874;
  --rule:#D7DAD2; --rule-strong:#BFC4BA;
  /* The accent: teal, adopted 29 September 2026 after a trial. It was blue -
     --open:#2A4A78; --open-soft:#E3E9F3; --open-line:#B9C8DF; --on-open-2:#D3DDEB */
  --open:#2D616E; --open-soft:#E0EDEF; --open-line:#B3D1D6;
  --restricted:#6B2D5B; --restricted-soft:#F1E5EE; --restricted-line:#D9BDD2;
  --moss:#36613F; --moss-soft:#E1EBE2;
  --amber:#7E5A0C; --amber-soft:#F4ECD8;
  --rust:#9B3320; --rust-soft:#F6E3DD;
  /* Text on the blue band - the home page's hero. */
  /* Sector colours for the explorer, one each, in the steward's order of
     sectors. Chosen to sit with the teal and to stay apart from each other. */
  --sector-1:#2D616E; --sector-2:#C0582B; --sector-3:#6E8B2A; --sector-4:#7A4E9C;
  --sector-5:#B8860B; --sector-6:#3B7EA1; --sector-7:#A23E48; --sector-8:#4F7F5A;
  --sector-9:#8C6D46; --sector-10:#C77A9B; --sector-11:#5C6B7A; --sector-12:#2F8F83;
  --on-open:#FFFFFF; --on-open-2:#D5E8EA;
  /* The explorer's partners, fanned round a chosen project: a warm ochre, its
     own so it says nothing else - amber means "due soon" elsewhere. Investigators
     take the teal. */
  --partner:#8A5A10; --partner-soft:#F6EEDC; --partner-line:#E1CB9E;
  --shadow:0 1px 2px rgba(22,26,32,.05), 0 8px 24px -16px rgba(22,26,32,.28);

  --f-display:"Spectral", Georgia, "Times New Roman", serif;
  --f-sans:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:"IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* The name in the bar only - see .brand__name. */
  --f-brand:"Pally", "IBM Plex Sans", system-ui, sans-serif;

  /* A home-page tool's place in the list, set on each tool - see _tool.html. */
  --tool-order:0;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px;
  --shell:1180px;
  /* The top bar's height, which the sticky record column sits beneath. */
  --topbar-h:104px;
}
/* Light only, by decision. The palette above is the whole palette: no
   prefers-color-scheme block and no [data-theme="dark"] block, so the page
   renders light whatever theme the viewer's browser or host is set to. */
:root[data-theme]{ color-scheme: light }

/* ---------- base ------------------------------------------------------ */
*{box-sizing:border-box}
/* The browser hides [hidden] with display:none, but that is a user-agent rule
   and ANY author rule setting display beats it regardless of specificity. So
   .check{display:flex} quietly un-hid every tick box the checklist filter tried
   to hide, and typing in the filter box did nothing at all. Stated here once,
   with !important, so setting el.hidden works on every element on every page. */
[hidden]{display:none !important}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--f-sans); font-size:15px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:var(--f-display); font-weight:600; margin:0; text-wrap:balance; letter-spacing:-.005em}
h1{font-size:30px; line-height:1.18}
h2{font-size:21px; line-height:1.25}
h3{font-size:17px; line-height:1.3}
p{margin:0}
a{color:var(--open); text-decoration-thickness:1px; text-underline-offset:2px}
a:hover{text-decoration-thickness:2px}
button{font:inherit; color:inherit}
:focus-visible{outline:2px solid var(--open); outline-offset:2px; border-radius:2px}
.mono{font-family:var(--f-mono); font-variant-numeric:tabular-nums; letter-spacing:-.01em}
.num{font-variant-numeric:tabular-nums}
.skip{position:absolute; left:-9999px; top:0; background:var(--surface); padding:var(--s3); z-index:60}
.skip:focus{left:var(--s4); top:var(--s2)}

/* ---------- shell ----------------------------------------------------- */
.shell{max-width:var(--shell); margin:0 auto; padding:0 var(--s5)}
@media(max-width:640px){ .shell{padding:0 var(--s4)} }

/* Two rows: the name and the person above, the sections below. The logo went on
   29 September 2026, and a single row holding everything was tried the same day
   and rejected - a steward's seven sections, the name and the person in one line
   forced every piece of it small and crowded. Each row now has the width to be
   read at a comfortable size.

   The sections scroll sideways rather than wrap when they run out of width. The
   fade on the right edge is the cue that there is more: without it "Research qua"
   simply stopped at the screen edge. The padding lets the last item scroll clear
   of the fade; when everything fits, the fade covers only empty space. */
.topbar{position:sticky; top:0; z-index:40; background:var(--surface); border-bottom:1px solid var(--rule-strong)}
.topbar__row{display:flex; flex-wrap:wrap; align-items:center; column-gap:var(--s5)}
.brand{
  display:flex; align-items:center; padding:14px 0 13px;
  text-decoration:none; color:inherit;
}
/* Pally bold, from 3 October 2026 - Indian Type Foundry's, from Fontshare;
   Excon bold was tried the same day.
   Nunito bold before it, from 1 October 2026. It was the serif of the headings, which
   someone read as E. coli: a serif is how species are named in papers. A rounded
   sans reads as a name, and a friendly one; the headings stay serif. Tried and
   passed over the same day: Nunito extra-bold, which stood out too much, and
   Varela Round, which came only in a regular weight and was too faint. */
.brand__name{font-family:var(--f-brand); font-size:24px; font-weight:700; line-height:1.1; letter-spacing:.01em}
.brand:hover .brand__name{color:var(--open)}

/* baseline, not center: the name and the Sign out button's label are two pieces
   of text of different sizes on one line, and those share a baseline. */
.ctrl{display:flex; align-items:baseline; gap:var(--s3); margin-left:auto; padding:14px 0 12px}
.ctrl__label{font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-3); white-space:nowrap}
.ctrl__name{font-size:14.5px; color:var(--ink-2); white-space:nowrap}
.ctrl form{margin:0}
.topbar__signin{margin-left:auto; margin-block:14px 12px}
.switch{display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-2); cursor:pointer; user-select:none}
.switch input{margin:0; accent-color:var(--open)}

/* ---------- nav ------------------------------------------------------- */
/* Three tabs and the Manage menu, which fit a phone's width - so no sideways
   scroll, and nothing to clip the menu when it opens. */
.nav{order:3; flex-basis:100%; display:flex; flex-wrap:wrap; align-items:stretch; gap:0 var(--s6); border-top:1px solid var(--rule)}
.nav__item{
  display:flex; align-items:center; gap:6px;
  border-bottom:2px solid transparent; margin-bottom:-1px; padding:12px 0 11px;
  font-size:15px; color:var(--ink-2); white-space:nowrap; text-decoration:none;
}
.nav__item:hover{color:var(--ink)}
/* A label with a phone-length form: the long one, until the phone rules below. */
.nav__short{display:none}
.nav__item[aria-current="page"]{color:var(--ink); border-bottom-color:var(--open); font-weight:500}
.nav__item--restricted[aria-current="page"]{border-bottom-color:var(--restricted)}
.nav__item--restricted::before{
  content:""; display:inline-block; width:6px; height:6px; border-radius:50%;
  background:var(--restricted);
}
/* The Manage menu. Opens below its toggle, right-aligned, so on a phone - where
   it is the last item - it opens inward rather than off the edge. */
.navmenu{position:relative; display:flex; margin-left:auto}
.navmenu__toggle{cursor:pointer; list-style:none; user-select:none}
.navmenu__toggle::-webkit-details-marker{display:none}
.navmenu__toggle::after{
  content:""; width:6px; height:6px; margin:-3px 0 0 2px;
  border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg);
}
.navmenu[open] > .navmenu__toggle{color:var(--ink)}
.navmenu__panel{
  position:absolute; top:calc(100% + 6px); right:0; z-index:50; min-width:250px;
  background:var(--surface); border:1px solid var(--rule-strong); border-radius:4px;
  box-shadow:var(--shadow); padding:6px; display:grid;
}
.navmenu__item{
  display:flex; justify-content:space-between; align-items:center; gap:var(--s4);
  padding:9px 12px; border-radius:3px; font-size:14.5px; color:var(--ink); text-decoration:none;
}
.navmenu__item:hover, .navmenu__item:focus-visible{background:var(--surface-2)}
.navmenu__item[aria-current="page"]{background:var(--open-soft); color:var(--open); font-weight:500}

/* A count of what is waiting. Amber by default - work to do; rust where it is
   already late. */
.badge{
  display:inline-block; min-width:20px; padding:0 6px; border-radius:10px; text-align:center;
  font-size:11.5px; font-weight:600; line-height:19px; font-variant-numeric:tabular-nums;
  background:var(--amber-soft); color:var(--amber);
}
.badge--rust{background:var(--rust-soft); color:var(--rust)}

@media(max-width:640px){
  /* One line on a phone. Home joined the tabs on 30 September 2026 and pushed
     Manage to a second line, so from 1 October "Research quality" is "RQS"
     here; the desktop keeps the words. */
  .nav__long{display:none}
  .nav__short{display:inline}
  .nav{column-gap:12px}
  .nav__item{font-size:14px}
  .navmenu__toggle::after{display:none}
  .brand__name{font-size:22px}
  /* Sign out beside nothing is still plainly yours. */
  .ctrl__name{display:none}
}
/* Down to a 360px phone on one line... */
@media(max-width:380px){
  .nav{column-gap:9px}
  .nav__item{font-size:13.5px}
  .nav__item--restricted::before{width:5px; height:5px}
}
/* ...and a 320px one, a little tighter still. */
@media(max-width:340px){
  .nav{column-gap:7px}
  .nav__item{font-size:13px}
}
/* On a phone a pinned two-row bar is a fifth of the screen, permanently. */
@media(max-width:640px){ .topbar{position:static} }

/* ---------- role banner ---------------------------------------------- */
.stance{background:var(--open-soft); border-bottom:1px solid var(--open-line)}
.stance__row{display:flex; gap:var(--s3); align-items:baseline; padding:9px 0; font-size:12.5px; color:var(--ink-2); flex-wrap:wrap}
.stance__who{font-weight:600; color:var(--open)}
.stance--restricted{background:var(--restricted-soft); border-bottom-color:var(--restricted-line)}
.stance--restricted .stance__who{color:var(--restricted)}

main{padding:var(--s6) 0 var(--s7)}
/* The footer follows the page: right after a long one, at the foot of the screen
   below a short one, rather than floating halfway up it. The page fills at least
   the screen, and the last block - the footer's - takes up the slack above it. */
body{min-height:100vh; display:flex; flex-direction:column}
main{flex:1 0 auto; display:flex; flex-direction:column}
main > .shell{width:100%}
main > .shell:last-child{margin-top:auto}
.page-head{margin-bottom:var(--s5)}
/* The project record only. Its title sits above a dense two-column grid rather
   than a list or a form, and 24px read as crowded against it. Scoped rather than
   raised globally, so every other page keeps the spacing it was designed with. */
.page-head--record{margin-bottom:var(--s6)}
/* Read by a screen reader, seen by nobody. For a heading a page needs to have and
   does not need to show. Not display:none, which would take it out of the
   accessibility tree along with everything else. */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.eyebrow{font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--ink-3); margin-bottom:6px}
.lede{font-family:var(--f-display); font-size:17px; line-height:1.5; color:var(--ink-2); max-width:62ch; margin-top:var(--s2)}
.hint{font-size:12.5px; color:var(--ink-3)}
/* ---------- search + filters ----------------------------------------- */
.finder{display:grid; gap:var(--s3); margin-bottom:var(--s5)}
.search{
  display:flex; align-items:center; gap:var(--s2); background:var(--surface);
  border:1px solid var(--rule-strong); border-radius:3px; padding:9px var(--s3); max-width:520px;
}
.search input{flex:1; border:0; background:none; font:inherit; color:var(--ink); min-width:0}
.search input:focus{outline:none}
.search__icon{width:15px; height:15px; flex:none; color:var(--ink-3)}
/* The directory's: the word beside the box, and the box to the right edge. */
.finder__row{display:flex; align-items:center; gap:var(--s4)}
.finder__label{font-weight:600; font-size:15px; flex:none}
.finder__search{flex:1; max-width:none}
/* On the page's own grey, with a rule beneath and no box - the directory's
   search and filters, like lines on a form. */
.finder .search, .finder .refine__grid select{background-color:transparent; border-width:0 0 1px; border-radius:0; padding-left:0}
.finder .search:focus-within{outline:none; border-bottom-color:var(--open); box-shadow:0 1px 0 var(--open)}
.finder .refine__grid select:focus-visible{outline:none; border-bottom-color:var(--open); box-shadow:0 1px 0 var(--open)}
.filters{display:flex; gap:var(--s3); flex-wrap:wrap; align-items:center}
.filters select{
  font:inherit; font-size:12.5px; padding:5px 26px 5px var(--s2); background:var(--surface);
  color:var(--ink); border:1px solid var(--rule); border-radius:3px;
}
.filters__clear{background:none; border:0; font-size:12.5px; color:var(--open); cursor:pointer; padding:4px; text-decoration:underline}
.result-count{font-size:12.5px; color:var(--ink-3); margin-bottom:var(--s3); max-width:90ch}

/* The directory's filters, folded under the search box. The toggle is a
   <summary>, restyled from a disclosure triangle into a small labelled control. */
.refine{border-bottom:1px solid var(--rule); padding-bottom:var(--s3)}
.refine__toggle{
  display:inline-flex; align-items:center; gap:var(--s2); cursor:pointer; list-style:none;
  font-size:14px; font-weight:500; color:var(--ink); padding:4px 0; user-select:none;
}
.refine__toggle::-webkit-details-marker{display:none}
.refine__toggle::before{
  content:""; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
  transform:rotate(-45deg); margin-right:2px;
}
.refine[open] > .refine__toggle::before{transform:rotate(45deg); margin-top:-4px}
.refine__n{
  font-size:12px; font-weight:500; color:var(--open); background:var(--open-soft);
  border-radius:10px; padding:1px 8px;
}
.refine__panel{display:grid; gap:var(--s4); padding-top:var(--s3)}
.refine--open .refine__panel{padding-top:0}
.refine--open{border-bottom:0; padding-bottom:0}
/* Apply at the right edge, under the last filter, with Clear all just before it. */
.refine--open .refine__actions{justify-content:flex-end}
.refine--open .filters__clear{order:-1}
.refine__grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:var(--s3)}
.refine__grid select{
  font:inherit; font-size:13.5px; width:100%; padding:7px 28px 7px 10px; background:var(--surface);
  color:var(--ink); border:1px solid var(--rule-strong); border-radius:3px;
}
.refine__uses{display:flex; flex-wrap:wrap; gap:var(--s2) var(--s5); align-items:center}
.refine__uses .switch{font-size:13.5px; color:var(--ink)}
.refine__actions{display:flex; gap:var(--s4); align-items:center}

/* Status tabs over the list. Tabs rather than tiles: they switch the view, and
   the numbers are a property of each tab rather than headline figures. */
.statustabs{
  display:flex; gap:var(--s5); overflow-x:auto; scrollbar-width:none; border-bottom:1px solid var(--rule);
  margin-bottom:var(--s3); padding-right:var(--s6);
  /* The same cue as the section links: on a phone the last tabs run off the edge. */
  -webkit-mask-image:linear-gradient(to right, #000 calc(100% - var(--s6)), transparent);
  mask-image:linear-gradient(to right, #000 calc(100% - var(--s6)), transparent);
}
.statustabs::-webkit-scrollbar{display:none}
.statustab{
  display:inline-flex; align-items:baseline; gap:6px; padding:var(--s2) 0 9px; margin-bottom:-1px;
  border-bottom:2px solid transparent; font-size:14.5px; color:var(--ink-2); text-decoration:none; white-space:nowrap;
}
.statustab:hover{color:var(--ink)}
.statustab .count__n{font-size:12.5px; font-weight:500; color:var(--ink-3)}
.statustab[aria-current="true"]{color:var(--ink); font-weight:500; border-bottom-color:var(--open)}
.statustab[aria-current="true"] .count__n{color:var(--open)}
/* The tabs' own rule is the list's top edge: the list's rule, directly beneath
   it, would run a second line in parallel for nothing. The space between them
   stays. */
.statustabs + .rows{border-top:0; margin-top:var(--s5)}

/* ---------- ruled record rows ---------------------------------------- */
.rows{border-top:1px solid var(--rule)}
.row{display:grid; grid-template-columns:96px 1fr auto; gap:var(--s4); padding:var(--s4) 0; border-bottom:1px solid var(--rule); align-items:start}
.row:hover{background:color-mix(in srgb, var(--surface) 70%, transparent)}
.row__id{font-family:var(--f-mono); font-size:12.5px; color:var(--ink-2); padding-top:2px}
/* The registry ID under the J-PAL code: present on every project, but not the
   one colleagues recognise, so it sits quieter. */
.row__altid{font-size:11px; color:var(--ink-3); margin-top:2px}
.row__title{font-family:var(--f-display); font-size:17.5px; font-weight:600; line-height:1.3; margin-bottom:5px}
.row__title a{color:inherit; text-decoration:none}
.row__title a:hover{text-decoration:underline; text-decoration-color:var(--open)}
.row__summary{font-size:13.5px; color:var(--ink-2); max-width:70ch; margin-bottom:7px}
.row__meta{display:flex; gap:var(--s3); flex-wrap:wrap; font-size:12px; color:var(--ink-3)}
.row__meta span{display:inline-flex; align-items:center; gap:5px}
.row__meta span+span::before{content:""; width:3px; height:3px; border-radius:50%; background:var(--rule-strong)}
.row__side{text-align:right; font-size:12px; color:var(--ink-3); display:grid; gap:5px; justify-items:end}
@media(max-width:720px){
  .row{grid-template-columns:1fr; gap:var(--s2)}
  .row__side{justify-items:start; text-align:left}
}

/* ---------- pills ----------------------------------------------------- */
.pill{
  display:inline-flex; align-items:center; gap:5px; font-size:11.5px; line-height:1.4;
  padding:2px 8px 2px 7px; border-radius:2px; white-space:nowrap;
  border-left:3px solid currentColor; background:var(--surface-2); color:var(--ink-2);
}
.pill--amber{background:var(--amber-soft); color:var(--amber)}
.pill--rust{background:var(--rust-soft); color:var(--rust)}
.pill--restricted{background:var(--restricted-soft); color:var(--restricted)}
/* Only the three above are chips. A chip says "look here", and when the same
   shape also carried Current, Accepted, Active, Primary and every "Yes" in a
   register, it said it forty times a page and an Overdue went unseen among them.
   The settled and neutral states keep their colour and their words and lose the
   box: coloured text, set level with the chips so a column still lines up. */
.pill--moss, .pill--open, .pill--quiet{background:transparent; border-left-color:transparent; padding-left:0}
.pill--moss{color:var(--moss); font-weight:500}
.pill--open{color:var(--open); font-weight:500}
.pill--quiet{color:var(--ink-3)}
.pill b{font-weight:600}
.tag{display:inline-block; font-size:11.5px; padding:2px 7px; border:1px solid var(--rule-strong); border-radius:2px; color:var(--ink-2); background:var(--surface)}
/* A present-only attribute inside a meta line: carried by weight, not colour,
   because it is a property of the project and not a state needing attention. */
.mark{font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-2)}

/* ---------- tables ---------------------------------------------------- */
.tablewrap{overflow-x:auto; border:1px solid var(--rule); border-radius:3px; background:var(--surface)}
table.grid{width:100%; border-collapse:collapse; font-size:13px; min-width:760px}
table.grid th{
  text-align:left; font-size:10.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3);
  font-weight:600; padding:10px var(--s3); border-bottom:1px solid var(--rule-strong); background:var(--sunk); white-space:nowrap;
}
table.grid td{padding:10px var(--s3); border-bottom:1px solid var(--rule); vertical-align:top}
table.grid tr:last-child td{border-bottom:0}
table.grid tbody tr:hover{background:var(--surface-2)}
/* .n is a number or a date: the text face with tabular figures, so digits still
   line up down a column. .id is an identifier, and only identifiers are mono. */
table.grid td.n{font-variant-numeric:tabular-nums; white-space:nowrap}
table.grid td.id{font-family:var(--f-mono); font-size:12.5px; white-space:nowrap}
table.grid td a{color:var(--ink); text-decoration:none}
table.grid td a:hover{text-decoration:underline; text-decoration-color:var(--open)}
.cell-title{font-weight:500}

/* The portfolio table. The title column takes what the others leave, and the
   rest keep to their content. */
.ptable table.grid{min-width:0}
.ptable table.grid td{padding:12px var(--s3)}
.ptable__code{white-space:nowrap; font-size:13px; font-weight:500}
/* 44%, not 50, since the code column came first: otherwise RM names wrap. */
.ptable__project{width:44%}
.ptable td .hint{white-space:nowrap}
.ptable__title{font-weight:500; font-size:14px; line-height:1.4}
/* On the text's baseline, not the boxes' tops: the ID, the type and the AI mark
   are set in three sizes, and top-aligned the smaller ones sat high. */
.ptable__meta{display:flex; flex-wrap:wrap; align-items:baseline; gap:2px var(--s3); margin-top:4px; font-size:12px; color:var(--ink-3)}
.ptable__meta .mono{font-size:11.5px}
/* Below 720px, one card per project. Each cell states what it is, since the
   header row is gone; the project cell needs no label, its title says it. */
@media(max-width:720px){
  .ptable{border:0; background:none; overflow:visible}
  .ptable table.grid, .ptable tbody, .ptable tr, .ptable td{display:block; width:auto}
  .ptable thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}
  .ptable tr{background:var(--surface); border:1px solid var(--rule); border-radius:3px; margin-bottom:var(--s3); padding:var(--s2) 0}
  .ptable table.grid td{border:0; padding:6px var(--s4)}
  .ptable td[data-label]{display:grid; grid-template-columns:84px 1fr; gap:0 var(--s3); align-items:baseline}
  .ptable td[data-label]::before{
    content:attr(data-label); grid-row:span 3;
    font-size:10.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3);
  }
  .ptable td[data-label] > .pill{justify-self:start}
  .ptable tbody tr:hover{background:var(--surface)}
}

/* ---------- panels + sections ---------------------------------------- */
.panel{background:var(--surface); border:1px solid var(--rule); border-radius:3px; padding:var(--s5)}
.panel--sunk{background:var(--sunk); border-style:dashed}
.section{border-top:1px solid var(--rule); padding-top:var(--s4); margin-top:var(--s5)}
.section:first-child{border-top:0; margin-top:0; padding-top:0}
/* Both shapes of section heading get the same air beneath them. A bare <h3> got
   none at all — every heading carries margin:0 from the base reset, and only the
   .section__head wrapper put any back — so Outcomes and Design sat directly on
   top of their own content while the cards around them did not. Less than the
   padding above, so a heading still reads as belonging to what follows it. */
.section__head, .section > h3{margin-bottom:var(--s3)}
.section__head{display:flex; align-items:baseline; justify-content:space-between; gap:var(--s3)}
.section h3{font-size:15px}
.prose{max-width:66ch; font-size:14.5px; line-height:1.62; color:var(--ink-2)}
.prose+.prose{margin-top:var(--s3)}
.stack{display:grid; gap:var(--s5)}
.stack--tight{gap:var(--s3)}

/* ---------- definition lists ----------------------------------------- */
.dl{display:grid; grid-template-columns:minmax(140px,190px) 1fr; gap:10px var(--s4); font-size:13.5px; margin:0}
.dl dt{font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3); padding-top:3px}
.dl dd{margin:0; color:var(--ink)}
.dl--stacked{grid-template-columns:1fr; gap:2px var(--s4)}
.dl--stacked dt{padding-top:var(--s3)}
@media(max-width:640px){ .dl{grid-template-columns:1fr; gap:2px} .dl dt{padding-top:var(--s3)} }
/* ---------- project record layout ------------------------------------ */
.record{display:grid; grid-template-columns:266px 1fr; gap:var(--s7); align-items:start}
/* A grid item will not shrink below its content by default, so a table with a
   minimum width inside one stretched the whole page sideways on a phone instead
   of scrolling in its own box. The registers were where it showed. */
.record > *{min-width:0}
/* On a register the list is the page and the add form serves it, so on a narrow
   screen, where the side column moves above, the form goes after the list. */
@media(max-width:900px){ .record--register > .identity{order:2} }
@media(max-width:900px){ .record{grid-template-columns:1fr; gap:var(--s5)} }
.identity{position:sticky; top:calc(var(--topbar-h) + var(--s5)); display:grid; gap:var(--s4)}
@media(max-width:900px){ .identity{position:static} }
/* The two identifiers side by side: each is short, and stacked they took a
   quarter of the column before anything about the project itself. */
.identity__ids{display:grid; grid-template-columns:1fr 1fr; gap:var(--s4)}
.identity__id{font-family:var(--f-mono); font-size:16px; letter-spacing:-.02em; color:var(--ink)}
.identity__clocks{display:grid; gap:var(--s3)}
/* Facts as pairs, each <dt>/<dd> in a <div>. One per line in the side column;
   below 900px, where the column moves above the page, several to a row, so the
   facts stop being a long scroll before the updates. */
.dl--pairs{display:grid; grid-template-columns:1fr; gap:0}
@media(max-width:900px){
  .identity__clocks{grid-template-columns:repeat(auto-fit, minmax(160px, 1fr))}
  .dl--pairs{grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); column-gap:var(--s4)}
}
.identity__note{font-size:11.5px; color:var(--ink-3); margin-top:2px}

.clock{border:1px solid var(--rule); border-left:3px solid var(--ink-3); border-radius:3px; padding:var(--s3); background:var(--surface)}
.clock--moss{border-left-color:var(--moss)} .clock--amber{border-left-color:var(--amber)} .clock--rust{border-left-color:var(--rust)}
.clock__label{font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-3)}
.clock__value{font-size:15px; font-weight:500; margin-top:3px}
.clock__sub{font-size:12px; color:var(--ink-2); margin-top:4px}

.tabs{display:flex; gap:var(--s4); border-bottom:1px solid var(--rule); margin-bottom:var(--s5); overflow-x:auto}
.tab{appearance:none; background:none; border:0; border-bottom:2px solid transparent; padding:0 0 9px;
     font-size:13.5px; color:var(--ink-3); cursor:pointer; white-space:nowrap}
.tab:hover{color:var(--ink)}
.tab[aria-selected="true"]{color:var(--ink); border-bottom-color:var(--open); font-weight:500}
.tab--restricted[aria-selected="true"]{border-bottom-color:var(--restricted)}
.tab__count{font-variant-numeric:tabular-nums; font-size:11px; color:var(--ink-3); margin-left:5px}

/* ---------- restricted band ------------------------------------------ */
.band{
  display:flex; gap:var(--s3); align-items:flex-start; padding:var(--s3) var(--s4);
  background:var(--restricted-soft); border:1px solid var(--restricted-line); border-left:3px solid var(--restricted);
  border-radius:3px; font-size:12.5px; color:var(--ink-2); margin-bottom:var(--s5);
}
.band b{color:var(--restricted); font-weight:600}
.band--open{background:var(--open-soft); border-color:var(--open-line); border-left-color:var(--open)}
.band--open b{color:var(--open)}
.band--amber{background:var(--amber-soft); border-color:var(--amber); border-left-color:var(--amber)}
.band--amber b{color:var(--amber)}

/* ---------- access annotation ---------------------------------------- */
.redacted{
  border:1px dashed var(--rule-strong); border-radius:3px; padding:var(--s3) var(--s4);
  background:repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb,var(--rule) 40%, transparent) 9px 10px);
  font-size:12.5px; color:var(--ink-2);
}
.redacted__head{display:flex; gap:var(--s2); align-items:baseline; flex-wrap:wrap; margin-bottom:3px}
.redacted__what{font-weight:600; color:var(--ink)}
.redacted__layer{font-family:var(--f-mono); font-size:11px; color:var(--restricted)}
.redacted__why{color:var(--ink-3)}

/* ---------- stat strip ------------------------------------------------ */
.strip{display:flex; flex-wrap:wrap; gap:0; border:1px solid var(--rule); border-radius:3px; background:var(--surface); margin-bottom:var(--s5); overflow:hidden}
.strip__cell{flex:1 1 150px; padding:var(--s3) var(--s4); border-right:1px solid var(--rule); min-width:0}
.strip__cell:last-child{border-right:0}
.strip__label{font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-3)}
.strip__value{font-size:22px; font-weight:500; font-variant-numeric:tabular-nums; margin-top:2px; line-height:1.1}
.strip__value--rust{color:var(--rust)} .strip__value--amber{color:var(--amber)} .strip__value--restricted{color:var(--restricted)}
.strip__note{font-size:11.5px; color:var(--ink-3); margin-top:3px}

/* ---------- forms ----------------------------------------------------- */
.form{display:grid; gap:var(--s5); max-width:760px}
.field{display:grid; gap:5px}
.field__label{font-size:12.5px; font-weight:500}
.field__help{font-size:11.5px; color:var(--ink-3)}

/* A tick box and its words are one control: same line, same baseline, both
   clickable. The grid above stacks label over widget, which for a checkbox
   leaves the text hanging above a bare square. */
.check{display:flex; align-items:flex-start; gap:var(--s2); cursor:pointer}
.check input[type=checkbox]{
  margin:0; flex:none; width:15px; height:15px; accent-color:var(--open);
  /* Nudged to sit on the text's first baseline rather than its box top. */
  margin-top:2px;
}
.check__text{font-size:12.5px; font-weight:500; line-height:1.45}
/* Help text lines up under the words, not under the box. */
.field__help--indent{padding-left:calc(15px + var(--s2))}
/* Every kind of text box, not only text and date: email and password were
   missing and the sign-in boxes fell back to the browser default, thin and
   unpadded; url and number were missing and so were the project form's four
   link fields and its funding figure. */
.field input[type=text], .field input[type=date], .field input[type=email],
.field input[type=password], .field input[type=url], .field input[type=number],
.field textarea, .field select{
  font:inherit; font-size:13.5px; padding:8px 10px; background:var(--surface); color:var(--ink);
  border:1px solid var(--rule-strong); border-radius:3px; width:100%;
}
.field textarea{min-height:76px; resize:vertical; line-height:1.55}
.fieldset{border:1px solid var(--restricted-line); border-left:3px solid var(--restricted); border-radius:3px; padding:var(--s4) var(--s5) var(--s5); margin:0}
.fieldset legend{font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--restricted); padding:0 var(--s2); font-weight:600}
.trigger{display:grid; grid-template-columns:1fr auto; gap:var(--s3); align-items:center; padding:10px 0; border-bottom:1px solid var(--rule)}
.trigger:last-of-type{border-bottom:0}
.trigger__q{font-size:13.5px}
.trigger__hint{font-size:11.5px; color:var(--ink-3); margin-top:2px}
.radios{display:flex; gap:2px; border:1px solid var(--rule-strong); border-radius:3px; overflow:hidden; background:var(--surface)}
.radios label{font-size:12px; padding:5px 11px; cursor:pointer; color:var(--ink-2); border-right:1px solid var(--rule)}
.radios label:last-child{border-right:0}
.radios input{position:absolute; opacity:0; width:0; height:0}
.radios input:checked+span{font-weight:600}
.radios label:has(input:checked){background:var(--open-soft); color:var(--open)}
.radios label:has(input[value="Yes"]:checked){background:var(--rust-soft); color:var(--rust)}
.radios label:has(input[value="Unknown"]:checked){background:var(--amber-soft); color:var(--amber)}
.radios label:has(input:focus-visible){outline:2px solid var(--open); outline-offset:-2px}
@media(max-width:560px){ .trigger{grid-template-columns:1fr} }

/* ---------- buttons --------------------------------------------------- */
.btn{
  appearance:none; font:inherit; font-size:13px; padding:7px var(--s4); cursor:pointer;
  border:1px solid var(--rule-strong); border-radius:3px; background:var(--surface); color:var(--ink);
}
.btn:hover{border-color:var(--ink-3)}
/* For an action repeated on every row of a table: present, but quiet until
   pointed at, so a column of them does not read as a wall of boxes. */
.btn--quiet{border-color:transparent; background:transparent; color:var(--open); text-decoration:underline; text-underline-offset:2px}
.btn--quiet:hover{border-color:var(--rule-strong); background:var(--surface); text-decoration:none}
.btn--primary{background:var(--open); border-color:var(--open); color:#fff}
.btn--primary:hover{filter:brightness(1.08); border-color:var(--open)}
.btn--restricted{background:var(--restricted); border-color:var(--restricted); color:#fff}
.btn--small{font-size:12px; padding:4px 10px}
.btnrow{display:flex; gap:var(--s2); flex-wrap:wrap; align-items:center}

/* ---------- misc ------------------------------------------------------ */
.empty{border:1px dashed var(--rule-strong); border-radius:3px; padding:var(--s5); text-align:center; color:var(--ink-3); font-size:13.5px}
.linkline{font-size:13px; display:flex; gap:var(--s4); flex-wrap:wrap}
.crumb{background:none; border:0; padding:0; font-size:12.5px; color:var(--open); cursor:pointer; text-decoration:underline; text-underline-offset:2px}
/* No rule above it, from 2 October 2026 (playground): the page runs on, one
   grey, from the bar to the quote. */
.foot{
  margin-top:var(--s7); padding:var(--s5) 0 var(--s6); font-size:12px; color:var(--ink-3);
  display:flex; justify-content:flex-end;
}
.foot__quote{display:flex; align-items:flex-start; gap:var(--s2); text-align:right}
.foot__quote em{line-height:1.45}
/* One line wherever it fits. The 70ch cap on footer paragraphs above held the
   quote to 504px, and the longest quotes need about 640, so they wrapped on a
   laptop with half the footer empty. A phone cannot fit the longest at any
   readable size, so there, and only there, it still wraps. */
.foot .foot__quote{max-width:none}
@media(min-width:700px){ .foot__quote em{white-space:nowrap} }
.foot__quote em{font-family:var(--f-display); font-size:13.5px; color:var(--ink-2)}
/* Level with the quote's first line, which matters once it wraps on a phone. */
.foot__mark{width:18px; height:18px; display:block; flex:none; margin-top:1px}
.foot p{max-width:70ch}
.foot p+p{margin-top:var(--s2)}

/* The number on a status tab (see .statustab). The tiles it was drawn for went
   on 29 September 2026. */
.count__n{font-variant-numeric:tabular-nums}
.row__pi{font-size:12.5px; color:var(--ink-2); margin:0 0 7px}
.row__pi b{font-weight:500; color:var(--ink)}
@media (prefers-reduced-motion: reduce){ *{animation:none !important; transition:none !important} }

/* ---------- staff picker ---------------------------------------------- */
/* Selecting an existing colleague must always look shorter than adding a new
   one, so matches are prominent and "add someone new" is quiet and secondary. */
.picker{display:grid; gap:var(--s2)}
.picker__search{
  font:inherit; font-size:13.5px; padding:8px 10px; width:100%;
  background:var(--surface); color:var(--ink);
  border:1px solid var(--rule-strong); border-radius:3px;
}
.picker__results{display:grid; gap:2px}
.picker__list{list-style:none; margin:0; padding:0; display:grid; gap:2px;
  border:1px solid var(--rule); border-radius:3px; background:var(--surface); overflow:hidden}
.picker__option{
  appearance:none; width:100%; text-align:left; background:none; border:0;
  padding:8px 10px; cursor:pointer; display:grid; gap:1px;
  border-bottom:1px solid var(--rule);
}
.picker__list li:last-child .picker__option{border-bottom:0}
.picker__option:hover{background:var(--open-soft)}
.picker__name{font-size:13.5px; font-weight:500; color:var(--ink)}
.picker__email{font-size:11.5px; color:var(--ink-3)}
.picker__title{font-size:11.5px; color:var(--ink-2)}
.picker__hint{font-size:12px; color:var(--ink-3); margin:0; padding:2px 0}
.picker__error{font-size:12px; color:var(--rust); display:block}
/* A caution you can proceed past, so it is amber rather than rust: rust in this
   interface means the form refused. */
.picker__warn{
  font-size:12px; color:var(--amber); background:var(--amber-soft);
  border:1px solid var(--rule); border-radius:3px; padding:var(--s2); margin:0 0 var(--s2);
}

.picker__chosen{
  display:flex; align-items:baseline; gap:var(--s3); flex-wrap:wrap;
  padding:8px 10px; background:var(--open-soft);
  border:1px solid var(--open-line); border-left:3px solid var(--open); border-radius:3px;
}
.picker__change{
  appearance:none; background:none; border:0; margin-left:auto; padding:0;
  font-size:12px; color:var(--open); cursor:pointer;
  text-decoration:underline; text-underline-offset:2px;
}
.picker__add{
  appearance:none; background:none; border:1px dashed var(--rule-strong); border-radius:3px;
  padding:7px 10px; font-size:12.5px; color:var(--ink-2); cursor:pointer; text-align:left;
}
.picker__add:hover{border-color:var(--ink-3); color:var(--ink)}

.picker__panel{
  border:1px solid var(--rule-strong); border-left:3px solid var(--amber);
  border-radius:3px; padding:var(--s3) var(--s4) var(--s4);
  background:var(--surface); display:grid; gap:var(--s3);
}
.picker__panel-head{display:flex; align-items:baseline; gap:var(--s3); font-size:13.5px}
.picker__field{display:grid; gap:3px}
.picker__field label{font-size:12px; font-weight:500}
.picker__field input{
  font:inherit; font-size:13.5px; padding:7px 9px; width:100%;
  background:var(--surface); color:var(--ink);
  border:1px solid var(--rule-strong); border-radius:3px;
}
.htmx-request.picker__search{background:var(--surface-2)}

/* ---------- sign-in ---------------------------------------------------- */
.signin-card{
  max-width:460px; background:var(--surface); border:1px solid var(--rule);
  border-radius:3px; padding:var(--s6); margin-top:var(--s4);
}
.signin-card .form, .signin-card .signin, .signin-card .signin__or{max-width:none}
/* The Google route. These three were lost in the 29 September refresh, when the
   home page's styles above them were replaced up to the next section heading
   and took these along; nothing showed it locally, where Google is not
   configured and this block never renders. Restored the same day. */
.signin{max-width:420px; display:grid; gap:var(--s2)}
.signin__google{display:block; width:100%; text-align:center; text-decoration:none; padding:11px var(--s4)}
.signin form{margin:0}
.signin__or{
  display:flex; align-items:center; gap:var(--s3); max-width:420px;
  margin:var(--s5) 0; color:var(--ink-3); font-size:12px;
}
.signin__or::before, .signin__or::after{
  content:""; flex:1; height:1px; background:var(--rule);
}
@media(max-width:640px){ .signin-card{padding:var(--s5)} }

/* ---------- home page: hero ------------------------------------------ */
/* A band in the application's own blue, full width under the top bar. The page
   below it keeps the usual spacing; only the gap above goes, so the band meets
   the bar. */
main:has(> .hero){padding-top:0}
.hero{
  color:var(--on-open); margin-bottom:var(--s6);
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--on-open) 12%, transparent), transparent 42%),
    linear-gradient(135deg, var(--open) 0%, color-mix(in srgb, var(--open) 70%, var(--ink)) 100%);
}
.hero__inner{padding-top:56px; padding-bottom:48px}
.hero__title{color:var(--on-open); font-size:clamp(30px, 5vw, 46px); line-height:1.1; max-width:30ch}
.hero__cta{display:inline-block; margin-top:var(--s5); background:var(--surface); border-color:var(--surface); color:var(--open); font-weight:500}
.hero__search{
  display:flex; align-items:center; gap:var(--s2); max-width:640px; margin-top:28px;
  background:var(--surface); border-radius:6px; padding:6px 6px 6px var(--s4); box-shadow:var(--shadow);
}
.hero__search:focus-within{outline:2px solid var(--on-open); outline-offset:3px}
.hero__search-icon{width:17px; height:17px; flex:none; color:var(--ink-3)}
.hero__search input{flex:1; min-width:0; border:0; background:none; font:inherit; font-size:16px; color:var(--ink); padding:8px 0}
.hero__search input:focus{outline:none}
.hero__search-go{background:var(--open); border-color:var(--open); color:var(--on-open); font-weight:500; padding:9px var(--s5)}
.hero__search-go:hover{filter:brightness(1.1); border-color:var(--open)}
.hero__figures{display:flex; flex-wrap:wrap; gap:var(--s4) 44px; margin:32px 0 0}
.hero__figures div{display:flex; flex-direction:column-reverse}
.hero__figures dd{margin:0; font-family:var(--f-display); font-size:34px; font-weight:600; line-height:1; font-variant-numeric:lining-nums tabular-nums}
.hero__figures dt{font-size:13px; color:var(--on-open-2); margin-top:6px}
@media(max-width:640px){
  .hero__inner{padding-top:36px; padding-bottom:32px}
  .hero__search-go{padding:9px var(--s4)}
  .hero__figures{gap:var(--s4) var(--s6)}
  .hero__figures dd{font-size:28px}
}

/* ---------- home page: destinations ----------------------------------- */
.surfaces{display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:var(--s4)}
.surface{
  position:relative; display:flex; flex-direction:column; gap:var(--s2);
  background:var(--surface); border:1px solid var(--rule); border-radius:4px; padding:var(--s5);
  transition:box-shadow .15s, border-color .15s, transform .15s;
}
.surface:hover{border-color:var(--rule-strong); box-shadow:var(--shadow); transform:translateY(-1px)}
.surface:has(a:focus-visible){outline:2px solid var(--open); outline-offset:2px}
.surface--later{background:transparent; box-shadow:none}
.surface__top{display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:var(--s2)}
.surface__icon{
  width:42px; height:42px; border-radius:6px; display:grid; place-items:center;
  background:var(--open-soft); color:var(--open);
}
.surface--restricted .surface__icon{background:var(--restricted-soft); color:var(--restricted)}
.icon{width:22px; height:22px}
.surface__name{font-size:19px}
.surface__name a{color:inherit; text-decoration:none}
/* The name's link covers the card, so the whole card is one click target. */
.surface__name a::after{content:""; position:absolute; inset:0}
.surface__name a:focus-visible{outline:none}
.surface:hover .surface__name a{color:var(--open)}
.surface__blurb{font-size:14px; color:var(--ink-2); flex:1}
/* What is waiting there for this person. Set off by a rule so it reads as the
   card's answer rather than more description. */
.surface__work{
  margin-top:var(--s3); padding-top:var(--s3); border-top:1px solid var(--rule);
  font-size:13.5px; font-weight:500; color:var(--open);
}
.surface__work--rust{color:var(--rust)}
.surface__work--amber{color:var(--amber)}

/* ---------- checklist review points ----------------------------------- */
/* Two columns now, not three: the third held an "Assess" button that opened a
   page of its own, and the form it opened is in the row. */
.row--point{grid-template-columns:52px 1fr}
.point__text{font-size:14.5px; line-height:1.5; margin:0 0 4px}
.point__answer{
  display:flex; align-items:baseline; gap:var(--s2); flex-wrap:wrap;
  margin-top:var(--s2); padding-top:var(--s2); border-top:1px solid var(--rule);
}
.point__followup{
  display:flex; align-items:center; gap:var(--s2); flex-wrap:wrap; margin-top:var(--s2);
}
/* A checklist module, closed until it is wanted.
   Built on <details>, so the open and closed states cost no JavaScript. The
   summary is laid out like .section__head - the heading on the left, the counts
   on the right - with the caret in front of it, because the counts have to stay
   readable while every module is shut.

   The native marker is replaced rather than hidden: an <svg> in the summary can
   be rotated on [open], and a disclosure triangle that only some browsers draw
   is worse than one this stylesheet controls. */
.module{border-top:1px solid var(--rule); margin-top:var(--s5)}
.module:first-of-type{margin-top:var(--s4)}
.module__head{
  display:flex; align-items:baseline; gap:var(--s3);
  padding:var(--s3) 0; cursor:pointer; list-style:none;
}
.module__head::-webkit-details-marker{display:none}
.module__head:hover h3{color:var(--open)}
.module__head h3{margin:0; flex:1 1 auto; min-width:0}
.module__tags{display:flex; align-items:baseline; gap:var(--s2); flex-wrap:wrap}
.module__caret{
  width:10px; height:10px; flex:none; color:var(--ink-3);
  /* Aligned to the heading's baseline rather than its box, or it rides high. */
  align-self:center;
  transition:transform .12s ease;
}
.module[open] .module__caret{transform:rotate(90deg)}
.module__body{padding-bottom:var(--s4)}
/* A summary is focusable, so it needs the same ring everything else gets. */
.module__head:focus-visible{outline:2px solid var(--open); outline-offset:2px}

/* The assessment, recorded in the row.
   Sixty-four of these on a page, so the form is as quiet as it can be while
   still being usable: the fields sit on one line where there is room, the status
   select takes only the width its longest option needs, and the note takes the
   rest. */
.point__form{
  margin-top:var(--s2); padding-top:var(--s3); border-top:1px solid var(--rule);
}
.point__fields{display:flex; gap:var(--s3); flex-wrap:wrap; align-items:flex-start}
.point__field{display:grid; gap:3px; min-width:0}
.point__field--wide{flex:1 1 320px}
.point__field label{font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3)}
.point__field select, .point__field textarea{
  font:inherit; font-size:13px; padding:5px var(--s2); background:var(--surface);
  color:var(--ink); border:1px solid var(--rule); border-radius:3px; width:100%;
}
.point__field textarea{resize:vertical; line-height:1.45}
.point__actions{
  display:flex; align-items:center; gap:var(--s3); flex-wrap:wrap;
  margin-top:var(--s2);
}
@media(max-width:720px){ .row--point{grid-template-columns:1fr} }

/* Second identifier under the first, in a directory row. */

/* Semicolon-separated fields rendered as lists. Tight leading and a restrained
   marker: these are usually two or three short items, not prose. */
.itemlist{margin:var(--s2) 0 0; padding-left:var(--s4); color:var(--ink-2)}
.itemlist li{margin-bottom:4px; line-height:1.5}
.itemlist li:last-child{margin-bottom:0}
.itemlist--tight{margin-top:0; padding-left:var(--s3); font-size:inherit}

/* ---------- multi-select as a filterable tick list -------------------- */
/* Replaces <select multiple>, where choosing several means ctrl-clicking and one
   stray click silently clears everything. */
.checklist{gap:var(--s2)}
.checklist__filter{
  font:inherit; font-size:12.5px; padding:5px var(--s2); background:var(--surface);
  color:var(--ink); border:1px solid var(--rule-strong); border-radius:3px;
  max-width:280px;
}
.checklist__box{
  border:1px solid var(--rule); border-radius:3px; background:var(--surface);
  padding:var(--s2); max-height:190px; overflow-y:auto;
  display:grid; gap:2px;
}
.checklist__option{padding:3px var(--s1); border-radius:2px}
.checklist__option:hover{background:var(--surface-2)}
.checklist__empty{padding:var(--s2)}
.checklist__count{color:var(--open); font-weight:500}

/* ---------- choosing several from a register -------------------------- */
/* Chips for what is chosen, a search box for the next one. Replaces a tick list
   of the whole register: fine for thirty-eight states, unusable once the list is
   every organisation J-PAL SA has ever worked with. */
.party{display:flex; flex-direction:column; gap:var(--s2)}
.party__chosen{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:var(--s1) var(--s2);
}
.chip{
  display:inline-flex; align-items:center; gap:var(--s1);
  padding:3px var(--s1) 3px var(--s2);
  background:var(--open-soft); border:1px solid var(--open-line); border-radius:12px;
  font-size:12.5px; font-weight:500; line-height:1.4; color:var(--open);
  max-width:100%;
}
.chip__name{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.chip__remove{
  flex:none; border:0; background:none; cursor:pointer; padding:0 2px;
  font:inherit; font-size:15px; line-height:1; color:var(--open);
  opacity:.65; border-radius:50%;
}
.chip__remove:hover{opacity:1; background:var(--open-line)}
.party__search{
  font:inherit; font-size:13.5px; padding:8px 10px; background:var(--surface);
  color:var(--ink); border:1px solid var(--rule-strong); border-radius:3px;
  max-width:360px;
}
/* The results sit under the box in flow rather than floating over the page: a
   long form is scrolled, and an absolutely positioned panel detaches from its
   input the moment anything moves. */
.party__results:not(:empty){
  border:1px solid var(--rule); border-radius:3px; background:var(--surface);
  max-height:220px; overflow-y:auto; max-width:360px;
}
.picker__option--taken{
  display:flex; align-items:baseline; gap:var(--s2);
  padding:6px var(--s2); color:var(--ink-3); cursor:default;
}
.party__empty{margin:0}

/* ---------- connections as cards -------------------------------------- */
/* One table of every relationship sorted by an invisible role order made you
   scan a column to find what you came for. Cards answer the question instead. */
.people{list-style:none; margin:0; padding:0; display:flex; flex-direction:column}
.person{
  display:flex; align-items:flex-start; justify-content:space-between; gap:var(--s3);
  padding:var(--s2) 0; border-bottom:1px solid var(--rule);
}
.person:last-child{border-bottom:0}
.person__name{font-weight:600; font-size:13.5px}
/* Ended, not deleted: still on the record, plainly not current. */
.person--past{color:var(--ink-3)}
.person--past .person__name{font-weight:500}
.person--past + .person:not(.person--past){border-top:1px solid var(--rule-strong)}
.person__edit{
  flex:none; font-size:12px; color:var(--open); text-decoration:none;
  padding:2px var(--s2); border:1px solid var(--rule); border-radius:3px;
}
.person__edit:hover{background:var(--surface-2)}

/* ---------- directory rows -------------------------------------------- */
/* The code column sat flush against the edge of the list, which reads as
   clipped rather than aligned. */
.row__id{padding-left:var(--s2)}
/* The partners, under the investigators. Same treatment as the line above it:
   both are a muted label with the names picked out, so the two read as one block
   rather than as a heading and a footnote. */
.row__orgs{
  margin:-4px 0 7px; font-size:12.5px; color:var(--ink-2); line-height:1.45;
}
.row__orgs b{font-weight:500; color:var(--ink)}

/* A note under a section's own list, rather than a line of it. Without the gap it
   reads as belonging to the last item above — on the Funding card it looked like a
   remark about whichever donor happened to come last. */
.section__note{margin:var(--s3) 0 0}

/* ---------- the active-portfolio summary ------------------------------ */
/* Five cards rather than one divided box. Each is a .panel in all but name -
   --surface on --rule at the house three-pixel radius - set on the paper with
   real space between them, so the row reads as five answers instead of one
   table.

   Flat, deliberately. --shadow is defined in :root and used nowhere in this
   stylesheet; the whole interface is borders and grounds, and five lifted cards
   in a flat application look imported from somewhere else.

   Three lines to a card: what it is, the figure, and what the figure means. Two
   lines left them looking sparse, and the third is the one that stops a number
   being read as the wrong number - partnerships that exclude donors, a sum that
   covers two thirds of the portfolio. */
.headline{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(158px, 1fr));
  gap:var(--s3);
  margin-bottom:var(--s5);
}
.headline__cell{
  display:flex; flex-direction:column;
  background:var(--surface); border:1px solid var(--rule); border-radius:3px;
  padding:var(--s4); min-width:0;
}
/* Money is a different kind of figure from a count, so it sits on the recessed
   ground the stylesheet already uses for table headers and .panel--sunk. No new
   colour, and nothing that could be mistaken for a status.

   It is wider than the others but not twice as wide: a whole extra column was
   more room than a seven-figure sum and one line of caveat can fill, and the
   card read as empty. The explicit template below gives it four tenths more
   than its neighbours, which is enough for the number never to wrap. */
.headline__cell--money{background:var(--sunk)}
.headline__label{
  font-size:10.5px; font-weight:500; text-transform:uppercase;
  letter-spacing:.08em; color:var(--ink-2);
}
.headline__value{
  font-size:30px; font-weight:500; font-variant-numeric:tabular-nums;
  letter-spacing:-.01em;
  line-height:1.05; color:var(--ink);
  margin:var(--s2) 0 auto;
}
/* Nought in the pipeline is a real answer, not a gap, so it steps back one tone
   instead of being greyed to the edge of legible. */
.headline__value--none{color:var(--ink-3)}
.headline__note{
  font-size:11.5px; line-height:1.35; color:var(--ink-2);
  margin-top:var(--s2);
}
/* Wide enough for one row of five: four equal cards and a money card four
   tenths larger. Below this the auto-fit above takes over and every card is the
   same width, which is right once they are stacking anyway. */
@media (min-width:62rem){
  .headline{grid-template-columns:repeat(4, 1fr) 1.4fr}
}
@media (max-width:40rem){
  .headline{grid-template-columns:repeat(auto-fit, minmax(132px, 1fr)); gap:var(--s2)}
  .headline__cell{padding:var(--s3)}
  .headline__value{font-size:24px}
}


/* ---------- searching a register -------------------------------------- */
/* The registers are a hundred and thirty rows each and the work on them is bulk
   correction, so the search and the filter sit above the table rather than
   somewhere a page down. Laid out like .filters, because that is what it is. */
.register__find{
  display:flex; gap:var(--s3); flex-wrap:wrap; align-items:center;
  margin-bottom:var(--s3);
}
.register__find .search{flex:1 1 220px; min-width:0}
.register__find select{
  font:inherit; font-size:12.5px; padding:5px 26px 5px var(--s2);
  background:var(--surface); color:var(--ink);
  border:1px solid var(--rule); border-radius:3px;
}
/* A row being corrected puts its inputs in the cells it already had. The note
   is the one field with nowhere to go, so it sits under the buttons. */
.grid tr td input[type=text], .grid tr td input[type=email],
.grid tr td select, .grid tr td textarea{
  font:inherit; font-size:12.5px; padding:4px var(--s2); width:100%;
  background:var(--surface); color:var(--ink);
  border:1px solid var(--rule-strong); border-radius:3px;
}
.register__notes{margin-top:var(--s2); min-width:180px}
.register__notes textarea{min-height:44px; resize:vertical}

/* ---------- directory: list or explore -------------------------------- */
.viewswitch{display:inline-flex; border:1px solid var(--rule-strong); border-radius:4px; overflow:hidden; margin-bottom:var(--s4)}
.viewswitch__item{padding:6px var(--s4); font-size:13.5px; color:var(--ink-2); text-decoration:none; background:var(--surface)}
.viewswitch__item + .viewswitch__item{border-left:1px solid var(--rule-strong)}
.viewswitch__item:hover{color:var(--ink)}
.viewswitch__item[aria-current="page"]{background:var(--open); color:var(--on-open); font-weight:500}

/* ---------- the explorer ---------------------------------------------- */
.explorer__bar{display:flex; flex-wrap:wrap; gap:var(--s3); align-items:center; margin-bottom:var(--s3)}
.explorer__arrange{display:inline-flex; border:1px solid var(--rule-strong); border-radius:4px; overflow:hidden}
.explorer__mode{appearance:none; border:0; background:var(--surface); padding:7px var(--s4); font:inherit; font-size:13.5px; color:var(--ink-2); cursor:pointer}
.explorer__mode + .explorer__mode{border-left:1px solid var(--rule-strong)}
.explorer__mode[aria-pressed="true"]{background:var(--open-soft); color:var(--open); font-weight:500}
/* Full screen and reset, as icons at the end of the bar. */
.explorer__tools{display:flex; gap:6px; margin-left:auto}
.explorer__iconbtn{display:inline-flex; align-items:center; justify-content:center; width:37px; height:37px; padding:0; color:var(--ink-2)}
.explorer__iconbtn:hover{color:var(--ink)}
.explorer__glyph{width:18px; height:18px}
.explorer__iconbtn .explorer__glyph--exit, .explorer__iconbtn.is-full .explorer__glyph--enter{display:none}
.explorer__iconbtn.is-full .explorer__glyph--exit{display:block}
.explorer__find{
  position:relative; flex:1 1 200px; max-width:460px; display:flex; align-items:center; gap:var(--s2);
  background:var(--surface); border:1px solid var(--rule-strong); border-radius:3px; padding:7px var(--s3);
}
.explorer__find input{flex:1; min-width:0; border:0; background:none; font:inherit; font-size:14px; color:var(--ink)}
.explorer__find input:focus{outline:none}
.explorer__find:focus-within{outline:2px solid var(--open); outline-offset:1px}
.explorer__matches{
  position:absolute; left:-1px; right:-1px; top:calc(100% + 4px); z-index:20; margin:0; padding:4px; list-style:none;
  background:var(--surface); border:1px solid var(--rule-strong); border-radius:4px; box-shadow:var(--shadow);
}
.explorer__match{display:flex; justify-content:space-between; gap:var(--s3); padding:7px 10px; border-radius:3px; cursor:pointer; font-size:13.5px}
.explorer__match.is-active, .explorer__match:hover{background:var(--surface-2)}
.explorer__body{display:grid; grid-template-columns:minmax(0, 1fr) 300px; gap:var(--s4); align-items:start}
@media(max-width:900px){ .explorer__body{grid-template-columns:1fr} }
.explorer__canvas{background:var(--surface); border:1px solid var(--rule); border-radius:4px; overflow:hidden}
/* manipulation: a finger scrolls the page and a pinch zooms it, as anywhere;
   the picture's own pan and zoom are for mouse and trackpad (explore.js). */
.explorer__canvas svg{display:block; width:100%; cursor:grab; touch-action:manipulation}
.explorer__hint{font-size:12px; color:var(--ink-3); padding:6px var(--s3); border-top:1px solid var(--rule)}
.explorer__panel{background:var(--surface); border:1px solid var(--rule); border-radius:4px; padding:var(--s4); display:grid; gap:var(--s2); align-content:start}
.explorer__panel-title{font-size:18px; line-height:1.3}
.explorer__panel-sub{font-size:13px; font-family:var(--f-sans); font-weight:600; margin-top:var(--s2)}
.explorer__eyebrow{display:flex; align-items:center; gap:6px; font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-3)}
.explorer__swatch{width:10px; height:10px; border-radius:50%; border:1.5px solid var(--ink-3); flex:none}
.explorer__facts{display:grid; grid-template-columns:auto 1fr; gap:3px var(--s3); font-size:13px; margin:0}
.explorer__facts dt{color:var(--ink-3)}
.explorer__facts dd{margin:0}
.explorer__summary{font-size:13px; color:var(--ink-2)}
.explorer__people{list-style:none; margin:0; padding:0; display:grid; gap:2px}
.explorer__person{appearance:none; border:0; background:none; padding:2px 0; font:inherit; font-size:13.5px; color:var(--open); text-align:left; cursor:pointer; text-decoration:underline; text-underline-offset:2px}
.explorer__person:hover{text-decoration-thickness:2px}
/* "+3 more", or a code, after a name: tied to the name's last word (explore.js,
   nameWith) so they wrap together. Inline-block, so the underline stops short
   of it. */
.explorer__keep{white-space:nowrap}
.explorer__aside{display:inline-block; margin-left:6px; font-size:12.5px; color:var(--ink-3)}
.explorer__open{font-size:13.5px; font-weight:500; margin-top:var(--s2)}
.explorer__key{display:flex; align-items:center; gap:6px}
.explorer__keytile{width:16px; height:10px; border-radius:5px; border:1.5px solid var(--open); background:var(--open-soft); flex:none}
.explorer__keytile--pipeline{background:var(--surface)}
.explorer__card-status{font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--open)}
/* The picture itself */
/* A project: a tile with its code, tinted with its sector's colour. */
.ex-tile{cursor:pointer; transition:opacity .2s}
.ex-tile rect{stroke-width:.8}
.ex-tile text{font-family:var(--f-mono); font-size:10.5px; font-weight:500; fill:var(--ink); pointer-events:none}
/* Pipeline: outlined in its sector's colour, not filled - not yet under way. */
.ex-tile--pipeline rect{stroke-width:1.1}
.ex-tile:hover rect{stroke-width:1.6}
.ex-tile.is-dim{opacity:.14}
.ex-tile.is-on rect{stroke:var(--ink); stroke-width:1.6}
/* The tile's body, which moves about its own middle: a lift under the pointer,
   and one pop as its project is chosen. The pop names no end, so it settles back
   to whatever the tile would otherwise be - lifted if still under the pointer. */
.ex-tile__body{transform-box:fill-box; transform-origin:center; transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
@media (hover:hover){ .ex-tile:hover .ex-tile__body{transform:scale(1.07)} }
.ex-tile.is-chosen .ex-tile__body{animation:ex-pop .45s cubic-bezier(.34,1.56,.64,1)}
@keyframes ex-pop{ 45%{transform:scale(1.22)} }
.ex-tile.is-leaving, .ex-sat.is-leaving, .ex-line.is-leaving{pointer-events:none}
.ex-label{font-family:var(--f-sans); font-size:12px; font-weight:600; fill:var(--ink-2); pointer-events:none; transition:opacity .2s}
/* A project chosen: the group labels step back behind the names fanned round it. */
.is-focused .ex-label{opacity:.15}
.ex-line{stroke:var(--rule-strong); stroke-width:1}
.ex-sat{cursor:pointer}
/* Investigators teal and round, partners ochre and square: told apart by colour
   first, 1 October 2026, as the shapes alone were too easily missed. */
.ex-sat__bg{stroke-width:1}
.ex-sat__mark{stroke-width:1.5}
.ex-sat--pi .ex-sat__bg{fill:var(--open-soft); stroke:var(--open-line)}
.ex-sat--pi .ex-sat__mark{fill:var(--open); stroke:var(--open)}
.ex-sat--partner .ex-sat__bg{fill:var(--partner-soft); stroke:var(--partner-line)}
.ex-sat--partner .ex-sat__mark{fill:var(--partner); stroke:var(--partner)}
/* The same marks beside the panel's headings, which makes them the key. */
.explorer__keymark{display:inline-block; width:9px; height:9px; margin-right:7px; vertical-align:1px}
.explorer__keymark--pi{border-radius:50%; background:var(--open)}
.explorer__keymark--partner{border-radius:2px; background:var(--partner)}
.ex-sat text{font-family:var(--f-sans); font-size:11.5px; font-weight:500; fill:var(--ink)}
.ex-sat:hover text{fill:var(--open)}
/* The map view. An empty state is the quiet grey; a state with projects is
   filled from the script, which overrides it. */
.ex-state{fill:var(--surface-2); stroke:var(--surface); stroke-width:.7; cursor:pointer; transition:fill .3s}
.ex-hover{fill:none; stroke:var(--ink); stroke-width:1.2}
.ex-here{fill:none; stroke:var(--ink); stroke-width:1.8}
.ex-state--disputed{pointer-events:none}
.ex-mapnum{font-family:var(--f-sans); font-size:11px; font-weight:600; fill:var(--ink); pointer-events:none; font-variant-numeric:tabular-nums}
.ex-mapnum.is-dark{fill:var(--surface)}
.ex-mapkey text{font-family:var(--f-sans); font-size:11px; fill:var(--ink-3)}
.ex-mapkey rect{stroke:var(--rule-strong); stroke-width:.5}
.explorer__offmap{display:flex; flex-wrap:wrap; align-items:baseline; gap:2px var(--s3); font-size:12.5px; color:var(--ink-3); padding:6px var(--s3); border-top:1px solid var(--rule)}
.explorer__offmap[hidden]{display:none}
@media (prefers-reduced-motion: reduce){
  .ex-tile, .ex-label, .ex-state, .ex-tile__body{transition:none}
  .ex-tile__body{animation:none !important; transform:none !important}
}

/* Totals for whatever is lit. */
.explorer__strip{display:flex; flex-wrap:wrap; gap:var(--s2) var(--s6); margin:0 0 var(--s3)}
.explorer__stat{display:flex; align-items:baseline; gap:6px}
.explorer__stat dd{margin:0; font-family:var(--f-display); font-size:24px; font-weight:600; line-height:1; font-variant-numeric:lining-nums tabular-nums}
.explorer__stat dt{font-size:13px; color:var(--ink-2)}
.explorer__stat-note{color:var(--ink-3)}
/* The sectors, each a way to light that sector up. */
.explorer__legend{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:var(--s3)}
.explorer__legend-item{
  appearance:none; display:inline-flex; align-items:center; gap:6px; padding:3px 10px 3px 8px;
  border:1px solid var(--rule); border-radius:12px; background:var(--surface);
  font:inherit; font-size:12.5px; color:var(--ink-2); cursor:pointer;
}
.explorer__legend-item:hover{border-color:var(--rule-strong); color:var(--ink)}
.explorer__legend-item[aria-pressed="true"]{border-color:var(--ink); color:var(--ink); font-weight:500}
.explorer__legend-n{color:var(--ink-3); font-variant-numeric:tabular-nums}
.explorer__legend .explorer__swatch{border:0}
/* On a phone the legend is one row that scrolls, not five that push the picture
   off the screen. */
@media(max-width:640px){
  .explorer__legend{flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding-bottom:2px}
  .explorer__legend::-webkit-scrollbar{display:none}
  .explorer__legend-item{flex:none}
}
/* The preview on hover. */
.explorer__canvas{position:relative}
.explorer__card{
  position:absolute; z-index:5; max-width:280px; pointer-events:none;
  background:var(--surface); border:1px solid var(--rule-strong); border-radius:4px;
  box-shadow:var(--shadow); padding:10px 12px; display:grid; gap:3px;
}
.explorer__card-title{font-family:var(--f-display); font-size:15px; font-weight:600; line-height:1.3}
.explorer__card-row{font-size:12.5px; color:var(--ink-2)}
/* Full screen, for showing it in a room. */
.explorer:fullscreen{background:var(--paper); padding:var(--s5); overflow:auto}

/* ---------- research snapshot ----------------------------------------- */
/* The portfolio in numbers for leadership meetings: a page, the same page as
   slides (.is-presenting, static/core/js/snapshot.js), and one printed sheet. */
.snapshot__actions{margin-top:var(--s4)}
.snapshot__grid{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--s4)}
@media(max-width:900px){ .snapshot__grid{grid-template-columns:1fr} }
.snapshot__slide{background:var(--surface); border:1px solid var(--rule); border-radius:4px; padding:var(--s5)}
.snapshot__slide--wide{background:none; border:0; padding:0; margin-bottom:var(--s4)}
.snapshot__slide--wide .strip{margin:0}
.snapshot__title{font-size:19px; margin-bottom:var(--s3)}
.snapshot__key{display:flex; flex-wrap:wrap; gap:var(--s2) var(--s4); font-size:12.5px; color:var(--ink-3); margin-bottom:var(--s3)}
.snapshot__key > span{display:inline-flex; align-items:center; gap:6px}
.snapshot__note{font-size:12.5px; color:var(--ink-3); margin-top:var(--s3); max-width:70ch}

/* A bar chart: active filled, pipeline outlined, each with its number. */
.bars{display:grid; gap:var(--s3)}
.bars__row{display:grid; grid-template-columns:minmax(0, 11rem) 1fr; gap:var(--s3); align-items:center}
.bars__label{font-size:13.5px; line-height:1.3}
.bars__pair{display:grid; gap:3px}
.bars__line{display:flex; align-items:center; gap:6px; min-height:14px}
.bars__bar{display:block; height:12px; min-width:2px; border-radius:2px; background:var(--open)}
.bars__bar--pipeline{background:var(--surface); border:1.5px solid var(--open)}
.bars__n{font-size:12.5px; font-variant-numeric:tabular-nums; color:var(--ink-2)}
.bars__swatch{display:inline-block; width:14px; height:10px; border-radius:2px; background:var(--open)}
.bars__swatch--pipeline{background:var(--surface); border:1.5px solid var(--open)}

.snapshot__pair{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--s4)}
.snapshot__big{font-family:var(--f-display); font-size:40px; font-weight:600; line-height:1; color:var(--open); font-variant-numeric:lining-nums tabular-nums}
.snapshot__big--pipeline{color:var(--ink-2)}
.snapshot__caption{font-size:13.5px; margin-top:6px}
.snapshot__caption .hint{display:block}

.snapshot__mapwrap{display:grid; grid-template-columns:minmax(0, 1fr) 11rem; gap:var(--s4); align-items:start}
.snapshot__map{display:block; width:100%; height:auto}
.snapshot__state{fill:var(--surface-2); stroke:var(--surface); stroke-width:.7}
/* In the map's own units: it is drawn 600 wide and scaled to fit. */
.snapshot__num{font-family:var(--f-sans); font-size:19px; font-weight:600; fill:var(--ink); pointer-events:none}
.snapshot__num.is-dark{fill:var(--surface)}
.snapshot__states{list-style:none; margin:0; padding:0; display:grid; gap:4px; font-size:13px}
.snapshot__states li{display:flex; justify-content:space-between; gap:var(--s2); border-bottom:1px solid var(--rule); padding-bottom:3px}
@media(max-width:560px){
  .snapshot__mapwrap, .snapshot__pair{grid-template-columns:1fr}
}

/* Presenting: one section at a time, filling the screen, sized in em from a
   base that grows with the screen, so a projector gets large type. */
.snapshot.is-presenting{
  position:fixed; inset:0; z-index:200; overflow:auto; display:flex; flex-direction:column;
  background:var(--paper); padding:4vh 6vw 9vh;
  /* By width and by height, whichever is smaller, so eleven sectors still fit a
     wide but short screen. */
  font-size:clamp(14px, min(1.45vw, 1.9vh), 26px);
}
.snapshot:fullscreen{background:var(--paper)}
html.is-presenting-snapshot{overflow:hidden}
.is-presenting .snapshot__head{display:none}
/* The grid fills the screen so its slide can sit in the middle of it - except
   while the first slide, which is outside it, is showing. */
.is-presenting .snapshot__grid{display:flex; flex-direction:column; flex:1}
.is-presenting .snapshot__grid:not(:has(.is-current)){display:none}
.is-presenting [data-slide]{display:none}
.is-presenting [data-slide].is-current{
  display:block; width:100%; max-width:1300px; margin:auto; background:none; border:0; padding:0; cursor:pointer;
}
.is-presenting .snapshot__title{font-size:2.1em; margin-bottom:.7em}
.is-presenting .snapshot__key{font-size:.8em; margin-bottom:1em}
.is-presenting .snapshot__note{font-size:.75em; max-width:none; margin-top:1.2em}
.is-presenting .bars{gap:.5em}
.is-presenting .bars__pair{gap:.15em}
.is-presenting .bars__row{grid-template-columns:minmax(0, 15em) 1fr; gap:1em}
.is-presenting .bars__label{font-size:1em}
.is-presenting .bars__bar{height:.75em}
.is-presenting .bars__n{font-size:.85em; line-height:1.2}
.is-presenting .bars__line{gap:.4em}
.is-presenting .strip__cell{padding:1em 1.2em}
.is-presenting .strip__label{font-size:.7em}
.is-presenting .strip__value{font-size:3em}
.is-presenting .strip__note{font-size:.7em}
.is-presenting .snapshot__big{font-size:4em}
.is-presenting .snapshot__caption{font-size:1em}
.is-presenting .snapshot__mapwrap{grid-template-columns:minmax(0, 1fr) 14em}
.is-presenting .snapshot__map{max-height:68vh; width:auto; max-width:100%; margin:0 auto}
.is-presenting .snapshot__states{font-size:.8em}
.snapshot__bar{
  position:fixed; left:0; right:0; bottom:0; z-index:201; display:flex; justify-content:space-between; align-items:center;
  gap:var(--s3); padding:1.2vh 3vw; font-size:13px; color:var(--ink-3); background:var(--paper); border-top:1px solid var(--rule);
}
.snapshot__controls{display:flex; align-items:center; gap:var(--s2); font-variant-numeric:tabular-nums}
.snapshot__ctrl{appearance:none; width:32px; height:28px; border:1px solid var(--rule-strong); border-radius:3px; background:var(--surface); font:inherit; color:var(--ink-2); cursor:pointer}
.snapshot__ctrl:hover{color:var(--ink); border-color:var(--ink-3)}

/* One printed sheet: the bar, the footer and the buttons go; colour is kept. */
@media print{
  @page{margin:12mm}
  .topbar, .foot, .skip, .snapshot__actions, .snapshot__bar{display:none !important}
  /* The page's own padding alone pushed the sheet onto a second, empty page. */
  main:has(.snapshot){padding-top:0; padding-bottom:0}
  .snapshot{font-size:11px}
  .snapshot *{-webkit-print-color-adjust:exact; print-color-adjust:exact}
  .snapshot .page-head{margin-bottom:8px}
  .snapshot .lede{font-size:12px}
  .snapshot .page-head h1{font-size:22px}
  .snapshot__slide--wide{margin-bottom:8px}
  .snapshot__figures .strip__cell{flex:1 1 0; padding:6px 10px}
  .snapshot__figures .strip__value{font-size:18px}
  .snapshot__figures .strip__label, .snapshot__figures .strip__note{font-size:9px}
  .snapshot__grid{grid-template-columns:1fr 1fr; gap:8px}
  .snapshot__slide{break-inside:avoid; padding:10px}
  .snapshot__title{font-size:14px; margin-bottom:4px}
  .snapshot__key, .snapshot__note{font-size:10px; margin-top:4px; margin-bottom:4px}
  .bars{gap:3px}
  .bars__row{grid-template-columns:minmax(0, 8rem) 1fr; gap:6px}
  .bars__label{font-size:10px}
  .bars__line{min-height:8px; gap:4px}
  .bars__pair{gap:1px}
  .bars__bar{height:7px}
  .bars__n{font-size:9px}
  .snapshot__big{font-size:26px}
  .snapshot__caption{font-size:11px; margin-top:2px}
  .snapshot__mapwrap{grid-template-columns:minmax(0, 1fr) 8rem; gap:8px}
  .snapshot__states{font-size:10px; gap:2px}
}

/* ---------- the journey (playground) ------------------------------------ */
/* The journey: every stage a dot on one line, done in teal, now ringed. */
.journey{list-style:none; margin:0; padding:0; display:flex}
.journey__step{position:relative; flex:1 1 0; display:flex; flex-direction:column; align-items:center; text-align:center; min-width:0}
.journey__step::before{content:""; position:absolute; top:6px; left:-50%; right:50%; height:2px; background:var(--rule)}
.journey__step:first-child::before{display:none}
.journey__step--done::before, .journey__step--now::before{background:var(--open)}
.journey__dot{position:relative; z-index:1; width:14px; height:14px; border-radius:50%; background:var(--surface); border:2px solid var(--rule-strong)}
.journey__step--done .journey__dot{background:var(--open); border-color:var(--open)}
.journey__step--now .journey__dot{background:var(--surface); border:4px solid var(--open); box-shadow:0 0 0 4px var(--open-soft)}
.journey__label{margin-top:8px; font-size:11px; line-height:1.3; color:var(--ink-3); padding:0 2px}
.journey__step--now .journey__label{font-size:12.5px; font-weight:600; color:var(--ink)}
@media(max-width:640px){
  /* On a phone only the current stage is named; the dots still show the way. */
  .journey__label{display:none}
  .journey__step--now .journey__label{display:block; white-space:nowrap}
}


/* ---------- the project page: story left, facts right (playground) ------- */
/* The story at the left, wider; the facts at the right as a lined register.
   Lines only between the parts - one down the middle the full height, and one
   between each part in a column - and none round the edge, as on the home page. */
/* The opening and the facts across the page; then the story and the people. */
.dossier{display:grid; grid-template-columns:minmax(0, 1.7fr) minmax(0, 1fr); align-items:stretch; margin-top:var(--s3)}
.dossier__head, .dossier__facts-strip{grid-column:1 / -1}
/* The story at the left; the people and the contacts beside it. */
.dossier__story{padding-right:var(--s6)}
.dossier__side{border-left:1px solid var(--rule-strong); padding-left:var(--s6)}
.dossier__side > .dossier__part:first-child{padding-top:var(--s5)}
/* The facts in one row of cells, closed above and below, no lines between. */
.dossier__facts-strip{display:flex; flex-wrap:wrap; margin:56px 0 var(--s5); border-top:1px solid var(--rule-strong); border-bottom:1px solid var(--rule-strong)}
.dossier__facts-strip > div{flex:1 1 140px; padding:var(--s3) var(--s4); min-width:0}
.dossier__facts-strip > div:first-child{padding-left:0}
.dossier__facts-strip dt{font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--open)}
.dossier__facts-strip dd{margin:4px 0 0; font-size:15px}
.dossier__part{padding:var(--s5) 0}
.dossier__part + .dossier__part{border-top:1px solid var(--rule-strong)}
.dossier__head{padding-top:0}
.dossier__story > .dossier__part:first-child{padding-top:var(--s5)}

.dossier__head{text-align:center}
.dossier__eyebrow{font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--open)}
.dossier__eyebrow .mono{font-weight:400; letter-spacing:.04em; text-transform:none; color:var(--ink-3)}
.dossier__title{font-size:clamp(28px, 3.6vw, 40px); line-height:1.12; letter-spacing:-.012em; margin:var(--s3) auto 0; max-width:38ch}
/* Centred, and held to a reading width so the lines stay comfortable. */
.dossier__standfirst{font-family:var(--f-display); font-size:18px; line-height:1.55; color:var(--ink-2); margin:var(--s4) auto 0; max-width:72ch}
.dossier__journey{text-align:initial}
/* Clear space above the journey and below it, before the facts. */
.dossier__journey{margin-top:56px}
/* A long stage name breaks, hyphenated, rather than running into the next. */
.dossier__journey .journey__label{font-size:10.5px; hyphens:manual; -webkit-hyphens:manual}

.dossier__kicker{font-family:var(--f-sans); font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--open); margin-bottom:var(--s3)}
.dossier__sub{font-family:var(--f-sans); font-size:12.5px; font-weight:600; color:var(--ink-2); margin:var(--s4) 0 var(--s2)}
.dossier__sub--first{margin-top:0}
/* One size for every piece of body text in the story, the people's size at the
   right: the outcome no larger than the population it is measured on. */
.dossier__question{font-size:14.5px; line-height:1.5}
.dossier__question + .dossier__question{margin-top:var(--s3)}
.dossier__list{margin:0; padding-left:1.1em; display:grid; gap:3px; font-size:14.5px}
.dossier__dl{margin:0; display:grid; gap:var(--s4)}
.dossier__dl dt{font-size:12px; color:var(--ink-3); margin-bottom:2px}
.dossier__dl dd{margin:0; font-size:14.5px; line-height:1.5}
.dossier__now{font-size:14.5px; line-height:1.5}
.dossier__story .dossier__part > p{font-size:14.5px; line-height:1.5}

/* The register: label and value on one line each, a hairline between. */
.register{margin:0; display:grid}
.register > div{display:grid; grid-template-columns:7.5rem minmax(0, 1fr); gap:var(--s3); padding:6px 0; font-size:14px}
.register > div + div{border-top:1px dotted var(--rule-strong)}
.register dt{color:var(--ink-3)}
.register dd{margin:0}
.people-list{list-style:none; margin:0; padding:0; display:grid; gap:var(--s3)}
.people-list li{display:grid; gap:1px}
.people-list__name{font-weight:600; font-size:14.5px}
.people-list__role{font-size:12.5px; color:var(--ink-3)}
.people-list__email{font-size:12.5px; overflow-wrap:anywhere}
.dossier__note{margin-top:var(--s3)}
.dossier__links{list-style:none; margin:0; padding:0; display:grid; gap:var(--s2); font-size:14.5px}

@media(max-width:900px){
  .dossier{grid-template-columns:1fr}
  .dossier__story{padding-right:0}
  .dossier__side{border-left:0; padding-left:0; border-top:1px solid var(--rule-strong)}
  .dossier__facts-strip > div{flex-basis:45%; padding-left:0}
  .dossier__facts-strip > div + div{border-left:0}
}

/* ---------- home as a front page (playground) -------------------------- */
/* The title and the search, then the tools. Layout only for now: colour and
   type come after. */
.masthead{padding:var(--s6) 0 var(--s6)}
.masthead__title{font-size:clamp(30px, 4.6vw, 52px); line-height:1.08; letter-spacing:-.015em; max-width:22ch}
.masthead__row{display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:var(--s4) var(--s6); margin-top:var(--s5)}
/* Signed out, the Sign in button stands where the search would, the same
   distance under the title - 5 October 2026; it sat almost touching it. */
.masthead__signin{display:inline-block; margin-top:var(--s5); text-decoration:none}
.masthead__search{margin-top:0; flex:0 1 460px; box-shadow:none; border:1px solid var(--rule-strong)}

.front__kicker{font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--open); margin-bottom:var(--s4)}
/* Under the title and search, in the left-hand column: two columns of sectors. */
.front__sectors{grid-column:1; grid-row:2; margin-top:var(--s6)}
/* A line under the heading, across the page, that the sectors hang from. */
/* The heading and the Active / Pipeline toggle at its two ends, on one line
   that the sectors hang from, a little below it. */
.front__sectorhead{display:flex; justify-content:space-between; align-items:flex-end; gap:var(--s3); padding-bottom:var(--s3); border-bottom:1px solid var(--rule-strong); margin-bottom:var(--s4)}
.front__sectorhead .front__kicker{margin:0}
/* A switch between two words, set like the heading beside it. */
.flip{display:flex; align-items:center; gap:var(--s2)}
.flip__word{appearance:none; border:0; background:none; padding:0; font:inherit; font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); cursor:pointer}
.flip__word.is-on{color:var(--open)}
.flip__switch{appearance:none; position:relative; width:28px; height:16px; padding:0; border:0; border-radius:8px; background:var(--rule-strong); cursor:pointer; transition:background .15s}
.flip__knob{position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%; background:var(--surface); box-shadow:0 1px 2px rgba(0,0,0,.2); transition:transform .15s}
.flip__switch[aria-checked="true"]{background:var(--open)}
.flip__switch[aria-checked="true"] .flip__knob{transform:translateX(12px)}
@media (prefers-reduced-motion: reduce){ .flip__switch, .flip__knob{transition:none} }
.sectorindex{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 var(--s5)}
@media(max-width:400px){ .sectorindex{grid-template-columns:1fr} }
.sectorindex a{display:flex; justify-content:space-between; align-items:baseline; gap:var(--s3); padding:var(--s2) 0; border-bottom:1px dotted var(--rule-strong); text-decoration:none; color:var(--ink)}
.sectorindex a:hover{color:var(--open)}
.sectorindex__name{font-family:var(--f-display); font-size:16px}
.sectorindex__n{font-variant-numeric:tabular-nums; color:var(--ink-3); font-size:14px}



.front__tools{padding-top:var(--s2)}

/* The title and search at the left, the tools at the right. Two columns of
   equal width, each stacking at its own rhythm, so the tiles come out at uneven
   heights; on the page's own grey, with lines only between them - one down the
   middle, and one between the tiles in each column - and none around the edge. */
/* The left - title, search, sectors - a little wider than the tools at the right. */
.home{display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr); gap:var(--s7); align-items:start; padding-top:0}
@media(max-width:900px){ .home{grid-template-columns:1fr; gap:var(--s6); padding-top:var(--s6)} }
/* The title and search start a little below the tools, off the top edge. */
/* The tools start at the top; the title and search 152px below, where they were. */
.home .masthead{padding:0; margin-top:152px; grid-column:1; grid-row:1}
/* The tools run down the right beside both the title and the sectors. */
.home .front__tools{grid-column:2; grid-row:1 / span 2}
/* The page's own grid, lined like the tools': one line down between the left
   side and the tools, the full height, and one across between the title and
   the sectors, meeting it. None round the outside. The tools' own padding keeps
   them off the line, so the column gap goes. */
.home{column-gap:0}
.home .masthead, .front__sectors{padding-right:var(--s7)}
.home .front__tools{align-self:stretch; border-left:1px solid var(--rule-strong)}
/* No line above the sectors, from 3 October 2026: the line under their heading
   runs on to the middle line instead, so the two meet. The toggle keeps its
   place over the list. */
.front__sectors{padding-top:var(--s6)}
.front__sectorhead{margin-right:calc(-1 * var(--s7)); padding-right:var(--s7)}
/* One column below 900px: title and search, the tools, then the sectors. After
   the placements above, so it overrides them. */
@media(max-width:900px){
  .home .masthead{margin-top:0}
  .home .masthead, .home .front__tools, .front__sectors{grid-column:auto; grid-row:auto}
  .front__sectors{margin-top:0}
  .home .masthead, .front__sectors{padding-right:0}
  .home .front__tools{border-left:0}
  .front__sectors{border-top:0; padding-top:0}
  .front__sectorhead{margin-right:0; padding-right:0}
}
.home .front__tools{padding-top:0}
.tools{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr))}
.tools__col{list-style:none; margin:0; padding:0; display:flex; flex-direction:column}
.tools__col + .tools__col{border-left:1px solid var(--rule-strong)}
.tool{position:relative; display:flex; flex-direction:column; gap:var(--s3); padding:var(--s5)}
.tools__col .tool + .tool{border-top:1px solid var(--rule-strong)}
.tool:hover{background:var(--surface)}
/* Every tile alike and the same height; the right column starts half a tile
   lower, so the lines across the two columns never meet in a row. */
.tool{min-height:180px}
/* Only when the right column has two tiles or more to step down - with fewer
   there are no lines across to interlock, and the step reads as a slip. */
.tools__col + .tools__col:has(.tool + .tool){padding-top:90px}
.tool__name::after{content:""; position:absolute; inset:0}   /* the whole tile is the link */
.tool__name{text-decoration:none; color:var(--ink)}
.tool:hover .tool__name{color:var(--open)}
.tool__blurb{font-size:13.5px; color:var(--ink-2); line-height:1.45}
/* One column on a phone, in the list's own order rather than column by column. */
@media(max-width:560px){
  .tools{display:flex; flex-direction:column}
  .tools__col{display:contents}
  .tools__col + .tools__col{border-left:0}
  .tools__col + .tools__col{padding-top:0}
  .tools__col .tool{min-height:0; order:var(--tool-order); border-top:1px solid var(--rule-strong); padding-inline:0}
  .tools__col .tool[style="--i:1"]{border-top:0}
}
.tool__icon{color:var(--open); flex:none; margin-top:2px}
.tool__icon .icon{width:20px; height:20px}
.tool--confidential .tool__icon{color:var(--restricted)}
/* A tool this person cannot open: there, named and described, but quiet - no
   link, no hover - and marked Restricted. */
.tool--locked{cursor:default}
.tool--locked:hover{background:none}
.tool--locked .tool__icon, .tool--locked .tool__name, .tool--locked .tool__blurb{color:var(--ink-3)}
.tool--locked .tool__name{font-weight:500}
.tool__name{font-weight:600; font-size:16px}
.tool__work{font-size:13px; color:var(--ink-3)}
.tool__work--rust{color:var(--rust)} .tool__work--amber{color:var(--amber)}
.tool .pill{position:absolute; top:var(--s4); right:var(--s4)}
.tool__text{display:grid; gap:4px; min-width:0}

/* ---------- one menu button (playground) ------------------------------- */
/* The bar is the page's own grey with no line under it: the name at the left,
   one menu button at the right, everything else inside it. */
/* Fully clear (playground, 2 October 2026): no fill and no blur, so what
   scrolls beneath it shows through. A blurred version was tried first. */
.topbar{background:transparent; border-bottom:0}
.topbar__row{flex-wrap:nowrap; justify-content:space-between}
.menu{margin-left:auto}
.menu__toggle{
  position:relative; display:grid; place-items:center; width:42px; height:42px; margin:6px 0;
  border:1px solid transparent; border-radius:6px; color:var(--ink); cursor:pointer; list-style:none; user-select:none;
}
.menu__toggle::-webkit-details-marker{display:none}
.menu__toggle:hover, .menu[open] > .menu__toggle{border-color:var(--rule-strong); background:var(--surface)}
.menu__icon{width:24px; height:24px}
.menu__badge{position:absolute; top:-2px; right:-6px; min-width:18px; padding:0 5px; line-height:17px; font-size:10.5px}
.menu__panel{min-width:280px; padding:8px}
.menu__who{padding:8px 12px 10px; font-size:14px; border-bottom:1px solid var(--rule); margin-bottom:6px}
.menu__who .hint{display:block; font-size:11.5px}
.menu__nav{order:0; flex-basis:auto; display:grid; gap:0; border:0}
.menu__nav .nav__item{border:0; margin:0; padding:9px 12px; border-radius:3px; font-size:15px; color:var(--ink)}
.menu__nav .nav__item:hover{background:var(--surface-2)}
.menu__nav .nav__item[aria-current="page"]{background:var(--open-soft); color:var(--open); font-weight:500}
.menu__heading{margin:10px 12px 4px; padding-top:10px; border-top:1px solid var(--rule); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3)}
.menu__signout{margin:8px 0 0; padding:10px 12px 4px; border-top:1px solid var(--rule)}
.menu__signout .btn{width:100%}

/* ---------- explore: horizontal stacks (playground) -------------------- */
/* 2-3 October 2026, designed on a copy of the page and made Explore on 3
   October. The views on the top line; active
   or pipeline, the search and two small counts on the next (a sentence of
   totals over the picture went on 3 October);
   the picture - from 3 October an axis of groups with a row of project
   pills along each (unit columns and bubbles before it); the key and what
   is chosen under it. No
   boxes; lines only between parts. */
/* The views on the top line, active or pipeline at its end; the search, the
   icons and two small counts on the next. */
.xb__top{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--s2) var(--s5); margin-top:var(--s5); border-bottom:1px solid var(--rule)}
.xb__controls{display:flex; flex-wrap:wrap; align-items:center; gap:var(--s3) var(--s4); padding:var(--s3) 0}
.xb__views, .xb__status{display:flex; flex-wrap:wrap; gap:var(--s2) var(--s5)}
.xb__view, .xb__word{appearance:none; background:none; border:0; border-bottom:2px solid transparent; padding:4px 0; font:inherit; cursor:pointer; color:var(--ink-3)}
.xb__view{font-size:15.5px; padding:var(--s2) 0; margin-bottom:-1px}
.xb__word{font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase}
.xb__view:hover, .xb__word:hover{color:var(--ink)}
.xb__view[aria-pressed="true"]{color:var(--ink); font-weight:500; border-bottom-color:var(--open)}
.xb__word[aria-pressed="true"]{color:var(--open); border-bottom-color:var(--open)}
.xb__counts{margin:0 0 0 auto; font-size:13px; color:var(--ink-3); white-space:nowrap}
.xb__n{color:var(--ink); font-weight:600; font-variant-numeric:lining-nums tabular-nums}
.xb__lit{color:var(--open)}
@media(max-width:640px){ .xb__counts{margin-left:0} }
.xb .explorer__find.xb__find{flex:0 1 460px; max-width:none; background:transparent; border:0; border-bottom:1px solid var(--rule-strong); border-radius:0; padding:5px 0}
.xb .explorer__find.xb__find:focus-within{outline:none; border-bottom-color:var(--open); box-shadow:0 1px 0 var(--open)}
.xb .explorer__tools{margin-left:0}
.xb .explorer__iconbtn{width:32px; height:32px; background:none; border-color:transparent; color:var(--ink-3)}
.xb .explorer__iconbtn:hover{color:var(--ink); background:none}

.xb .explorer__canvas.xb__figure{margin:0; background:none; border:0; border-radius:0; overflow:visible; padding:var(--s5) 0 var(--s3)}
.xb .explorer__offmap{border-top:1px solid var(--rule); padding-left:0; padding-right:0}

/* The projects: pills in a pastel of their sector's colour, edged in the
   colour itself, each with its code in dark type. */
.xb .ex-tile rect{stroke-width:1}
.xb .ex-tile--pipeline rect{stroke-width:1.5}
.xb .ex-tile:hover rect{stroke:var(--ink); stroke-width:1.5}
.xb .ex-tile.is-on rect{stroke:var(--ink); stroke-width:2}
.xb .ex-tile.is-dim{opacity:.16}
.xb .ex-tile text{font-family:var(--f-mono); font-weight:500; fill:var(--ink); pointer-events:none}
/* The axis of names, the rules between rows, and each row's number - in the
   sans, as the page's other numbers are. */
.xb .ex-label{font-size:13px; font-weight:500; fill:var(--ink-2)}
.xb .ex-label.is-pickable{pointer-events:auto; cursor:pointer}
.xb .ex-label.is-pickable:hover, .xb .ex-label.is-on{fill:var(--open); text-decoration:underline}
.ex-axis{stroke:var(--ink-3); stroke-width:1}
.ex-rowrule{stroke:var(--rule-strong); stroke-width:1; stroke-dasharray:1 3}
.ex-rules circle{fill:var(--paper); stroke:var(--ink-3); stroke-width:1.5}
.ex-rules circle.is-full{fill:var(--open); stroke:var(--open)}
.ex-count{font-family:var(--f-sans); font-size:13px; font-weight:600; fill:var(--ink-2); font-variant-numeric:tabular-nums; pointer-events:none}
.ex-count--empty{fill:var(--ink-3); font-weight:400}

/* The key under the picture, small, as under a figure. */
.xb__key{border-top:1px solid var(--rule); padding:var(--s3) 0 var(--s4)}
.xb .explorer__legend{display:flex; flex-wrap:wrap; gap:4px var(--s4); margin:0 0 var(--s2); overflow:visible}
.xb .explorer__legend-item{display:inline-flex; align-items:center; gap:6px; padding:2px 0; border:0; border-bottom:1.5px solid transparent; border-radius:0; background:none; font:inherit; font-size:13px; color:var(--ink-2); flex:none}
.xb .explorer__legend-item:hover{color:var(--ink); border-bottom-color:var(--rule-strong)}
.xb .explorer__legend-item[aria-pressed="true"]{color:var(--ink); font-weight:400; border-bottom-color:var(--ink)}
.xb .explorer__hint{border:0; padding:0}

/* What is chosen: a column that slides in from the right, the picture
   narrowing to make room. Its contents keep their width while it moves, so the
   text does not reflow as it opens. Under the picture on a narrow screen. */
.xb__stage{display:grid; grid-template-columns:minmax(0, 1fr) 0; transition:grid-template-columns .35s ease}
.xb.has-choice .xb__stage{grid-template-columns:minmax(0, 1fr) 340px}
.xb__drawer{position:relative; min-width:0; overflow:hidden; align-self:stretch}
.xb.has-choice .xb__drawer{border-left:1px solid var(--rule)}
.xb__drawer > *{width:316px; margin-left:24px}
.xb .explorer__panel.xb__panel{background:none; border:0; border-radius:0; padding:var(--s5) 0}
.xb__close{position:absolute; top:var(--s3); right:0; z-index:1}
@media (prefers-reduced-motion: reduce){ .xb__stage{transition:none} }
@media(max-width:900px){
  .xb__stage, .xb.has-choice .xb__stage{display:flex; flex-direction:column}
  .xb__drawer{display:none; border-left:0}
  .xb.has-choice .xb__drawer{display:block; border-top:1px solid var(--rule); border-left:0}
  .xb__drawer > *{width:auto; margin-left:0}
}
.xb .xb__panel > :first-child{padding-right:40px}
@media (prefers-reduced-motion: reduce){ .xb__stage{transition:none} }
@media(max-width:900px){
  .xb__stage, .xb.has-choice .xb__stage{display:flex; flex-direction:column}
  .xb__drawer{order:2; display:none; border-right:0}
  .xb.has-choice .xb__drawer{display:block; border-top:1px solid var(--rule)}
  .xb__drawer > *{width:auto}
  .xb__close{left:auto; right:0}
}
.xb .explorer__panel-sub{font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--open); margin-top:var(--s4)}
.xb .explorer__keytile{background:var(--open); border-color:var(--open)}
.xb .explorer__keytile--pipeline{background:var(--paper)}

/* ---------- help: the user guide (playground) -------------------------- */
/* 5 October 2026. A centred title as on the project page; then the contents
   in a column at the left, kept in view below the bar (53px) while reading, and the text at a
   reading width. Parts are separated by a rule; kickers, terms and notes are
   the site's own. Printed, it is one column, each part on a new sheet. */
.guide__head{text-align:center; max-width:760px; margin:var(--s5) auto var(--s7)}
.guide__kicker{font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--open); margin:0 0 var(--s3)}
.guide__title{font-family:var(--f-display); font-size:clamp(32px, 4.4vw, 46px); font-weight:500; line-height:1.1; margin:0}
.guide__standfirst{font-family:var(--f-display); font-size:18px; line-height:1.55; color:var(--ink-2); margin:var(--s4) auto 0; max-width:60ch}
.guide__body{display:grid; grid-template-columns:220px minmax(0, 1fr); gap:var(--s7); align-items:start}
.guide__contents{position:sticky; top:72px; border-top:1px solid var(--rule-strong); padding-top:var(--s3)}
.guide__contents ol{margin:0; padding:0 0 0 1.4em; display:grid; gap:6px; font-size:13.5px; color:var(--ink-3)}
.guide__contents a{color:var(--ink-2); text-decoration:none}
.guide__contents a:hover{color:var(--open); text-decoration:underline}
.guide__text{max-width:700px}
.guide__part{padding:var(--s5) 0 var(--s6); border-top:1px solid var(--rule-strong); scroll-margin-top:72px}
.guide__part h2{font-family:var(--f-display); font-size:24px; font-weight:500; margin:0 0 var(--s4)}
.guide__part h3{font-family:var(--f-sans); font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--open); margin:var(--s5) 0 var(--s3)}
.guide__part p, .guide__part li, .guide__part dd{font-size:15px; line-height:1.6}
.guide__part p{margin:0 0 var(--s3)}
.guide__part ul, .guide__list{margin:0 0 var(--s3); padding-left:1.3em; display:grid; gap:6px}
.guide__part q{color:var(--ink)}
/* Steps: numbered in teal, in the margin. */
.guide__steps{list-style:none; counter-reset:step; margin:0 0 var(--s4); padding:0; display:grid; gap:var(--s2)}
.guide__steps li{counter-increment:step; position:relative; padding-left:2.2em}
.guide__steps li::before{content:counter(step); position:absolute; left:0; top:.1em; width:1.6em; height:1.6em; border-radius:50%;
  background:var(--open-soft); color:var(--open); font-size:12.5px; font-weight:600; display:flex; align-items:center; justify-content:center}
/* Terms: the name at the left, what it means beside it, a dotted rule between. */
.guide__terms{margin:0 0 var(--s4); display:grid}
.guide__terms > div{display:grid; grid-template-columns:11rem minmax(0, 1fr); gap:var(--s4); padding:var(--s3) 0; border-bottom:1px dotted var(--rule-strong)}
.guide__terms dt{font-weight:600; font-size:14px; color:var(--ink)}
.guide__terms dd{margin:0}
/* A note: a teal rule at the left; amber where something must not be done. */
.guide__note{margin:var(--s4) 0; padding:var(--s3) var(--s4); border-left:3px solid var(--open); background:var(--open-soft)}
.guide__note p:last-child{margin-bottom:0}
.guide__note--amber{border-left-color:var(--amber); background:var(--amber-soft)}
.menu__help{margin-top:var(--s2); border-top:1px solid var(--rule); padding-top:10px}
@media(max-width:900px){
  .guide__body{grid-template-columns:1fr; gap:var(--s4)}
  .guide__contents{position:static}
  .guide__terms > div{grid-template-columns:1fr; gap:2px}
}
@media print{
  .guide__head{margin:0 0 10mm}
  .guide__body{display:block}
  .guide__contents{position:static; border:0; margin-bottom:6mm}
  .guide__contents ol{grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:10mm}
  .guide__text{max-width:none}
  .guide__part{break-before:page; border-top:0; padding-top:0}
  .guide__part p, .guide__part li, .guide__part dd{font-size:11pt}
  .guide__terms > div, .guide__note, .guide__steps li{break-inside:avoid}
  .guide *{-webkit-print-color-adjust:exact; print-color-adjust:exact}
  .guide a{color:inherit; text-decoration:none}
}
