/* ═══════════════════════════════════════════════════════════════════
   VENUE TRAJECTORIES — project skin
   Loaded AFTER /css/projects_template_slides.css, which it overrides.
   Identity: warm sodium night, Fraunces serif display, hairline rules,
   no glass — deliberately unlike firm_systemic_risk (cool navy + neon
   emerald + Montserrat) and marginal_areas (sage paper + Spectral).
   ═══════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════
   VENUE TRAJECTORIES — demo skin
   Deliberately NOT the firm_systemic_risk look:
     firm    = cool navy #0b0f1a, neon emerald/cyan glass, Montserrat 800
     marginal= sage paper #ecefe7, Space Grotesk + Spectral
     this    = warm sodium night #1a1a19, Fraunces serif display, no glass,
               hairline rules instead of cards, ochre-bone UI accent
   ════════════════════════════════════════════════════════════════════ */
:root{
  /* surfaces — warm near-black, the exact surface the palette was validated on */
  --surface:#1a1a19;
  --surface-2:#211f1d;
  --surface-3:#2a2724;
  --line:rgba(245,233,216,.14);
  --line-strong:rgba(245,233,216,.30);

  /* text */
  --ink:#f5efe6;
  --ink-2:#c9c0b4;
  --ink-3:#8d8579;

  /* UI accent — bone/ochre, deliberately NOT one of the six series hues */
  --accent:#e4cfa8;
  --accent-dim:rgba(228,207,168,.16);

  /* six trajectory shapes — validated dark-mode categorical set.
     node scripts/validate_palette.js "<these>" --mode dark  →  all checks pass,
     CVD worst adjacent ΔE 6.5 (protan), which is legal ONLY with secondary
     encoding: every shape on this page is also directly labelled, never colour-alone. */
  --fall:#e85f57;
  --rise:#0ba572;
  --risefall:#c98500;
  --steady:#3687e5;
  --ephemeral:#d8497f;
  --underdogs:#8a7de6;

  /* One measure for the whole project. 68 characters sits inside the readable
     60–75 band while filling more of the 1200 column; secondary blocks are
     derived from it so there is a single number to change. */
  --measure:68ch;

  --display:'Fraunces',Georgia,serif;
  --body:'IBM Plex Sans',system-ui,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,monospace;

  /* ── the type scale ──────────────────────────────────────────────
     This page had twenty-four different font sizes, nine of them between
     .60 and .78rem — that is 9.6 to 12.5 px, and most of it set in mono on a
     dark background, where it reads smaller still. The result was a page
     whose captions, legends and read-outs were all slightly too small and all
     slightly different from each other.

     Five steps now, and every rule in this file uses one of them. The ratio
     between steps is wide enough to be seen: a reader should be able to tell
     a caption from a legend without comparing them side by side.

       --fs-tag    SHORT ALL-CAPS LABELS ONLY, where the letter-spacing and
                   the uppercase do the work of size. Never a sentence.
       --fs-micro  numerals, counts, chips, axis labels, buttons
       --fs-small  captions, secondary lists, the small print under a figure
       --fs-copy   anything that is a sentence: card notes, list labels
       --fs-lead   a sentence that carries a finding: verdicts, read-outs,
                   the disclaimer

     Nothing on the page is smaller than --fs-tag, and nothing that forms a
     sentence is smaller than --fs-small. */
  --fs-tag:.76rem;
  --fs-micro:.84rem;
  --fs-small:.92rem;
  --fs-copy:1rem;
  --fs-lead:1.08rem;
}
.containers *{box-sizing:border-box}
html,body{margin:0;padding:0}
html body{
  background:var(--surface);
  color:var(--ink);
  font-family:var(--body);
  font-weight:300;
  -webkit-font-smoothing:antialiased;
}

/* ── site chrome: make the shared bars match this page ──────────────
   nav_style.css exposes both bars as tokens, so they simply read whatever
   this page sets. Nothing is overridden by selector.                    */
body.black-theme{
  /* The project pages are built on a 1200px column (firm_systemic_risk declares
     the same), but css/base.css sets --site-max-width:1024px on :root and is
     loaded with the header, i.e. AFTER this file — so a :root declaration here
     would be overridden. Declaring it on body.black-theme wins on specificity
     and widens the header with it, keeping everything on one grid. */
  --site-max-width:1200px;
  --header-bg-dark:var(--surface);   /* token read by .black-theme .header-v2  */
  --footer-bg-dark:var(--surface);   /* token read by .black-theme .site-footer */
  background:var(--surface);         /* .black-theme itself still forces #000   */
}

/* The site sets a global red link hover. On this page the accent is the bone
   ochre, so links here follow the page, not the chrome. */
.containers a:hover,
.containers a:focus{color:var(--accent)}

/* ── cascade guard ────────────────────────────────────────────────
   /css/base.css and /css/nav_style.css are loaded by header.html via
   jQuery, i.e. AFTER this stylesheet, so any single-element selector
   here (body, h1, p, a, li) is outranked by theirs. Everything the
   panels own is therefore scoped under .containers, which also keeps
   this skin from leaking into the shared header and footer.
   ─────────────────────────────────────────────────────────────── */
.containers h1,.containers h2,.containers h3{color:var(--ink)}
.containers p{color:var(--ink-2)}
.containers a{text-decoration:none}
.containers li{list-style:none}
.containers .lede{color:var(--ink)}
.containers em{color:var(--accent);font-style:italic}
.containers code{font-family:var(--mono);color:var(--accent);background:none;padding:0}
.containers{height:100vh;overflow-y:scroll;overflow-x:hidden;scroll-snap-type:y proximity;scrollbar-width:none}
.containers::-webkit-scrollbar{display:none}
.panel{
  scroll-snap-align:start;min-height:100vh;width:100%;
  background:var(--surface);        /* template sets .panel black */
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  padding:106px 0 86px;position:relative;   /* clears the fixed header (56px) and fixed footer (30px) */
}
/* Content aligns with the header bar: same max-width and the same 30px gutter
   as .header-container, so every line of text starts under the site title. */
.slide-wrapper{
  width:100%;max-width:var(--site-max-width,1024px);
  margin:0 auto;padding:0 30px;box-sizing:border-box}
@media (max-width:900px){
  .slide-wrapper{padding:0 25px}
  .panel-about .slide-wrapper{padding:8px 25px 20px}
}

/* ── type ─────────────────────────────────────────────────────────── */
.eyebrow{
  font-family:var(--mono);font-size:var(--fs-tag);letter-spacing:.18em;text-transform:uppercase;
  color:var(--ink-3);margin:0 0 18px;
}
/* On the cover the lab line is a credit, not a heading: it sits well below the
   headline in weight and size, and the OpenStreetMap note smaller still. */
#hero .eyebrow{font-size:var(--fs-tag);letter-spacing:.2em;color:var(--ink-3);opacity:.8;margin:0 0 14px}
.containers h1,.containers h2{font-family:var(--display);font-weight:600;line-height:1.04;margin:0 0 20px;letter-spacing:-.015em}
.containers h1{font-size:clamp(2.6rem,6.2vw,5.4rem)}
.containers h2{font-size:clamp(1.9rem,3.6vw,3.1rem)}
.containers h3{font-family:var(--display);font-weight:600;font-size:1.05rem;margin:0 0 6px;letter-spacing:-.01em}
.containers p{font-size:clamp(.98rem,1.25vw,1.12rem);line-height:1.62;color:var(--ink-2);max-width:var(--measure);margin:0 0 16px}
.lede{font-size:clamp(1.05rem,1.5vw,1.3rem);color:var(--ink);max-width:calc(var(--measure) - 10ch)}
.rule{height:1px;background:var(--line);margin:34px 0;border:0}

/* ── hero ─────────────────────────────────────────────────────────── */
#hero{padding:0;overflow:hidden}
#heroCanvas{position:absolute;inset:0;width:100%;height:100%;display:block}
/* the cover title sits on the same grid as the rest of the site */
.hero-inner{
  position:relative;z-index:2;width:100%;
  max-width:var(--site-max-width,1024px);margin:0 auto;padding:0 30px;box-sizing:border-box}
@media (max-width:900px){ .hero-inner{padding:0 25px} }
/* ── the cover on a phone ──────────────────────────────────────────
   Vertically centred, the title block sat in the middle of the screen with
   dead black above it and the city pushed off the bottom. On a narrow screen
   the title takes the top and the city gets everything below it, so both are
   whole. The type comes down a step too: at full desktop scale the lede alone
   ran four lines and covered the drawing it is supposed to introduce. */
@media (max-width:620px){
  /* the panel is a centred column, so the title is raised by changing the
     column's justification, not its cross-axis alignment */
  .containers #hero{justify-content:flex-start;padding-top:96px}
  .containers #hero h1{font-size:2.15rem;line-height:1.08;margin-bottom:14px}
  .containers #hero .lede{font-size:.95rem;line-height:1.5;max-width:30ch}
  .containers #hero .br-phone{display:inline}
  /* the scrim darkens the top, where the words are, not the middle */
  .containers .hero-scrim{
    background:linear-gradient(180deg,rgba(26,26,25,.97) 0%,rgba(26,26,25,.9) 34%,
                                       rgba(26,26,25,.45) 52%,rgba(26,26,25,.12) 70%,
                                       rgba(26,26,25,.5) 100%)}
}
/* tablet: the title still sits left, but the city needs more room than a
   desktop leaves it */
@media (min-width:621px) and (max-width:1000px){
  .containers #hero h1{font-size:clamp(2.3rem,5vw,3.4rem)}
  .containers #hero .lede{font-size:1rem;max-width:34ch}
}
.hero-scrim{position:absolute;inset:0;z-index:1;
  background:radial-gradient(95% 78% at 10% 52%,rgba(26,26,25,.97) 0%,rgba(26,26,25,.86) 30%,rgba(26,26,25,.42) 58%,rgba(26,26,25,.04) 88%)}
.br-phone{display:none}
.hero-sub{font-family:var(--mono);font-size:var(--fs-tag);letter-spacing:.14em;color:var(--ink-3);
  margin-top:26px;text-transform:uppercase;opacity:.85}
.hero-note{position:absolute;bottom:16px;left:0;right:0;z-index:2;text-align:center;
  font-family:var(--mono);font-size:var(--fs-tag);letter-spacing:.06em;color:var(--ink-3);opacity:.38}

/* ── six shapes grid ──────────────────────────────────────────────── */
.shape-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);margin-top:28px}
/* The trajectory hues are a validated CVD-safe set — brightening them collapses
   the red/green pair — so the line is made to read by weight and glow instead,
   with the band and baseline pulled back and the card sunk a shade. */
.shape-card{background:#161514;padding:20px 18px 14px;position:relative}
/* Making the line LIT rather than merely coloured, without moving the hues out
   of the CVD-safe band (validated with dataviz/validate_palette.js — the hues
   themselves are untouched, so the validation still holds).

   Three things do the work, in this order:
     brightness/saturate  lifts the stroke itself, which is what "too dim"
                          actually meant — the hues stay where they are
     three drop-shadows   a tight core, a halo and a wide bloom; each one
                          composites over the dark surface, so they add up
     a wider stroke       there is nothing to light up if the line is a hair

   Keep the shadows in increasing radius: a single wide one reads as fog. */
.shape-card svg path.draw-line{
  filter:brightness(1.22) saturate(1.12)
         drop-shadow(0 0 1.5px currentColor)
         drop-shadow(0 0 6px currentColor)
         drop-shadow(0 0 15px currentColor)}
.shape-card .swatch{width:26px;height:3px;border-radius:2px;display:block;margin-bottom:10px}
.shape-card .n{font-family:var(--mono);font-size:var(--fs-micro);color:var(--ink-3);letter-spacing:.06em}
/* the finding from the paper carries the card; the example is a footnote */
.shape-card .peak{display:block;font-family:var(--mono);font-size:var(--fs-micro);color:var(--ink-3);letter-spacing:.04em;margin-top:-2px}
.shape-card .note{display:block;font-size:var(--fs-copy);line-height:1.5;color:var(--ink-2);margin-top:4px}
.shape-card .ex{display:block;font-size:var(--fs-tag);color:var(--ink-3);margin-top:8px;line-height:1.4;
  font-family:var(--mono)}
/* the band fades in behind the line as it draws */
.shape-card svg path[fill]{opacity:0;transition:opacity .7s ease .5s}
/* The band is London against Barcelona and the two cities agree closely, so it
   is a thin ribbon rather than the fat cloud an invented quartile would give.
   A little more opacity keeps the card from reading as a bare hairline. */
.shape-grid.is-drawn .shape-card svg path[fill]{opacity:.22}
.shape-card svg{display:block;width:100%;height:76px;margin:10px 0 4px}
.shape-card.ghost{background:repeating-linear-gradient(135deg,var(--surface),var(--surface) 7px,var(--surface-2) 7px,var(--surface-2) 14px)}
.shape-card.ghost h3,.shape-card.ghost .n{color:var(--ink-3)}
.ghost-tag{font-family:var(--mono);font-size:var(--fs-tag);letter-spacing:.14em;text-transform:uppercase;
  color:var(--surface);background:var(--accent);padding:2px 7px;border-radius:2px;display:inline-block;margin-bottom:10px}

/* ── slider panel ─────────────────────────────────────────────────── */
.slider-row{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;margin:6px 0 22px}
.slider-val{font-family:var(--display);font-size:clamp(2.2rem,4vw,3.4rem);font-weight:600;color:var(--accent);line-height:1}
.containers input[type=range]{-webkit-appearance:none;appearance:none;width:100%;max-width:560px;background:transparent;margin:14px 0}
.containers input[type=range]::-webkit-slider-runnable-track{height:2px;background:var(--line-strong)}
.containers input[type=range]::-moz-range-track{height:2px;background:var(--line-strong)}
.containers input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;
  background:var(--accent);margin-top:-8px;cursor:grab;border:0}
.containers input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--accent);cursor:grab;border:0}
/* Figures fill the column exactly — no breaking out of it. The column itself
   is the page's 1200px grid, set above. */
.containers .figure-wide{width:100%;max-width:none}

/* ── "when can you tell" rail ───────────────────────────────────────
   The slider says how much you know; this says whether that is yet enough
   for each shape. Markers fill as the slider passes them; click to isolate. */
/* selector row: the six shapes plus a reset that only appears once one is picked */
.containers .rail{display:flex;flex-wrap:wrap;gap:9px 10px;margin:18px 0 2px}
/* inside the plot, so showing or hiding it never moves the figure; centred at
   the top rather than pinned right, where it sat outside the drawing area and
   stole width the chart can use */
.containers .chart-wrap{position:relative;margin-top:10px}
.containers .chart-reset{
  position:absolute;top:2px;left:50%;transform:translateX(-50%);z-index:2;
  font-family:var(--mono);font-size:var(--fs-tag);letter-spacing:.08em;text-transform:uppercase;
  background:rgba(22,21,20,.9);color:var(--accent);border:1px solid var(--line-strong);
  border-radius:3px;padding:7px 14px;cursor:pointer;transition:background .18s,border-color .18s}
.containers .chart-reset:hover{background:var(--accent-dim);border-color:var(--accent)}
.containers .rail-item{
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  background:none;border:1px solid var(--line);border-radius:3px;
  padding:9px 15px;font-family:var(--mono);font-size:var(--fs-micro);color:var(--ink-3);
  transition:border-color .2s,color .2s,opacity .2s}
.containers .rail-dot{
  width:8px;height:8px;border-radius:50%;flex:0 0 8px;
  border:1.5px solid var(--c);background:transparent;transition:background .25s}
.containers .rail-item.is-only{border-color:var(--c);color:var(--ink)}
.containers .rail-item.is-faded{opacity:.4}
.containers .rail-item:hover{border-color:var(--c)}


.verdict{font-family:var(--mono);font-size:var(--fs-lead);color:var(--ink-2);line-height:1.65;
  margin-top:26px;min-height:3.4em;max-width:calc(var(--measure) + 8ch)}
.verdict b{color:var(--accent);font-weight:500}

/* ── proximity chart ──────────────────────────────────────────────── */
/* ── R-circle as an inset on the decay curve ────────────────────────
   One figure, not two: the curve says how the effect fades with distance, the
   inset says what that distance looks like on the ground, and a single slider
   drives both. */
.containers .prox-figure{position:relative;margin-top:8px}
.containers .prox-inset{
  position:absolute;top:0;right:0;width:min(40%,268px);
  border:1px solid var(--line-strong);background:rgba(16,15,14,.92);
  backdrop-filter:blur(2px)}
.containers #radiusMap{display:block;width:100%;height:auto;aspect-ratio:1/0.82}
.containers .prox-inset-label{
  display:block;padding:5px 9px 6px;border-top:1px solid var(--line);
  font-family:var(--mono);font-size:var(--fs-tag);letter-spacing:.1em;text-transform:uppercase;
  color:var(--ink-3)}
.containers .prox-ui{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:12px}
.containers .city-switch{display:inline-flex;border:1px solid var(--line);border-radius:3px;overflow:hidden}
.containers .city-switch button{
  font-family:var(--mono);font-size:var(--fs-micro);letter-spacing:.06em;
  background:transparent;color:var(--ink-3);border:0;padding:8px 15px;cursor:pointer;
  transition:background .18s,color .18s}
.containers .city-switch button + button{border-left:1px solid var(--line)}
.containers .city-switch button.is-on{background:var(--accent-dim);color:var(--accent)}
.containers .city-switch button[disabled]{opacity:.38;cursor:not-allowed}
.containers .prox-ui input[type=range]{flex:1 1 180px;max-width:420px;margin:0}
.containers .prox-read{font-family:var(--mono);font-size:var(--fs-copy);color:var(--ink-2);white-space:nowrap}
.containers .prox-read b{color:var(--accent);font-weight:500}
@media (max-width:760px){
  /* on a phone the inset would cover the curve, so it sits under it */
  .containers .prox-inset{position:static;width:100%;margin-top:12px}
}

.chart-legend{display:flex;gap:22px;flex-wrap:wrap;font-family:var(--mono);font-size:var(--fs-micro);color:var(--ink-2);margin-bottom:10px}
.chart-legend span{display:inline-flex;align-items:center;gap:7px}
.chart-legend i{width:16px;height:2px;display:inline-block;border-radius:2px}

/* ── beside their own kind (panel 04) ───────────────────────────────
   Two small bar charts, one per city, sharing one scale and one row order so
   the cities can be compared row by row. The bar is the shape's own colour,
   which is the same colour it carries everywhere else on the page, and the
   value is printed beside it: identity never rests on colour alone.

   This replaced a 6x6 colour matrix of who sits beside whom. The matrix is
   the better figure and it comes back when the data does; its rules are in
   _work/on-hold/panel04_mixing_matrix.css.hold. */
.containers .own-kind{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 40px;margin-top:20px}
.containers .own-kind .ok-city h3{
  font-family:var(--mono);font-weight:400;font-size:var(--fs-tag);letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-3);margin:0 0 12px;padding:0 0 9px;
  border-bottom:1px solid var(--line)}
.containers .own-kind .ok-bars{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.containers .own-kind .ok-row{
  display:grid;grid-template-columns:minmax(78px,.9fr) minmax(90px,1.6fr) 58px;
  align-items:center;gap:10px;margin:0;padding:0}
.containers .own-kind .ok-name{
  display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);
  font-size:var(--fs-micro);color:var(--ink-2);white-space:nowrap}
.containers .own-kind .ok-name i{width:8px;height:8px;border-radius:50%;flex:0 0 8px}
/* the track is the full span, left of centre is below chance and right above */
.containers .own-kind .ok-track{
  position:relative;display:block;height:13px;border-radius:2px;
  background:rgba(245,233,216,.05)}
.containers .own-kind .ok-zero{
  position:absolute;left:50%;top:-2px;bottom:-2px;width:1px;
  background:rgba(245,233,216,.34)}
.containers .own-kind .ok-bar{
  position:absolute;top:2px;bottom:2px;border-radius:2px;min-width:2px}
.containers .own-kind .ok-val{
  font-family:var(--mono);font-size:var(--fs-micro);color:var(--ink-1);text-align:right;
  font-variant-numeric:tabular-nums}
.containers .own-kind .ok-row.is-neg .ok-val{color:var(--ink-3)}
@media (max-width:760px){
  /* one city above the other: side by side, each track is too short to read */
  .containers .own-kind{grid-template-columns:1fr;gap:22px}
}
@media (max-width:420px){
  .containers .own-kind .ok-row{grid-template-columns:minmax(66px,1fr) minmax(70px,1.4fr) 50px;gap:7px}
  .containers .own-kind .ok-name,.containers .own-kind .ok-val{font-size:var(--fs-tag)}
}

/* ── two clusters (panel 05) ───────────────────────────────────────
   Reading order is story → picture → legend. The story sits above the figure
   because it changes with the city switch and the reader needs it in hand; the
   numbered legend sits below, where it is read against the numbers printed on
   the blocks. */
.containers #caseSwitch{margin:22px 0 0}
.containers .case-note{margin:18px 0 20px;max-width:none}
.containers .case-head{
  font-family:var(--display);font-size:1.22rem;line-height:1.3;color:var(--accent);
  margin:0 0 9px;max-width:none}
.containers .case-story{margin:0 0 9px;max-width:var(--measure)}
.containers .case-stat{
  font-family:var(--mono);font-size:var(--fs-small);line-height:1.5;color:var(--ink-3);
  margin:0;max-width:none}
.containers .case-stat b{color:var(--accent);font-weight:400}

.containers .dio-legend{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;
  font-family:var(--mono);font-size:var(--fs-micro);color:var(--ink-2)}
.containers .dio-legend span{display:inline-flex;align-items:center;gap:6px}
.containers .dio-legend i{width:8px;height:8px;border-radius:50%;border:1px solid transparent;box-sizing:border-box}
.containers .dio-legend b{font-weight:400;color:var(--ink-3)}
/* a shape this cluster does not contain: named, hollow, greyed — present by
   its absence */
.containers .dio-legend .is-absent{color:var(--ink-3);opacity:.45}
.containers .dio-legend .is-absent i{opacity:.55}
.containers .dio-legend .dio-hint{color:var(--ink-3);opacity:.8}

/* the legend list: the numeral is the link back to the block in the picture */
.containers .case-list{
  list-style:none;margin:20px 0 0;padding:0;max-width:none;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(272px,1fr));gap:0 34px}
.containers .case-list li{
  display:grid;grid-template-columns:21px 1fr auto;align-items:center;gap:11px;
  padding:8px 8px;margin:0 -8px;border-radius:2px;cursor:pointer;
  border-bottom:1px solid rgba(245,233,216,.07);transition:background .15s}
.containers .case-list li:hover,.containers .case-list li.is-hot{background:rgba(228,207,168,.08)}
.containers .case-list .cl-n{
  font-family:var(--mono);font-size:var(--fs-micro);line-height:19px;text-align:center;
  width:21px;height:21px;border-radius:50%;border:1px solid currentColor}
.containers .case-list .cl-label{font-size:var(--fs-copy);color:var(--ink-1)}
.containers .case-list .cl-label em{font-style:normal;color:var(--ink-3);font-size:var(--fs-small)}
/* A full-width row inside the list has to switch OFF the three-column grid it
   inherits, or its text is squeezed into the 21px numeral column. */
.containers .case-list .cl-more{
  display:block;grid-column:1/-1;font-family:var(--mono);font-size:var(--fs-small);
  color:var(--ink-3);padding-top:8px;border-top:1px solid var(--line);
  border-bottom:0;cursor:default}
.containers .case-list .cl-shape{
  font-family:var(--mono);font-size:var(--fs-tag);letter-spacing:.04em;text-transform:uppercase;
  white-space:nowrap;opacity:.85}

/* A disclaimer the reader actually meets, rather than small print under the
   figure: bordered on the left, quieter than body text but not a footnote. */
.containers .disclaimer{
  max-width:none;margin:18px 0 0;padding:13px 0 13px 16px;
  border-left:2px solid var(--line-strong);
  font-size:var(--fs-lead);line-height:1.6;color:var(--ink-2)}
.containers .disclaimer b{color:var(--ink);font-weight:500}
.containers .disclaimer em{font-style:italic;color:var(--ink-1)}

/* ── diorama ──────────────────────────────────────────────────────── */
.dio-wrap{position:relative;width:100%;border:1px solid var(--line);background:var(--surface-2)}
#dioCanvas{display:block;width:100%;height:clamp(320px,46vh,500px)}
/* top-right of the canvas, opposite the trend card */
.containers .dio-play{position:absolute;top:12px;right:12px;z-index:2}
.dio-ui{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--line);
  font-family:var(--mono);font-size:var(--fs-micro);color:var(--ink-2)}
.containers button.ghost-btn{
  font-family:var(--mono);font-size:var(--fs-tag);letter-spacing:.08em;text-transform:uppercase;
  background:transparent;color:var(--accent);border:1px solid var(--line-strong);
  padding:8px 16px;border-radius:2px;cursor:pointer;transition:background .18s,border-color .18s}
.containers button.ghost-btn:hover{background:var(--accent-dim);border-color:var(--accent)}
.dio-period{color:var(--accent);min-width:9em;display:inline-block}

/* ── demo banner ──────────────────────────────────────────────────── */
.demo-flag{
  position:fixed;top:0;left:0;right:0;z-index:50;background:var(--accent);color:#1a1a19;
  font-family:var(--mono);font-size:var(--fs-tag);letter-spacing:.1em;text-transform:uppercase;
  padding:6px 14px;text-align:center}
/* A caption sitting 14px under a figure reads as part of the figure: at mono
   .68rem the first line almost touches the axis. The first one after a figure
   gets real air; a second caption following the first stays tucked under it,
   because the two belong together. */
/* Scoped under .containers like everything else in this file: the header and
   footer are injected at runtime, so base.css and nav_style.css load AFTER this
   stylesheet and their element rules under .containers would otherwise win. An
   unscoped .caption lost its margin to exactly that. */
/* Capped at a measure: the figures are full width, but a caption set across
   1200px runs about 130 characters to the line, twice the readable band. The
   figure stays wide; its caption reads like text. */
.containers .caption{font-family:var(--mono);font-size:var(--fs-small);color:var(--ink-3);
  line-height:1.65;margin-top:28px;max-width:calc(var(--measure) + 12ch)}
.containers .caption + .caption{margin-top:12px}
/* the read-out written from the numbers is a sentence, not small print: it sits
   closer to the figure it describes and a little brighter */
.containers #proxRead,.containers #ownKindRead{
  margin-top:26px;font-size:var(--fs-copy);color:var(--ink-2);
  max-width:calc(var(--measure) + 12ch)}

/* ── closing block: SHARED component classes, skin-only overrides ──
   Structure and class names must stay identical to the other project pages
   so citations / metrics / news / partners keep updating together.       */
/* The About panel is taller than the viewport by design. It must grow and scroll
   with the page — an inner overflow:auto made it a scrolling page inside the page. */
.panel-about{align-items:flex-start;min-height:auto}
/* Desktop only: the max-width:900px rule near the top gives phones and tablets
   25px. Unscoped, this later rule overrode it and left 5px too much each side. */
@media (min-width:901px){ .panel-about .slide-wrapper{padding:8px 30px 20px} }
/* columns start level at the top; they are different lengths by nature */
.containers .research-details-row{align-items:start}
/* The shared template caps this at 1000px, which on this page left the closing
   block inset from the figures either side — the same narrow-column look the
   figures themselves had before they were widened. Here it runs the full
   measure of the wrapper (1140px inside the 1200 limit), so every block on the
   page starts and ends on the same two vertical lines. */
.containers .research-glass-container{
  max-width:none;
  background:var(--surface-2);border:1px solid var(--line);border-radius:3px;
  padding:26px 28px;margin:22px 0 10px}          /* was glassmorphism — now a flat warm card */
.containers .panel-about .news-list{max-width:none}
.research-details-row{display:grid;grid-template-columns:1fr 1fr;gap:34px}
.containers .research-column h2,.containers .about-h2{
  font-family:var(--display);color:var(--accent);font-size:1.05rem;font-weight:600;
  margin:0 0 10px;letter-spacing:0}
.containers .research-column h2:not(:first-child){margin-top:26px}
.containers .about-h2{margin:34px 0 12px;padding-bottom:7px;border-bottom:1px solid var(--line)}
.publications-list,.related-publications,.team-list,.code-list,.news-list{
  list-style:none;margin:0;padding:0}
.publications-list li,.team-list li,.code-list li,.related-publications li,.news-list li{
  font-size:var(--fs-copy);line-height:1.6;color:var(--ink-2);padding:7px 0;border-bottom:1px solid var(--line)}
/* A rule between rows earns its place only where the rows are paragraphs that
   could run into each other — publications, related work, news. A list of
   names, of repositories or a single contact line is already legible as a
   list, and six hairlines in a small column read as a table nobody asked for.
   Spacing does the separating there instead. */
.containers .publications-list li,
.containers .team-list li,
.containers .code-list li{border-bottom:0;padding:5px 0}
.containers .research-column h2 + .team-list,
.containers .research-column h2 + .code-list{margin-top:2px}
.related-publications li{font-size:var(--fs-small);color:var(--ink-3)}   /* secondary: always smaller */
.code-list li i{color:var(--accent);margin-right:8px}
.code-list a,.team-list a{color:var(--accent);text-decoration:none;border-bottom:1px solid var(--accent-dim)}
/* Long unbroken strings (the GitHub repository path, DOIs) wrap inside the
   column instead of running off a phone screen. */
.containers .code-list a,.containers .team-list a,.containers .publications-list a,
.containers .related-publications a,.containers .news-list a{overflow-wrap:anywhere}
/* The repository link is display:block (from the template), so its underline ran
   the full column width and read as a divider between the two resources. */
.containers .code-list a{border-bottom:0}
.containers .code-list a:hover{border-bottom:0;text-decoration:underline;text-underline-offset:3px}
.code-list a:hover,.team-list a:hover{border-bottom-color:var(--accent)}
.paper-badge.preprint{
  font-family:var(--mono);font-size:var(--fs-tag);letter-spacing:.1em;text-transform:uppercase;
  background:var(--accent-dim);color:var(--accent);padding:2px 7px;border-radius:2px;margin:0 6px}
.doi-link,.pdf-btn{
  font-family:var(--mono);font-size:var(--fs-micro);color:var(--accent);text-decoration:none;
  border:1px solid var(--line-strong);padding:4px 10px;border-radius:2px;
  display:inline-block;margin:8px 8px 0 0;transition:background .18s,border-color .18s}
.doi-link:hover,.pdf-btn:hover{background:var(--accent-dim);border-color:var(--accent)}
.research-metrics-section{margin-top:4px}
/* the shared template hardcodes this white — override per the prototype's note */
.metrics-section-title{
  font-family:var(--display);font-size:1.25rem;color:var(--accent)!important;margin:0 0 16px}
/* funder strip sits inside a narrow column — keep the marks small so the row
   wraps instead of stacking one per line */
.research-column .partners-container info_partners{gap:18px 22px;padding:6px 0;justify-content:flex-start}
.research-column info_partners img{max-height:26px}

.metric-badge-card{
  background:var(--surface-2);border:1px solid var(--line);border-radius:3px;
  padding:18px;text-align:center;min-height:150px;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start}

/* The Altmetric donut and the Dimensions ring are drawn with dark text, so on
   this dark page they need a light plate under them to be readable at all. */
.containers .metric-badge-card .altmetric-embed,
.containers .metric-badge-card .__dimensions_badge_embed__{
  background:rgba(245,239,230,.92);border-radius:10px;padding:10px 12px;
  display:inline-flex;align-items:center;justify-content:center;min-height:68px}
/* only the section title is left-aligned; the badges themselves stay centred,
   as they are on every other project page */
.containers .research-metrics-section > .about-h2{text-align:left}
/* lives above the badge, centred with it */
.containers .metric-card-label{
  font-family:var(--mono);font-size:var(--fs-tag);letter-spacing:.1em;text-transform:uppercase;
  color:var(--ink-3);margin:0 0 12px;text-align:center}
.containers .news-list .press-item,.containers .news-list .policy-item{background:none;border-radius:0;
  padding:9px 0 9px 16px!important;position:relative}   /* !important: beats the generic li reset */
.containers .news-list .press-item::before,.containers .news-list .policy-item::before{
  content:'';position:absolute;left:0;top:16px;width:6px;height:6px;border-radius:50%}
.containers .news-list .press-item::before{background:var(--accent)}
.containers .news-list .policy-item::before{background:var(--steady)}
/* Logos sit directly on the dark page — no light plate. Every mark is the
   official white / negative artwork, including the EU emblem, which has an
   approved negative version for dark backgrounds and is never recoloured. */
.partners-container{margin-top:12px;width:100%}
.containers info_partners{background:none;backdrop-filter:none;-webkit-backdrop-filter:none;border:0;border-radius:0;box-shadow:none;
  display:flex;flex-wrap:wrap;align-items:center;gap:30px;
  /* Centred, which is how the partner strip reads on every other project page
     — it is a row of marks under a heading, not a list. The funder strip is
     the exception below: it sits in a narrow column where centring makes a
     wrapped second row drift away from the first. */
  justify-content:center;
  padding:4px 0 2px;margin:0;box-sizing:border-box}
.containers info_partners img{max-height:42px;width:auto;flex:0 0 auto;object-fit:contain;display:block}
/* No CSS filters on logos: every mark here is real white/negative artwork.
   Dark-background variants are generated by logos/_make_dark_variants.py. */
.containers info_partners a{display:inline-flex;align-items:center;opacity:.88;
  transition:opacity .25s ease,transform .25s ease}
.containers info_partners a:hover{opacity:1;transform:scale(1.05)}
/* The two funder marks belong to the same programme, so they are set close
   enough to read as a pair rather than as two unrelated logos. */
.containers info_partners.funders-logos{gap:12px 16px;justify-content:flex-start}
.containers info_partners.funders-logos img{max-height:46px}
@media (max-width:768px){
  .containers info_partners{background:none;backdrop-filter:none;-webkit-backdrop-filter:none;border:0;border-radius:0;box-shadow:none;gap:20px;justify-content:center}
  .containers info_partners.funders-logos{gap:14px}
  .containers info_partners img{max-height:28px}
}
.data-statement{
  font-family:var(--mono);font-size:var(--fs-small);line-height:1.65;color:var(--ink-3);
  max-width:78ch;margin:14px 0 0;padding-left:12px;border-left:1px solid var(--line-strong)}
.data-statement strong{color:var(--ink-2);font-weight:500}
@media (max-width:768px){
  .research-details-row{grid-template-columns:1fr}
  .containers .metric-badge-card{flex:0 0 100%}
}

@media (max-width:900px){
  .shape-grid{grid-template-columns:repeat(2,1fr)}
  .panel{padding:92px 0 80px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* the Related work card: same surface as the publication block, but its list
   supplies its own separators, so the first row in each column has none */
.containers .research-glass-container > #relatedNetwork{margin:0}
.containers .rp-list > .rp-item:first-child,
.containers .rp-list > .rp-item:nth-child(2){border-top:0;padding-top:0}

/* Research Metrics sits centred, as on the other project pages. A 1fr 1fr grid
   cannot centre its tracks, so the badges are a centred flex row instead — which
   also keeps the remaining card centred when one of the two is empty and hides. */
.containers .metrics-cards-grid{
  display:flex;justify-content:center;flex-wrap:wrap;gap:20px}
.containers .metric-badge-card{flex:0 0 258px}

/* ── related-work network ──────────────────────────────────────────
   /js/related_network.js ships its own defaults drawn in currentColor, so it
   works on any page unstyled. Here we only hand it the page's accent and card
   surface, plus a couple of tone tweaks for this dark skin. */
.containers{--rn-accent:var(--accent);--rn-card-bg:rgba(33,31,29,.97)}
.containers .rn-edge{stroke:rgba(245,233,216,.9)}
.containers .rn-label{fill:var(--ink-2)}
.containers .rn-ring2 .rn-label{fill:var(--ink-3)}
.containers .rn-card{border-color:var(--line-strong);color:var(--ink)}
.containers .rn-legend{color:var(--ink-3)}

/* the column list, fed by the same data */
.containers .related-publications .rn-year{font-family:var(--mono);font-size:var(--fs-micro);color:var(--ink-3)}
.containers .related-publications .rn-why{
  display:block;font-family:var(--mono);font-size:var(--fs-micro);color:var(--accent);
  opacity:.75;margin-top:3px}
.containers .related-publications a{color:var(--ink-2);border-bottom:1px solid var(--line)}
.containers .related-publications a:hover{color:var(--accent);border-bottom-color:var(--accent)}

/* one Related work block: the network on desktop, the list on a phone where the
   labels would be unreadable. Never both, so nothing is said twice. */
.containers .related-publications[data-related-list]{display:none}
.rn-intro{margin-bottom:6px}
@media (max-width:760px){
  #relatedNetwork{display:none}
  .containers .related-publications[data-related-list]{display:block}
}
