/* temporaldatadynamics.com, Stage 2
   Palette and type from the style guide (Sections 3 and 4). */

@font-face{
  font-family:"Instrument Sans";
  src:url("../fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight:400 700;
  font-stretch:75% 100%;
  font-display:swap;
}

:root{
  --deep-time:#0E1330;
  --record-white:#F2F4FA;
  --trail-grey:#9AA3BF;
  --band-violet:#8A5CF6;
  --band-cyan:#3FE0D0;
  --amber:#F5B94A;
  /* Link text: Band Violet measures 4.28:1 on Deep Time, under the AA 4.5:1 floor for body text.
     This lighter tint of the same violet measures 6.33:1. Proposed; pending operator approval. */
  --link:#A585F8;

  --measure:68ch;
  --gutter:clamp(1rem, 4vw, 2.5rem);
  --rail-x:0.5rem;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--deep-time);
  color:var(--record-white);
  font-family:"Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size:18px;
  line-height:1.55;
  font-variant-numeric:tabular-nums;
}
@media (max-width:640px){ body{ font-size:17px } }

h1,h2,h3{ font-stretch:100%; font-weight:650; line-height:1.15; margin:0 0 .6em }
h1{ font-size:clamp(2.1rem, 5vw, 3.4rem); font-weight:700; letter-spacing:-0.01em }
h2{ font-size:clamp(1.35rem, 2.6vw, 1.7rem) }
p{ margin:0 0 1em; max-width:var(--measure) }

a{ color:var(--link); text-underline-offset:.18em }
a:hover{ color:var(--record-white) }
:focus-visible{ outline:3px solid var(--band-cyan); outline-offset:3px; border-radius:2px }

.skip{ position:absolute; left:-9999px; top:0 }
.skip:focus{ left:var(--gutter); top:.75rem; background:var(--deep-time); padding:.4rem .6rem; z-index:10 }

/* ---------- header and footer ---------- */
.site-header, main, .site-footer{ max-width:1180px; margin:0 auto; padding-left:var(--gutter); padding-right:var(--gutter) }
.site-header{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem 2rem; padding-top:1.25rem; padding-bottom:1.25rem }
.brand{ display:inline-flex; align-items:center; gap:.6rem; color:var(--record-white); text-decoration:none; font-weight:600 }
.brand .mark{ width:3rem; height:auto; flex:none }
.site-header nav{ display:flex; gap:1.5rem }
.site-header nav a{ color:var(--trail-grey); text-decoration:none }
.site-header nav a:hover, .site-header nav a[aria-current="page"]{ color:var(--record-white) }

.site-footer{ padding-top:3rem; padding-bottom:3rem; color:var(--trail-grey); font-stretch:87.5% }
.site-footer p{ margin:.25rem 0 }
.site-footer a{ margin-right:1.25rem }

/* ---------- hero ---------- */
.hero{
  display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  align-items:center;
  gap:2rem;
  padding:2rem 0 3rem;
}
.signature{ color:var(--trail-grey); font-size:1.15rem; max-width:34ch }
.hero-band{ width:100%; height:auto; display:block }
@media (max-width:860px){
  .hero{ grid-template-columns:1fr; padding-top:1rem }
  .hero-figure{ margin-right:calc(-1 * var(--gutter)); margin-left:calc(-1 * var(--gutter)) }
}

.entrances{ display:flex; flex-wrap:wrap; gap:.75rem 1rem; margin-top:1.75rem }
.entrance{
  font:inherit; font-weight:600; font-size:1rem;
  color:var(--record-white); background:transparent;
  border:1px solid var(--trail-grey); border-radius:3px;
  padding:.7rem 1.2rem; min-height:44px;
  text-decoration:none; cursor:pointer;
}
.entrance:hover{ border-color:var(--band-cyan) }

/* ---------- the time rail ---------- */
.rail{
  position:relative;
  padding-left:calc(var(--rail-x) + 2rem);
}
.rail::before{
  content:""; position:absolute; top:.4rem; bottom:0; left:var(--rail-x);
  width:1px; background:var(--trail-grey); opacity:.55;
}
.stop{ position:relative; padding-bottom:3.5rem }
.stop::before{
  /* waypoint on the rail; not a date marker */
  content:""; position:absolute; left:calc(-2rem - 3.5px); top:.55rem;
  width:8px; height:8px; border-radius:50%;
  background:var(--deep-time); border:1px solid var(--trail-grey);
}
.stop-last{ padding-bottom:1rem }

/* ---------- lists ---------- */
.plain-list, .terms{ list-style:none; padding:0; margin:0 0 1.2em; display:flex; flex-wrap:wrap; gap:.35rem 1.5rem; max-width:var(--measure) }
.terms li{ font-stretch:87.5% }

.doors{ margin:0; max-width:var(--measure) }
.doors > div{ padding:.9rem 0; border-top:1px solid rgba(154,163,191,.3) }
.doors > div:last-child{ border-bottom:1px solid rgba(154,163,191,.3) }
.doors dt{ font-weight:600 }
.doors dd{ margin:.15rem 0 0 }
.doors .carry{ color:var(--trail-grey); font-stretch:87.5% }

.placeholder{ color:var(--trail-grey); font-stretch:87.5%; border:1px dashed var(--trail-grey); padding:.3rem .6rem; display:inline-block }

/* ---------- the one call to act (amber, once per view) ---------- */
.act{
  font:inherit; font-weight:650; font-size:1.05rem;
  color:var(--deep-time); background:var(--amber);
  border:0; border-radius:3px; padding:.85rem 1.4rem; min-height:44px; cursor:pointer;
}
.act:hover{ background:#f8c86b }

/* ---------- the one load motion: the band's dots settle ---------- */
@media (prefers-reduced-motion:no-preference){
  .js .hero-band > circle{ opacity:0; animation:tdd-reveal 0s 3s forwards } /* safety net if the script never runs */
}
@keyframes tdd-reveal{ to{ opacity:1 } }

/* ---------- the lead-card popup ---------- */
.lead-card{
  width:min(40rem, 100vw - 2rem); max-height:calc(100vh - 2rem);
  padding:0; border:1px solid var(--trail-grey); border-radius:4px;
  background:var(--deep-time); color:var(--record-white);
}
.lead-card::backdrop{ background:rgba(6,9,26,.78) }
.lc-inner{ position:relative; padding:2rem clamp(1.1rem, 4vw, 2.25rem) 2.25rem }
.lc-close{
  position:absolute; top:.6rem; right:.6rem; width:44px; height:44px;
  font:inherit; font-size:1.6rem; line-height:1; color:var(--trail-grey);
  background:transparent; border:0; border-radius:3px; cursor:pointer;
}
.lc-close:hover{ color:var(--record-white) }
.lead-card h2{ padding-right:2.5rem }
.lead-card form{ margin-top:1.5rem }
.field{ margin:0 0 1.25rem; padding:0; border:0; min-width:0 }
.field label, .field legend{ display:block; font-weight:600; margin-bottom:.35rem; padding:0 }
.opt{ font-weight:400; color:var(--trail-grey); font-stretch:87.5% }
.lead-card input[type=text], .lead-card input[type=email], .lead-card select{
  width:100%; font:inherit; color:var(--record-white);
  background:#151b3f; border:1px solid var(--trail-grey); border-radius:3px;
  padding:.6rem .7rem; min-height:44px;
}
.lead-card input[aria-invalid=true]{ border-color:var(--amber) }
.choices{ display:grid; grid-template-columns:repeat(auto-fill, minmax(15rem, 1fr)); gap:.15rem 1rem }
.choices label, .field .check{ display:flex; gap:.6rem; align-items:flex-start; font-weight:400; margin:0; padding:.35rem 0; cursor:pointer }
.choices input, .field .check input{ width:1.15rem; height:1.15rem; margin:.2rem 0 0; flex:none; accent-color:var(--band-cyan) }
.err{ color:var(--amber); margin:.35rem 0 0; font-size:.95rem }
.err:empty{ display:none }
.privacy{ margin-top:.75rem; color:var(--trail-grey) }
.privacy summary{ cursor:pointer; color:var(--link); text-decoration:underline; text-underline-offset:.18em; width:max-content }
.privacy p{ font-size:.95rem; margin:.75rem 0 0 }
.small{ font-size:.9rem; color:var(--trail-grey) }
.lc-send{
  font:inherit; font-weight:650; font-size:1.05rem;
  color:var(--deep-time); background:var(--amber);
  border:0; border-radius:3px; padding:.85rem 1.4rem; min-height:44px; cursor:pointer;
}
.lc-send:disabled{ opacity:.6; cursor:default }
.lc-thanks-view:focus{ outline:none }
.hp{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden }
@media (max-width:640px){
  .lead-card{ width:100vw; max-width:100vw; height:100%; max-height:100%; margin:0; border:0; border-radius:0 }
}

/* ---------- combined page: fields table ---------- */
.page-title{ margin:1.5rem 0 2.5rem }
.fields-table{ max-width:var(--measure); margin:1.5rem 0; border-top:1px solid rgba(154,163,191,.3) }
.field-node, .field-leaf{ border-bottom:1px solid rgba(154,163,191,.3) }
.field-leaf{ margin:0; padding:.7rem 0 .7rem 1.6rem; color:var(--trail-grey) }
.field-node > summary{
  list-style:none; cursor:pointer; padding:.7rem 0 .7rem 1.6rem; position:relative; font-weight:600;
}
.field-node > summary::-webkit-details-marker{ display:none }
.field-node > summary::before{
  content:""; position:absolute; left:.35rem; top:1.2rem;
  border-left:6px solid var(--band-cyan); border-top:5px solid transparent; border-bottom:5px solid transparent;
  transition:transform .15s;
}
.field-node[open] > summary::before{ transform:rotate(90deg) }
@media (prefers-reduced-motion:reduce){ .field-node > summary::before{ transition:none } }
.field-node > summary:hover{ color:var(--band-cyan) }
.field-body{ padding:0 0 1rem 1.6rem }
.field-body .terms{ margin:.2rem 0 .8rem }
.credit{ font-size:.95rem; margin:.3rem 0 }
.credit-label{ color:var(--trail-grey) }
.field-children{ margin-top:.6rem; border-left:1px solid rgba(154,163,191,.35); padding-left:.4rem }
.field-children .field-node:last-child, .field-children .field-leaf:last-child{ border-bottom:0 }
.field-children .field-node > summary, .field-children .field-leaf{ font-weight:500 }
.table-notes{ max-width:var(--measure) }
.sources-head{ font-size:1rem; margin:1.25rem 0 .5rem }
.sources{ margin:0; padding-left:1.1rem; font-size:.95rem }
.sources li{ margin:.3rem 0 }
.tier{ color:var(--trail-grey); font-stretch:87.5% }

/* ---------- data tables (tools, use cases) ---------- */
.table-wrap{ max-width:100%; overflow-x:auto; margin:1.25rem 0 }
.data-table{ border-collapse:collapse; width:100%; max-width:62rem; font-size:.97rem }
.data-table th, .data-table td{ text-align:left; vertical-align:top; padding:.7rem .9rem .7rem 0; border-bottom:1px solid rgba(154,163,191,.3) }
.data-table thead th{ color:var(--trail-grey); font-weight:600; font-stretch:87.5%; border-bottom-color:var(--trail-grey) }
.data-table tbody th{ font-weight:600; width:32%; min-width:11rem }
.data-table td{ min-width:16rem }
.proposed{ font-size:.8rem; color:var(--deep-time); background:var(--trail-grey); border-radius:2px; padding:0 .35rem; margin-left:.4rem; white-space:nowrap }
.preview-note{ color:var(--trail-grey) }
.preview-note h2{ color:var(--trail-grey) }
.ack-list{ max-width:var(--measure); padding-left:1.1rem; margin:0 0 1.2rem }
.ack-list li{ margin:.3rem 0 }
.attribution{ max-width:var(--measure) }

/* ---------- news: the time rail with dated items ---------- */
.news-intro{ max-width:var(--measure) }
.subscribe a{ font-weight:600 }
.subscribe .small{ margin-left:.6rem }
.desk-filter{ display:flex; flex-wrap:wrap; gap:.5rem; margin:1.5rem 0 }
.desk-filter button{
  font:inherit; font-size:.95rem; color:var(--trail-grey); background:transparent;
  border:1px solid rgba(154,163,191,.5); border-radius:3px; padding:.4rem .8rem; min-height:44px; cursor:pointer;
}
.desk-filter button[aria-pressed="true"]{ color:var(--record-white); border-color:var(--band-cyan) }
.news-rail{ list-style:none; margin:2rem 0 0; padding:0 0 0 calc(var(--rail-x) + 2rem); position:relative; max-width:calc(var(--measure) + 4rem) }
.news-rail::before{ content:""; position:absolute; top:.4rem; bottom:0; left:var(--rail-x); width:1px; background:var(--trail-grey); opacity:.55 }
.news-item{ position:relative; padding-bottom:1.6rem }
.news-item::before{
  content:""; position:absolute; left:calc(-2rem - 3.5px); top:.5rem; width:8px; height:8px; border-radius:50%;
  background:var(--trail-grey);
}
.news-item time{ display:block; color:var(--trail-grey); font-stretch:87.5%; font-size:.95rem }
.news-headline{ font-weight:600; color:var(--record-white); text-decoration-color:rgba(242,244,250,.35) }
.news-headline:hover{ color:var(--band-cyan) }
.news-meta{ margin:.15rem 0 0; color:var(--trail-grey); font-size:.95rem; font-stretch:87.5% }
.news-empty{ color:var(--trail-grey); margin-top:2rem }
.reel{ max-width:48rem; aspect-ratio:16/9; margin:1.5rem 0 }
.reel iframe{ width:100%; height:100%; border:1px solid rgba(154,163,191,.4); border-radius:4px }

/* ---------- scorecard (on the News page) ---------- */
.scorecard{ margin-top:3.5rem; max-width:calc(var(--measure) + 4rem) }
.score-item p{ margin:.2rem 0 }
.score-projection{ font-weight:600 }
.flag{ display:inline-block; font-size:.8rem; font-weight:650; color:var(--deep-time); background:var(--amber); border-radius:2px; padding:0 .4rem; margin-right:.35rem; vertical-align:.1em }
.score-basis, .score-outcome, .score-note{ font-size:.95rem }
.score-item .sources{ font-size:.9rem; margin-top:.3rem }
.outcome-miss .score-outcome strong{ color:var(--record-white) }
.score-outcome time{ display:inline; font-size:inherit; font-stretch:inherit; color:var(--trail-grey) }

/* ---------- combined page: work ---------- */
.work-list{ max-width:var(--measure); padding-left:1.1rem; margin:0 0 1.2rem }
.work-list li{ margin:.55rem 0 }
.work-note{ font-size:.95rem; margin:.1rem 0 .7rem; padding-left:.75rem; border-left:2px solid var(--band-cyan) }
.download a{ font-weight:600 }
.download .small{ margin-left:.5rem }
.doors + p{ margin-top:1rem }

/* ================= pass 2: centered reading column (decision 35) ================= */
:root{ --column: calc(var(--measure) + 5rem) }
.page-title, .rail, .news-intro, .desk-filter, .news-empty, .scorecard{
  max-width:var(--column); margin-left:auto; margin-right:auto;
}
.news-rail{ margin-left:auto; margin-right:auto; max-width:var(--column) }
.page-title{ text-align:center }
/* hero: stacked and centered */
.hero{ display:block; text-align:center; padding:2.5rem 0 3rem }
.hero h1{ max-width:22ch; margin:0 auto .5em }
.hero .subhead{ color:var(--trail-grey); font-size:clamp(1.1rem, 2.2vw, 1.35rem); margin:0 auto 1.5rem; max-width:40ch }
.hero-figure{ max-width:900px; margin:0 auto }
.hero .entrances{ justify-content:center }
@media (max-width:860px){ .hero-figure{ margin-left:calc(-1 * var(--gutter)); margin-right:calc(-1 * var(--gutter)) } }
/* footer centered */
.site-footer{ text-align:center }
.site-footer a{ margin:0 .6rem }
.tagline{ font-size:.92rem }
/* lists */
.points{ margin:.3rem 0 .8rem; padding-left:1.1rem; max-width:var(--measure) }
.points li{ margin:.3rem 0 }
.industries{ list-style:none; padding:0; margin:0; columns:2 16rem; column-gap:2rem; max-width:var(--measure) }
.industries li{ padding:.25rem 0; break-inside:avoid }
.disclaimer{ margin-top:1.25rem; max-width:var(--measure) }
.lede{ font-size:1.15rem }
/* capability table */
.cap-table td{ min-width:6.5rem; text-align:center }
.cap-table td.yes{ color:var(--band-cyan); font-weight:600 }
.cap-table td.no{ color:var(--trail-grey) }
.cap-table tbody th{ width:auto; min-width:14rem; font-weight:500 }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap }
.table-wrap{ position:relative }
.site-footer p{ margin-left:auto; margin-right:auto }

/* ================= pass 2, stage 2 ================= */
/* home: the opening view (menu, headline, subhead, the whole band) */
.hero{ padding:1.25rem 0 2rem }
.hero h1{ max-width:none; font-size:clamp(1.8rem, 3.35vw, 2.9rem); line-height:1.12; margin-bottom:.35em }
.hero .subhead{ margin-bottom:.75rem }
.hero-band{ width:auto; max-width:100%; max-height:max(220px, calc(100vh - 240px)); margin:0 auto }
.page-title{ font-size:clamp(1.8rem, 4vw, 2.7rem) }
/* industries served: longer column on the left */
.industries{ columns:auto; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:repeat(11, auto); grid-auto-flow:column; column-gap:2rem }
@media (max-width:640px){ .industries{ grid-template-columns:1fr; grid-template-rows:none; grid-auto-flow:row } }
.group-label{ margin:1rem 0 .2rem; font-weight:600; color:var(--band-cyan); font-size:.95rem }
.field-body > .points:first-child{ margin-top:.1rem }
/* FAQ */
.faq-list{ max-width:var(--measure); border-top:1px solid rgba(154,163,191,.3) }
.faq-item{ border-bottom:1px solid rgba(154,163,191,.3) }
.faq-item > summary{ list-style:none; cursor:pointer; padding:.75rem 0 .75rem 1.6rem; position:relative; font-weight:600 }
.faq-item > summary::-webkit-details-marker{ display:none }
.faq-item > summary::before{ content:""; position:absolute; left:.35rem; top:1.25rem; border-left:6px solid var(--band-cyan); border-top:5px solid transparent; border-bottom:5px solid transparent; transition:transform .15s }
.faq-item[open] > summary::before{ transform:rotate(90deg) }
@media (prefers-reduced-motion:reduce){ .faq-item > summary::before{ transition:none } }
.faq-item > summary:hover{ color:var(--band-cyan) }
.faq-item p{ margin:0 0 1rem 1.6rem }
.hint{ margin:.35rem 0 0; font-size:.95rem; color:var(--record-white) }
.hint:empty{ display:none }
.hint-fix{ font:inherit; font-size:.9rem; font-weight:600; color:var(--deep-time); background:var(--band-cyan); border:0; border-radius:3px; padding:.2rem .6rem; min-height:32px; cursor:pointer; margin-left:.25rem }
.updated{ margin-top:-.4rem; color:var(--trail-grey) }

/* ================= home, operator's layout (2026-09-27) ================= */
.hero{ min-height:calc(100vh - 5.5rem); display:flex; flex-direction:column; justify-content:center; padding:1rem 0 2rem }
.hero h1{ font-size:clamp(2rem, 4.2vw, 3.5rem); line-height:1.1; margin-bottom:.45em }
.h1-line{ display:block }
.hero-band{ max-height:max(220px, calc(100vh - 17rem)) }
.kicker{ font-size:clamp(1.25rem, 2.4vw, 1.6rem); font-weight:600; color:var(--trail-grey); margin:0 0 .6rem; max-width:none }
.hero-figure{ width:100%; max-width:900px; margin:0 auto }
.hero-band{ width:100%; height:auto; max-height:max(200px, calc(100vh - 17rem)) }
.hero h1{ font-size:clamp(1.5rem, 4.2vw, 3.5rem) }
.hero{ min-height:calc(100vh - 4.6rem); padding-bottom:4rem }
.hero{ min-height:calc(100vh - 68px); padding-top:.75rem; padding-bottom:.75rem; margin-bottom:4.5rem; justify-content:center }
.page-disclaimer{ max-width:62rem; margin:2.5rem auto 0; text-align:center; color:var(--trail-grey) }
.page-disclaimer{ max-width:74rem; font-size:.88rem }
.act-two{ display:inline-flex; flex-direction:column; align-items:center; line-height:1.25; padding:.8rem 1.6rem }
.act-sub{ font-size:.85rem; font-weight:500 }
.faq-item p .linklike, .linklike{ font:inherit; color:var(--link); background:none; border:0; padding:0; text-decoration:underline; text-underline-offset:.18em; cursor:pointer }
.linklike:hover{ color:var(--record-white) }
.req{ color:var(--amber); font-weight:600 }
.req-note{ font-size:.9rem; color:var(--trail-grey); margin:0 0 1rem }
.req-note span{ color:var(--amber); font-weight:600 }
.help{ font-size:.9rem; color:var(--trail-grey); margin:.3rem 0 0 }
.notice{ margin:.5rem 0 1rem }

/* ================= TDD Newsroom ================= */
.news-item{ padding:1.1rem 0; border-bottom:1px solid rgba(154,163,191,.25); max-width:var(--measure) }
.news-item h3{ margin:0 0 .35rem; font-size:1.2rem; line-height:1.3 }
.news-item h3 a{ color:var(--record-white); text-decoration:none }
.news-item h3 a:hover{ color:var(--band-cyan); text-decoration:underline }
.item-meta{ margin:0 0 .5rem; font-size:.88rem; color:var(--trail-grey); display:flex; flex-wrap:wrap; gap:.45rem; align-items:center }
.chip{ display:inline-block; padding:.05rem .5rem; border:1px solid rgba(154,163,191,.45); border-radius:999px; font-size:.78rem; color:var(--record-white) }
.chip-label{ border-color:var(--band-cyan); color:var(--band-cyan) }
.item-tags{ margin:.4rem 0 0; display:flex; flex-wrap:wrap; gap:.4rem }
.tag{ font-size:.8rem; color:var(--trail-grey); text-decoration:none; border-bottom:1px dotted rgba(154,163,191,.6) }
.tag:hover{ color:var(--band-cyan) }
.more{ font-weight:600 }
.fine-print{ max-width:var(--column); margin:3rem auto 0; padding-top:1.5rem; border-top:1px solid rgba(154,163,191,.3); color:var(--trail-grey); font-size:.95rem }
.fine-print section{ margin-bottom:1.1rem }
.fine-print ul{ padding-left:1.1rem }
.h-small{ font-size:1rem; margin:1rem 0 .4rem; color:var(--record-white) }
.story{ max-width:var(--column); margin:0 auto }
.story-title{ text-align:left; font-size:clamp(1.6rem,3.2vw,2.3rem) }
.kicker{ margin:0 0 .4rem; font-weight:600 }
.byline{ color:var(--trail-grey); margin:.2rem 0 1rem }
.story-body p, .story-body ul{ max-width:var(--measure) }
.sources li{ margin:.25rem 0; overflow-wrap:anywhere }
.archive-list{ list-style:none; padding:0 } .archive-list li{ padding:.4rem 0; border-bottom:1px solid rgba(154,163,191,.2) }
.feed-list{ columns:2 14rem }

/* ================= Story reader (in front of the feed) ================= */
.reader-shell[hidden]{ display:none }
.reader-shell{ position:fixed; inset:0; z-index:60 }
.reader-backdrop{ position:absolute; inset:0; background:rgba(5,8,22,.72) }
.reader{ position:absolute; inset:2.5vh max(2.5vw, calc((100vw - 60rem)/2)); background:var(--deep-time); border:1px solid rgba(154,163,191,.35);
  border-radius:14px; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(0,0,0,.5) }
.reader-bar{ display:flex; justify-content:space-between; align-items:center; gap:.5rem; padding:.6rem .9rem; border-bottom:1px solid rgba(154,163,191,.25) }
.reader-nav{ display:flex; gap:.4rem }
.reader-btn{ font:inherit; font-size:.92rem; color:var(--record-white); background:transparent; border:1px solid rgba(154,163,191,.45); border-radius:999px; padding:.35rem .8rem; cursor:pointer }
.reader-btn:hover{ border-color:var(--band-cyan); color:var(--band-cyan) }
.reader-btn[disabled]{ opacity:.4; cursor:default }
.reader-body{ overflow:auto; padding:1.2rem clamp(1rem,4vw,2.5rem) 2rem; outline:none }
.reader-loading{ color:var(--trail-grey) }
html.reader-open{ overflow:hidden }
.back-to-feed{ margin:0 0 .8rem }
@media (max-width:600px){ .reader{ inset:0; border-radius:0 } }
@media (prefers-reduced-motion:no-preference){ .reader{ animation:reader-in .18s ease-out } @keyframes reader-in{ from{ opacity:0; transform:translateY(8px) } to{ opacity:1; transform:none } } }

/* ---------- corrections (spec r1 2026-10-14; r2 entries 2026-10-15) ---------- */
.chip-corrected{ border-color:var(--link); color:var(--link); text-decoration:none; margin-left:.35rem }
.chip-corrected:hover{ color:var(--record-white); border-color:var(--record-white) }
.story-updated{ border-left:3px solid var(--band-cyan); padding:.4rem .8rem; max-width:var(--measure) }
.correction-entry h3 a{ color:var(--link) }

/* ---------- site pass 3 (2026-10-15): the method, the market, publications, the book ---------- */
.stop h3{ font-size:1.12rem; margin:1.9rem 0 .6rem; max-width:var(--measure) }
.stack{ list-style:none; counter-reset:stack; padding:0; margin:1.2rem 0 1.4rem; max-width:var(--measure) }
.stack li{ counter-increment:stack; display:grid; grid-template-columns:2.2rem 1fr; column-gap:.4rem; padding:.85rem 0; border-top:1px solid rgba(154,163,191,.3) }
.stack li:last-child{ border-bottom:1px solid rgba(154,163,191,.3) }
.stack li::before{ content:counter(stack); grid-row:span 2; color:var(--band-cyan); font-weight:600; font-variant-numeric:tabular-nums }
.stack li span{ color:var(--trail-grey) }
.equation{ max-width:var(--measure); padding:.8rem 1rem; border-left:3px solid var(--band-cyan); font-weight:600; font-variant-numeric:tabular-nums }
.status{ max-width:var(--measure); color:var(--trail-grey); font-size:.97rem }
.status .chip{ margin-right:.4rem }
.cite, .cite-line{ max-width:var(--measure); font-size:.92rem; color:var(--trail-grey); overflow-wrap:anywhere }
.pub-list{ list-style:none; padding:0; margin:0; max-width:var(--measure) }
.pub-list li{ padding:1rem 0; border-top:1px solid rgba(154,163,191,.3) }
.pub-list li:last-child{ border-bottom:1px solid rgba(154,163,191,.3) }
.pub-list p{ margin:0 0 .35rem }
.pub-title{ font-weight:600 }
.book-teaser{ display:flex; gap:1.25rem; align-items:flex-start; max-width:var(--measure) }
.book-teaser img{ flex:none; width:96px; height:auto; border-radius:2px }
.book-hero{ display:flex; gap:2rem; align-items:flex-start; flex-wrap:wrap; max-width:calc(var(--measure) + 4rem) }
.book-hero img{ width:min(320px, 100%); height:auto; border-radius:3px; box-shadow:0 10px 30px rgba(0,0,0,.35) }
.book-hero > div{ flex:1 1 16rem }
.book-title{ font-size:clamp(1.5rem, 3vw, 2rem); margin:0 0 .3rem }
.book-sub{ font-size:1.15rem; color:var(--trail-grey); margin:0 0 1rem }
.book-hero .act{ display:inline-block; text-decoration:none; margin:.5rem 0 .6rem }
.standing-line{ max-width:var(--measure); font-style:italic }
.levels-table td{ min-width:12rem }
.site-header nav a.nav-book{ padding-left:.9rem; border-left:1px solid rgba(154,163,191,.35) }
.site-header nav{ flex-wrap:wrap; row-gap:.4rem }
@media (max-width: 720px){
  .site-header nav{ gap:.35rem 1rem; font-size:.95rem }
  .site-header nav a.nav-book{ padding-left:0; border-left:0 }
  .book-teaser{ gap:1rem }
}
@media (max-width: 720px){
  .data-table.compact td{ min-width:0 }
  .data-table.compact tbody th{ min-width:0; width:40% }
}

/* ---------- site pass 3c (2026-10-15): article cards, the book on Publications ---------- */
.article-cards{ list-style:none; margin:1rem 0 0; max-width:var(--measure); padding:0; display:grid; gap:1.5rem; grid-template-columns:repeat(auto-fill, minmax(min(100%, 300px), 1fr)) }
.article-card{ display:flex; flex-direction:column; margin:0 }
.article-thumb{ display:block; aspect-ratio:16/9; overflow:hidden; border-radius:3px; background:rgba(127,127,127,.15); box-shadow:0 0 0 1px rgba(154,163,191,.28) }
.article-thumb img{ display:block; width:100%; height:100%; object-fit:cover }
.article-text{ padding-top:.7rem }
.article-meta{ font-size:.85rem; color:var(--trail-grey); margin:0 0 .3rem }
.article-cards .article-title{ font-size:1.1rem; line-height:1.3; margin:0 0 .4rem }
.article-cards .article-meta{ margin:0 0 .3rem }
.article-title a{ text-decoration:none }
.article-title a:hover, .article-title a:focus-visible{ text-decoration:underline }
.article-text p:last-child{ margin:0 }
.more-link{ margin-top:1.25rem; font-weight:600 }
.book-more{ max-width:var(--measure); margin-top:1rem }
.book-more h3{ margin-top:1.25rem }

/* ---------- release desk shelves (2026-10-25): gallery and press ---------- */
.gallery-exhibit{ font-size:1.15rem; margin:2rem 0 .75rem; max-width:var(--measure) }
.gallery-grid{ list-style:none; margin:0; padding:0; display:grid; gap:1.5rem; grid-template-columns:repeat(auto-fill, minmax(min(100%, 220px), 1fr)); max-width:var(--measure) }
.gallery-card{ margin:0 }
.gallery-thumb{ display:flex; align-items:center; justify-content:center; aspect-ratio:1/1; background:rgba(127,127,127,.12); box-shadow:0 0 0 1px rgba(154,163,191,.28); border-radius:3px; overflow:hidden; padding:.5rem }
.gallery-thumb img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain }
.gallery-card .article-meta{ margin:.6rem 0 .25rem }
.gallery-card .article-title{ font-size:1rem; line-height:1.3; margin:0 }
.gallery-card .article-title a{ text-decoration:none }
.gallery-preview{ margin:0 0 1.25rem; max-width:var(--measure) }
.gallery-preview img{ display:block; max-width:100%; height:auto; max-height:80vh; margin:0 auto; box-shadow:0 0 0 1px rgba(154,163,191,.28) }
.press-list{ list-style:none; margin:1rem 0; padding:0; max-width:var(--measure) }
.press-list li{ padding:1rem 0; border-bottom:1px solid rgba(154,163,191,.25) }
.press-list .article-title{ font-size:1.15rem; margin:.25rem 0 .4rem }
.press-dateline{ text-transform:none }
.press-body h2{ font-size:1.15rem; margin:1.6rem 0 .5rem }
.press-body{ max-width:var(--measure) }

/* Gallery r2 (2026-10-26): editions, errata, story fronts */
.gallery-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .4rem; align-items: center; }
.act.act-quiet { background: transparent; color: var(--record-white); border: 1px solid var(--trail-grey); text-decoration: none; }
.act.act-quiet:hover { background: rgba(255,255,255,.06); border-color: var(--record-white); }
a.act { display: inline-flex; align-items: center; gap: .35em; text-decoration: none; }
.stage-chip { display: inline-block; padding: .1rem .55rem; margin-right: .4rem; border-radius: 999px; border: 1px solid currentColor; font-size: .85em; font-weight: 600; white-space: nowrap; }
.gallery-stage { margin: .2rem 0 1rem; }
.gallery-note { padding: .6rem .8rem; border-left: 3px solid currentColor; opacity: .9; }
.story-front { margin: 1rem 0; padding: .8rem 1rem; border-left: 3px solid var(--link); }
.story-front p { margin: .3rem 0; }
.edition-strip { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.edition-strip li { display: flex; flex-direction: column; gap: .25rem; }
.edition-strip img { width: 100%; height: 140px; object-fit: contain; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.edition-strip li[aria-current="page"] img { outline: 2px solid var(--link); }
.edition-strip .ed-name { font-weight: 600; }
.edition-strip .ed-meta { font-size: .85em; opacity: .8; }
.errata-body .table-wrap { margin: 1rem 0; }
.errata-body td, .errata-body th { vertical-align: top; }
.gallery-preview img { max-width: 100%; height: auto; }
.md-cards { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .9rem; }
.md-cards > li { border: 1px solid rgba(154,163,191,.35); border-radius: 4px; padding: .8rem 1rem; }
.md-cards .md-card-head { margin: 0 0 .4rem; }
.md-cards dl { display: grid; grid-template-columns: 9rem 1fr; gap: .25rem 1rem; margin: 0; }
.md-cards dt { color: var(--trail-grey); font-size: .9em; }
.md-cards dd { margin: 0; }
@media (max-width:640px){ .md-cards dl { grid-template-columns: 1fr; } .md-cards dd { margin-bottom: .4rem; } }
.gallery-work a, .gallery-work td, .gallery-errata a, .gallery-story a { overflow-wrap: anywhere; }

/* Gallery r3 (2026-10-26): editions strip at the top, and the viewer */
.edition-nav { margin: 0 0 1.2rem; }
.edition-nav-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 .4rem; font-size: .95rem; }
.edition-arrows { display: flex; gap: .4rem; }
.ed-scroll { font: inherit; color: var(--record-white); background: transparent; border: 1px solid var(--trail-grey); border-radius: 3px; min-width: 44px; min-height: 36px; cursor: pointer; }
.ed-scroll:hover { border-color: var(--record-white); }
.edition-nav .edition-strip { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x proximity; gap: .8rem; padding: 2px 2px .6rem; margin: 0; }
.edition-nav .edition-strip li { flex: 0 0 132px; scroll-snap-align: start; }
.edition-nav .edition-strip img { height: 120px; }
.viewer-open { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.viewer-open img { display: block; margin: 0 auto; }
.viewer-hint { position: absolute; right: .6rem; bottom: .6rem; background: rgba(14,19,48,.85); color: var(--record-white); border: 1px solid var(--trail-grey); border-radius: 3px; padding: .25rem .6rem; font-size: .9rem; }
.viewer { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: #0b0f26; color: var(--record-white); }
.viewer::backdrop { background: rgba(5,7,20,.85); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .5rem .8rem; border-bottom: 1px solid rgba(154,163,191,.35); flex: 0 0 auto; }
.viewer-title { margin: 0; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-tools { display: flex; gap: .4rem; flex: 0 0 auto; }
.viewer-tools button { font: inherit; font-size: .95rem; color: var(--record-white); background: transparent; border: 1px solid var(--trail-grey); border-radius: 3px; min-width: 44px; min-height: 40px; padding: 0 .7rem; cursor: pointer; }
.viewer-tools .viewer-close { background: var(--amber); color: var(--deep-time); border-color: var(--amber); font-weight: 650; }
.viewer-scroll { flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; }
.viewer-img { display: block; width: auto; max-width: none; height: auto; margin: 0 auto; background: #fff; }
@media (max-width: 640px) { .viewer-tools button[data-zoom="0"] { padding: 0 .5rem; font-size: .85rem; } }
.book-entry .book-title{ font-size:clamp(1.5rem, 3vw, 2rem); margin:0 0 .3rem }
.book-entry + .book-entry{ margin-top:2.5rem; padding-top:2rem; border-top:1px solid rgba(154,163,191,.25) }

.viewer-tools button:disabled { opacity: .4; cursor: default; }

/* Gallery r4 (2026-10-26): the nav pane (exhibit, work, picture with arrows, caption, strip), story in place */
.gal-crumb { font-size: 1.15rem; font-weight: 600; color: var(--trail-grey); margin: 0 0 .3rem; text-align: center; }
.gal-crumb a { color: var(--trail-grey); }
.gal-title { margin-bottom: .2rem; }
.gal-sub { text-align: center; color: var(--trail-grey); margin: 0 0 1rem; }
.gal-pane { max-width: 1100px; margin: 0 auto 1.6rem; padding: 0 var(--gutter); scroll-margin-top: 1rem; }
.gal-stage { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: .6rem; }
.gal-figure { margin: 0; text-align: center; }
.gal-figure .viewer-open img { max-height: max(300px, calc(100vh - 470px)); width: auto; max-width: 100%; height: auto; }
.gal-figure figcaption { margin: .6rem auto 0; max-width: 62ch; font-size: .95rem; color: var(--trail-grey); }
.gal-figure figcaption strong { color: var(--record-white); }
.gal-earlier { display: block; margin-top: .2rem; }
.gal-arrow { display: flex; align-items: center; justify-content: center; width: 52px; height: 72px; font-size: 2.4rem; line-height: 1;
  color: var(--record-white); text-decoration: none; border: 1px solid var(--trail-grey); border-radius: 4px; background: rgba(255,255,255,.03); }
a.gal-arrow:hover { border-color: var(--record-white); background: rgba(255,255,255,.08); }
span.gal-arrow { border-color: transparent; background: none; }
.gal-strip-wrap { margin-top: .9rem; }
.gal-strip-head { text-align: center; font-size: .85rem; color: var(--trail-grey); margin: 0 0 .4rem; }
.gal-strip { list-style: none; margin: 0; padding: 2px 2px .4rem; display: flex; gap: .5rem; overflow-x: auto; justify-content: safe center; scroll-snap-type: x proximity; }
.gal-strip li { flex: 0 0 auto; scroll-snap-align: center; }
.gal-strip a { display: flex; flex-direction: column; align-items: center; gap: .2rem; width: 84px; text-decoration: none; color: var(--trail-grey); font-size: .75rem; text-align: center; }
.gal-strip img { width: 84px; height: 64px; object-fit: contain; background: rgba(255,255,255,.04); border: 1px solid rgba(154,163,191,.35); border-radius: 3px; }
.gal-strip li[aria-current="page"] img { outline: 2px solid var(--link); outline-offset: 1px; }
.gal-strip li[aria-current="page"] a { color: var(--record-white); font-weight: 600; }
.story-more > summary { cursor: pointer; color: var(--link); text-decoration: underline; list-style: none; }
.story-more > summary::-webkit-details-marker { display: none; }
.story-more[open] > summary { margin-bottom: 1rem; }
.story-body { margin-top: .4rem; }
.md-front { border-bottom: 1px solid rgba(154,163,191,.3); margin-bottom: 1.2rem; padding-bottom: .6rem; }
@media (max-width: 640px) {
  .gal-stage { grid-template-columns: 36px 1fr 36px; gap: .3rem; }
  .gal-arrow { width: 36px; height: 56px; font-size: 1.9rem; }
  .gal-figure .viewer-open img { max-height: 60vh; }
  .gal-pane { padding: 0 .4rem; }
}
/* the viewer's tools centred, so they are the first thing seen */
.viewer-bar { display: grid; grid-template-columns: 1fr auto 1fr; }
.viewer-title { grid-column: 1; }
.viewer-tools { grid-column: 2; justify-self: center; }
@media (max-width: 640px) {
  .viewer-bar { grid-template-columns: 1fr; justify-items: center; gap: .35rem; }
  .viewer-title { grid-column: 1; font-size: .85rem; max-width: 100%; }
  .viewer-tools { grid-column: 1; }
}
.gal-sub, .gal-strip-head, .gal-crumb { max-width: none; margin-left: auto; margin-right: auto; }
.gal-figure .viewer-open { display: inline-block; width: auto; max-width: 100%; vertical-align: top; }
.gal-figure figcaption { text-align: center; }
