/* fiurio.com v2 — the Carbon-Copy System.
   The pre-printed form is the system; the typewriter is Fiurio. Two voices, one page. */

/* ---------- fonts ---------- */
@font-face { font-family: 'Libre Franklin'; src: url('/fonts/libre-franklin-var.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/fonts/courier-prime-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/fonts/courier-prime-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/fonts/courier-prime-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/plex-mono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Special Elite'; src: url('/fonts/special-elite.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --ply-white: #FFFFFF;
  --ply-canary: #F9E27D;
  --ply-pink: #F6C9CE;
  --ply-goldenrod: #E7A63C;
  --carbon: #333D93;
  --carbon-deep: #252C6E;
  --formprint: #1B1C20;
  --stamp: #C22E2C;
  --goldenrod-ink: #8A5E14;
  --form: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --type: 'Courier Prime', 'Courier New', monospace;
  --ledger: 'IBM Plex Mono', 'Courier New', monospace;
  --rubber: 'Special Elite', 'Courier New', monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ply-white);
  color: var(--formprint);
  font-family: var(--form);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; max-width: 72ch; }
strong { font-weight: 700; }

h1, h2, h3 { font-family: var(--form); line-height: 1.1; margin: 0 0 0.5em; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.35rem); }

/* the two voices */
.tw { font-family: var(--type); }                    /* Fiurio, filled in */
.tw-line { font-family: var(--type); color: var(--carbon); }
.num { font-family: var(--ledger); font-variant-numeric: tabular-nums; }
.small { font-size: 0.9rem; }
.smaller { font-size: 0.8rem; }

a { color: var(--carbon); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color 150ms ease-out; }
a:hover { color: var(--formprint); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--carbon); outline-offset: 2px;
}
::selection { background: var(--carbon); color: #fff; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--formprint); color: #fff; padding: 0.6em 1em; z-index: 60; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- layout ---------- */
.shell { max-width: 1100px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
section.ply { padding-block: clamp(3rem, 8vw, 5.5rem); }
.ply-white { background: var(--ply-white); }
.ply-canary { background: var(--ply-canary); }
.ply-pink { background: var(--ply-pink); }
.ply-goldenrod { background: var(--ply-goldenrod); }
/* ply text law: carbon text only on white/canary grounds */
.ply-pink a, .ply-goldenrod a { color: var(--formprint); }
.ply-pink .tw-line, .ply-goldenrod .tw-line { color: var(--formprint); }

/* the sheet: content rides on white paper with 2px borders */
.sheet {
  position: relative;
  background: var(--ply-white);
  border: 2px solid var(--formprint);
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  max-width: 880px;
}
.sheet-wide { max-width: 1040px; }
.sheet + .sheet { margin-top: 1.75rem; }
.sheet-meta {
  position: absolute; top: 0.55rem; right: 0.8rem;
  font-family: var(--type); font-size: 0.72rem; color: rgba(27, 28, 32, 0.68);
}
.perf { border: none; border-top: 2px dashed var(--formprint); margin: clamp(2rem, 5vw, 3rem) 0; }

/* form number section markers */
.formno {
  display: block;
  font-family: var(--type); font-weight: 700;
  color: var(--stamp);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.ply-canary .formno, .ply-pink .formno, .ply-goldenrod .formno { color: var(--formprint); }
.ply-canary .formno { color: var(--stamp); } /* stamp red passes display-size on canary; keep small use white/canary only */

/* boxed form field w/ small-caps label (labels live ONLY here) */
.field {
  border: 2px solid var(--formprint);
  padding: 0.85rem 1rem 0.9rem;
  background: var(--ply-white);
}
.field + .field { border-top: 0; }
.field .lbl {
  display: block;
  font-family: var(--form); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--formprint); margin-bottom: 0.3rem;
}
.field .val { font-family: var(--type); color: var(--carbon); }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 40; background: var(--ply-white); border-bottom: 2px solid var(--formprint); }
header.site .bar { display: flex; align-items: center; gap: 1.25rem; min-height: 58px; padding-block: 0.45rem; }
.wordmark { font-family: var(--form); font-weight: 800; letter-spacing: 0.04em; font-size: 1.25rem; color: var(--formprint); text-decoration: none; margin-right: auto; text-transform: uppercase; }
.wordmark:hover { color: var(--carbon); }
nav.primary { display: none; gap: 1.35rem; align-items: center; }
nav.primary a { color: var(--formprint); text-decoration: none; font-size: 0.98rem; padding-block: 4px; border-bottom: 3px solid transparent; }
nav.primary a:hover { color: var(--carbon); }
nav.primary a[aria-current="page"] { border-bottom-color: var(--stamp); }
nav.primary a.btn, nav.primary a.btn:hover { color: #fff; border-bottom: 2px solid var(--formprint); }
@media (min-width: 880px) { nav.primary { display: flex; } .menu-btn { display: none; } }
.menu-btn { background: none; border: 2px solid var(--formprint); font-family: var(--form); font-weight: 600; font-size: 0.95rem; color: var(--formprint); padding: 0.4em 0.85em; cursor: pointer; min-height: 44px; }
.menu-panel { display: none; border-top: 2px dashed var(--formprint); padding-block: 0.75rem 1rem; }
.menu-panel.open { display: block; }
@media (min-width: 880px) { .menu-panel { display: none !important; } }
.menu-panel a { display: block; padding: 0.55em 0; color: var(--formprint); text-decoration: none; font-size: 1.05rem; }
.menu-panel a:hover { color: var(--carbon); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--carbon);
  color: #fff;
  font-family: var(--form); font-weight: 700; font-size: 1rem;
  padding: 0.8em 1.4em;
  border: 2px solid var(--formprint);
  text-decoration: none; cursor: pointer;
  min-height: 44px;
  transition: background 150ms ease-out;
}
.btn:hover { background: var(--carbon-deep); color: #fff; }
.btn:active { background: var(--formprint); }
.linklike { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; font-size: inherit; color: var(--carbon); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.linklike:hover { color: var(--formprint); }

/* ---------- stamps ---------- */
.stamp {
  display: inline-block;
  font-family: var(--rubber);
  color: var(--stamp);
  border: 3px solid var(--stamp);
  padding: 0.3em 0.7em;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.06em;
  transform: rotate(-1deg);
  text-transform: uppercase;
  background: var(--ply-white);
}
.stamp-sm { font-size: 0.85rem; border-width: 2px; padding: 0.2em 0.55em; }
@media (prefers-reduced-motion: no-preference) {
  .stamp.pressed { animation: press 250ms ease-out 1; }
  @keyframes press {
    0% { transform: rotate(-1deg) scale(1.35); opacity: 0; }
    70% { transform: rotate(-1deg) scale(0.96); opacity: 1; }
    100% { transform: rotate(-1deg) scale(1); }
  }
}
/* verdict stamps */
.verdict { display: inline-block; font-family: var(--rubber); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; padding: 0.18em 0.55em; border: 2px solid; transform: rotate(-1deg); background: var(--ply-white); }
.verdict-automate { color: var(--carbon); border-color: var(--carbon); }
.verdict-process { color: var(--goldenrod-ink); border-color: var(--goldenrod-ink); }
.verdict-leave { color: var(--formprint); border-color: var(--formprint); }

/* epistemic tags */
.tag-e { font-family: var(--type); font-size: 0.75rem; color: rgba(27, 28, 32, 0.75); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3.2rem, 8vw, 6rem) clamp(2.6rem, 6vw, 4.5rem); }
.hero h1 { max-width: 22ch; margin-bottom: 0.5em; }
.hero .sub { font-family: var(--type); color: var(--carbon); font-size: clamp(1.02rem, 1rem + 0.3vw, 1.15rem); max-width: 62ch; line-height: 1.65; }
.hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.6rem; }
.hero .locale { font-size: 0.9rem; margin-top: 1.4rem; }

/* ---------- vignettes ---------- */
.vignette { border-top: 2px solid var(--formprint); padding: 1.2rem 0; max-width: 72ch; }
.vignette:first-of-type { border-top: 0; }
.vignette p { margin: 0; }
.vignette .cost { display: block; margin-top: 0.4rem; font-family: var(--type); font-weight: 700; color: var(--carbon); }
.ply-pink .vignette .cost, .ply-goldenrod .vignette .cost { color: var(--formprint); }

/* ---------- catalog cells (fixes) ---------- */
.catalog { display: grid; grid-template-columns: 1fr; gap: 0; border: 2px solid var(--formprint); background: var(--ply-white); }
@media (min-width: 760px) { .catalog { grid-template-columns: 1fr 1fr; } }
.cell { padding: 0.95rem 1.1rem; border-top: 2px solid var(--formprint); }
.cell:first-child { border-top: 0; }
@media (min-width: 760px) {
  .cell { border-left: 2px solid var(--formprint); }
  .cell:nth-child(odd) { border-left: 0; }
  .cell:nth-child(2) { border-top: 0; }
}
.cell .pn { font-family: var(--type); font-weight: 700; font-size: 0.8rem; color: var(--stamp); display: block; margin-bottom: 0.15rem; }
.cell h3 { font-size: 1.02rem; margin: 0 0 0.15em; }
.cell p { margin: 0; font-size: 0.93rem; }

/* ---------- triplicate pricing ---------- */
.triplicate { display: grid; gap: 1.5rem; max-width: 880px; }
.ticket { border: 2px solid var(--formprint); padding: clamp(1.2rem, 3vw, 1.9rem); position: relative; }
.ticket.t-white { background: var(--ply-white); }
.ticket.t-canary { background: var(--ply-canary); }
.ticket.t-pink { background: var(--ply-pink); }
@media (min-width: 880px) {
  .ticket.t-canary { margin-left: 1.25rem; }
  .ticket.t-pink { margin-left: 2.5rem; }
}
.ticket .t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--formprint); padding-bottom: 0.6rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.ticket .t-name { font-weight: 800; font-size: 1.15rem; }
.ticket .t-price { font-family: var(--ledger); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.ticket p { margin: 0 0 0.7em; font-size: 0.97rem; }
.ticket .moves { font-size: 0.88rem; }
.ticket .moves .mv { font-family: var(--type); }

/* ---------- tables ---------- */
table.form { width: 100%; border-collapse: collapse; background: var(--ply-white); border: 2px solid var(--formprint); }
table.form th, table.form td { border: 2px solid var(--formprint); padding: 0.7rem 0.8rem; text-align: left; vertical-align: top; font-size: 0.95rem; }
table.form th { font-weight: 700; }
table.form .fig { text-align: right; font-family: var(--ledger); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
table.form tr.total td, table.form tr.total th { border-top: 4px double var(--formprint); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 640px; }
.scroll-hint { display: none; }
@media (max-width: 700px) { .scroll-hint { display: block; margin-top: 0.4rem; } }
@media (max-width: 700px) {
  .stack-wrap { overflow: visible; }
  table.form.stack, table.form.stack tbody, table.form.stack tr, table.form.stack td { display: block; min-width: 0; border: 0; }
  table.form.stack { border: 2px solid var(--formprint); }
  table.form.stack thead { display: none; }
  table.form.stack tr { border-top: 2px solid var(--formprint); padding: 0.9rem 0.9rem; }
  table.form.stack tr:first-child { border-top: 0; }
  table.form.stack td { padding: 0.25rem 0; }
  table.form.stack td.fig { text-align: left; font-size: 1.1rem; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 72ch; }
.faq details { border: 2px solid var(--formprint); background: var(--ply-white); margin-top: -2px; }
.faq summary { cursor: pointer; list-style: none; padding: 0.95rem 2.4rem 0.95rem 1rem; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); font-family: var(--type); font-weight: 700; font-size: 1.25rem; color: var(--stamp); }
.faq details[open] summary::after { content: '\2212'; }
.faq .a { padding: 0 1rem 1.1rem; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- form ---------- */
form.fit { max-width: 34rem; }
form.fit label { display: block; font-weight: 700; margin: 1.2rem 0 0.3rem; }
form.fit input[type="text"], form.fit textarea {
  width: 100%;
  font-family: var(--type); font-size: 1.05rem;
  color: var(--carbon);
  background: var(--ply-white);
  border: 2px solid var(--formprint);
  padding: 0.65em 0.8em;
}
form.fit textarea { min-height: 7rem; resize: vertical; }
form.fit .helper { font-size: 0.88rem; margin: 0.3rem 0 0; }
form.fit button { margin-top: 1.4rem; }
form.fit .under-btn { font-size: 0.9rem; margin-top: 0.9rem; max-width: 52ch; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer: the backing board ---------- */
footer.site { background: var(--formprint); color: #fff; padding-block: clamp(2.2rem, 5vw, 3.5rem); }
footer.site a { color: #fff; }
footer.site a:hover { color: var(--ply-canary); }
footer.site a:focus-visible { outline-color: #fff; }
footer.site .row { font-family: var(--type); font-size: 0.9rem; margin-bottom: 0.4rem; }
footer.site .cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-bottom: 1.75rem; }
@media (min-width: 720px) { footer.site .cols { grid-template-columns: 2fr 1fr 1fr; } }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { padding: 0.18rem 0; }
footer.site p { max-width: 48ch; }

/* ---------- the shop (centerpiece) ---------- */
.shop-map-wrap { position: relative; }
.shop-map { display: block; width: 100%; height: auto; }
.shop-map .zone { cursor: pointer; }
.shop-map .zone rect.hit { fill: transparent; stroke: transparent; transition: fill 150ms ease-out; }
.shop-map .zone:hover rect.hit, .shop-map .zone:focus rect.hit, .shop-map .zone.active rect.hit { fill: rgba(51, 61, 147, 0.12); }
.shop-map .zone:focus rect.hit, .shop-map .zone:focus-visible rect.hit { stroke: var(--carbon); stroke-width: 3px; }
@media (max-width: 700px) {
  .shop-map-wrap { overflow-x: auto; }
  .shop-map { min-width: 760px; }
}
.shop-map .zone.visited .pin { fill: var(--carbon); }
.shop-map text { font-family: 'Courier Prime', monospace; }
.guess-circle { fill: none; stroke: var(--stamp); stroke-width: 3; stroke-dasharray: 6 4; }
.fict-badge {
  display: inline-block; font-family: var(--type); font-weight: 700; font-size: 0.8rem;
  border: 2px solid var(--formprint); background: var(--ply-white); padding: 0.25em 0.6em;
}
.station-card { border: 2px solid var(--formprint); background: var(--ply-white); padding: clamp(1.1rem, 3vw, 1.7rem); }
.station-card .beat { margin-top: 0.9rem; }
.station-card .beat .lbl { display: block; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 0.25rem; }
.station-card .watched { font-family: var(--type); color: var(--carbon); }
.station-card .tally { font-family: var(--ledger); }
.stepper { display: flex; align-items: center; gap: 0.9rem; margin-top: 1rem; flex-wrap: wrap; }
.stepper button { background: var(--ply-white); border: 2px solid var(--formprint); font-family: var(--type); font-weight: 700; font-size: 0.95rem; padding: 0.45em 0.9em; cursor: pointer; min-height: 44px; }
.stepper button:hover { background: var(--ply-canary); }
.stepper .count { font-family: var(--ledger); font-size: 0.9rem; }
.station-index { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: 1fr; gap: 0; border: 2px solid var(--formprint); background: var(--ply-white); }
@media (min-width: 720px) { .station-index { grid-template-columns: 1fr 1fr; } }
.station-index li { border-top: 2px solid var(--formprint); }
.station-index li:first-child { border-top: 0; }
@media (min-width: 720px) { .station-index li:nth-child(2) { border-top: 0; } .station-index li:nth-child(even) { border-left: 2px solid var(--formprint); } }
.station-index button { display: flex; justify-content: space-between; gap: 0.8rem; width: 100%; text-align: left; background: none; border: 0; font-family: var(--form); font-size: 0.95rem; padding: 0.65rem 0.9rem; cursor: pointer; min-height: 44px; align-items: center; }
.station-index button:hover { background: var(--ply-canary); }
.station-index .st-no { font-family: var(--type); font-weight: 700; color: var(--stamp); font-size: 0.8rem; }
.station-index li.visited .st-no::after { content: ' \2713'; color: var(--carbon); }
.drawer { border: 2px solid var(--formprint); background: var(--ply-canary); padding: 1.1rem 1.2rem; margin-top: 1.5rem; }

/* week grid (kitchen table) */
.week-grid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; margin-top: 0.6rem; }
.week-grid .cellh { width: 100%; aspect-ratio: 1; background: #E8E8E8; }
.week-grid .cellh.work { background: var(--carbon); }
.week-grid .cellh.admin { background: var(--stamp); }
.week-grid .cellh.free { background: var(--ply-canary); }
.legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.8rem; margin-top: 0.5rem; font-family: var(--type); }
.legend .sw { display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.3em; vertical-align: -0.05em; }

/* ---------- simulator (engine classes kept, re-skinned) ---------- */
.sim-wrap { display: grid; gap: 1.5rem; grid-template-areas: 'aside' 'ledger'; grid-template-columns: 1fr; align-items: start; }
.sim-ledger { grid-area: ledger; }
.sim-aside { grid-area: aside; }
@media (min-width: 920px) { .sim-wrap { grid-template-areas: 'ledger aside'; grid-template-columns: 7fr 5fr; } }
.ledger { background: var(--ply-white); border: 2px solid var(--formprint); padding: 1rem 1.1rem; min-height: 320px; max-height: 430px; overflow-y: auto; font-size: 0.92rem; font-family: var(--ledger); }
.ledger .day { font-family: var(--form); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; padding: 0.8rem 0 0.25rem; border-bottom: 2px solid var(--formprint); margin-bottom: 0.3rem; }
.ledger .ev { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.28rem 0; }
.ledger .ev .amt { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ledger .ev.loss .amt { color: var(--stamp); }
.ledger .ev.gain .amt { color: var(--carbon); }
.ledger .ev.plain .amt { color: rgba(27, 28, 32, 0.68); font-weight: 400; }
.ledger .ev.sealed .what::before { content: '\2713 '; color: var(--carbon); font-weight: 700; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.counter { border: 2px solid var(--formprint); padding: 0.9rem 1rem; background: var(--ply-white); }
.counter .label { display: block; font-size: 0.8rem; font-weight: 600; min-height: 2.4em; }
@media (min-width: 920px) { .counter .label { min-height: 0; } }
.counter .val { font-family: var(--ledger); font-weight: 600; font-size: clamp(1.4rem, 3.2vw, 2rem); font-variant-numeric: tabular-nums; line-height: 1.15; }
.counter.leak .val { color: var(--stamp); }
.counter.rec .val { color: var(--carbon); }
.installs-panel { display: grid; gap: 0.55rem; margin-top: 1rem; }
.install-btn { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; width: 100%; min-height: 48px; font-family: var(--form); font-size: 0.95rem; font-weight: 700; color: var(--formprint); text-align: left; background: var(--ply-white); border: 2px solid var(--formprint); padding: 0.6em 0.9em; cursor: pointer; transition: background 150ms ease-out; }
.install-btn:hover:not(:disabled) { background: var(--ply-canary); }
.install-btn .tag { font-family: var(--type); font-size: 0.83rem; color: var(--carbon); font-weight: 700; white-space: nowrap; }
.install-btn:disabled { cursor: default; background: var(--ply-canary); }
.install-btn:disabled .tag::before { content: '\2713 '; }
.sim-controls { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: 1rem; }
.sim-controls .linklike { min-height: 44px; display: inline-flex; align-items: center; padding: 0.4em 0.2em; }
.sim-note { font-size: 0.85rem; margin-top: 1rem; max-width: 60ch; }
.endcard { border: 2px solid var(--formprint); background: var(--ply-canary); padding: clamp(1.2rem, 3vw, 1.8rem); margin-top: 1.5rem; }
.endcard p:last-of-type { margin-bottom: 1.1rem; }
details.math { max-width: 72ch; margin-top: 2rem; border: 2px solid var(--formprint); background: var(--ply-white); padding: 0 1.1rem; }
details.math summary { cursor: pointer; font-weight: 700; padding: 0.9rem 0; }
details.math .inner { padding-bottom: 1rem; }
details.math .inner p, details.math .inner li { font-size: 0.93rem; }
.yours { margin-top: clamp(2.2rem, 5vw, 3.5rem); }
.yours .fields { display: grid; gap: 1rem; grid-template-columns: 1fr; max-width: 34rem; }
@media (min-width: 720px) { .yours .fields { grid-template-columns: 1fr 1fr 1fr; } }
.yours label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.3rem; }
.yours input { width: 100%; font-family: var(--ledger); font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--carbon); background: var(--ply-white); border: 2px solid var(--formprint); padding: 0.5em 0.65em; }
.yours .result { margin-top: 1.4rem; border-left: 4px solid var(--carbon); padding: 0.3rem 0 0.3rem 1.1rem; }
.yours .result .big { font-family: var(--ledger); font-weight: 600; font-size: clamp(1.7rem, 4.2vw, 2.4rem); font-variant-numeric: tabular-nums; color: var(--carbon); }

/* ---------- workbench / entries / report ---------- */
.entry { border: 2px solid var(--formprint); background: var(--ply-white); padding: clamp(1.1rem, 3vw, 1.7rem); margin-top: 1.5rem; max-width: 76ch; }
.entry .date { font-family: var(--type); font-size: 0.82rem; }
.entry h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0.25rem 0 0.4rem; }
.entry p:last-child { margin-bottom: 0; }
.fiction-label { display: inline-block; font-family: var(--type); font-weight: 700; font-size: 0.78rem; border: 2px solid var(--formprint); background: var(--ply-white); padding: 0.2em 0.6em; margin-bottom: 0.8rem; }
.report { max-width: 52rem; }
.report .doc-head { border: 2px solid var(--formprint); background: var(--ply-white); padding: 1.2rem 1.4rem; margin-bottom: 1.75rem; }
.report .doc-head .meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; font-family: var(--type); font-size: 0.9rem; }
.report h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-top: 2rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- print (intake sheet) ---------- */
@media print {
  header.site, footer.site, .no-print { display: none !important; }
  body { font-size: 11pt; }
  .sheet { border-width: 1.5pt; }
}
