/* The Bill. Material: continuous-form paper, thermal print, one stamp red, carbon-copy pink and blue. */
:root {
  --desk: #d6d2c6;
  --paper: #fcfbf7;
  --white: #ffffff;
  --ink: #1b1b19;
  --grey: #55554f;      /* thermal print grey, 7:1 on paper */
  --faint: #a9a69b;     /* rules and dots only, never text */
  --hair: #d9d6cb;
  --band: #eef3ea;      /* greenbar */
  --red: #b3231a;       /* stamp */
  --blue: #23427c;      /* carbon blue: links */
  --pink: #f8e6e3;      /* carbon pink: the slips you send back */
  --gold: #fbf3d0;      /* goldenrod copy: notes not yet written */
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --slab: "Besley", "Rockwell", "Source Serif 4", Georgia, serif;
  --pad: clamp(18px, 4.2vw, 64px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 18px/1.58 var(--serif); font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 1px; }
.num, td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums lining-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 20; font: 500 15px var(--mono); }
.skip:focus { top: 8px; }
html:not(.js) .js-only { display: none !important; }
html.js .nojs-only { display: none !important; }
.cap { font: 500 13px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.fine, .help { font: 400 14px/1.5 var(--mono); color: var(--grey); margin: 10px 0 0; max-width: 74ch; }
h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.22rem; line-height: 1.25; }
p { margin: 0 0 .9em; }

/* ---------- the sheet ---------- */
.sheet { position: relative; max-width: 1360px; margin: 0 auto; background: var(--paper); padding: 0 var(--pad); }
@media (min-width: 1120px) {
  body { padding: 28px 24px 0; }
  .sheet { padding: 0 84px; box-shadow: 0 1px 0 rgba(0,0,0,.12), 0 18px 40px -24px rgba(0,0,0,.35); }
  .sheet::before, .sheet::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34px;
    background: radial-gradient(circle at 17px 17px, var(--desk) 0 5.5px, transparent 6px) 0 6px / 34px 34px repeat-y; }
  .sheet::before { left: 0; border-right: 1px dashed var(--faint); }
  .sheet::after { right: 0; border-left: 1px dashed var(--faint); }
}

/* ---------- masthead ---------- */
.mast { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 0 16px; border-bottom: 3px double var(--ink); }
.mast-site { font: 800 1.12rem/1 var(--slab); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.mark { display: inline-flex; color: var(--red); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font: 400 14px/1.4 var(--mono); color: var(--grey); }
.crumbs li + li::before { content: "/"; padding: 0 8px; color: var(--faint); }
.crumbs a { color: var(--grey); display: inline-block; padding: 4px 0; }
.mast-acct { margin: 0; font: 400 14px/1.5 var(--mono); display: grid; gap: 1px; }
.mast-acct div { display: grid; grid-template-columns: 15ch auto; gap: 12px; }
.mast-acct dt { color: var(--grey); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.mast-acct dd { margin: 0; }
@media screen and (max-width: 760px) { .mast { flex-direction: column; gap: 8px; padding-top: 14px; } .mast-acct div:nth-child(n+2) { display: none; } .mast-acct div { grid-template-columns: auto auto; justify-content: start; gap: 10px; } }

/* ---------- opening: headline + the slip you fill in ---------- */
.open { display: grid; gap: clamp(20px, 3vw, 40px); padding: clamp(22px, 3.4vw, 46px) 0 clamp(18px, 2vw, 28px); }
.open-text { position: relative; }
h1 { font-size: clamp(2rem, 1.05rem + 4.3vw, 4.1rem); font-weight: 800; letter-spacing: -.022em; line-height: 1.02; max-width: 17ch; }
.lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.28rem); line-height: 1.5; max-width: 58ch; margin: 18px 0 0; }
.stamp { display: inline-grid; margin: 20px 0 0; padding: 7px 14px 6px; border: 3px double var(--red); color: var(--red); font: 600 13px/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-align: center; transform: rotate(-3deg); transform-origin: left center; }
.stamp span:first-child { font-size: 17px; letter-spacing: .12em; }
@media (min-width: 1000px) {
  .open { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: start; }
  .stamp { margin: 34px 0 0 6px; transform: rotate(-5deg); padding: 9px 18px 8px; }
  .stamp span:first-child { font-size: 20px; }
}

.slip { border: 2px solid var(--ink); background: var(--white); display: grid; }
.amount { padding: 16px clamp(14px, 2vw, 22px) 16px; border-bottom: 2px solid var(--ink);
  background:
    repeating-linear-gradient(115deg, transparent 0 9px, rgba(35,66,124,.055) 9px 10px),
    repeating-linear-gradient(65deg, transparent 0 9px, rgba(35,66,124,.055) 9px 10px), var(--white); }
.amount-box { display: flex; align-items: center; gap: 8px; margin-top: 4px; border-bottom: 2px solid var(--ink); background: var(--white); padding: 2px 8px 2px 10px; }
.amount-cur { font: 500 clamp(1.8rem, 6vw, 3.1rem)/1 var(--mono); color: var(--grey); }
#price { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); font: 600 clamp(2.3rem, 8.6vw, 4.2rem)/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; padding: 6px 0; }
#price:focus { outline: none; }
.amount-box:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { font: 500 14px/1 var(--mono); min-width: 62px; min-height: 30px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; padding: 6px 8px; }
.step:hover { background: var(--ink); color: var(--paper); }
.amount-under { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 560px) { .amount-under { grid-template-columns: 1fr auto; align-items: end; gap: 22px; } .steps { flex-direction: row; } }
@media screen and (max-width: 559px) { .step { min-height: 44px; } }
@media screen and (max-width: 760px) { .seg span { min-width: 46px; height: 44px; } .sortbar button { min-height: 44px; padding: 0 13px; } .sortbar .cap { flex-basis: 100%; margin: 0 0 6px; } .sortbar button:first-of-type { margin-left: 0; } }
input[type=range] { width: 100%; height: 36px; margin: 0; background: transparent; accent-color: var(--ink); cursor: pointer; }
.near { display: grid; gap: 4px; }
select { font: 400 15px/1.2 var(--mono); color: var(--ink); background: var(--white); border: 1.5px solid var(--ink); border-radius: 0; padding: 9px 10px; min-height: 44px; max-width: 100%; }
.assume { border: 0; margin: 0; padding: 14px clamp(14px, 2vw, 22px) 16px; min-width: 0; }
.assume + .assume { border-top: 1px dashed var(--ink); }
.assume legend { padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.assume .row { clear: both; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 7px 0; border-bottom: 1px dotted var(--faint); font: 400 15px/1.3 var(--mono); }
.assume .row:last-of-type { border-bottom: 0; }
.row-l { flex: 1 1 14ch; }
.seg { display: inline-flex; }
.seg label { position: relative; margin-left: -1.5px; }
.seg input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-width: 44px; height: 40px; border: 1.5px solid var(--ink); font: 500 16px var(--mono); background: var(--white); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; position: relative; z-index: 1; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font: 400 15px/1.35 var(--mono); min-height: 40px; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin: 0; }
.wi { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); }
.wi input, .writein { width: 9ch; font: 500 16px var(--mono); text-align: right; border: 0; border-bottom: 1.5px solid var(--ink); background: var(--gold); padding: 7px 6px; color: var(--ink); min-height: 36px; border-radius: 0; }
.wi input::placeholder, .writein::placeholder { color: var(--grey); font-style: italic; font-weight: 400; }
@media (min-width: 1000px) { .slip { grid-template-columns: 1fr 1fr; } .amount { grid-column: 1 / -1; } .assume + .assume { border-top: 0; border-left: 1px dashed var(--ink); } }

/* ---------- lead sentence ---------- */
.lead { font: 500 clamp(1.15rem, 1rem + .9vw, 1.6rem)/1.36 var(--slab); max-width: 46ch; margin: 0 0 clamp(22px, 2.6vw, 34px); text-wrap: pretty; }
.result { padding-top: clamp(8px, 2vw, 26px); }
.lead b { font-weight: 800; background: linear-gradient(transparent 62%, var(--gold) 62%); }

/* ---------- summary ledger + receipt ---------- */
.result { display: grid; gap: 32px; padding-bottom: clamp(30px, 4vw, 54px); }
@media (min-width: 1060px) { .result { grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); grid-template-rows: auto 1fr; grid-template-areas: "sum bill" "read bill"; gap: 40px clamp(28px, 3.4vw, 56px); align-items: start; }
  .sum { grid-area: sum; } .receipt-wrap { grid-area: bill; } .result .read { grid-area: read; } }
.sum-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 20px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.sum-head h2 { font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); }
.sortbar { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.sortbar .cap { margin-right: 10px; }
.sortbar button { font: 500 14px/1 var(--mono); border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); padding: 0 11px; min-height: 36px; margin-left: -1.5px; cursor: pointer; }
.sortbar button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.ledger { width: 100%; border-collapse: collapse; font: 400 15px/1.3 var(--mono); }
.ledger thead th { font: 500 13px/1.25 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--grey); text-align: left; vertical-align: bottom; padding: 10px 8px 8px; border-bottom: 1px solid var(--ink); }
.ledger thead th.num { text-align: right; }
.ledger .unit { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; }
.ledger td, .ledger tbody th { padding: 11px 8px 15px; text-align: right; vertical-align: baseline; white-space: nowrap; }
.ledger tbody th { text-align: left; font-weight: 400; white-space: normal; }
.ledger tbody tr { --a: 0%; --b: 0%; --c: 0%;
  background-image: linear-gradient(90deg, var(--ink) 0 var(--a), #8d8a7f var(--a) var(--b), var(--red) var(--b) var(--c), transparent var(--c));
  background-size: 100% 5px; background-position: 0 100%; background-repeat: no-repeat; }
.ledger tbody tr:nth-child(even) { background-color: var(--band); }
.pick { font: 700 1.08rem/1.2 var(--slab); color: var(--ink); text-decoration: none; display: inline-block; padding: 2px 0; border-bottom: 1.5px solid var(--faint); }
.pick:hover { border-bottom-color: var(--ink); }
.ledger .kind { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; }
.ledger .kind-rate, .ledger .vs { display: none; }
.dv { white-space: nowrap; }
.ledger tr.is-sel th { box-shadow: inset 5px 0 0 var(--red); }
.ledger tr.is-sel .pick { border-bottom-color: var(--red); }
.ledger tbody th { padding-left: 14px; }
.c-tot b { font-weight: 600; font-size: 1.06rem; }
.c-dif.less { color: #1d5a2c; } .c-dif.more { color: var(--red); }
.basemark { font-size: 13px; color: var(--grey); white-space: normal; display: inline-block; line-height: 1.15; max-width: 9ch; text-align: right; }
.blank { display: block; font-size: 13px; color: var(--grey); font-style: italic; }
.key { font: 400 14px/1.5 var(--mono); color: var(--grey); margin: 14px 0 0; }
.k { display: inline-block; width: 26px; height: 6px; margin: 0 5px 1px 10px; vertical-align: middle; }
.k:first-child { margin-left: 0; }
.k-tax { background: var(--ink); } .k-com { background: #8d8a7f; } .k-fee { background: var(--red); }

@media screen and (max-width: 760px) {
  .ledger, .ledger tbody { display: block; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ledger tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; padding: 13px 10px 17px 14px; border-bottom: 1px solid var(--hair); }
  .ledger td, .ledger tbody th { padding: 0; white-space: normal; }
  .ledger tbody th { grid-column: 1; grid-row: 1 / span 2; padding-left: 0; }
  .ledger tr.is-sel { box-shadow: inset 5px 0 0 var(--red); } .ledger tr.is-sel th { box-shadow: none; }
  .ledger .kind-rate { display: inline; }
  .ledger td.c-tot { grid-column: 2; grid-row: 1; text-align: right; }
  .ledger .c-tot b { font-size: 1.35rem; letter-spacing: -.02em; }
  .ledger td.c-dif { grid-column: 2; grid-row: 2; text-align: right; font-size: 14px; white-space: nowrap; }
  .ledger .vs { display: inline; color: var(--grey); }
  .ledger td.c-rate { display: none; }
  .ledger td.c-tax, .ledger td.c-com, .ledger td.c-fee { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; padding: 4px 0; border-top: 1px dotted var(--faint); }
  .ledger td.c-tax { margin-top: 10px; }
  .ledger td.c-tax::before, .ledger td.c-com::before, .ledger td.c-fee::before { content: attr(data-l); color: var(--grey); margin-right: auto; }
  .ledger td.c-fee .blank { display: inline; order: 2; margin: 0; }
  .ledger td.c-fee { flex-wrap: nowrap; }
  .basemark { max-width: none; }
}

/* the receipt */
.receipt-wrap { filter: drop-shadow(0 2px 1px rgba(0,0,0,.16)) drop-shadow(0 14px 22px rgba(0,0,0,.14)); }
.receipt { background: var(--white); padding: 34px clamp(18px, 2.2vw, 28px) 36px; font: 400 15px/1.45 var(--mono); max-width: 470px; margin: 0 auto; scroll-margin-top: 12px;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 16px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 16px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x; }
.rc-head { text-align: center; padding-bottom: 14px; border-bottom: 1px dashed var(--ink); }
.rc-kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin: 0 0 6px; }
.rc-town { font: 800 2.3rem/1 var(--slab); letter-spacing: -.02em; }
.rc-sub { margin: 8px 0 0; } .rc-ref { margin: 2px 0 0; color: var(--grey); font-size: 13px; letter-spacing: .06em; }
.rc-lines { list-style: none; margin: 0; padding: 0; }
.ln { padding: 12px 0 11px; border-bottom: 1px dotted var(--faint); }
.ln-top { display: flex; align-items: baseline; gap: 6px; }
.ln-label { font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; }
.ln-dots { flex: 1; min-width: 12px; border-bottom: 2px dotted var(--faint); transform: translateY(-4px); }
.ln-amt { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.ln-detail { margin: 2px 0 0; font-size: 14px; }
.ln-meta { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--grey); }
.ln-meta a { color: var(--grey); }
.ln-ctl { margin: 7px 0 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); }
.ln-ctl select { font-size: 14px; padding: 6px 8px; min-height: 38px; text-transform: none; letter-spacing: 0; }
.blankamt { font-weight: 400; font-style: italic; color: var(--grey); background: var(--gold); padding: 1px 8px; }
.rc-total { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin-top: -1px; padding: 12px 0 10px; }
.rc-trow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.rc-trow .big { font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.1; }
.rc-trow.sub { font-weight: 400; text-transform: none; letter-spacing: 0; margin-top: 3px; }
.rc-trow.less .num { color: #1d5a2c; } .rc-trow.more .num { color: var(--red); }
.rc-blanks { font-size: 13px; color: var(--grey); margin: 8px 0 0; font-style: italic; }
.rc-why { margin-top: 16px; font: 400 16px/1.5 var(--serif); }
.rc-why-h { font: 600 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; color: var(--red); }
.rc-why p { margin: 0 0 6px; } .rc-why-s { font: 400 13px/1.5 var(--mono); color: var(--grey); }
.rc-not { font-size: 13px; line-height: 1.5; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--ink); color: var(--grey); }
.rc-not b { color: var(--ink); }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; align-items: center; }
.btn { font: 600 15px/1.2 var(--mono); background: var(--ink); color: var(--paper); border: 2px solid var(--ink); padding: 12px 18px; min-height: 46px; cursor: pointer; border-radius: 0; }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn.ghost { background: transparent; color: var(--ink); } .btn.ghost:hover { background: var(--ink); color: var(--paper); }
.copied { font: 400 14px var(--mono); color: var(--grey); flex-basis: 100%; text-align: center; min-height: 1.2em; }

/* ---------- perforations and slips ---------- */
.perf { margin: 0 calc(var(--pad) * -1); border-top: 2px dashed var(--faint); text-align: center; height: 0; }
@media (min-width: 1120px) { .perf { margin: 0 -50px; } }
.perf span { position: relative; top: -13px; background: var(--paper); padding: 0 14px; font: 400 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.remit .perf span { background: var(--pink); top: -1px; display: inline-block; padding: 6px 14px 0; }
.remit { background: var(--pink); margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
@media (min-width: 1120px) { .remit { margin: 0 -50px; padding: 0 50px; } .remit .perf { margin: 0 -50px; } }
.remit-in { display: grid; gap: 22px clamp(28px, 4vw, 64px); padding: clamp(34px, 4vw, 52px) 0 clamp(30px, 4vw, 48px); }
@media (min-width: 900px) { .remit-in { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.remit-text p { max-width: 58ch; }
.remit-text h2 { margin-bottom: 14px; max-width: 18ch; }
.next { font: 400 14px/1.55 var(--mono); }
.form { display: grid; gap: 6px; font: 400 15px/1.4 var(--mono); align-content: start; }
.form > label:not(.check) { margin-top: 8px; font-weight: 500; }
.form input[type=text], .form input[type=email] { font: 400 16px var(--mono); border: 1.5px solid var(--ink); background: var(--white); padding: 11px 12px; min-height: 46px; width: 100%; border-radius: 0; color: var(--ink); }
.form input::placeholder { color: #6d6b63; }
.form .btn { margin-top: 12px; justify-self: start; }
.opt { color: var(--grey); font-weight: 400; }
.done { margin-top: 12px; border: 2px solid var(--ink); background: var(--white); padding: 14px 16px; }
.done-h { font: 700 1.1rem/1.3 var(--slab); margin: 0 0 4px; }
.proto { font: 400 13px var(--mono); color: var(--grey); margin: 0 0 8px; }
.done summary { cursor: pointer; font-weight: 500; padding: 6px 0; }
.payload { font: 400 13px/1.5 var(--mono); background: var(--paper); border: 1px dashed var(--faint); padding: 10px 12px; margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.form .err { color: var(--red); font-size: 14px; margin: 2px 0 0; }

/* ---------- how to read ---------- */
.whys, .sharon, .sources { padding: clamp(36px, 5vw, 68px) 0; }
.read h2 { font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.read-grid { display: grid; gap: 22px clamp(24px, 3vw, 44px); margin-top: 18px; }
@media (min-width: 720px) { .read-grid { grid-template-columns: 1fr 1fr; } }
.read-grid p { font-size: 17px; line-height: 1.52; }
.read-grid > div { padding-top: 0; }
.read-grid h3 { margin-bottom: 8px; }
.read-grid p { margin: 0; }
.sec-lede { max-width: 62ch; margin: 12px 0 0; color: var(--ink); }

/* ---------- why each town differs ---------- */
.whys { border-top: 2px solid var(--ink); }
.why-list { margin: 26px 0 0; display: grid; gap: 0 clamp(24px, 3vw, 48px); }
@media (min-width: 760px) { .why-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1240px) { .why-list { grid-template-columns: 1fr 1fr 1fr; } }
.why { border-top: 1px solid var(--ink); padding: 12px 0 16px; }
.why dt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.why dt .num { font-weight: 600; font-size: 1.05rem; }
.why dd { margin: 6px 0 0; }
.why dd p { margin: 0; font-size: 17px; line-height: 1.5; }
.why .why-f { font: 400 13.5px/1.5 var(--mono); color: var(--grey); margin-top: 6px; }

/* ---------- essay ---------- */
.essay { padding-bottom: clamp(36px, 5vw, 68px); }
.essay-head { padding: clamp(40px, 5vw, 68px) 0 0; }
.essay-head h2 { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.1rem); font-weight: 800; max-width: 22ch; letter-spacing: -.02em; line-height: 1.05; }
.byline { font: 400 14px var(--mono); color: var(--grey); margin: 14px 0 0; }
.essay-cols { display: grid; gap: 34px clamp(36px, 5vw, 80px); margin-top: 26px; }
@media (min-width: 1060px) { .essay-cols { grid-template-columns: minmax(0, 62ch) minmax(0, 1fr); align-items: start; } .essay-side { position: sticky; top: 20px; } }
.prose { max-width: 64ch; }
.prose h3 { margin: 1.7em 0 .5em; font-size: 1.36rem; }
.answer { font-size: 1.16rem; line-height: 1.5; }
.quote { margin: 1.3em 0; padding: 4px 0 4px 20px; border-left: 5px solid var(--red); }
.quote p { font: 500 1.5rem/1.25 var(--slab); margin: 0 0 6px; text-wrap: balance; }
.quote footer { font: 400 14px/1.4 var(--mono); color: var(--grey); }
.ledger-list { list-style: none; margin: 0 0 1em; padding: 0; border-top: 1px solid var(--ink); }
.ledger-list li { padding: 10px 0 10px 22px; border-bottom: 1px dotted var(--faint); position: relative; }
.ledger-list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 10px; height: 2px; background: var(--ink); }
.gap { font: 400 14px/1.55 var(--mono); border: 1px dashed var(--ink); padding: 10px 12px; background: var(--white); }
.gap-l { display: inline-block; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-right: 8px; color: var(--red); }
.dnote { background: var(--gold); border-left: 5px solid var(--ink); padding: 14px 16px 12px; margin: 1.4em 0 0; position: relative; }
.dnote::after { content: ""; position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 22px 22px 0; border-color: var(--paper) var(--paper) #e6dba6 #e6dba6; }
.dnote-l { font: 600 13px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
.dnote p:last-child { margin: 0; font-size: 17px; }
.chart { margin: 0; border: 2px solid var(--ink); background: var(--white); padding: 16px clamp(12px, 1.6vw, 20px) 14px; }
.chart figcaption { font-size: 16px; line-height: 1.45; margin-bottom: 10px; }
.ratechart { width: 100%; border-collapse: collapse; font: 400 14px/1.2 var(--mono); }
.ratechart th, .ratechart td { padding: 6px 4px; text-align: left; white-space: nowrap; }
.ratechart thead th { font-size: 13px; font-weight: 500; color: var(--grey); vertical-align: bottom; border-bottom: 1px solid var(--ink); white-space: normal; line-height: 1.25; }
.ratechart td.num, .ratechart th.num { text-align: right; }
.ratechart tbody th { font-weight: 400; }
.ratechart tbody tr:nth-child(even) { background: var(--band); }
.ratechart .rb { width: 22%; padding-left: 6px; }
.ratechart .rb i { display: block; height: 9px; background: var(--ink); }
.ratechart .rb2 i { background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px); }
.ratechart tr.hl th, .ratechart tr.hl td { font-weight: 600; }
.ratechart tr.hl .rb i { background: var(--red); } .ratechart tr.hl .rb2 i { background: repeating-linear-gradient(90deg, var(--red) 0 3px, transparent 3px 5px); }
@media screen and (max-width: 620px) { .ratechart th:last-child, .ratechart td:last-child { display: none; } .ratechart .rb { width: 16%; } }
.photo { margin: 26px 0 0; }
.prose .photo { margin: 1.4em 0; }
.photo img { filter: grayscale(1) contrast(1.08); border: 1px solid var(--ink); width: 100%; }
.photo figcaption { font: 400 14px/1.45 var(--mono); margin-top: 8px; color: var(--ink); }
.credit { display: block; color: var(--grey); font-size: 13px; }

/* ---------- Sharon line by line ---------- */
.sharon > h2 { margin-top: clamp(40px, 5vw, 68px); font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
.sharon { padding-top: 0; }
.stubs-wrap { margin-top: 28px; }
.stubs-wrap h3 { margin-bottom: 6px; }
.stubs-wrap > p { max-width: 62ch; }
.stubs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); background: var(--pink); border: 2px solid var(--ink); }
@media (min-width: 820px) { .stubs { grid-template-columns: repeat(4, 1fr); } }
.stub { display: grid; gap: 2px; padding: 14px clamp(10px, 1.6vw, 20px) 14px; font: 400 14px/1.35 var(--mono); border-right: 2px dashed var(--ink); border-bottom: 2px dashed var(--ink); margin: 0 -2px -2px 0; }
.stub-n { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--grey); }
.stub-due { font: 700 1.1rem/1.2 var(--slab); }
.stub-amt { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.1rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-top: 6px; }
.stub-for { font-size: 13px; color: var(--grey); }
.sh-grid { display: grid; gap: 30px clamp(28px, 4vw, 64px); margin-top: 40px; }
@media (min-width: 860px) { .sh-grid { grid-template-columns: 1fr 1fr; } }
.sh-item { border-top: 2px solid var(--ink); padding-top: 14px; }
.sh-item h3 { margin-bottom: 8px; }
.sh-item p { max-width: 60ch; }
.sh-photo { margin: 0; }
.mini { border-collapse: collapse; font: 400 15px var(--mono); margin: 4px 0 14px; width: 100%; max-width: 380px; }
.mini th, .mini td { padding: 7px 8px; border-bottom: 1px dotted var(--faint); text-align: left; font-weight: 400; }
.mini thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); border-bottom: 1px solid var(--ink); }
.mini .num { text-align: right; }
.video { grid-column: 1 / -1; display: grid; border: 2px solid var(--ink); background: var(--white); }
@media (min-width: 760px) { .video { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.video-art { background: var(--ink); aspect-ratio: 16 / 9; }
.video-art svg { width: 100%; height: 100%; display: block; }
.video-text { padding: clamp(16px, 2.4vw, 30px); align-self: center; }
.video-text h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 8px 0 10px; }
.video-text p:last-child { margin: 0; max-width: 46ch; }

/* ---------- owners ---------- */
.owners { background: var(--pink); margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.owners .perf span { background: var(--pink); top: -1px; display: inline-block; padding: 6px 14px 0; }
@media (min-width: 1120px) { .owners { margin: 0 -50px; padding: 0 50px; } .owners .perf { margin: 0 -50px; } }
.owners-in { display: grid; gap: 30px clamp(28px, 4vw, 64px); padding: clamp(36px, 5vw, 60px) 0 clamp(36px, 5vw, 60px); }
@media (min-width: 960px) { .owners-in { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.owners-text > * { max-width: 62ch; }
.owners h2 { margin-bottom: 16px; max-width: 20ch; }
.sell { font-size: 1.16rem; }
.sell b { font-size: 1.2em; }
.form-owner { background: var(--white); border: 2px solid var(--ink); padding: clamp(16px, 2.2vw, 26px); }
.form-owner h3 { font-size: 1.45rem; }
.form-owner > p { font: 400 17px/1.5 var(--serif); margin: 6px 0 4px; }
.form-owner .next { font: 400 14px/1.55 var(--mono); margin-top: 12px; }

/* ---------- sources + footer ---------- */
.src-cols { display: grid; gap: 10px clamp(28px, 4vw, 64px); margin-top: 22px; }
@media (min-width: 900px) { .src-cols { grid-template-columns: 1fr 1fr; } }
.sources h3 { font: 600 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 18px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.src { list-style: none; margin: 0; padding: 0; font: 400 14px/1.55 var(--mono); }
.src li { padding: 8px 0; border-bottom: 1px dotted var(--faint); overflow-wrap: anywhere; break-inside: avoid; }
@media (min-width: 900px) { .src-towns { columns: 2; column-gap: clamp(28px, 4vw, 64px); } }
.foot { border-top: 3px double var(--ink); padding: 28px 0 40px; font: 400 14px/1.6 var(--mono); }
.foot-grid { display: grid; gap: 22px clamp(24px, 4vw, 56px); }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot-h { font: 800 1rem var(--slab); margin: 0 0 6px; }
.foot p { margin: 0 0 8px; max-width: 48ch; }
.eho { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.proto-strip { max-width: 1360px; margin: 0 auto; display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 10px var(--pad); font: 400 13px/1.5 var(--mono); color: #3a3a36; }
.proto-strip p { margin: 0; }
.proto-strip a { color: inherit; }
.proto-strip button { font: 500 13px var(--mono); background: none; border: 1px solid #3a3a36; color: inherit; padding: 6px 10px; min-height: 32px; cursor: pointer; flex: none; }

/* sort morph: rows glide instead of jumping (ignored where unsupported) */
@media (prefers-reduced-motion: no-preference) { ::view-transition-group(*) { animation-duration: .28s; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- print: one clean page, the summary and the open bill ---------- */
.print-only { display: none; }
@media print {
  @page { size: letter; margin: 10mm; }
  html, body { background: #fff; }
  body { padding: 0; font-size: 9.5pt; }
  .sheet { box-shadow: none; padding: 0; max-width: none; background: #fff; }
  .sheet::before, .sheet::after, .skip, .js-only, .nojs-only, .sortbar, .receipt-actions, .remit, .read, .whys, .essay, .sharon, .owners, .sources, .proto-strip, .stamp, .crumbs, .lede, .key, .amount .help, .ln-ctl, .rc-why-s, .rc-kicker, body > :not(.sheet) { display: none !important; }
  .print-only { display: block; font: 400 7.5pt/1.4 var(--mono); margin: 2pt 0 0; }
  .mast { padding: 0 0 4pt; border-bottom-width: 1.5pt; } .mast-site { font-size: 10pt; margin: 0; } .mast-acct { font-size: 7pt; } .mast-acct dt { font-size: 6.5pt; }
  .open { padding: 6pt 0 0; display: block; } h1 { font-size: 15pt; max-width: none; letter-spacing: -.01em; }
  .slip { border: 0; display: block; background: none; } .amount { padding: 3pt 0 0; background: none; border: 0; } .amount .cap { font-size: 7pt; display: inline; }
  .amount-box { border: 0; padding: 0; margin: 0; display: inline-flex; } #price, .amount-cur { font-size: 13pt; padding: 0; } #price { width: 9ch; flex: none; }
  .result { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-areas: "sum bill"; grid-template-rows: auto; gap: 14pt; padding: 6pt 0 0; }
  .lead { font-size: 9.5pt; margin: 0 0 6pt; max-width: none; } .lead b { background: none; }
  .sum-head { padding-bottom: 3pt; border-bottom-width: 1pt; } .sum-head h2 { font-size: 10.5pt; }
  .ledger { font-size: 7.5pt; } .ledger td, .ledger tbody th { padding: 3pt 3pt 5.5pt; } .ledger tbody th { padding-left: 6pt; }
  .ledger thead th { font-size: 6pt; padding: 3pt; } .pick { font-size: 9pt; border: 0; padding: 0; } .ledger .kind, .blank, .basemark { font-size: 6pt; margin: 0; }
  .c-tot b { font-size: 8.5pt; } .ledger tbody tr { background-size: 100% 3px; } .ledger tr.is-sel th { box-shadow: inset 3px 0 0 var(--red); }
  .fine { font-size: 6.5pt; margin-top: 5pt; max-width: none; }
  .receipt-wrap { filter: none; } .receipt { -webkit-mask: none; mask: none; border: 1pt solid #000; padding: 9pt 10pt; font-size: 7.5pt; max-width: none; }
  .rc-head { padding-bottom: 5pt; } .rc-town { font-size: 16pt; } .rc-sub { margin-top: 2pt; } .rc-ref { font-size: 6.5pt; }
  .ln { padding: 4pt 0 3.5pt; } .ln-label { font-size: 7.5pt; } .ln-amt { font-size: 8.5pt; } .ln-detail { font-size: 7pt; margin: 0; } .ln-meta { font-size: 6.2pt; margin: 1pt 0 0; line-height: 1.35; }
  .blankamt { font-size: 7pt; padding: 0 3pt; }
  .rc-total { padding: 5pt 0 4pt; border-width: 1pt; } .rc-trow { font-size: 7.5pt; } .rc-trow .big { font-size: 14pt; } .rc-blanks { font-size: 6.2pt; margin-top: 2pt; }
  .rc-why { font-size: 8pt; margin-top: 6pt; line-height: 1.35; } .rc-why-h { font-size: 6.5pt; margin: 0 0 1pt; } .rc-why p { margin: 0; } .rc-not { font-size: 6.2pt; margin-top: 5pt; padding-top: 4pt; }
  .foot { padding: 6pt 0 0; font-size: 6.2pt; line-height: 1.4; border-top: 1pt solid #000; margin-top: 8pt; } .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 10pt; } .foot-h { font-size: 7.5pt; margin: 0 0 1pt; } .foot p { margin: 0; } .eho { margin-top: 3pt; } .eho svg { width: 12px; height: 11px; }
  .foot-grid > div:last-child > p:not(.eho), .foot-grid > div:last-child .foot-h { display: none; }
  .foot-grid { grid-template-columns: 1fr auto; } .foot-grid > div:first-child, .rc-ref { display: none; } .rc-head { padding-bottom: 3pt; } .rc-why { margin-top: 4pt; }
  .ledger td, .ledger tbody th { padding-top: 2.5pt; padding-bottom: 4.5pt; } .ln { padding: 3pt 0; } .foot { margin-top: 5pt; padding-top: 4pt; }
  a { color: inherit !important; text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- design fixes 2026-11-11 (critic pass) ---------- */
/* helper and source text: larger, looser */
.fine, .help { font-size: 15px; line-height: 1.6; }
.cap, .rc-why-s, .proto, .perf span, .gap-l, .ledger thead th, .rc-why-h, .dnote-l { font-size: 14px; }
.why .why-f { font-size: 14px; }
.payload { font-size: 14px; }
/* placeholder note: a slim goldenrod slip, not a sticky-note block */
.dnote { padding: 8px 12px 8px; margin: 1.1em 0 0; border-left-width: 3px; font-size: 15.5px; line-height: 1.45; }
.dnote::after { display: none; }
.dnote-l { display: inline; margin: 0 6px 0 0; font-size: 13px; }
.dnote p:last-child { display: inline; font-size: 15.5px; }
.essay-side .dnote { margin-top: 16px; }
/* phone: price steppers in one row under the price */
@media screen and (max-width: 559px) { .amount-box { flex-wrap: wrap; padding-bottom: 8px; } #price { flex: 1 1 60%; } .steps { flex-direction: row; flex: 1 0 100%; gap: 8px; } .step { flex: 1 1 0; } }
@media screen and (max-width: 760px) { .cap, .rc-why-s, .proto, .perf span, .why .why-f { font-size: 13px; } }
