/* Room Ledger: the site's own look, on top of the Schlosser Studio kit (/studio/studio.css, kit version 2, dark).
   Palette "walnut, linen and sage paint": a walnut-veneer page, undyed linen for text, oatmeal for hints, walnut grain for rules and a sage
   paint chip as the one accent. Brass hardware (the dimension-line ticks and the clip on each tool sheet), an indigo-dyed swatch and the
   drafting-line linen are small decorative colors: never text, always beside a written label. Checked with the kit's check-accent tool
   (ventures/_studio/tools/check-accent.mjs): all PASS (see the venture README, Design).
   Every color below is a variable defined here once; the only hex values outside :root are in the print block at the end.
   The memorable thing is the dimension drawing on the markup calculator: a sofa drawn to the client price, measured the way a designer
   measures furniture. Each tool is laid out like a vendor tear sheet: the drawing on the left, ruled spec rows on the right, a small item
   code in the corner. The only motion on the site: the drawing eases to its new proportions in 250 ms. */
:root {
  --ss-bg: #221a15;          /* walnut veneer: the page */
  --ss-surface: #2e241d;     /* oiled walnut: cards, tools, buy box, footer, inputs */
  --ss-ink: #efe7da;         /* undyed linen: body text */
  --ss-muted: #c9bcab;       /* oatmeal linen: hints, secondary text */
  --ss-line: #4a3b30;        /* walnut grain: borders, table rules (decorative) */
  --ss-accent: #94c99c;      /* sage paint chip: buttons, header stripe, focus ring, the profit dimension */
  --ss-accent-ink: #221a15;  /* text on sage */
  --ss-accent-text-dark: #bfe0c3; /* links and accent text */
  --sb-brass: #c9a45c;       /* brass hardware: dimension-line ticks, clip on the sample board (decorative) */
  --sb-indigo: #5b6aa6;      /* indigo-dyed swatch: second chart series, swatch art (decorative, never text) */
  --sb-drawing: #d9cdbb;     /* drafting line art on walnut (decorative) */
}

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.ss { font-variant-numeric: tabular-nums; }
body.ss .ss-main { padding-top: 1rem; }
.nw { white-space: nowrap; }
.nojs { display: block; }
.js .nojs { display: none; }
.ss-skip:focus { z-index: 50; }
[hidden] { display: none !important; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input::placeholder { color: var(--ss-muted); opacity: .75; }

/* ------------------------------------------------------------------ header: name and studio badge on the first row, the pill and the five tools on the second */
.ss-header { border-bottom: 0; }
/* a ruler along the header: brass ticks every 12px, a longer one every 60 */
.ss-header::after { content: ""; display: block; height: 9px; background: repeating-linear-gradient(90deg, var(--sb-brass) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, var(--sb-brass) 0 1px, transparent 1px 60px); background-size: 100% 4px, 100% 9px; background-repeat: no-repeat; opacity: .8; }
.ss-header__in { gap: 0 .9rem; padding-block: .45rem .15rem; }
.ss-product, .ss-by { display: inline-flex; align-items: center; min-height: 44px; }
.ss-product { order: 1; flex: 1 1 auto; margin-right: 0; }
.ss-by { order: 2; }
.ss-nav { order: 3; flex: 1 1 100%; display: flex; flex-wrap: nowrap; align-items: center; gap: 0 .6rem; min-width: 0; font-size: .95rem; border-top: 1px solid var(--ss-line); padding-top: .2rem; }
.ss-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; border-bottom: 0; text-decoration: underline 2px transparent; text-underline-offset: .3em; white-space: nowrap; }
.ss-nav a:hover, .ss-nav a[aria-current="page"] { text-decoration-color: var(--ss-accent); }
.nav-tools { display: flex; align-items: center; flex: 1 1 0; gap: 0 1.1rem; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, black 88%, transparent); mask-image: linear-gradient(90deg, black 88%, transparent); }
.nav-tools::-webkit-scrollbar { display: none; }
.nav-tools a { flex: none; }
/* The pill: first link of the nav on every page, in the site's accent, always 44px tall. */
.ss-nav a.nav-buy { flex: none; padding-inline: 1rem; border-radius: 999px; background: var(--ss-accent); color: var(--ss-accent-ink); font-weight: 700; line-height: 1.2; text-decoration: none; transition: filter .15s ease-out; }
.ss-nav a.nav-buy:hover { filter: brightness(1.08); text-decoration: none; }
/* two forms of the pill's words: "Get the workbook, $24" where the five tools fit beside it, "Workbook, $24" where they scroll (below 62rem) */
.nav-buy__s { display: none; }
@media (max-width: 61.99rem) { .nav-buy__l { display: none; } .nav-buy__s { display: inline; } }
@media (max-width: 29.99rem) { .ss-header__in { column-gap: .5rem; } .ss-product { font-size: 1.3rem; } .ss-by { font-size: .75rem; gap: .35rem; } }
@media (min-width: 62rem) { .nav-tools { -webkit-mask-image: none; mask-image: none; } }
@media (prefers-reduced-motion: reduce) { .ss-nav a.nav-buy { transition: none; } }

/* ------------------------------------------------------------------ hero */
.hero-home { padding-block: .25rem .15rem; }
.hero-home h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.8rem); line-height: .97; letter-spacing: .005em; margin-bottom: .3em; max-width: 28ch; }
.hero-home .ss-lede { margin-bottom: 0; font-size: 1.15rem; text-wrap: pretty; }
.hero-tool { padding-block: .5rem .25rem; }
.hero-tool h1 { max-width: 22ch; }
.hero-tool .ss-lede { max-width: 46rem; margin-bottom: 0; text-wrap: pretty; }
.crumb { font-size: .9rem; color: var(--ss-muted); margin: 0 0 .25rem; }
.crumb a { color: var(--ss-muted); }
/* The one line under the home page's first lines: name, price, what the file holds, one button to the buy box lower down. */
.rl-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: .8rem 0 0; padding: .5rem .6rem .5rem .9rem; background: var(--ss-surface); border: 1px solid var(--ss-line); border-left: 4px solid var(--ss-accent); border-radius: var(--ss-radius); }
.rl-offer__t { flex: 1 1 18rem; font-size: .95rem; line-height: 1.4; }
.rl-offer__btn { flex: none; }
.own-page { margin: .2rem 0 0; font-size: .95rem; }

/* ------------------------------------------------------------------ the tool: a tear sheet with a brass clip */
.tool { --tool-px: 1.1rem; position: relative; background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: var(--ss-radius-lg); padding: 1.6rem var(--tool-px) .9rem; margin-block: 1rem; }
.tool::before { content: ""; position: absolute; top: -1px; left: var(--tool-px); width: 38px; height: 11px; background: var(--sb-brass); border-radius: 0 0 4px 4px; }
.tool h2 { font-size: 1.6rem; margin-bottom: .1rem; padding-right: 5.5rem; }
.tool__eg { margin: 0 0 .5rem; font-size: .92rem; color: var(--ss-muted); }
.tool__intro { margin: 0 0 .6rem; }
.tool__note { margin: .8rem 0 0; font-size: .85rem; color: var(--ss-muted); max-width: 52rem; }
.tool__body { display: grid; gap: .6rem 2rem; }
.tool__body > * { min-width: 0; }
.tool__more { display: grid; gap: .6rem; }
/* the item code in the corner, like the boxed corner of a drawing's title block */
.tool__code { position: absolute; top: -1px; right: -1px; padding: .3rem .75rem; border: 1px solid var(--ss-line); border-radius: 0 var(--ss-radius-lg) 0 var(--ss-radius); background: var(--ss-bg); font-family: var(--ss-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; line-height: 1.2; }
.tool > .tool__body > .spec { position: static; }
@media (min-width: 52rem) {
  .tool { --tool-px: 1.6rem; padding-top: 2rem; }
  .tool__body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "out spec" "out more" "wide wide"; grid-template-rows: auto 1fr auto; align-items: start; }
  .tool__body > .spec { grid-area: spec; }
  .tool__body > .tool__out { grid-area: out; }
  .tool__body > .tool__more { grid-area: more; }
  .tool__body > .tool__wide { grid-area: wide; }
  .tool__body--pieces { grid-template-areas: "out spec" "wide wide"; grid-template-rows: auto auto; }
  .tool__code { top: -1px; }
}

/* spec rows: a label on the left, the box on the right, a rule under each, like a line of a schedule */
.spec { min-width: 0; }
.spec__row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 46px; padding: .2rem 0; border-bottom: 1px solid var(--ss-line); }
.spec__row > label { flex: 1 1 auto; font-size: .95rem; line-height: 1.25; }
/* The order-by tool has five rows of inputs (the date it counts from, "Today", sits with the rest); on a phone they are a little tighter so the result is still on the first screen. */
@media (max-width: 36rem) { .tool--orderby .spec__row { min-height: 40px; padding-block: .1rem; } .tool--orderby .spec__in input, .tool--orderby .spec__in select { min-height: 38px; padding-block: .2rem; } }
.tool--landed .spec__by .spec__in { width: 6.4rem; }
@media (max-width: 36rem) { .tool--landed .spec__row--by { min-height: 40px; padding-block: .1rem; } .tool--landed .spec__by .spec__in input { min-height: 38px; padding-block: .2rem; } }
.spec__hint { display: block; font-size: .75rem; color: var(--ss-muted); }
.spec__in { flex: 0 0 auto; display: flex; align-items: center; width: 9.6rem; min-width: 0; background: var(--ss-bg); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); }
.spec__in:focus-within { border-color: var(--ss-accent); }
.spec__in input, .spec__in select { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent; padding-inline: .55rem; min-height: 40px; border-radius: var(--ss-radius); color: var(--ss-ink); font: inherit; }
.spec__in input[type="number"], .spec__in input[type="date"] { text-align: right; }
.spec__in input[type="date"] { font-size: .92rem; padding-inline: .4rem; }
.spec__in select { background: var(--ss-bg); }
.spec__in--pair input { flex: 1 1 45%; text-align: right; }
.spec__in--pair select { flex: 1 1 55%; border-left: 1px solid var(--ss-line); border-radius: 0 var(--ss-radius) var(--ss-radius) 0; padding-inline: .4rem; }
.spec__u { flex: none; padding-left: .6rem; color: var(--ss-muted); font-size: .9rem; }
.spec__u--r { padding: 0 .6rem 0 0; font-size: .85rem; }
.spec__in .spec__u + input { padding-left: .25rem; }
.spec__sub { margin: .5rem 0 0; font-size: .85rem; font-weight: 600; color: var(--ss-muted); }
.spec__pair, .spec__trio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .9rem; }
.spec__trio { grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: 0 .5rem; align-items: end; border-bottom: 1px solid var(--ss-line); }
.spec__trio .spec__row { border-bottom: 0; }
.spec__trio .spec__row > label { font-size: .85rem; }
.spec__pair .spec__row, .spec__trio .spec__row { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .2rem; padding-block: .35rem .45rem; }
.spec__pair .spec__in, .spec__trio .spec__in { width: auto; }
.spec__pair .spec__in input[type="text"] { text-align: left; }
.spec--name .spec__pair .spec__row { border-bottom: 0; }
.spec__pair--costs { border-bottom: 1px solid var(--ss-line); }
.spec__pair--costs .spec__row { border-bottom: 0; }
.spec__by .spec__row { gap: .5rem; }
.spec__by .spec__in { width: 7.6rem; }
.spec__radio { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; }
.spec__radio label { font-size: .95rem; line-height: 1.25; padding-left: .5rem; }
.spec__radio input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--ss-accent); }
.spec__row--slide .spec__in { border: 0; background: transparent; }
.spec__row--slide input[type="range"] { accent-color: var(--ss-accent); padding: 0; min-height: 36px; }
.no-js-hide, .nojs-only { display: none; }
.spec__row--slide { display: none; }
.js .spec__row--slide { display: flex; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 .3rem; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); overflow: hidden; }
.seg__o { position: relative; }
.seg__o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__o label { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .2rem .5rem; font-size: .95rem; font-weight: 600; text-align: center; background: var(--ss-bg); color: var(--ss-muted); }
.seg__o input:checked + label { background: var(--ss-accent); color: var(--ss-accent-ink); }
.seg__o input:focus-visible + label { outline: 3px solid var(--ss-focus); outline-offset: -3px; }
.field-msg { margin: .6rem 0 0; padding: .5rem .75rem; background: var(--ss-accent-soft); border-left: 4px solid var(--ss-accent); border-radius: var(--ss-radius); font-size: .92rem; }
/* several messages at once (a bad list price and a margin of 100) each get their own line instead of running together */
.field-msg__i { display: block; }

/* result */
.res { margin-bottom: .8rem; }
.big { font-family: var(--ss-display); font-weight: 700; line-height: .95; margin: 0 0 .35rem; }
.big__n { font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); letter-spacing: .005em; }
.big__n--date { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; }
.big__u { font-size: 1.1rem; font-weight: 600; color: var(--ss-muted); letter-spacing: 0; }
.res__line { margin: 0 0 .4rem; font-size: 1.05rem; line-height: 1.45; }
.res__sub { margin: 0; color: var(--ss-muted); font-size: .95rem; }
.res__sub:empty { display: none; }
.defs { margin: .6rem 0 0; font-size: .88rem; color: var(--ss-muted); max-width: 34rem; }
.pic svg { display: block; width: 100%; height: auto; }

/* the drawings: line art in drafting linen, dimension lines with brass ticks, the profit in sage. They ease to new proportions (250 ms), nothing else moves. */
.pic--dim, .pic--brk, .pic--tape, .pic--plan { max-width: 30rem; margin-inline: auto; }
.pic--dim svg *, .pic--brk svg *, .pic--tape svg *, .pic--plan svg * { transition: x .25s ease-out, y .25s ease-out, width .25s ease-out, height .25s ease-out, d .25s ease-out, transform .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .pic--dim svg *, .pic--brk svg *, .pic--tape svg *, .pic--plan svg * { transition: none !important; } }
@media (min-width: 52rem) { .pic--dim, .pic--brk, .pic--tape, .pic--plan { margin-inline: 0; } }
.sb-sofa rect, .sb-sofa path { fill: none; stroke: var(--sb-drawing); stroke-width: 1.6; }
.sb-dimline path { fill: none; stroke: var(--sb-brass); stroke-width: 1.3; }
.sb-dimline .sb-tick { stroke-width: 1.6; }
.sb-dimline text { fill: var(--ss-ink); font: 700 14px var(--ss-display); letter-spacing: .02em; }
.sb-d4 path, .sb-d2 path { stroke: var(--ss-accent); }
.sb-note { fill: var(--ss-muted); font: 500 14px var(--ss-font); }
.sb-bar-cost { fill: none; stroke: var(--sb-drawing); stroke-width: 1.6; }
.sb-bar-profit { fill: var(--ss-accent); }
.sb-bar-freight { fill: var(--sb-brass); }
.sb-bar-other { fill: var(--sb-indigo); }
.sb-leg { fill: var(--ss-muted); font: 500 12px var(--ss-font); }
.sb-bar-t { fill: var(--ss-ink); font: 700 15px var(--ss-display); }
.sb-bar-t--ink { fill: var(--ss-accent-ink); }
.sb-tape-body { fill: var(--sb-brass); }
.sb-tape-tick { stroke: var(--ss-accent-ink); stroke-width: 1.2; }
.sb-flag path { stroke: var(--sb-drawing); stroke-width: 1.4; fill: none; }
.sb-flag text { fill: var(--ss-ink); font: 600 12px var(--ss-font); }
.sb-room-wall { fill: none; stroke: var(--sb-drawing); stroke-width: 1.6; }
.sb-room-fill { fill: var(--ss-accent); opacity: .85; }
.sb-chip { fill: var(--sb-indigo); } .sb-chips text { fill: var(--ss-ink); font: 700 15px var(--ss-display); }
.sb-sheet-paper { fill: var(--ss-bg); stroke: var(--ss-line); stroke-width: 1.5; }
.sb-sheet-head { fill: var(--ss-accent); }
.sb-sheet-rule { stroke: var(--ss-line); stroke-width: 1; fill: none; }
.sb-sheet-text { fill: var(--sb-drawing); opacity: .75; }
.sb-sheet-title { stroke: var(--sb-brass); stroke-width: 3; }
.mini { display: block; width: 100%; height: auto; }
.mini-line { fill: none; stroke: var(--sb-drawing); stroke-width: 1.5; }
.mini-brass { fill: none; stroke: var(--sb-brass); stroke-width: 2; }
.mini-fill { fill: var(--ss-bg); stroke: var(--sb-drawing); stroke-width: 1.5; }
.mini-sage { fill: var(--ss-accent); }
.mini-brassfill { fill: var(--sb-brass); }
.tbl-slot:empty { display: none; }

/* the figures table beside the drawing */
.sheet { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sheet caption { caption-side: top; text-align: left; padding: .4rem 0; font-family: var(--ss-display); font-weight: 700; font-size: 1.15rem; border-bottom: 2px solid var(--sb-brass); }
.sheet th, .sheet td { padding: .35rem .25rem; border-bottom: 1px solid var(--ss-line); text-align: right; font-weight: 400; }
.sheet td { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) { .sheet { font-size: .9rem; } .sheet th, .sheet td { padding-inline: .15rem; } }
.sheet thead th { font-size: .82rem; color: var(--ss-muted); font-weight: 600; }
.sheet tbody th { text-align: left; color: var(--ss-ink); font-weight: 500; }
.sheet td strong { font-weight: 700; }
.sheet__link { display: block; font-size: .8rem; font-weight: 500; }
.sheet__sub { display: block; font-size: .78rem; color: var(--ss-muted); font-weight: 400; }

/* ------------------------------------------------------------------ pieces and rooms: ruled input lines */
.pieces__head, .rooms__head { display: grid; gap: .4rem; font-size: .78rem; color: var(--ss-muted); padding-bottom: .2rem; }
.pieces__head, .pieces__row { grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr) minmax(0, 1.2fr) minmax(0, .85fr); }
.rooms__head, .rooms__row { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); }
/* On a phone four boxes in a line are too narrow for a dollar figure: the name takes its own line and the three numbers share the next. */
@media (max-width: 30rem) { .pieces__head, .pieces__row, .rooms__head, .rooms__row { gap: .3rem; grid-template-columns: repeat(3, minmax(0, 1fr)); } .pieces__head > :first-child, .pieces__row > :first-child, .rooms__head > :first-child, .rooms__row > :first-child { grid-column: 1 / -1; } .pieces__row, .rooms__row { padding: .35rem 0; } .pieces__row input, .pieces__row select, .rooms__row input { padding-inline: .3rem; font-size: .88rem; } .pieces__row select { padding-inline: .2rem; } }
.pieces__row, .rooms__row { display: grid; gap: .4rem; padding: .2rem 0; border-bottom: 1px solid var(--ss-line); }
.pieces__row input, .pieces__row select, .rooms__row input { min-width: 0; width: 100%; box-sizing: border-box; min-height: 40px; padding-inline: .4rem; background: var(--ss-bg); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); color: var(--ss-ink); font: inherit; font-size: .92rem; }
.pieces__row input[type="number"], .rooms__row input[type="number"] { text-align: right; }
.pieces__row input:focus, .pieces__row select:focus, .rooms__row input:focus { border-color: var(--ss-accent); }

/* ------------------------------------------------------------------ tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl caption { caption-side: top; text-align: left; padding: .3rem 0 .5rem; font-family: var(--ss-display); font-weight: 700; font-size: 1.2rem; }
.tbl th, .tbl td { font-size: .93rem; padding: .4rem .5rem; border-bottom: 1px solid var(--ss-line); text-align: left; overflow-wrap: break-word; }
.tbl thead th { color: var(--ss-muted); font-weight: 600; font-size: .85rem; vertical-align: bottom; }
.tbl .res-col { font-weight: 700; color: var(--ss-ink); }
.tbl tbody th { font-weight: 600; }
.tbl.ex td:not(:first-child), .tbl.bud td, .tbl.sched td:nth-child(3) { font-variant-numeric: tabular-nums; }
.tbl.bud tfoot th, .tbl.bud tfoot td { font-weight: 700; border-top: 2px solid var(--sb-brass); }
.tbl.bud td, .tbl.bud thead th:not(:first-child) { text-align: right; }
.tbl.conv th, .tbl.conv td { padding-block: .45rem; }
.tbl.conv tr.is-yours > * { font-weight: 700; background: var(--ss-accent-soft); }
.tbl.conv tr.is-yours > th { box-shadow: inset 4px 0 0 var(--ss-accent); }
.yours { display: inline-block; margin-left: .4rem; padding: .05rem .45rem; border: 1px solid var(--ss-accent); border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--ss-accent-text-dark); white-space: nowrap; }
.tbl.sched tr.flag > * { font-weight: 700; }
.tbl.sched tr.flag > th { box-shadow: inset 4px 0 0 var(--sb-brass); }
.tbl.sched tr.flag--overdue > th { box-shadow: inset 4px 0 0 var(--ss-accent); }
@media (max-width: 42rem) {
  .tbl.ex thead, .tbl.conv thead, .tbl.sched thead, .tbl.bud thead { display: none; }
  .tbl.ex caption, .tbl.conv caption, .tbl.sched caption, .tbl.bud caption { display: block; }
  .tbl.ex, .tbl.ex tbody, .tbl.conv, .tbl.conv tbody, .tbl.sched, .tbl.sched tbody, .tbl.bud, .tbl.bud tbody, .tbl.bud tfoot { display: block; }
  .tbl.ex tr, .tbl.conv tr, .tbl.sched tr, .tbl.bud tr { display: block; margin-bottom: .6rem; padding: .3rem .8rem; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); background: var(--ss-bg); }
  .tbl.ex th[scope="row"], .tbl.conv th[scope="row"], .tbl.sched th[scope="row"], .tbl.bud th[scope="row"] { display: block; border: 0; padding: .3rem 0 .15rem; font-family: var(--ss-display); font-size: 1.25rem; }
  .tbl.conv tr.is-yours > th { box-shadow: none; }
  /* a grid, so a long column name wraps in its own column and the figure keeps its full width on the right */
  .tbl.ex td, .tbl.conv td, .tbl.sched td, .tbl.bud td { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; border: 0; padding: .15rem 0; white-space: normal; text-align: right; }
  .tbl.ex td::before, .tbl.conv td::before, .tbl.sched td::before, .tbl.bud td::before { content: attr(data-label); color: var(--ss-muted); font-weight: 500; justify-self: start; text-align: left; }
  .tbl.ex td.nw, .tbl.conv td.nw, .tbl.sched td.nw, .tbl.bud td.nw { white-space: normal; }
  .tbl.sched tr.flag { border-left: 4px solid var(--sb-brass); }
  .tbl.conv tr.is-yours { border-left: 4px solid var(--ss-accent); }
  .tbl.sched tr.flag > th, .tbl.sched tr.flag--overdue > th { box-shadow: none; }
}
.ex .res-col { text-align: right; }
@media (min-width: 42.01rem) { .tbl.ex td:not(:first-child), .tbl.ex thead th:not(:first-child) { text-align: right; } .tbl.ex.guide-ex td:nth-child(2), .tbl.ex.guide-ex td:nth-child(3), .tbl.ex.guide-ex td:nth-child(8), .tbl.ex.guide-ex td:nth-child(10), .tbl.ex.guide-ex thead th:nth-child(2), .tbl.ex.guide-ex thead th:nth-child(3), .tbl.ex.guide-ex thead th:nth-child(8), .tbl.ex.guide-ex thead th:nth-child(10) { text-align: left; } }

/* ------------------------------------------------------------------ the four more tools strip (home) */
.strip { display: grid; grid-template-columns: 1fr; gap: .8rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
@media (min-width: 40rem) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.strip__a { display: flex; align-items: center; gap: 1rem; height: 100%; box-sizing: border-box; padding: .9rem 1rem; color: var(--ss-ink); text-decoration: none; background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: var(--ss-radius-lg); transition: border-color .15s ease-out; }
.strip__a:hover { border-color: var(--ss-accent); }
.strip__pic { flex: none; width: 4.4rem; }
.strip__body { display: grid; gap: .1rem; min-width: 0; }
.strip__q { font-size: .93rem; line-height: 1.3; color: var(--ss-muted); }
.strip__n { font-family: var(--ss-display); font-weight: 700; font-size: 2rem; line-height: 1.05; }
.strip__u { font-size: .8rem; color: var(--ss-muted); }
.strip__go { margin-top: .25rem; font-weight: 600; font-size: .92rem; color: var(--ss-accent-text-dark); text-decoration: underline; text-underline-offset: .2em; }
@media (prefers-reduced-motion: reduce) { .strip__a { transition: none; } }

/* ------------------------------------------------------------------ offer, buy box, band */
.offer { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .offer { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); align-items: start; } }
.offer__pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-content: start; }
.offer__pics figure:first-child { grid-column: 1 / -1; }
.offer__pics figcaption, .shots figcaption { font-size: .85rem; color: var(--ss-muted); margin-top: .3rem; }
.offer__pics figure, .shots figure { margin: 0; }
.offer__pics img, .shots img { display: block; width: 100%; height: auto; border-radius: var(--ss-radius); border: 1px solid var(--ss-line); }
.rl-buy h3 { margin: .4rem 0 .2rem; font-size: 1.5rem; }
.rl-buy--compact h3 { margin-top: 0; }
.rl-buy__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.rl-buy--compact .ss-buy__price { margin-bottom: 0; }
.rl-buy__what { margin: .25rem 0 0; font-size: .95rem; color: var(--ss-muted); }
.rl-buy__inside { margin-top: -.2rem; }
/* keep "one time, plus tax where it applies" together: on a narrow box it drops under the price as one line, not one orphaned word */
.rl-buy .ss-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; }
.rl-buy .ss-buy__price small { margin-left: 0; line-height: 1.3; }
.rl-buy .ss-actions { margin: 0; }
.rl-buy > .ss-actions { margin-top: 1rem; }
.rl-bandwrap { padding-block: 1rem; }
.wb-band { display: grid; gap: .7rem 1.5rem; align-items: center; background: var(--ss-surface); border: 1px solid var(--ss-line); border-left: 4px solid var(--ss-accent); border-radius: var(--ss-radius-lg); padding: 1rem 1.2rem; }
@media (min-width: 44rem) { .wb-band { grid-template-columns: minmax(0, 1fr) auto; } }
.wb-band p { margin: 0; }
.wb-band__lead { font-size: 1.1rem; line-height: 1.45; margin-bottom: .45rem !important; }
.wb-band__price { font-size: .95rem; }
.wb-band__price strong { font-family: var(--ss-display); font-size: 1.25rem; }
.wb-band__price span { color: var(--ss-muted); }
.wb-band__fine { margin-top: .4rem !important; font-size: .82rem; color: var(--ss-muted); }

/* ------------------------------------------------------------------ explanation, examples, lists */
.how { display: grid; gap: 0; margin: 1rem 0 0; max-width: 52rem; }
.how dt { font-family: var(--ss-display); font-weight: 700; font-size: 1.3rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--ss-line); }
.how dt:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.how dd { margin: .15rem 0 0; color: var(--ss-ink); }
.trio { display: grid; gap: 0 2rem; }
@media (min-width: 52rem) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio .ss-read { max-width: none; }
.nextlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.nextlist a { display: block; padding: .7rem 1rem; background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); font-weight: 600; text-decoration: none; }
.nextlist a:hover { border-color: var(--ss-accent); }
.dl-actions { margin-block: .5rem .7rem; }

/* ------------------------------------------------------------------ the guide */
.hero-guide { display: grid; gap: 1.2rem 2rem; padding-block: .5rem 1rem; align-items: center; }
@media (min-width: 52rem) { .hero-guide { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); } }
.hero-guide h1 { max-width: 16ch; }
.pic--sheet { max-width: 30rem; }
.cols { list-style: none; margin: 1rem 0 0; padding: 0; max-width: 56rem; counter-reset: col; }
.cols li { display: grid; gap: .1rem 1.5rem; padding: .6rem 0; border-bottom: 1px solid var(--ss-line); }
@media (min-width: 44rem) { .cols li { grid-template-columns: 12rem minmax(0, 1fr); } }
.cols strong { font-family: var(--ss-display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.cols span { color: var(--ss-muted); }

/* ------------------------------------------------------------------ the workbook page */
/* DOM order is the phone order: title and lede, the buy box (price, button, refund), then the doubts. From 52rem the doubts sit under the lede and the box beside both. */
.hero-wb { display: grid; gap: 1.5rem; padding-block: .75rem 1rem; }
@media (min-width: 52rem) { .hero-wb { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); grid-template-rows: auto 1fr; align-items: start; gap: 0 2.5rem; } .hero-wb__text { grid-column: 1; grid-row: 1; } .hero-wb > .rl-buy { grid-column: 2; grid-row: 1 / span 2; } .hero-wb > .doubts { grid-column: 1; grid-row: 2; margin-top: 1.2rem; } }
.hero-wb h1 { max-width: 14ch; }
.doubts { margin: 0; max-width: 36rem; }
.doubts dt:first-child { margin-top: 0; }
.doubts dt { font-weight: 700; margin-top: .8rem; }
.doubts dd { margin: .1rem 0 0; color: var(--ss-muted); }
.shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; margin-top: 1rem; }
.shots figure { min-width: 0; }
.shots--tabs { max-width: 62rem; }
.shots--pages { max-width: 30rem; margin-top: 1.5rem; }
.shots a { display: block; overflow-x: auto; border-radius: var(--ss-radius); }
.shots a img { min-width: 34rem; }
.shots--pages a img { min-width: 0; }
.shots-hint { margin: .3rem 0 0; font-size: .85rem; color: var(--ss-muted); }
.tabs { list-style: none; margin: 1.2rem 0 0; padding: 0; max-width: 56rem; }
.tabs li { display: grid; gap: .1rem 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--ss-line); }
@media (min-width: 44rem) { .tabs li { grid-template-columns: 13rem minmax(0, 1fr); } }
.tabs strong { font-family: var(--ss-display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.tabs span { color: var(--ss-muted); }
.forgrid { display: grid; gap: 0 2.5rem; }
.forgrid li, .ss-read ul li { margin-top: .5rem; }
.forgrid li:first-child, .ss-read ul li:first-child { margin-top: 0; }
@media (min-width: 48rem) { .forgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps-list { padding-left: 1.2rem; }
.steps-list li { margin-bottom: .6rem; }
.dl { list-style: none; padding: 0; }
.dl h3 { margin-bottom: .3rem; }

/* ------------------------------------------------------------------ 404 */
.nf { display: grid; gap: 1.2rem 2rem; align-items: center; padding-block: 1.5rem; }
@media (min-width: 40rem) { .nf { grid-template-columns: 10rem minmax(0, 1fr); } }
.nf__pic { width: 8rem; }
.nf__svg { display: block; width: 100%; height: auto; }
.nf-line { fill: none; stroke: var(--sb-drawing); stroke-width: 2; stroke-dasharray: 6 5; }
.nf-brass { fill: none; stroke: var(--sb-brass); stroke-width: 2; }

/* ------------------------------------------------------------------ print: light, the results and the explanations, not the inputs */
@media print {
  :root, :root[data-ss-theme] { --ss-bg: #fff; --ss-surface: #fff; --ss-ink: #000; --ss-muted: #333; --ss-line: #999; --ss-accent: #333; --ss-accent-ink: #fff; --ss-accent-text-dark: #000; --ss-link: #000; --ss-accent-soft: #f2f2f2; --sb-brass: #777; --sb-indigo: #666; --sb-drawing: #444; }
  html, body.ss { background: #fff; color: #000; }
  .ss-header, .ss-footer, .no-print, .nav-buy, .spec, .tool__more > .spec, .wb-band, .rl-offer, .rl-buy, .nojs, .strip, .nextlist, .own-page { display: none !important; }
  .tool { border: 1px solid #999; background: #fff; padding-top: 1rem; break-inside: avoid; }
  .tool::before, .tool__code { display: none; }
  .tool__body, .tool__body--pieces { display: block; }
  .pic svg text { fill: #000 !important; }
  .sb-bar-profit, .sb-room-fill, .mini-sage, .sb-sheet-head { fill: #bbb !important; }
  .sb-bar-freight, .sb-bar-other, .mini-brassfill { fill: #ddd !important; }
  .sb-tape-body { fill: #ddd !important; }
  a { color: #000; }
}

/* Phones: the example's result has to be on the first screen (390 x 844), so the header, hero and tool tighten a little. */
@media (max-width: 30rem) {
  .hero-home h1 { font-size: 1.8rem; margin-bottom: .2em; }
  .hero-home .ss-lede, .hero-tool .ss-lede { font-size: 1rem; }
  .hero-tool h1 { font-size: 1.95rem; }
  .hero-home .rl-offer { margin-top: .6rem; padding-block: .4rem; }
  .tool { padding-top: 1.35rem; margin-top: .75rem; }
  .tool h2 { font-size: 1.35rem; padding-right: 4.2rem; }
  .tool__code { font-size: 1rem; padding: .2rem .6rem; }
  .tool__eg { margin-bottom: .3rem; }
  .spec__row { min-height: 42px; }
  .res { margin-bottom: .5rem; }
  .big__n { font-size: 2.5rem; }
  .hero-home .ss-lede { display: none; }
  .spec__sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
  .spec--rooms .spec__sub { position: static; width: auto; height: auto; overflow: visible; clip-path: none; margin: .5rem 0 0; }
}
