/* doc.css — shared long-form document style for /minimal and /play.
 *
 * Extracted from open-commons.html so the document family reads as one
 * surface. open-commons stays self-contained (it carries bespoke SVG
 * figures); these pages are prose + tables, so they share.
 *
 * Palette, type scale and chrome are open-commons'. Added here: tables,
 * the family nav, the step list, and the reader-band cards.
 */

:root{
  --paper:#ECEFEA; --surface:#F6F8F3; --ink:#16332C; --ink-soft:#3A544C; --ink-faint:#6E837B;
  --tide:#0F6E56; --tide-bright:#1D9E75; --tide-pale:#DCEDE6;
  --coral:#C2461F; --coral-mid:#D85A30; --coral-pale:#F5DDD2;
  --sand:#B07D1E; --sand-pale:#F3E6CE;
  --line:#CBCBBE; --line-soft:#DCDCD2;
  --sans:'Inter',system-ui,-apple-system,sans-serif;
  --display:'Fraunces',Georgia,serif;
  --mono:'IBM Plex Mono',ui-monospace,monospace;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:1.03rem;line-height:1.72;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
.wrap{max-width:840px;margin:0 auto;padding:0 clamp(1.1rem,5vw,2.2rem);}
a{color:var(--tide);text-decoration:none;border-bottom:1px solid rgba(15,110,86,.32);transition:border-color .15s,color .15s;}
a:hover{color:var(--coral);border-color:var(--coral);}
a:focus-visible{outline:2px solid var(--tide);outline-offset:2px;border-radius:2px;}

header.top{border-bottom:1px solid var(--line-soft);}
.top .wrap{display:flex;align-items:center;justify-content:space-between;height:58px;gap:1rem;}
.brand{font-family:var(--mono);font-size:.82rem;letter-spacing:.05em;color:var(--ink);border:none;display:flex;align-items:center;gap:.55em;flex-shrink:0;}
.brand .glyph{width:12px;height:12px;border-radius:50%;border:2px solid var(--tide);display:inline-block;}
.top nav{display:flex;gap:1.1rem;}
.top nav a{font-family:var(--mono);font-size:.76rem;letter-spacing:.03em;color:var(--ink-soft);border:none;white-space:nowrap;}
.top nav a:hover{color:var(--coral);}

.hero{padding:clamp(3.2rem,9vw,6rem) 0 0;}
.eyebrow{font-family:var(--mono);font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft);display:flex;align-items:baseline;gap:.7em;margin:0 0 1.1rem;flex-wrap:wrap;}
.eyebrow .n{font-size:.98rem;color:var(--tide);font-weight:500;letter-spacing:0;}
h1{font-family:var(--display);font-weight:500;font-size:clamp(2.15rem,6vw,3.9rem);line-height:1.04;letter-spacing:-.01em;margin:0 0 1.3rem;max-width:18ch;}
.lead{font-size:clamp(1.12rem,2.4vw,1.32rem);line-height:1.62;color:var(--ink-soft);max-width:62ch;margin:0;}
.lead strong{color:var(--ink);font-weight:500;}
.byline{font-family:var(--mono);font-size:.75rem;letter-spacing:.04em;color:var(--ink-faint);margin:1.5rem 0 0;}

.hero-tide{overflow:hidden;height:42px;margin:clamp(2.4rem,6vw,3.6rem) 0 0;}
.hero-tide svg{width:200%;height:100%;display:block;animation:tide 24s linear infinite;}
@keyframes tide{from{transform:translateX(0)}to{transform:translateX(-50%)}}

section{padding:clamp(2.4rem,6vw,3.8rem) 0;}
section.alt{background:linear-gradient(180deg,transparent,rgba(15,110,86,.03) 12%,rgba(15,110,86,.03) 88%,transparent);}
h2{font-family:var(--display);font-weight:500;font-size:clamp(1.55rem,3.6vw,2.35rem);line-height:1.1;letter-spacing:-.01em;margin:0 0 1.15rem;max-width:22ch;}
h3{font-family:var(--display);font-weight:500;font-size:clamp(1.15rem,2.4vw,1.45rem);line-height:1.2;margin:2.2rem 0 .8rem;}
p{margin:0 0 1.15rem;max-width:64ch;}
p.tight{max-width:60ch;}
.muted{color:var(--ink-soft);}
em{font-style:italic;}
strong{font-weight:600;}
code{font-family:var(--mono);font-size:.88em;background:var(--tide-pale);padding:.1em .35em;border-radius:3px;color:#0B4E3D;}
ul,ol{max-width:64ch;margin:0 0 1.15rem;padding-left:1.3rem;}
li{margin:0 0 .5rem;}
blockquote{margin:1.6rem 0;padding:.2rem 0 .2rem 1.3rem;border-left:3px solid var(--tide-pale);color:var(--ink-soft);font-style:italic;max-width:62ch;}
blockquote p{margin-bottom:.6rem;}
hr{border:none;border-top:1px solid var(--line-soft);margin:2.6rem 0;}

/* ── tables — the doc family is table-heavy (the nine shifts, the stack,
      the claim-to-block map). Scrolls inside its own box on narrow screens
      so the page body never scrolls sideways. ───────────────────────── */
.tbl{overflow-x:auto;margin:1.9rem 0;border:1px solid var(--line);border-radius:12px;background:var(--surface);}
table{border-collapse:collapse;width:100%;min-width:520px;font-size:.92rem;line-height:1.55;}
thead th{font-family:var(--mono);font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--tide);text-align:left;font-weight:500;padding:.85rem 1rem;border-bottom:1px solid var(--line);vertical-align:bottom;}
tbody td{padding:.85rem 1rem;border-bottom:1px solid var(--line-soft);vertical-align:top;color:var(--ink-soft);}
tbody tr:last-child td{border-bottom:none;}
tbody td:first-child{color:var(--ink);}
tbody td strong{color:var(--ink);font-weight:600;}

/* ── the family nav — cards on the index, prev/next at the foot ────── */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.9rem;margin:1.8rem 0 .5rem;}
.grid.one{grid-template-columns:1fr;}
.pcard{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:1.15rem 1.25rem;display:block;border-bottom:1px solid var(--line);color:inherit;transition:border-color .15s,transform .15s;}
a.pcard:hover{border-color:var(--tide);transform:translateY(-1px);color:inherit;}
.pcard .h{font-family:var(--mono);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--tide);margin:0 0 .5rem;}
.pcard .t{font-weight:500;font-size:1.05rem;margin:0 0 .35rem;line-height:1.3;font-family:var(--display);}
.pcard p{font-size:.92rem;line-height:1.55;color:var(--ink-soft);margin:0;max-width:none;}
.pcard .who{font-family:var(--mono);font-size:.72rem;color:var(--ink-faint);margin:.6rem 0 0;letter-spacing:.02em;}

.family{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;font-family:var(--mono);font-size:.78rem;margin:1.4rem 0 0;}
.family .here{color:var(--ink-faint);border:none;}

/* ── numbered steps (the /play walkthrough) ────────────────────────── */
.steps{counter-reset:step;list-style:none;padding:0;margin:1.8rem 0;max-width:64ch;}
.steps li{counter-increment:step;position:relative;padding:0 0 0 2.6rem;margin:0 0 1.3rem;}
.steps li::before{content:counter(step);position:absolute;left:0;top:.05em;width:1.75rem;height:1.75rem;border-radius:50%;background:var(--tide-pale);color:var(--tide);font-family:var(--mono);font-size:.8rem;font-weight:500;display:flex;align-items:center;justify-content:center;}
.steps .say{background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--tide);border-radius:8px;padding:.75rem .95rem;margin:.6rem 0 0;font-family:var(--mono);font-size:.83rem;line-height:1.6;color:var(--ink);}

.callout{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:1.15rem 1.3rem;margin:1.9rem 0;}
.callout p:last-child{margin-bottom:0;}
.callout .h{font-family:var(--mono);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--coral);margin:0 0 .55rem;}

.divider{height:24px;margin:0;overflow:hidden;}
.divider svg{width:100%;height:100%;display:block;}

footer{border-top:1px solid var(--line-soft);padding:clamp(2.4rem,6vw,3.4rem) 0 3.4rem;margin-top:1rem;}
.reflex{font-family:var(--display);font-style:italic;font-size:1.12rem;color:var(--ink-soft);max-width:54ch;margin:0 0 1.6rem;}
.reflex code{font-family:var(--mono);font-style:normal;font-size:.9em;color:var(--tide);background:none;padding:0;}
.flinks{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;font-family:var(--mono);font-size:.8rem;}
.fnote{font-family:var(--mono);font-size:.72rem;color:var(--ink-faint);margin:1.8rem 0 0;letter-spacing:.01em;max-width:64ch;line-height:1.6;}
.sources{font-size:.88rem;color:var(--ink-faint);line-height:1.65;}
.sources p{max-width:66ch;margin:0 0 .8rem;}
.sources em{font-style:italic;}

@media (max-width:600px){
  .grid{grid-template-columns:1fr;}
  .top nav a.hide-sm{display:none;}
  h1{max-width:none;}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .hero-tide svg{animation:none;width:100%;}
  a.pcard:hover{transform:none;}
}
