/* Oftener · customerstates.net · v1.0 design: "shop ledger on linen". Own system (SPEC 4): Enriqueta + Niramit,
   linen paper, ink-teal, five state colours that always travel with their word. No sister-kit CSS. */

@font-face { font-family: "Enriqueta"; src: url("/assets/fonts/enriqueta-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Enriqueta"; src: url("/assets/fonts/enriqueta-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Enriqueta"; src: url("/assets/fonts/enriqueta-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Niramit"; src: url("/assets/fonts/niramit-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Niramit"; src: url("/assets/fonts/niramit-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Niramit"; src: url("/assets/fonts/niramit-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Niramit"; src: url("/assets/fonts/niramit-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F4F0E8; --paper-2: #EAE4D7; --card: #FFFDF8; --ink: #1D2B2C; --ink-2: #4E5B5C; --rule: #D9D1C3; --rule-2: #C7BCA8;
  --brand: #17494D; --brand-2: #0E3438; --on-brand: #F4F0E8; --brass: #A87418; --margin: #C9A45A;
  --new: #2B67A6; --active: #2C7A55; --cooling: #C58A1C; --lapsed: #7D838C; --wonback: #B8472F;
  --warn-bg: #FBEDE6; --warn-ink: #8A2F1C; --ok-bg: #E5F1EA;
  --serif: "Enriqueta", "Rockwell", "Georgia", serif; --sans: "Niramit", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
  --r: 6px; --shadow: 0 1px 0 rgba(29, 43, 44, .06), 0 10px 30px -18px rgba(29, 43, 44, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121A1B; --paper-2: #182325; --card: #1C2729; --ink: #EAE6DD; --ink-2: #A7B2B1; --rule: #2F3C3E; --rule-2: #3D4C4E;
    --brand: #7CC1C0; --brand-2: #A7DAD8; --on-brand: #0E1718; --brass: #E0B45E; --margin: #8F7238;
    --new: #7FB0E6; --active: #6CC596; --cooling: #F0C060; --lapsed: #A9AFB7; --wonback: #F08A70;
    --warn-bg: #3A2019; --warn-ink: #F6B7A6; --ok-bg: #1D3328;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 30px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.62 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: var(--on-brand); padding: .7rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sheet { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.sheet--read { width: min(760px, 100% - 2.5rem); }
.h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.h3 { font-size: 1.2rem; margin-top: 1.4rem; }
.lede { font-size: 1.16rem; color: var(--ink-2); max-width: 46rem; }
.note { font-size: .9rem; color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: .86em; }
/* section labels: a ledger margin note (italic, sentence case, a brass diamond), not a tracked-caps kicker */
.eyebrow { display: flex; align-items: baseline; gap: .6rem; font: italic 400 1.02rem/1.3 var(--sans); color: var(--ink-2); margin-bottom: .6rem; }
.eyebrow::before { content: ""; flex: none; width: .5rem; height: .5rem; background: var(--brass); transform: translateY(-.1em) rotate(45deg); }
.eyebrow--light { color: #D3DEDB; }
.eyebrow--light::before { background: var(--margin); }
.tag { display: inline-block; font: 600 .74rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .38rem .5rem; border: 1.5px dashed currentColor; border-radius: 3px; color: var(--active); vertical-align: .1em; white-space: nowrap; }
.btnrow { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }

/* buttons: squared "ledger tabs", not round pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: var(--r);
  font: 600 .98rem/1.1 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.pill--ink { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.pill--ink:hover { background: var(--brand-2); border-color: var(--brand-2); }
.pill--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.pill--line:hover { background: var(--card); }
.pill--warn { background: transparent; color: var(--warn-ink); border-color: var(--warn-ink); }
.pill--lg { min-height: 52px; padding: .7rem 1.4rem; font-size: 1.05rem; }
.pill:disabled { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--warn-ink); font: 500 .9rem var(--sans); text-decoration: underline; cursor: pointer; min-height: 40px; padding: .3rem .4rem; }

/* wordmark */
.wm { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); }
.wm__mark { width: 34px; height: 32px; flex: none; }
.wm__b--new { fill: var(--new); } .wm__b--active { fill: var(--active); } .wm__b--cooling { fill: var(--cooling); } .wm__b--lapsed { fill: var(--lapsed); } .wm__b--wonback { fill: var(--wonback); }
.wm__rule { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.wm__name { font: 700 1.5rem/1 var(--serif); letter-spacing: -.01em; }

/* masthead */
.mast { background: var(--paper); border-bottom: 3px double var(--rule-2); position: relative; z-index: 3; }
.mast__in { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.mast__brand { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.mast__nav { display: flex; gap: .3rem; margin-left: auto; }
.mast__nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .7rem .8rem; border-bottom: 2px solid transparent; }
.mast__nav a:hover { border-bottom-color: var(--rule-2); }
.mast__nav a[aria-current="page"] { border-bottom-color: var(--brass); }
/* phone menu: a bookmark ribbon hanging from the top edge of the masthead */
.mast__menu { display: none; margin-left: auto; position: relative; align-self: flex-start; }
.mast__menu summary { list-style: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .32rem; min-width: 62px; min-height: 58px;
  padding: .55rem .7rem 1rem; background: var(--brand); color: var(--on-brand); font: 600 .84rem/1 var(--sans); cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%); }
.mast__menu[open] summary { background: var(--brand-2); }
.mast__menu summary::-webkit-details-marker { display: none; }
.mast__lines { display: grid; gap: 3px; }
.mast__lines i { display: block; width: 18px; height: 2px; background: currentColor; }
.mast__drop { position: absolute; right: 0; top: calc(100% + .5rem); width: min(280px, calc(100vw - 2.5rem)); background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--r); box-shadow: var(--shadow); padding: .4rem; display: grid; }
.mast__drop a { display: block; padding: .75rem .8rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.mast__drop a:last-child { border-bottom: 0; }
.mast__drop a[aria-current="page"] { color: var(--brand); font-weight: 600; }

/* home lead (review 2026-11-12 M1): ONE ruled ledger page across the sheet. Its header row carries the preview stamp, the
   headline is the page title, the real file chooser is the entry line, and the example shop's five states are its line items. */
.folio { padding: clamp(1.25rem, 3vw, 2.6rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.folio__page { --m1: clamp(1.5rem, 3.6vw, 3.3rem); position: relative; background-color: var(--card); border: 1px solid var(--rule-2); border-radius: 3px; box-shadow: var(--shadow);
  padding: clamp(1rem, 2.4vw, 1.8rem) clamp(.9rem, 3vw, 2.6rem) clamp(1rem, 2.2vw, 1.6rem) calc(var(--m1) + clamp(1rem, 2.4vw, 2.2rem));
  background-image: linear-gradient(to right, transparent var(--m1), var(--margin) var(--m1), var(--margin) calc(var(--m1) + 2px), transparent calc(var(--m1) + 2px),
    transparent calc(var(--m1) + 6px), var(--margin) calc(var(--m1) + 6px), var(--margin) calc(var(--m1) + 8px), transparent calc(var(--m1) + 8px)); }
.folio__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; border-bottom: 3px double var(--rule-2); padding-bottom: .75rem; margin-bottom: clamp(1.1rem, 2.6vw, 2rem); }
.folio__ref { margin: 0; font: 600 .98rem/1.3 var(--serif); color: var(--ink-2); }
.folio__stamp { margin: 0; display: inline-flex; align-items: baseline; gap: .45rem; padding: .3rem .6rem .35rem; border: 3px double var(--wonback); border-radius: 4px; color: var(--wonback);
  font: 600 .84rem/1.15 var(--sans); transform: rotate(-3deg); transform-origin: right center; }
.folio__stamp-w { font: 700 .9rem/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; }
.folio__h { font-size: clamp(2.35rem, 6vw, 4.9rem); line-height: 1; letter-spacing: -.025em; margin: 0 0 1rem; }
.folio__p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 46rem; margin-bottom: 1.4rem; }
.folio__p strong { color: var(--ink); }
.folio__entry { margin: 0 0 clamp(1.6rem, 3.2vw, 2.6rem); }
.folio__drop { position: relative; border: 2px dashed var(--brand); border-radius: var(--r); background: color-mix(in srgb, var(--brand) 5%, var(--card)); transition: background-color .15s; }
.folio__drop:hover, .folio__drop--over { background: color-mix(in srgb, var(--brand) 12%, var(--card)); }
.folio__drop:focus-within { outline: 3px solid var(--brass); outline-offset: 2px; }
.folio__label { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1rem; padding: 1.1rem 1.2rem; min-height: 80px; cursor: pointer; }
.folio__icon { grid-row: span 2; width: 2.2rem; height: 2.2rem; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.folio__big { font: 700 clamp(1.15rem, 2vw, 1.45rem)/1.2 var(--serif); color: var(--brand); }
.folio__small { font-size: .93rem; color: var(--ink-2); }
.folio__file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.folio__alt { margin: .7rem 0 0; font-size: .96rem; color: var(--ink-2); }
.folio__alt a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
.folio__status { margin: .4rem 0 0; font-size: .92rem; color: var(--active); }
.folio__status:empty { display: none; }
.folio__status--bad { color: var(--warn-ink); }
.folio__book { border-top: 2px solid var(--ink); padding-top: .9rem; }
.folio__cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; margin: 0 0 .7rem; font: 700 1.12rem/1.3 var(--serif); }
.folio__meta { font: 400 .88rem/1.3 var(--sans); color: var(--ink-2); }
.folio__sbar { display: block; width: 100%; height: 14px; border-radius: 2px; margin-bottom: .3rem; }
.folio__t { width: 100%; border-collapse: collapse; font-size: .95rem; }
.folio__t thead th { font: 600 .76rem/1.25 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--rule-2); }
.folio__t thead th.num { text-align: right; }
.folio__t tbody > tr > *, .folio__t tfoot > tr > * { padding: .7rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; font-weight: 400; }
.folio__state { display: flex; align-items: center; gap: .5rem; font: 700 1.08rem/1.2 var(--serif); }
.folio__rule { display: block; font: 400 .9rem/1.45 var(--sans); color: var(--ink-2); margin-top: .2rem; }
.folio__t td.folio__n { font: 700 1.35rem/1.1 var(--serif); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.folio__t td.folio__pct { text-align: right; color: var(--ink-2); white-space: nowrap; width: 11.5rem; padding-top: .95rem; }
.folio__bar { display: inline-block; width: 6.5rem; height: 8px; margin-right: .6rem; vertical-align: .05em; background: var(--paper-2); border-radius: 1px; }
.folio__t tfoot th { font: 700 1.02rem/1.2 var(--serif); }
.folio__t tfoot tr:first-child > * { border-top: 2px solid var(--ink); }
.folio__t tfoot tr:last-child > * { border-bottom: 0; }
.folio__t tfoot td.folio__n { font-size: 1.2rem; }
.folio__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1.5rem; margin-top: .6rem; padding-top: .7rem; border-top: 3px double var(--rule-2); font-size: .95rem; color: var(--ink-2); }
.folio__foot p { margin: 0; }
.folio__foot a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }

.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .8rem 1rem; margin-bottom: 1.1rem; }
.figs p { margin: 0; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; }
.fig { display: block; font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--serif); }
.fig__l { display: block; font-size: .82rem; color: var(--ink-2); }

/* state colours (SVG fills and chips) */
.st-new { fill: var(--new); background: var(--new); } .st-active { fill: var(--active); background: var(--active); } .st-cooling { fill: var(--cooling); background: var(--cooling); }
.st-lapsed { fill: var(--lapsed); background: var(--lapsed); } .st-wonback { fill: var(--wonback); background: var(--wonback); }
.chip { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; flex: none; vertical-align: -.05em; }
.sbar__svg { display: block; width: 100%; height: 40px; border-radius: 3px; overflow: hidden; }
.sbar__key { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .1rem; }
.sbar__item { display: grid; grid-template-columns: auto 1fr auto 4.2rem; align-items: center; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.sbar__name { font-weight: 500; }
.sbar__n { font: 700 1rem var(--serif); text-align: right; }
.sbar__pct { text-align: right; color: var(--ink-2); font-size: .88rem; }

/* bands */
.band { padding: clamp(3rem, 6vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.band--paper { background: var(--paper-2); }
.band--ink { background: var(--brand-2); color: #EEF2EF; border-top: 0; }
@media (prefers-color-scheme: dark) { .band--ink { background: #0B2427; } }
.band--ink a { color: #F3D58E; }
.band--ink .h2 { color: #FFFDF8; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.reach { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); border-radius: 4px; padding: 1.4rem 1.5rem; }
.reach__h { font: 700 1.2rem var(--serif); color: #FFFDF8; }
.reach__none { font: 700 1.6rem/1.2 var(--serif); color: #F3D58E; }
.reach__list { columns: 2; column-gap: 1.5rem; padding-left: 1.1rem; margin: 0; }
.reach__list li { break-inside: avoid; margin-bottom: .2rem; }

/* retention table */
.cohort { overflow-x: auto; position: relative; margin: 1.5rem 0 1rem; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--card); }
.cohort__t { border-collapse: collapse; width: 100%; font-size: .9rem; }
.cohort__t caption { text-align: left; padding: .8rem 1rem; font-weight: 600; color: var(--ink-2); caption-side: top; }
.cohort__t th, .cohort__t td { padding: .5rem .6rem; border-top: 1px solid var(--rule); white-space: nowrap; }
.cohort__t thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 600; }
.cohort__t tbody th { font-weight: 600; text-align: left; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ht0 { background: color-mix(in srgb, var(--brand) 4%, var(--card)); } .ht1 { background: color-mix(in srgb, var(--brand) 10%, var(--card)); }
.ht2 { background: color-mix(in srgb, var(--brand) 17%, var(--card)); } .ht3 { background: color-mix(in srgb, var(--brand) 24%, var(--card)); }
.ht4 { background: color-mix(in srgb, var(--brand) 32%, var(--card)); } .ht5 { background: color-mix(in srgb, var(--brand) 41%, var(--card)); }
.ht6 { background: color-mix(in srgb, var(--brand) 52%, var(--card)); color: var(--on-brand); } .ht7 { background: color-mix(in srgb, var(--brand) 64%, var(--card)); color: var(--on-brand); }
.ht8 { background: color-mix(in srgb, var(--brand) 78%, var(--card)); color: var(--on-brand); } .ht9 { background: var(--brand); color: var(--on-brand); }
.cohort__na { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--rule) 5px 6px); }

/* lists */
.lists { display: grid; gap: 1rem; }
.list { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; background: var(--card); border: 1px solid var(--rule-2); border-left: 6px solid var(--active); border-radius: 4px; padding: 1rem 1.2rem; margin: 0; }
.list--win { border-left-color: var(--cooling); }
.list__n { font: 700 2.4rem/1 var(--serif); grid-row: span 2; }
.list__t { font: 700 1.15rem var(--serif); }
.list__d { font-size: .9rem; color: var(--ink-2); }

/* prices (review 2026-11-12 M1): a price list of ruled line items, the preview as a stamp on the list */
.plist { margin-top: 1.6rem; background: var(--card); border: 1px solid var(--rule-2); border-radius: 3px; box-shadow: var(--shadow); padding: 0 clamp(.9rem, 2.4vw, 1.8rem) .3rem; }
.pricelist { width: 100%; border-collapse: collapse; }
.pricelist__cap { caption-side: top; text-align: left; padding: 1.1rem 0 .85rem; border-bottom: 3px double var(--rule-2); }
.pricelist__title { font: 700 1.3rem/1.2 var(--serif); margin-right: .9rem; }
.pricelist__stamp { display: inline-block; padding: .28rem .55rem .32rem; border: 3px double var(--wonback); border-radius: 4px; color: var(--wonback); font: 700 .8rem/1.1 var(--serif);
  letter-spacing: .12em; text-transform: uppercase; transform: rotate(-2.5deg); vertical-align: .12em; white-space: nowrap; }
.pricelist thead th { font: 600 .76rem/1.25 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--rule-2); }
.pricelist thead th.num { text-align: right; }
.pricelist tbody > tr > * { padding: 1rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; font-weight: 400; }
.pricelist tbody > tr:last-child > * { border-bottom: 0; }
.pricelist tbody th[scope="row"] { width: 12.5rem; }
.pricelist__name { display: block; font: 700 1.1rem/1.25 var(--serif); }
.pricelist__go { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; font-size: .93rem; white-space: nowrap; }
.pricelist__what { color: var(--ink-2); }
.pricelist__term { color: var(--ink-2); font-size: .93rem; width: 13rem; }
.pricelist tbody .pricelist__amt { text-align: right; font: 700 1.65rem/1.1 var(--serif); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.pricelist__row--pass > * { background: color-mix(in srgb, var(--brand) 5%, var(--card)); }
.pricelist tbody .pricelist__row--pass .pricelist__amt { color: var(--brand); }
.pricelist__note { font-size: .93rem; color: var(--ink-2); margin: 1rem 0 0; max-width: 54rem; }
.fine3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem 2.4rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.fine3 .h3 { margin-top: 0; }
.fine3 p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li, .crosses li { position: relative; padding: .35rem 0 .35rem 1.7rem; border-bottom: 1px dotted var(--rule-2); }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .85rem; width: .7rem; height: .38rem; border-left: 2px solid var(--active); border-bottom: 2px solid var(--active); transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: .25rem; top: 1rem; width: .8rem; height: 2px; background: var(--wonback); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.qa { border-bottom: 1px solid var(--rule-2); }
.qa summary { cursor: pointer; font: 600 1.08rem var(--sans); padding: 1rem 0; min-height: 44px; list-style-position: outside; }
.qa p { color: var(--ink-2); }

/* ledger desk */
.desk { padding: clamp(2rem, 4vw, 3rem) 0 4rem; }
.desk__head { margin-bottom: 2rem; }
.pou { font-size: .95rem; color: var(--ink-2); border-left: 3px solid var(--margin); padding: .2rem 0 .2rem .9rem; max-width: 52rem; }
.bookbar { background: var(--ok-bg); border-radius: 4px; padding: .8rem 1rem; }
.desk__grid { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; align-items: start; }
.setup { background: var(--card); border: 1px solid var(--rule-2); border-radius: 4px; padding: 1.2rem; }
.step { border: 0; padding: 0 0 1.2rem; margin: 0 0 1.2rem; border-bottom: 1px solid var(--rule); min-width: 0; }
.step:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.step[disabled] { opacity: .5; }
.step__h { display: flex; align-items: center; gap: .6rem; font: 700 1.1rem var(--serif); padding: 0; margin-bottom: .8rem; }
.step__no { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 2px solid var(--ink); border-radius: 50%; font: 700 .95rem var(--sans); }
.drop { position: relative; border: 2px dashed var(--rule-2); border-radius: var(--r); background: var(--paper); text-align: center; transition: border-color .15s, background .15s; }
.drop--over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--paper)); }
.drop__label { display: grid; gap: .2rem; padding: 1.4rem 1rem; cursor: pointer; min-height: 88px; }
.drop__big { font: 700 1.1rem var(--serif); color: var(--brand); }
.drop__small { font-size: .88rem; color: var(--ink-2); }
.drop__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop__input:focus-visible + * , .drop:focus-within { outline: 3px solid var(--brass); outline-offset: 2px; }
.drop__or { margin: .8rem 0 .4rem; }
.drop__or .pill { width: 100%; }
.drop__note { font-size: .85rem; color: var(--ink-2); margin: 0; }
.status { font-size: .9rem; margin: .6rem 0 0; color: var(--active); }
.status:empty { display: none; }
.status--bad { color: var(--warn-ink); }
.jump { display: none; margin: .6rem 0 0; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.jump a::after { content: " \2193"; white-space: pre; }
.field { display: grid; gap: .3rem; margin-bottom: .85rem; font-size: .94rem; }
.field > span { font-weight: 500; }
.field em { font-style: normal; color: var(--ink-2); font-weight: 400; font-size: .85rem; }
.field select, .field input[type="text"], .field input[type="date"], .field input[type="number"] { width: 100%; min-height: 44px; padding: .5rem .6rem; font: 400 1rem var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule-2); border-radius: var(--r); }
.field--num { grid-template-columns: 6.5rem 5.5rem 1fr; align-items: center; gap: .6rem; }
.field--num > span:last-child { color: var(--ink-2); font-weight: 400; font-size: .88rem; }
.radios { border: 0; padding: 0; margin: 0 0 .8rem; font-size: .94rem; }
.radios legend { font-weight: 500; padding: 0; margin-bottom: .2rem; }
.radios label { display: flex; align-items: center; gap: .5rem; min-height: 40px; }
.radios input { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
.warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 4px; padding: .7rem .9rem; font-size: .92rem; }
.fe { color: var(--warn-ink); font-size: .9rem; font-weight: 500; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: 1rem; }
.preset { min-height: 52px; border: 1.5px solid var(--rule-2); background: var(--paper); color: var(--ink); border-radius: var(--r); font: 600 .84rem/1.15 var(--sans); cursor: pointer; padding: .3rem; }
.preset small { display: block; font-weight: 400; color: var(--ink-2); }
.preset[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--paper)); }

.results { display: grid; gap: 1.4rem; min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--rule-2); border-radius: 4px; padding: 1.3rem 1.4rem; min-width: 0; margin-bottom: 1.4rem; }
.results .panel { margin-bottom: 0; }
.panel--quiet { background: transparent; }
.panel--save { border: 2px solid var(--brand); }
.panel__h { font-size: 1.35rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: 1rem; }
.panel__meta { font: 400 .88rem var(--sans); color: var(--ink-2); }
.mkey { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; margin: 0 0 .4rem; }
.mkey__i { display: inline-flex; align-items: center; gap: .4rem; }
.mkey__sw { width: .85rem; height: .85rem; border-radius: 2px; display: inline-block; }
.mkey__sw--ret { background: var(--brand); } .mkey__sw--first { background: var(--cooling); }
.mchart__wrap { overflow-x: auto; position: relative; }
.mchart { display: block; width: 100%; min-width: 520px; height: auto; }
.mchart__grid { stroke: var(--rule); stroke-width: 1; }
.mchart__first { fill: var(--cooling); } .mchart__ret { fill: var(--brand); }
.mchart__v { font: 600 13px var(--sans); fill: var(--ink); } .mchart__x { font: 400 12px var(--sans); fill: var(--ink-2); }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem; }
.dlbtn { display: grid; text-align: left; gap: .1rem; min-height: 56px; padding: .6rem .8rem; border: 1.5px solid var(--rule-2); border-left-width: 5px; background: var(--paper); color: var(--ink); border-radius: var(--r); cursor: pointer; font: 400 .9rem var(--sans); }
.dlbtn:hover:not(:disabled) { border-color: var(--brand); }
.dlbtn:disabled { opacity: .5; cursor: default; }
.dlbtn--big { grid-column: span 2; border-left-color: var(--active); }
.dlbtn--big + .dlbtn--big { border-left-color: var(--cooling); }
.dlbtn--new { border-left-color: var(--new); } .dlbtn--active { border-left-color: var(--active); } .dlbtn--cooling { border-left-color: var(--cooling); } .dlbtn--lapsed { border-left-color: var(--lapsed); } .dlbtn--wonback { border-left-color: var(--wonback); }
.dlbtn__t { font: 700 1rem var(--serif); } .dlbtn__n { color: var(--ink-2); } .dlbtn__d { font-size: .82rem; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.fchip { min-height: 40px; padding: .3rem .8rem; border: 1.5px solid var(--rule-2); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 .88rem var(--sans); cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tablewrap { overflow-x: auto; position: relative; }   /* relative: keeps .vh labels inside the scroller */
.custs, .snaps, .plain { border-collapse: collapse; width: 100%; font-size: .92rem; }
.custs th, .custs td, .snaps th, .snaps td, .plain th, .plain td { padding: .5rem .6rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.custs th.num, .custs td.num, .snaps th.num, .snaps td.num, .plain th.num, .plain td.num { text-align: right; }
.custs thead th, .snaps thead th, .plain thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.custs thead button { background: none; border: 0; padding: .3rem 0; min-height: 40px; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.custs th[aria-sort="ascending"] button::after { content: " \2191"; } .custs th[aria-sort="descending"] button::after { content: " \2193"; }
.custs__id { font-family: var(--mono); font-size: .86rem; word-break: break-all; }
.stag { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.stag::before { content: ""; width: .7rem; height: .7rem; border-radius: 2px; background: var(--lapsed); }
.stag--new::before { background: var(--new); } .stag--active::before { background: var(--active); } .stag--cooling::before { background: var(--cooling); } .stag--wonback::before { background: var(--wonback); }
.snaplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .2rem 1.2rem; margin: 0 0 1rem; }
.snaplist div { display: flex; justify-content: space-between; gap: .6rem; border-bottom: 1px dotted var(--rule-2); padding: .3rem 0; font-size: .92rem; }
.snaplist dt { color: var(--ink-2); } .snaplist dd { margin: 0; font-weight: 600; }
.empty { background: var(--card); border: 1px dashed var(--rule-2); border-radius: 4px; padding: 2rem; min-height: 320px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 2.3rem, var(--rule) 2.3rem calc(2.3rem + 1px)); }
.empty__h { font: 700 1.6rem var(--serif); }
.empty__steps { padding-left: 1.2rem; color: var(--ink-2); }

/* book */
.flash { background: var(--ok-bg); border-radius: 4px; padding: .7rem 1rem; font-weight: 500; }
.keybox { background: var(--card); border: 2px solid var(--brass); border-radius: 4px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.keybox__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.keybox__in { flex: 1 1 16rem; min-width: 0; min-height: 44px; padding: .5rem .6rem; font: 400 .92rem var(--mono); color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule-2); border-radius: var(--r); }
.trend__wrap { overflow-x: auto; position: relative; }
.trend { display: block; width: 100%; min-width: 560px; height: auto; }
.trend__grid { stroke: var(--rule); } .trend__x { font: 400 11px var(--sans); fill: var(--ink-2); }
.trend__l { font: 600 12px var(--sans); fill: var(--ink); }
.snaps__sub { display: block; font: 400 .78rem var(--sans); color: var(--ink-2); white-space: nowrap; }
.snaps tbody th { white-space: nowrap; }
.delta { display: block; font-size: .76rem; color: var(--ink-2); }
.setform { max-width: 34rem; }
.delform { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--rule); max-width: 34rem; }

/* documents */
.doc { padding: clamp(2rem, 4vw, 3.5rem) 0 4rem; }
.doc .h2 { margin-top: 2.6rem; padding-top: 1rem; border-top: 2px solid var(--ink); font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.toc { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 1.5rem 0; padding: .8rem 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.toc a { display: inline-flex; align-items: center; min-height: 40px; }
.defs { margin: 0 0 1rem; }
.defs div { padding: .8rem 0; border-bottom: 1px dotted var(--rule-2); }
.defs dt { font: 700 1.05rem var(--serif); margin-bottom: .25rem; }
.defs dd { margin: 0; color: var(--ink-2); }
.rules { padding-left: 1.4rem; }
.rules li { margin-bottom: .7rem; }
.rules .stag { margin-right: .4rem; }
.plain { margin: 1rem 0 1.4rem; }
.plain tbody th { font-weight: 500; }
.msg { padding: clamp(3rem, 8vw, 6rem) 0; }

/* colophon */
.colophon { background: var(--paper-2); border-top: 3px double var(--rule-2); padding: 3rem 0 1.5rem; font-size: .94rem; }
.colophon__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.colophon__say { font: 700 1.15rem var(--serif); margin: .6rem 0; }
.colophon__price { color: var(--ink-2); }
.colophon__h { font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: .4rem; }
.colophon__col { display: grid; align-content: start; }
.colophon__col a { color: var(--ink); text-decoration: none; padding: .55rem 0; min-height: 40px; }
.colophon__col a:hover { text-decoration: underline; }
.colophon__fine { border-top: 1px solid var(--rule-2); padding-top: 1.2rem; font-size: .86rem; color: var(--ink-2); }
.colophon__fine p { margin-bottom: .4rem; }
.colophon__fine a { display: inline-block; padding: .5rem 0; }

/* responsive */
@media (max-width: 1020px) {
  .desk__grid { grid-template-columns: 1fr; }
  .jump:not([hidden]) { display: block; }
  .setup { position: static; }
}
@media (max-width: 900px) {
  .split, .fine3 { grid-template-columns: 1fr; }
  .colophon__grid { grid-template-columns: 1fr 1fr; }
  .colophon__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .mast__nav, .mast__cta { display: none; }
  .mast__menu { display: block; }
  .mast__in { min-height: 64px; }
  .wm__name { font-size: 1.35rem; }
  .reach__list { columns: 1; }
  .dlbtn--big { grid-column: auto; }
  .sheet, .sheet--read { width: calc(100% - 2rem); }
  /* the price list stacks each line: name and price on top, then what it gives, then its term (roles keep it a table) */
  .pricelist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pricelist, .pricelist tbody, .pricelist__cap { display: block; }
  .pricelist tbody > tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--rule); }
  .pricelist tbody > tr.pricelist__row--pass { background: color-mix(in srgb, var(--brand) 5%, var(--card)); margin: 0 calc(-1 * clamp(.9rem, 2.4vw, 1.8rem)); padding-inline: clamp(.9rem, 2.4vw, 1.8rem); }
  .pricelist tbody > tr:last-child { border-bottom: 0; }
  .pricelist tbody > tr > * { display: block; padding: 0; border: 0; background: none; }
  .pricelist tbody th[scope="row"] { grid-column: 1; grid-row: 1; width: auto; }
  .pricelist tbody .pricelist__amt { grid-column: 2; grid-row: 1; font-size: 1.45rem; }
  .pricelist__what { grid-column: 1 / -1; margin-top: .3rem; }
  .pricelist__term { grid-column: 1 / -1; width: auto; margin-top: .3rem; font-size: .88rem; }
  .pricelist__term::before { content: "Term: "; font-weight: 600; }
  .folio__t td.folio__pct { width: auto; }
  .folio__bar { width: 3.2rem; margin-right: .4rem; }
  .folio__t td.folio__n { font-size: 1.2rem; }
  .folio__stamp { transform: rotate(-2deg); transform-origin: left center; }
}
@media (max-width: 420px) {
  .field--num { grid-template-columns: 1fr 5.5rem; }
  .field--num > span:last-child { grid-column: 1 / -1; }
  .presets { grid-template-columns: 1fr; }
  .colophon__grid { grid-template-columns: 1fr; }
  .folio__bar { display: none; }
  .folio__page { --m1: .95rem; padding-left: calc(var(--m1) + 1.05rem); padding-right: .8rem; }
  .folio__t thead th { letter-spacing: .02em; font-size: .7rem; padding-inline: .3rem; }
  .folio__t tbody > tr > *, .folio__t tfoot > tr > * { padding-inline: .3rem; }
  .folio__label { padding: 1rem .9rem; column-gap: .75rem; }
  .folio__icon { width: 1.8rem; height: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .mast, .colophon, .setup, .filters, .dl, .panel--save, .folio__entry { display: none !important; }
  body { background: #fff; color: #000; }
  .desk__grid { grid-template-columns: 1fr; }
}
