/* Groomer's Price Book: the site's own look, on top of the Schlosser Studio kit (/studio/studio.css, kit version 2, dark).
   Palette "table mat and rinse water": the violet-black of a wet rubber grooming-table mat, a clean towel for text, steam on the mirror
   for hints, rib lines for rules, and rinse-water aqua as the one accent. The tub's steel and a deeper rinse are the clock's other two
   stage colors (decorative: never text, always beside the stage's written label and minutes). Checked with the kit's check-accent tool
   (ventures/_studio/tools/check-accent.mjs): all PASS (see PLAN.md 5.1 and the venture README).
   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 groom clock (a stopwatch whose ring fills with the minutes of each stage); the ribbed band along the header and
   the top of every tool is the table mat. The only motion on the site: the clock's arcs sweep to their new length in 250 ms. */
:root {
  --ss-bg: #25212b;          /* the rubber table mat: the page */
  --ss-surface: #312c38;     /* the mat's raised ribs: cards, tools, buy box, footer, inputs */
  --ss-ink: #f2eee6;         /* a clean towel: body text */
  --ss-muted: #cbc4cf;       /* steam on the mirror: hints */
  --ss-line: #4a4354;        /* rib lines, rules (decorative) */
  --ss-accent: #5fd0e0;      /* rinse water: buttons, header stripe, focus ring, the clock's ring */
  --ss-accent-ink: #25212b;  /* text on the accent */
  --ss-accent-text-dark: #93e1ec; /* links and accent text */
  --gp-steel: #9aa3ab;       /* tub steel: the dry stage in the clock (decorative) */
  --gp-deep: #2f8f9c;        /* deep rinse: the finish stage (decorative) */
  --gp-towel: #f2eee6;       /* the cut stage and the logo wedge (decorative) */
  --gp-rib: #3a3442;         /* the lighter rib of the mat (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; }

/* ------------------------------------------------------------------ header: name and studio badge on the first row, the pill and the six tools on the second */
.ss-header { border-bottom: 0; }
.ss-header::after { content: ""; display: block; height: 10px; background: repeating-linear-gradient(180deg, var(--gp-rib) 0 3px, var(--ss-bg) 3px 5px); }
.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. One word, so the header keeps its two rows at 360px. */
.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; }
@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(2.2rem, 1.5rem + 4.2vw, 4.4rem); line-height: .95; letter-spacing: .005em; margin-bottom: .3em; max-width: 18ch; }
.hero-home .ss-lede { margin-bottom: 0; font-size: 1.2rem; text-wrap: pretty; }
.hero-tool { padding-block: .75rem .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. */
.gp-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); }
.gp-offer__t { flex: 1 1 18rem; font-size: .95rem; line-height: 1.4; }
.gp-offer__btn { flex: none; }

/* ------------------------------------------------------------------ the tool: a work card with the table mat along its top */
.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.9rem var(--tool-px) .9rem; margin-block: 1rem; }
.tool__mat { position: absolute; inset: 0 0 auto 0; height: 16px; border-radius: var(--ss-radius-lg) var(--ss-radius-lg) 0 0; background: repeating-linear-gradient(180deg, var(--gp-rib) 0 4px, var(--ss-bg) 4px 6px); }
.tool h2 { font-size: 1.6rem; margin-bottom: .1rem; }
.tool__eg { margin: 0 0 .7rem; font-size: .92rem; color: var(--ss-muted); }
.tool__note { margin: 1rem 0 0; font-size: .85rem; color: var(--ss-muted); max-width: 52rem; }
.tool__model { margin: .9rem 0 0; max-width: 52rem; }
.tool__body { display: grid; gap: 1rem 2rem; }
.tool__in, .tool__out { min-width: 0; }
@media (min-width: 52rem) {
  .tool__body { grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); align-items: start; }
  .tool__body--split { grid-template-areas: "dog out" "money out"; grid-template-rows: auto 1fr; }
  .tool__body--two { grid-template-areas: "a out" "b out"; grid-template-rows: auto 1fr; }
  .tool__body--two .pfs--a { grid-area: a; }
  .tool__body--two .pfs--b { grid-area: b; }
  .tool__body--two .tool__out { grid-area: out; }
  .tool__body--split .pfs--dog { grid-area: dog; }
  .tool__body--split .tool__out { grid-area: out; }
  .tool__body--split .pfs--money { grid-area: money; }
  .tool { --tool-px: 1.6rem; padding-top: 2.4rem; }
  .tool__body--note { grid-template-columns: minmax(16rem, 26rem) minmax(0, 1fr); }
}
.pfs { border: 0; padding: 0; margin: 0 0 .9rem; min-width: 0; }
.pfs:last-child { margin-bottom: 0; }
.pfs legend { padding: 0; font-family: var(--ss-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; margin-bottom: .45rem; }
.pfs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .75rem; align-items: end; }
.pfs--dog .pfs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.pf { min-width: 0; }
.pf--wide { grid-column: 1 / -1; }
.pf label { display: block; font-size: .85rem; font-weight: 600; line-height: 1.25; margin-bottom: .25rem; }
.pf__in { display: flex; align-items: center; background: var(--ss-bg); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); min-width: 0; }
.pf__in:focus-within { border-color: var(--ss-accent); }
.pf__in input { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent; padding-inline: .5rem; min-height: 42px; border-radius: var(--ss-radius); }
.pf__u { flex: none; padding-left: .6rem; color: var(--ss-muted); font-size: .9rem; }
.pf__u--r { padding: 0 .6rem 0 0; font-size: .78rem; }
.pf__in .pf__u + input { padding-left: .25rem; }
.pf__hint { display: block; margin-top: .2rem; font-size: .78rem; line-height: 1.3; color: var(--ss-muted); }
.pf select { width: 100%; background: var(--ss-bg); }
.pf > input[type="text"] { width: 100%; min-width: 0; background: var(--ss-bg); }
/* the note's service names are longer than its prices */
.tool__body--note .pfs__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.pf--stage label { display: flex; align-items: center; font-size: .82rem; }
.pfs--dog .pf__in input { padding-inline: .35rem; text-align: right; }
.pfs--dog .pf__u--r { padding-right: .4rem; }
.sw { display: inline-block; flex: none; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .35rem; }
.sw--bath { background: var(--ss-accent); }
.sw--dry { background: var(--gp-steel); }
.sw--cut { background: var(--gp-towel); }
.sw--finish { background: var(--gp-deep); }
.pf--amt .amt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 7.2rem); gap: .5rem; }
.field-msg { margin: .7rem 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; }

/* result */
.res { margin-bottom: 1rem; }
.big { font-family: var(--ss-display); font-weight: 700; line-height: .95; margin: 0 0 .4rem; }
.big__n { font-size: clamp(3rem, 2.2rem + 3.4vw, 4.8rem); letter-spacing: .005em; }
.big__u { font-size: 1.2rem; font-weight: 600; color: var(--ss-muted); letter-spacing: 0; }
.res__line { margin: 0 0 .5rem; font-size: 1.1rem; line-height: 1.45; }
.res__sub { margin: 0; color: var(--ss-muted); }
.res__policy { margin: 1rem 0 0; font-size: .92rem; color: var(--ss-muted); }
.tool--groom .res__line { font-size: 1.2rem; }
.pic svg { display: block; width: 100%; height: auto; }

/* the groom clock: the engine's drawing; its arcs sweep, nothing else moves */
.pic--clock { max-width: 25rem; margin-inline: auto; }
.pic--clock svg circle { transition: stroke-dasharray .25s ease-out, stroke-dashoffset .25s ease-out; }
.tool--groom .tool__out { text-align: left; }
.tool--hero .pic--clock { max-width: 24rem; }
@media (max-width: 30rem) { .tool--groom .pic--clock { max-width: 17rem; margin-top: -.4rem; } .tool--groom .tool__out { display: flex; flex-direction: column; } .tool--groom .res { margin-bottom: .5rem; } }
@media (min-width: 52rem) { .pic--clock { margin-inline: 0; } .tool--groom .res { max-width: 28rem; } }
/* On a phone the engine's drawing has about 30px of empty space above the crown; crop it, and tighten the hero's spacing a little, so the clock's price
   is on the first screen (390 x 844) under the offer line. */
@media (max-width: 30rem) { .tool--hero .pic--clock { margin-top: -1.9rem; } .hero-home h1 { margin-bottom: .15em; } .hero-home .gp-offer { margin-top: .6rem; } .tool--hero { margin-top: .75rem; } }
@media (prefers-reduced-motion: reduce) { .pic--clock svg circle { transition: none; } }
/* the crown and side button in tub steel, so the face reads as a stopwatch and not a dial; stage labels big enough to read when the clock is phone-sized */
.gp-clock { overflow: visible; }
.gp-clock .gp-case rect { fill: var(--gp-steel) !important; }
.gp-clock .gp-label { font-size: 18px; }
@media (max-width: 30rem) { .gp-clock .gp-label { font-size: 23px; } }

/* the small stopwatch (strip, route, fees, 404) */
.mc { display: block; width: 100%; height: auto; }
.mc-face { fill: var(--ss-bg); }
.mc-track { fill: none; stroke: var(--ss-line); stroke-width: 7; }
.mc-arc { fill: none; stroke: var(--ss-accent); stroke-width: 7; }
.mc-arc--2 { stroke: var(--gp-towel); stroke-width: 5; }
.mc-crown { fill: var(--ss-accent); }
.mc-stem { fill: var(--ss-line); }
.mc-text { fill: var(--ss-ink); font: 700 15px var(--ss-display); }

/* matting: four fees from one hourly floor */
.fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; list-style: none; margin: 0; padding: 0; }
.fees li { display: grid; justify-items: center; gap: .1rem; padding: .6rem .2rem .5rem; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); background: var(--ss-bg); text-align: center; }
.fees li.is-yours { border-color: var(--ss-accent); }
.fees .mc { width: 3.2rem; }
.fees__m { font-size: .8rem; color: var(--ss-muted); }
.fees__n { font-family: var(--ss-display); font-weight: 700; font-size: 1.7rem; line-height: 1; }
/* travel fee: the fee for one appointment, or for each of two, three or four that share the drive (a road with its stops), and the steps of the sum */
.fees__cap { margin: 0 0 .5rem; font-size: .85rem; line-height: 1.35; color: var(--ss-muted); max-width: 34rem; }
.fees--share li { gap: .15rem; }
.fees__road { display: block; width: 3.6rem; height: auto; margin-bottom: .1rem; }
.fees__lane { fill: none; stroke: var(--ss-line); stroke-width: 3; stroke-dasharray: 5 4; stroke-linecap: round; }
.fees__stop { fill: var(--ss-accent); }
.fees__t { font-size: .74rem; line-height: 1.2; color: var(--ss-muted); }
.pic--fees + .tbl-slot { margin-top: 1rem; }
.ledger--steps caption { text-align: left; padding: 0 .35rem .3rem; font-family: var(--ss-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.ledger--steps tbody th { white-space: normal; }
.ledger--steps tbody tr { border-top: 1px solid var(--ss-line); }
.ledger--steps tr.ledger__sum th, .ledger--steps tr.ledger__sum td { color: var(--ss-ink); font-weight: 700; }
@media (min-width: 40.01rem) { .ledger--steps .ledger__sub { margin-left: .5rem; } }

/* mobile: the route, a road with a stopwatch at each stop */
.route { display: flex; flex-wrap: wrap; gap: .8rem 0; list-style: none; margin: 0; padding: 0; }
.route li { position: relative; flex: 0 0 auto; width: 3.6rem; margin-right: 1rem; text-align: center; font-size: .82rem; }
.route li:not(:last-child)::after { content: ""; position: absolute; top: 1.7rem; left: calc(50% + 1.5rem); width: calc(100% - 3rem + 1rem); border-top: 3px dashed var(--ss-line); }
.route .mc { width: 3rem; margin: 0 auto; }
.route__dot { display: block; width: .9rem; height: .9rem; margin: 1.25rem auto .55rem; border-radius: 50%; background: var(--ss-accent); }
.route__min { display: block; font-weight: 700; font-size: .9rem; }
.route__n { display: block; color: var(--ss-muted); }
.route__more { padding-top: 1.1rem; }
.route__more .route__min { font-family: var(--ss-display); font-size: 1.5rem; line-height: 1; }

/* pay models: three bars of the same week */
.pic--pay { margin-bottom: 1rem; }
.pay-cap { fill: var(--ss-ink); font: 600 14px var(--ss-font); }
.pay-cap--s { fill: var(--ss-muted); font-weight: 500; font-size: 12px; }
.pay-keep { fill: var(--ss-ink); font: 700 16px var(--ss-display); letter-spacing: .01em; }
.pay-keep-bar { fill: var(--ss-accent); }
.pay-salon { fill: url(#pay-hatch); stroke: var(--gp-steel); stroke-width: 1; }
.pay-hatch { stroke: var(--gp-steel); stroke-width: 2; }
.pay-fees { fill: var(--gp-deep); }
.pay-fixed { fill: var(--gp-steel); }
.pay-rule { stroke: var(--ss-line); stroke-width: 3; }
.pay-tick { stroke: var(--ss-accent); stroke-width: 2; }
.pay-tick-t { fill: var(--ss-ink); font: 600 12px var(--ss-font); }
.pay-sales { fill: var(--ss-ink); stroke: var(--ss-bg); stroke-width: 2; }
.pay-key { display: flex; flex-wrap: wrap; gap: .2rem 1rem; list-style: none; margin: .5rem 0 0; padding: 0; font-size: .82rem; color: var(--ss-muted); }
.pay-key .k { display: inline-block; width: .8rem; height: .8rem; margin-right: .35rem; border-radius: 2px; vertical-align: -1px; }
.k--keep { background: var(--ss-accent); }
.k--salon { background: var(--ss-line); border: 1px solid var(--gp-steel); box-sizing: border-box; }
.k--fixed { background: var(--gp-steel); }
.k--fees { background: var(--gp-deep); }
.ledger { width: 100%; font-size: .9rem; }
.ledger th, .ledger td { padding: .4rem .35rem; }
.ledger thead th { font-weight: 700; font-size: .85rem; }
.ledger td { text-align: right; }
.ledger thead th:not(:first-child) { text-align: right; }
.ledger tbody th { font-weight: 500; color: var(--ss-muted); white-space: nowrap; }
/* "A year (52 weeks)": on a phone the parenthesis drops to its own line so the three model columns keep their width */
@media (max-width: 40rem) { .ledger__sub { display: block; font-size: .72rem; } }
@media (max-width: 30rem) {
  .ledger { font-size: .82rem; }
  .ledger th, .ledger td { padding: .4rem .15rem; }
  .ledger thead th { font-size: .74rem; }
}
.tbl-slot:empty { display: none; }

/* no-shows: a day strip with one empty slot, a deposit chip in it */
.slot-booked { fill: var(--gp-rib); stroke: var(--ss-line); stroke-width: 1; }
.slot-empty { fill: none; stroke: var(--ss-accent); stroke-width: 2; stroke-dasharray: 6 5; }
.slot-time { fill: var(--ss-muted); font: 500 12px var(--ss-font); }
.slot-chip rect { fill: var(--ss-accent); }
.slot-chip text { fill: var(--ss-accent-ink); font: 700 19px var(--ss-display); }
.pic--slot { margin-bottom: .2rem; }

/* price increase: one dot for each client; the ones who can leave fade */
.dot { fill: var(--ss-accent); }
.dot--leave { fill: none; stroke: var(--ss-muted); stroke-width: 1.5; stroke-dasharray: 2 2; }
.pic--dots { max-width: 30rem; }

/* the client note */
.notebox { background: var(--ss-bg); border: 1px dashed var(--gp-steel); border-radius: var(--ss-radius); padding: 1rem 1.1rem .8rem; }
.notebox__h { margin: 0 0 .5rem; font-weight: 700; }
.notebox__t { margin: 0 0 .8rem; white-space: pre-wrap; overflow-wrap: break-word; font: inherit; font-size: 1.05rem; line-height: 1.5; }
.notebox__a { margin: 0; }
.notebox__s { font-size: .9rem; color: var(--ss-muted); }
.res__h { margin: 0 0 .4rem; font-family: var(--ss-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.res--letter { margin: 1rem 0 0; }

/* the price increase letter page: the three wordings side by side, each a read-only copy of the example */
.wordings { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 62rem) { .wordings { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.wordings .notebox { height: 100%; box-sizing: border-box; }
.wordings .notebox__h { font-family: var(--ss-display); font-size: 1.2rem; font-weight: 700; }
.wordings .notebox__t { margin-bottom: 0; font-size: 1rem; }

/* price increase: the plain two-line answer under the title */
.gp-answer { max-width: 54rem; margin: .6rem 0 .8rem; padding: .7rem 1rem; background: var(--ss-surface); border: 1px solid var(--ss-line); border-left: 4px solid var(--ss-accent); border-radius: var(--ss-radius); }
.gp-answer p { margin: 0; }
.gp-answer__a { font-size: 1.15rem; font-weight: 700; line-height: 1.4; margin-bottom: .3rem !important; text-wrap: pretty; }
.gp-answer__b { color: var(--ss-muted); text-wrap: pretty; }

/* the menu: size by coat */
.tool--menu { padding-bottom: 1rem; }
.menu { table-layout: fixed; width: 100%; max-width: 44rem; }
.menu caption { caption-side: top; text-align: left; font-weight: 600; padding: 0 0 .5rem; color: var(--ss-muted); }
.menu th, .menu td { padding: .3rem .2rem; border-bottom: 1px solid var(--ss-line); vertical-align: middle; text-align: center; }
.menu thead td { border: 0; }
.menu tbody th:first-child, .menu thead td:first-child { width: 5.2rem; }
.menu textarea.menu__label { display: block; width: 100%; box-sizing: border-box; resize: none; overflow: hidden; background: transparent; border: 1px solid transparent; padding: .2rem .25rem; min-height: 0; height: 2.9rem; font: 600 .95rem/1.2 var(--ss-font); text-align: center; border-radius: var(--ss-radius); }
.menu textarea.menu__label:hover, .menu textarea.menu__label:focus { border-color: var(--ss-line); background: var(--ss-bg); }
.menu td input { display: block; width: 100%; box-sizing: border-box; text-align: center; min-height: 40px; padding: .3rem .1rem; background: var(--ss-bg); }
.menu__min { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.menu__price { display: block; margin-top: .15rem; font-family: var(--ss-display); font-weight: 700; font-size: 1.55rem; line-height: 1.1; color: var(--ss-ink); }
.menu td { position: relative; }

/* ------------------------------------------------------------------ the six 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)); } }
@media (min-width: 62rem) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the seventh tool (the price increase letter) is alone on the last row: it takes the whole row */
@media (min-width: 40rem) { .strip > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 62rem) { .strip > li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; } .strip > li:last-child:nth-child(3n + 1) .strip__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem 1.2rem; } }
.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: 3.9rem; }
.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); }
.gp-buy h3 { margin: .4rem 0 .2rem; font-size: 1.5rem; }
.gp-buy--compact h3 { margin-top: 0; }
.gp-buy__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.gp-buy--compact .ss-buy__price { margin-bottom: 0; }
.gp-buy__what { margin: .25rem 0 0; font-size: .95rem; color: var(--ss-muted); }
.gp-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 */
.gp-buy .ss-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; }
.gp-buy .ss-buy__price small { margin-left: 0; line-height: 1.3; }
.gp-buy .ss-actions { margin: 0; }
.gp-buy > .ss-actions { margin-top: 1rem; }
.gp-bandwrap { padding-block: 1rem; }
.gp-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) { .gp-band { grid-template-columns: minmax(0, 1fr) auto; } }
.gp-band p { margin: 0; }
.gp-band__lead { font-size: 1.1rem; line-height: 1.45; margin-bottom: .45rem !important; }
.gp-band__price { font-size: .95rem; }
.gp-band__price strong { font-family: var(--ss-display); font-size: 1.25rem; }
.gp-band__price span { color: var(--ss-muted); }
.gp-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; }
.tbl-wrap { overflow-x: auto; }
.tbl th, .tbl td { font-size: .93rem; }
.tbl thead th { color: var(--ss-muted); font-weight: 600; font-size: .85rem; vertical-align: bottom; overflow-wrap: break-word; }
.tbl .res-col { font-weight: 700; color: var(--ss-ink); }
.tbl tbody th { font-weight: 600; }
@media (max-width: 42rem) {
  .tbl.ex thead { display: none; }
  .tbl.ex, .tbl.ex tbody { display: block; }
  .tbl.ex tr { display: block; margin-bottom: .7rem; padding: .35rem .8rem; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); background: var(--ss-surface); }
  .tbl.ex th[scope="row"] { display: block; border: 0; padding: .3rem 0 .15rem; font-family: var(--ss-display); font-size: 1.25rem; }
  /* 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 { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; border: 0; padding: .15rem 0; white-space: normal; }
  .tbl.ex td::before { content: attr(data-label); color: var(--ss-muted); font-weight: 500; justify-self: start; }
  .tbl.ex td.nw { white-space: normal; }
}
.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); }
.booth-link { margin-top: 0; }
.log .dl-actions { margin-block: .5rem .7rem; }

/* ------------------------------------------------------------------ the workbook page */
/* DOM order is the phone order: title and lede, the buy box (price, button, refund), then the three 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 > .gp-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; }
@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: 9rem minmax(0, 1fr); } }
.nf__pic { width: 7rem; }

/* ------------------------------------------------------------------ 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; --gp-steel: #777; --gp-deep: #444; --gp-towel: #bbb; --gp-rib: #ddd; }
  html, body.ss { background: #fff; color: #000; }
  .ss-header, .ss-footer, .no-print, .nav-buy, .tool__mat, .pfs, .gp-band, .gp-offer, .gp-buy, .nojs, .strip, .nextlist, [data-copy] { display: none !important; }
  .tool { border: 1px solid #999; background: #fff; padding-top: 1rem; break-inside: avoid; }
  .tool__body, .tool__body--split { display: block; }
  .pic svg text { fill: #000; }
  .gp-clock .gp-case circle { fill: #fff !important; stroke: #999 !important; }
  .gp-clock .gp-case rect { fill: #999 !important; }
  .gp-clock .gp-track { stroke: #ddd !important; }
  .pic circle.gp-arc[data-stage="bath"] { stroke: #000 !important; } .pic circle.gp-arc[data-stage="dry"] { stroke: #666 !important; } .pic circle.gp-arc[data-stage="cut"] { stroke: #bbb !important; } .pic circle.gp-arc[data-stage="finish"] { stroke: #333 !important; }
  .pic svg text.gp-centre { fill: #000 !important; } .pic svg text.gp-label { fill: #333 !important; }
  .mc-face { fill: #fff; } .mc-arc { stroke: #000; }
  .dot { fill: #000; } .dot--leave { stroke: #000; }
  a { color: #000; }
}
