/* Stay or Go: a paper workbook. Sage, clay and ink on warm paper. */
:root {
  --paper: #faf6ec;
  --paper-deep: #f0e9d8;
  --white: #fffdf8;
  --ink: #1b2a27;
  --ink-soft: #3a4a45;
  --sage: #dbe5d2;
  --sage-mid: #b9cdb0;
  --green: #2c5a4b;
  --green-deep: #1f4337;
  --clay: #a5421e;
  --clay-soft: #f3d9c9;
  --rule: #1b2a27;
  --text: "Hanken Grotesk", "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --rail-w: 264px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 1.125rem; line-height: 1.58;
  font-variant-numeric: lining-nums tabular-nums;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.25rem; } }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong { font-weight: 700; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 900px) { .wrap { padding: 0 2.5rem; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Masthead */
.mast { border-bottom: 3px solid var(--ink); background: var(--paper); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.brand { font-family: var(--display); font-size: 1.3rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .6rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
.mast nav ul { list-style: none; display: flex; gap: .25rem 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.mast nav a { font-size: 1.0625rem; color: var(--ink); display: inline-block; padding: .45rem 0; min-height: 44px; line-height: 1.9; }

/* Hero */
.hero { padding: 2.25rem 0 2.5rem; }
.hero-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .hero { padding: 3.5rem 0 3.5rem; } .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.5rem; } }
.eyebrow { font-size: 1.0625rem; font-weight: 700; color: var(--clay); margin: 0 0 .9rem; }
h1 { font-size: clamp(3.4rem, 9.5vw, 6.6rem); line-height: .95; margin-bottom: 1.25rem; }
h1 .or { color: var(--clay); font-style: normal; }
.standfirst { font-size: clamp(1.3rem, 2.3vw, 1.65rem); line-height: 1.38; max-width: 31em; margin-bottom: 1.4rem; }
.hero p.plain { max-width: 34em; }
.leave { list-style: none; padding: 0; margin: 1.6rem 0 0; border-top: 2px solid var(--ink); max-width: 36em; }
.leave li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--ink); align-items: baseline; }
.leave .n { font-family: var(--display); color: var(--clay); font-size: 1.45rem; }
.hero-cta { margin-top: 1.75rem; display: flex; gap: 1rem 1.5rem; flex-wrap: wrap; align-items: center; }
.figure-house { margin: 0; background: var(--white); border: 2px solid var(--ink); border-radius: 4px; padding: 1rem 1rem .25rem; position: relative; }
.figure-house::before, .plan-paper::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 0; border-left: 2px dotted var(--sage-mid); }
.figure-house figcaption { border-top: 2px solid var(--ink); margin: .5rem 0 0 1.1rem; padding: .8rem 0 .7rem; font-size: 1.0625rem; }
.figure-house svg { margin-left: 1rem; width: calc(100% - 1rem); }
.figure-house ol { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; gap: .3rem .9rem; }
@media (min-width: 560px) { .figure-house ol { grid-template-columns: 1fr 1fr; } }
.figure-house li { display: grid; grid-template-columns: 1.7rem 1fr; gap: .4rem; align-items: baseline; }
.figure-house li b { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--clay); color: #fff; font-size: .95rem; font-weight: 700; line-height: 1; }

/* Buttons */
.btn { font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .7rem 1.3rem; border: 2px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sage); color: var(--ink); border-color: var(--ink); }
.btn.small { min-height: 44px; padding: .45rem .9rem; font-size: 1.0625rem; }

/* Workbook layout */
.book { display: grid; gap: 0; border-top: 3px solid var(--ink); }
@media (min-width: 1100px) { .book { grid-template-columns: var(--rail-w) minmax(0, 1fr); } }
.rail { display: none; }
@media (min-width: 1100px) {
  .rail { display: block; border-right: 2px solid var(--ink); }
  .rail-in { position: sticky; top: 0; max-height: 100vh; overflow: auto; padding: 1.75rem 1.5rem 1.5rem 0; }
}
.rail h2 { font-family: var(--text); font-weight: 700; font-size: 1.0625rem; margin-bottom: .75rem; }
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail li { border-top: 1px solid var(--ink); }
.rail li:last-child { border-bottom: 1px solid var(--ink); }
.rail a { display: grid; grid-template-columns: 2.1rem 1fr; gap: .5rem; padding: .7rem .5rem .7rem .35rem; text-decoration: none; color: var(--ink); line-height: 1.25; border-left: 6px solid transparent; }
.rail a:hover { background: var(--sage); }
.rail a[aria-current="true"] { border-left-color: var(--clay); background: var(--white); }
.rail .n { font-family: var(--display); font-size: 1.6rem; color: var(--clay); line-height: 1; }
.rail .t { font-weight: 700; font-size: 1.0625rem; display: block; }
.rail .s { font-size: 1rem; color: var(--ink-soft); display: block; margin-top: .15rem; }
.rail .rail-foot { font-size: 1rem; margin-top: 1rem; color: var(--ink-soft); }
.rail .rail-foot button { font: inherit; background: none; border: 0; padding: .4rem 0; color: var(--green-deep); text-decoration: underline; cursor: pointer; min-height: 32px; }

/* Phone and tablet progress bar */
.pips { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--paper); }
.pips ol { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; }
.pips a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; color: var(--paper); text-decoration: none; font-weight: 700; font-size: 1rem; border-right: 1px solid #50605b; }
.pips li:last-child a { border-right: 0; }
.pips a[aria-current="true"] { background: var(--clay); color: #fff; }
.pips .lab { display: none; }
@media (min-width: 700px) { .pips .lab { display: inline; font-weight: 400; } }
@media (min-width: 1100px) { .pips { display: none; } }

.parts { min-width: 0; }
.part { padding: 2.5rem 0 3rem; border-top: 3px solid var(--ink); }
.part:first-child { border-top: 0; }
@media (min-width: 1100px) { .part { padding: 3.25rem 0 4rem 3rem; } }
.part-head { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.25rem; align-items: end; margin-bottom: 1.5rem; max-width: 56rem; }
.part-no { font-family: var(--display); font-size: clamp(4.5rem, 10vw, 7rem); line-height: .8; color: var(--clay); grid-row: span 2; }
.part-kicker { font-weight: 700; font-size: 1.0625rem; margin: 0; align-self: end; }
.part-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); align-self: start; }
.prose { max-width: 40rem; }
.prose h3, .h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 2rem 0 .7rem; }
.cols { display: grid; gap: 2rem; }
@media (min-width: 1280px) { .cols { grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: 3rem; align-items: start; } }
.sidenote { border-left: 6px solid var(--sage-mid); padding: .2rem 0 .2rem 1.1rem; font-size: 1.0625rem; max-width: 34rem; }
.sidenote + .sidenote { margin-top: 1.5rem; }
.sidenote h3, .sidenote h4 { font-family: var(--text); font-weight: 700; font-size: 1.0625rem; margin: 0 0 .35rem; }
.sidenote p:last-child { margin-bottom: 0; }

/* Source markers */
.src { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .3rem; margin: 0 .1rem; border: 1.5px solid var(--green-deep); border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1; text-decoration: none; color: var(--green-deep); vertical-align: .12em; background: var(--white); }
.src:hover { background: var(--green-deep); color: #fff; }
.checked { font-size: 1rem; color: var(--ink-soft); }

/* Quotes from Dianne */
.quote { margin: 1.75rem 0; padding: 1.1rem 1.25rem 1rem; background: var(--white); border: 2px solid var(--ink); border-radius: 4px; max-width: 40rem; position: relative; }
.quote::before { content: "\201C"; font-family: var(--display); position: absolute; top: -.2rem; left: .8rem; font-size: 4rem; color: var(--clay); line-height: 1; }
.quote p { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.32; margin: 1.3rem 0 .7rem; }
.quote footer { font-size: 1.0625rem; }
.dnote { margin: 1.5rem 0; border: 2px dashed var(--clay); border-radius: 4px; padding: 1rem 1.2rem; background: #fbeee6; max-width: 40rem; }
.dnote h4 { font-family: var(--text); font-weight: 700; color: var(--clay); font-size: 1.0625rem; margin-bottom: .3rem; }
.dnote p { margin: 0; font-size: 1.0625rem; }

/* Worksheets */
.sheet { background: var(--sage); border: 2px solid var(--ink); border-radius: 4px; margin: 1.75rem 0; max-width: 58rem; }
.sheet-head { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; align-items: baseline; background: var(--ink); color: var(--paper); padding: .55rem 1.1rem; font-weight: 700; font-size: 1.0625rem; }
.sheet-head span + span { font-weight: 400; }
.sheet-body { padding: 1.2rem 1.1rem 1.4rem; }
@media (min-width: 700px) { .sheet-body { padding: 1.5rem 1.6rem 1.75rem; } }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend { font-family: var(--display); font-size: 1.4rem; padding: 0; margin-bottom: .7rem; line-height: 1.2; }
.hint { font-size: 1.0625rem; color: var(--ink-soft); margin: -.3rem 0 .8rem; }
.choices { display: grid; gap: .6rem; }
@media (min-width: 760px) { .choices.three { grid-template-columns: repeat(3, 1fr); } .choices.two { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.choice > span { display: grid; grid-template-columns: 1.7rem 1fr; gap: .7rem; align-items: start; min-height: 56px; padding: .8rem .9rem; background: var(--white); border: 2px solid var(--ink); border-radius: 4px; line-height: 1.3; }
.choice > span::before { content: ""; width: 1.5rem; height: 1.5rem; border: 2px solid var(--ink); border-radius: 50%; background: #fff; margin-top: .05rem; }
.choice input[type="checkbox"] + span::before { border-radius: 3px; }
.choice input:checked + span { background: var(--ink); color: var(--paper); }
.choice input:checked + span::before { background: var(--clay); border-color: var(--paper); box-shadow: inset 0 0 0 4px var(--ink); }
.choice input[type="checkbox"]:checked + span::before { box-shadow: none; background: var(--clay) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/88% no-repeat; }
.choice input:focus-visible + span { outline: 3px solid var(--clay); outline-offset: 3px; }
.choice small { display: block; font-size: 1rem; margin-top: .2rem; opacity: .92; }

.stage-notes { margin-top: 1.25rem; display: grid; gap: 1rem; }
.stage-note { background: var(--white); border: 2px solid var(--ink); border-radius: 4px; padding: 1rem 1.15rem; }
.stage-note h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.stage-note p:last-child, .stage-note ul:last-child { margin-bottom: 0; }
.stage-note ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
.stage-note li { margin-bottom: .35rem; }
.js .stage-note[hidden] { display: none; }
.push-notes { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.push-notes li { padding: .6rem .9rem; background: var(--white); border-left: 6px solid var(--clay); font-size: 1.0625rem; }
.js .push-notes li[hidden] { display: none; }

/* Ledger rows (Part 2) */
.ledger { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 1fr; gap: .35rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--ink); align-items: center; }
@media (min-width: 760px) { .row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 8.5rem; } }
.row label, .row .lbl { font-weight: 700; line-height: 1.3; }
.row .sub { display: block; font-weight: 400; font-size: 1rem; color: var(--ink-soft); margin-top: .2rem; line-height: 1.4; }
.row .amt { font-weight: 700; font-size: 1.3rem; text-align: left; white-space: nowrap; }
@media (min-width: 760px) { .row .amt { text-align: right; } }
.row .amt small { display: block; font-weight: 400; font-size: 1rem; color: var(--ink-soft); }
.field { position: relative; display: flex; align-items: center; }
.field .pre { position: absolute; left: .8rem; font-weight: 700; pointer-events: none; }
input[type="text"], input[type="email"], input[type="number"], select, textarea { font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 3px; min-height: 52px; padding: .5rem .8rem; width: 100%; max-width: 100%; font-variant-numeric: lining-nums tabular-nums; }
.field .pre + input { padding-left: 1.9rem; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%231b2a27' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .9rem center/16px no-repeat; padding-right: 2.6rem; }
input::placeholder { color: #5b6863; }
.total { display: grid; gap: .6rem 2rem; padding: 1.2rem 0 0; align-items: end; }
@media (min-width: 760px) { .total { grid-template-columns: 1fr auto auto; } }
.total .lbl { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.big { font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 3.2rem); line-height: 1; letter-spacing: -.01em; }
.big small { display: block; font-size: 1.0625rem; font-weight: 400; letter-spacing: 0; margin-top: .4rem; }
.bar { display: flex; height: 26px; border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; margin-top: 1.2rem; background: #fff; }
.bar i { display: block; height: 100%; min-width: 0; transition: flex-basis .25s ease; }
.bar .b-tax { background: var(--green); } .bar .b-sep { background: var(--clay); } .bar .b-rest { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, #fff 2px 7px); }
.key { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; padding: 0; margin: .6rem 0 0; font-size: 1.0625rem; }
.key li { display: flex; gap: .5rem; align-items: center; }
.key i { width: 1.1rem; height: 1.1rem; border: 2px solid var(--ink); display: inline-block; }

/* Timeline (Part 3) */
.tl-controls { display: grid; gap: .8rem 1.5rem; align-items: end; margin-bottom: 1.2rem; }
@media (min-width: 760px) { .tl-controls { grid-template-columns: 1fr auto; } }
.tl-readout { font-family: var(--display); font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.05; }
.tl-readout small { display: block; font-family: var(--text); font-size: 1.0625rem; margin-bottom: .3rem; font-weight: 700; }
.stepper { display: flex; gap: .5rem; }
.stepper .btn { min-width: 52px; }
.tl-range { width: 100%; margin: .25rem 0 0; accent-color: var(--clay); height: 44px; cursor: pointer; }
.tl { position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: 4px; padding: .7rem .7rem .9rem; touch-action: pan-y; user-select: none; cursor: ew-resize; }
.tl-grid { display: grid; grid-template-columns: repeat(36, minmax(0, 1fr)); position: relative; }
.tl-years { margin-bottom: .2rem; }
.tl-years span:empty { border-left-color: transparent; }
.tl-years span { font-weight: 700; font-size: 1rem; border-left: 2px solid var(--ink); padding-left: .3rem; white-space: nowrap; overflow: hidden; }
.tl-months span { font-size: .8rem; text-align: center; color: var(--ink-soft); border-left: 1px solid #c9cfc6; padding: .15rem 0; }
.tl-months span.q { border-left-color: var(--ink); }
.tl-track { position: relative; height: 30px; margin-top: .35rem; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 36 - 1px), #dfe3db calc(100% / 36 - 1px) calc(100% / 36)); }
.tl-label { font-size: 1rem; font-weight: 700; margin: .75rem 0 0; line-height: 1.25; position: relative; z-index: 3; background: var(--white); width: fit-content; padding-right: .4rem; }
.tl-label span { font-weight: 400; color: var(--ink-soft); }
.tl-band { position: absolute; top: 3px; bottom: 3px; border-radius: 2px; transition: left .2s ease, width .2s ease; }
.tl-band.t5 { background: var(--green); }
.tl-band.t5x { background: repeating-linear-gradient(45deg, var(--green) 0 3px, var(--sage) 3px 8px); }
.tl-band.smoke { background: var(--clay); }
.tl-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink); }
.tl-dot.off { background: #fff; border: 2px solid #8b958f; }
.tl-dot.sem { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 2px; transform: rotate(45deg); background: var(--clay); }
.tl-dot.sem.off { background: #fff; border-color: #8b958f; }
.tl-flag { position: absolute; top: 0; bottom: 0; width: 0; border-left: 3px solid var(--ink); pointer-events: none; transition: left .2s ease; z-index: 2; }
.tl-flag b { position: absolute; top: -1.75rem; left: -3px; transform: translateX(-50%); background: var(--ink); color: var(--paper); font-size: .85rem; padding: .1rem .45rem; border-radius: 2px; white-space: nowrap; }
.tl-now { position: absolute; top: 0; left: 0; font-size: .8rem; }
.tl-wrap { position: relative; padding-top: 2rem; }
@media (max-width: 640px) { .tl-months { display: none; } .tl { padding: .6rem .5rem .8rem; } }
.results { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.results li { display: grid; gap: .2rem 1.25rem; padding: .9rem 0; border-bottom: 1px solid var(--ink); }
@media (min-width: 760px) { .results li { grid-template-columns: 13rem 1fr; } }
.results .k { font-weight: 700; display: flex; gap: .55rem; align-items: baseline; }
.results .k i { width: .95rem; height: .95rem; flex: none; display: inline-block; border-radius: 2px; position: relative; top: .1rem; }
.results .v strong { font-size: 1.2em; }
.flag-old { background: var(--clay-soft); border: 2px solid var(--clay); border-radius: 4px; padding: .8rem 1rem; margin-top: 1rem; }
.js .flag-old[hidden] { display: none; }
.mini { display: grid; gap: 1rem 1.5rem; margin-top: 1.4rem; }
@media (min-width: 760px) { .mini { grid-template-columns: 1fr 1fr; } }
.mini label { font-weight: 700; display: block; margin-bottom: .35rem; line-height: 1.3; }
.mini .sub { font-weight: 400; display: block; font-size: 1rem; color: var(--ink-soft); }
.check { display: flex; gap: .7rem; align-items: flex-start; min-height: 44px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.check input { width: 1.6rem; height: 1.6rem; flex: none; accent-color: var(--clay); margin: .05rem 0 0; }

/* Steps in order */
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: step; max-width: 46rem; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.75rem 3.6rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.5rem; height: 2.5rem; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.25rem; background: var(--white); z-index: 1; }
.steps > li::after { content: ""; position: absolute; left: calc(1.25rem - 1px); top: 2.4rem; bottom: 0; border-left: 2px solid var(--ink); }
.steps > li:last-child::after { display: none; }
.steps h4 { font-size: 1.4rem; margin-bottom: .4rem; padding-top: .25rem; }
.steps p { margin-bottom: .7rem; }
.steps .off { font-size: 1.0625rem; background: var(--sage); border-left: 6px solid var(--green); padding: .55rem .85rem; margin: .6rem 0 0; }
.steps .off b { display: block; }
.said { font-family: var(--display); font-size: 1.2rem; line-height: 1.35; border-left: 6px solid var(--clay); padding: .1rem 0 .1rem 1rem; margin: .9rem 0; }
.said cite { display: block; font-family: var(--text); font-style: normal; font-size: 1rem; margin-top: .35rem; color: var(--ink-soft); }

/* Planned video poster */
.video { margin: 2rem 0; max-width: 46rem; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: var(--green-deep); border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; color: #fff; display: grid; }
.video .frame svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.video .tab { position: absolute; left: 0; top: 0; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 1rem; padding: .35rem .8rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.video .ttl { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; font-family: var(--display); font-size: clamp(1.25rem, 3.6vw, 2.1rem); line-height: 1.12; max-width: 16em; }
.video figcaption { font-size: 1.0625rem; margin-top: .6rem; }

/* Photos */
.plate { margin: 2rem 0; max-width: 46rem; }
.plate img { border: 2px solid var(--ink); border-radius: 4px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.plate figcaption { font-size: 1.0625rem; margin-top: .55rem; }
.plate figcaption span { color: var(--ink-soft); display: block; font-size: 1rem; }

/* Part 4 table */
.sorts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.sorts button { font: inherit; font-weight: 700; min-height: 48px; padding: .4rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; }
.sorts button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
table.towns { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--white); border: 2px solid var(--ink); font-size: 1.0625rem; }
.towns caption { text-align: left; font-weight: 700; padding: 0 0 .6rem; }
.towns th, .towns td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--ink); vertical-align: top; line-height: 1.35; }
.towns thead th { background: var(--ink); color: var(--paper); font-weight: 700; vertical-align: bottom; }
.towns td.num, .towns th.num { text-align: right; }
.towns tbody th { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.towns tr.here th, .towns tr.here td { background: var(--clay-soft); }
.towns .delta { display: block; font-size: .95rem; color: var(--ink-soft); white-space: nowrap; }
.towns .tag { display: inline-block; font-weight: 700; padding: 0 .45rem; border: 2px solid var(--ink); border-radius: 3px; font-size: .95rem; margin-right: .35rem; white-space: nowrap; }
.towns .tag.s0 { background: var(--green); color: #fff; border-color: var(--green); }
.towns .tag.s1 { background: var(--sage); }
.towns .tag.s2 { background: #fff; }
@media (max-width: 999px) {
  .towns colgroup { display: none; }
  table.towns, .towns tbody, .towns tr, .towns td, .towns th { display: block; }
  .towns thead { position: absolute; left: -9999px; }
  .towns caption { display: block; padding: .7rem .85rem; border-bottom: 2px solid var(--ink); }
  .towns tr { border-bottom: 2px solid var(--ink); padding: .7rem .85rem; }
  .towns tbody th, .towns td { border: 0; padding: .12rem 0; }
  .towns td.num { text-align: left; white-space: normal; }
  .towns td::before { content: attr(data-l) ": "; font-weight: 700; }
  .towns .delta { display: inline; white-space: normal; font-size: 1rem; }
  .towns tr.here th, .towns tr.here td { background: transparent; } .towns tr.here { background: var(--clay-soft); }
}
.next-list { display: grid; gap: 0; border-top: 2px solid var(--ink); margin-top: 1.25rem; max-width: 58rem; }
.next-item { display: grid; gap: .5rem 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--ink); }
@media (min-width: 860px) { .next-item { grid-template-columns: 17rem 1fr; } }
.next-item .check { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.next-item dl { margin: 0; display: grid; gap: .6rem; }
.next-item dt { font-weight: 700; font-size: 1rem; color: var(--clay); }
.next-item dd { margin: 0; }

/* Plan page */
.plan-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.plan-paper { position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: 4px; padding: 1.5rem 1.2rem 1.5rem 2rem; max-width: 54rem; box-shadow: 8px 8px 0 var(--sage-mid); }
@media (min-width: 760px) { .plan-paper { padding: 2.25rem 2.5rem 2.25rem 3.25rem; } .plan-paper::before { left: 22px; } }
.plan-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; border-bottom: 3px solid var(--ink); padding-bottom: .7rem; margin-bottom: 1rem; }
.plan-top h3 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.plan-top p { margin: 0; font-size: 1rem; }
.plan-grid { display: grid; gap: 1.25rem 2.5rem; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.plan-sec h4 { font-family: var(--text); font-weight: 700; font-size: 1rem; color: var(--clay); margin-bottom: .3rem; border-bottom: 1px solid var(--ink); padding-bottom: .25rem; }
.plan-sec p, .plan-sec li { font-size: 1.0625rem; line-height: 1.45; }
.plan-sec p { margin: 0 0 .35rem; }
.plan-sec ul, .plan-sec ol { margin: 0; padding-left: 1.25rem; }
.plan-sec .fig { font-weight: 800; font-size: 1.7rem; line-height: 1.1; }
.plan-sec table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.plan-sec td { padding: .15rem 0; border-bottom: 1px dotted #9aa39d; }
.plan-sec td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.plan-wide { grid-column: 1 / -1; }
.lines { height: 6.3rem; background: repeating-linear-gradient(180deg, transparent 0 2rem, var(--ink) 2rem calc(2rem + 1px)); margin-top: .2rem; }
.plan-foot { margin-top: 1.25rem; border-top: 3px solid var(--ink); padding-top: .7rem; font-size: 1rem; }
.linkbox { margin-top: .75rem; max-width: 54rem; }
.js .linkbox[hidden] { display: none; }
.linkbox label { font-weight: 700; display: block; margin-bottom: .3rem; }

/* Forms */
.next-steps { display: grid; gap: 1.5rem; margin-top: 1.5rem; max-width: 62rem; }
@media (min-width: 1000px) { .next-steps { grid-template-columns: 1fr 1fr; } .next-steps .wide { grid-column: 1 / -1; } }
.form { background: var(--white); border: 2px solid var(--ink); border-radius: 4px; padding: 1.25rem 1.2rem 1.4rem; }
@media (min-width: 700px) { .form { padding: 1.6rem 1.7rem 1.75rem; } }
.form h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.form .what { font-size: 1.0625rem; margin-bottom: 1rem; }
.form .f { margin-bottom: .9rem; }
.form label { font-weight: 700; display: block; margin-bottom: .3rem; }
.form label .opt { font-weight: 400; color: var(--ink-soft); }
.form .f2 { display: grid; gap: 0 1rem; }
@media (min-width: 700px) { .form .f2 { grid-template-columns: 1fr 1fr; } }
.dates { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); margin-bottom: 1rem; }
.dates .choice > span { grid-template-columns: 1fr; text-align: left; min-height: 78px; padding: .6rem .8rem; background: var(--sage); }
.dates .choice > span::before { display: none; }
.dates .choice b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; display: block; }
.dates .choice input:checked + span { background: var(--ink); }
.done { border: 2px solid var(--green); background: var(--sage); border-radius: 4px; padding: 1rem 1.1rem; margin-top: 1rem; }
.done h4 { font-size: 1.3rem; margin-bottom: .35rem; }
.done p { font-size: 1.0625rem; margin-bottom: .5rem; }
.done .proto { font-size: 1rem; color: var(--ink-soft); }
.done details { margin-top: .5rem; }
.done summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.done pre { background: var(--white); border: 1px solid var(--ink); padding: .8rem; overflow: auto; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; margin: .5rem 0 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.js .done[hidden] { display: none; }

/* Sources and footer */
.sources { border-top: 3px solid var(--ink); padding: 2.5rem 0 3rem; }
.sources h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .6rem; }
.sources ol { padding-left: 0; list-style: none; margin: 1.5rem 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 1000px) { .sources ol { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.sources li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .5rem; padding: .85rem 0; border-bottom: 1px solid var(--ink); font-size: 1.0625rem; line-height: 1.45; overflow-wrap: anywhere; }
.sources li > b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--clay); }
.sources li:target { background: var(--clay-soft); }
.credits { margin-top: 2rem; font-size: 1.0625rem; max-width: 52rem; }
.foot { background: var(--ink); color: var(--paper); padding: 2.5rem 0 2rem; font-size: 1.0625rem; }
.foot a { color: var(--paper); }
.foot .cols3 { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 860px) { .foot .cols3 { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.foot p { margin-bottom: .5rem; }
.foot .eho { display: flex; gap: .6rem; align-items: center; margin-top: .8rem; }
.foot .eho svg { width: 30px; height: 30px; flex: none; }
.strip { background: var(--paper-deep); border-top: 2px solid var(--ink); font-size: 1rem; }
.strip .wrap { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: .7rem; padding-bottom: .7rem; }
.strip p { margin: 0; }
.strip button { font: inherit; background: none; border: 2px solid var(--ink); border-radius: 3px; min-height: 36px; padding: .15rem .7rem; cursor: pointer; color: var(--ink); }
.strip[hidden] { display: none; }

/* Print: only the one-page plan */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  body > *:not(main), .hero, .rail, .pips, .part:not(#plan), #plan > *:not(.plan-paper), .sources, #annotate-root, [id^="ann"], [class^="wsann"] { display: none !important; }
  .book { display: block; border: 0; }
  .wrap { padding: 0; max-width: none; }
  .part { padding: 0; border: 0; }
  .plan-paper { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .plan-paper::before { display: none; }
  .plan-grid { grid-template-columns: 1fr 1fr; gap: 10pt 24pt; }
  .plan-sec p, .plan-sec li, .plan-sec table { font-size: 10.5pt; }
  .plan-sec .fig { font-size: 16pt; }
  .plan-top h3 { font-size: 22pt; }
  .plan-sec h4, .plan-foot, .plan-top p { font-size: 9.5pt; }
  .lines { height: 12rem; }
}

.js [data-sharon-only][hidden] { display: none; }

/* ---------- design fixes 2026-11-11 (critic pass) ---------- */
/* Dianne's note placeholder: one slim margin line, not a dashed box */
.dnote { margin: 1.25rem 0; border: 0; border-left: 4px solid var(--clay); border-radius: 0; padding: .1rem 0 .1rem .9rem; background: none; max-width: 40rem; font-size: 1rem; line-height: 1.45; }
.dnote h4 { display: inline; font-size: .875rem; letter-spacing: .03em; text-transform: uppercase; margin: 0 .4rem 0 0; }
.dnote p { display: inline; font-size: 1rem; }
/* phones: the Start button comes before the long intro and the three-item list; nav stays on one row */
@media (max-width: 699px) {
  .hero { padding-top: 1.4rem; }
  .hero-grid > div:first-child { display: flex; flex-direction: column; }
  .hero-grid > div:first-child > .hero-cta { order: 1; margin: .2rem 0 1.5rem; }
  .hero-grid > div:first-child > .plain { order: 2; }
  .hero-grid > div:first-child > .leave { order: 3; margin-top: .6rem; }
  h1 { margin-bottom: .9rem; }
  .standfirst { margin-bottom: 1rem; }
  .mast .wrap { min-height: 0; gap: 0 1rem; }
  .mast nav ul { flex-wrap: nowrap; gap: 0 1.1rem; }
  .mast nav a { font-size: 1rem; white-space: nowrap; }
}
