/* Duesline (ghbulldogs.us) - "Green-bar ledger". Own design system: Young Serif + Libre Franklin + Courier Prime,
   ledger green / green-bar / paper / copper / stamp red. No blue or gold (the school's colours). */
@font-face { font-family: "Young Serif"; src: url("fonts/youngserif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/librefranklin-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courierprime-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courierprime-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --green: #0f3b2d; --green-2: #1d5a45; --green-3: #2f7a5f; --bar: #e3efe4; --bar-2: #d2e5d4;
  --paper: #fbfaf4; --paper-2: #f2efe3; --card: #ffffff; --ink: #18211c; --ink-2: #47534c; --ink-3: #6b766f;
  --copper: #a4532a; --copper-2: #c8733f; --stamp: #b3261e; --line: #d6dccf; --line-2: #b9c3ba;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
  --r: 10px; --shadow: 0 1px 2px rgba(15, 59, 45, .08), 0 12px 32px -12px rgba(15, 59, 45, .28);
}
*, *::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.6 var(--sans); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--green-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--copper-2); outline-offset: 2px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
.frame { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.frame.narrow { max-width: 820px; }
.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* unofficial strip */
.unoff { background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); }
.unoff p { margin: 0; padding: 7px 0; }
.unoff b { color: var(--stamp); letter-spacing: .02em; }
.u-short { display: none; }

/* top bar */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.topbar-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-word { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -.01em; }
.mark { flex: none; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.mainnav a:hover { background: var(--bar); color: var(--green); }
.mainnav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--copper-2); border-radius: 0; }
.paychip { text-decoration: none; color: var(--ink); font-size: .85rem; font-weight: 600; border: 1.5px solid var(--copper); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.paychip-k { color: var(--copper); }
.paychip-p { font-weight: 500; color: var(--ink-2); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r);
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-ink { background: var(--green); color: var(--paper); }
.btn-ink:hover { background: var(--green-2); color: #fff; }
.btn-line { background: transparent; color: var(--green); border-color: var(--green); }
.btn-line:hover { background: var(--bar); color: var(--green); }
.btn-stamp { background: var(--stamp); color: #fff; }
.btn-stamp:hover { background: #8f1d16; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.textlink { color: var(--copper); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.textlink:hover { color: var(--green); }
.textlink-bad { color: var(--stamp); }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--green-2); font: 600 .95rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--copper); }
.eyebrow { font: 700 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin-bottom: 14px; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green-3); border-radius: 8px; padding: 12px 16px; max-width: 46em; }
.note-example { border-left-color: var(--copper-2); }
.note-bad { border-left-color: var(--stamp); }

/* hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 104px); color: #e9f1ea; background-color: var(--green);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(233, 241, 234, .05) 31px 32px); }
.hero .display { color: #fff; }
.hero .eyebrow { color: #f0b48d; }
.hero .lede { color: #cfe0d4; }
.hero .hero-price { color: #b9d4c2; }
.hero .hero-price a { color: #fff; }
.hero .hero-price a:hover, .hero .textlink:hover { color: #f0b48d; }
.hero .btn-ink { background: var(--paper); color: var(--green); }
.hero .btn-ink:hover { background: #fff; color: var(--green); }
.hero .textlink { color: #f0b48d; }
.hero .printout figcaption { color: #b9d4c2; }
.hero .printout-paper { box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 30px 60px -24px rgba(0, 0, 0, .6); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.display { font-size: clamp(3.1rem, 7.4vw, 6rem); line-height: .98; letter-spacing: -.02em; margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 30px 0 18px; }
.hero-price { font-size: .95rem; color: var(--ink-2); }

/* green-bar printout (hero) */
.printout { margin: 0; }
.printout figcaption { font-size: .82rem; color: var(--ink-3); margin-top: 12px; text-align: center; }
.printout-paper { position: relative; background: var(--card); padding: 26px 46px 22px; box-shadow: var(--shadow); transform: rotate(-1.4deg);
  font: 400 .86rem/1.55 var(--mono); color: #1f2a24; letter-spacing: .01em; }
.printout-paper::before, .printout-paper::after, .sheet-paper::before, .sheet-paper::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px;
  background: radial-gradient(circle at 13px 13px, var(--paper-2) 0 5px, transparent 5.5px) 0 0 / 26px 26px repeat-y; border-color: var(--line); border-style: dashed; border-width: 0; }
.printout-paper::before, .sheet-paper::before { left: 0; border-right-width: 1px; }
.printout-paper::after, .sheet-paper::after { right: 0; border-left-width: 1px; }
.po-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin: 0; border-bottom: 1.5px dashed #8fa597; padding-bottom: 6px; }
.po-sub { margin: 6px 0 10px; color: #42514a; }
.po-table { width: 100%; border-collapse: collapse; }
.po-table th { text-align: left; font-weight: 400; padding: 1px 6px; }
.po-table td { text-align: right; padding: 1px 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.po-table tr:nth-child(4n+1), .po-table tr:nth-child(4n+2) { background: var(--bar); }
.po-total th, .po-total td { font-weight: 700; border-top: 1.5px dashed #8fa597; }
.po-each th, .po-each td { font-weight: 700; }
.po-in td { color: var(--green-2); }
.po-foot { margin: 10px 0 0; font-size: .74rem; color: #55635b; }
.stamp { position: absolute; left: 40%; bottom: 52px; font: 700 1.6rem/1 var(--mono); color: var(--stamp); border: 3px solid var(--stamp); border-radius: 6px;
  padding: 6px 12px 4px; transform: rotate(-13deg); opacity: .82; mix-blend-mode: multiply; letter-spacing: .12em; }

/* bands */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22em; }
.h3 { font-size: 1.45rem; }
.band-lines { background: var(--paper-2); }
.lines { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.line { border-top: 2px solid var(--ink); padding-top: 18px; }
.line-n { font: 700 1rem var(--mono); color: var(--copper); display: block; margin-bottom: 10px; }
.line h3 { font-size: 1.6rem; }
.line p { color: var(--ink-2); }
.band-ledger { background: var(--green); color: #e9f1ea; }
.band-ledger .h2 { color: #fff; }
.band-ledger .eyebrow { color: #f0b48d; }
.band-ledger a.textlink { color: #f0b48d; }
.band-ledger a.textlink:hover { color: #fff; }
.ledger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid #f0b48d; border-bottom: 3px solid #f0b48d; transform: rotate(-45deg); }
.ledger-sample { margin: 0; background: var(--card); color: var(--ink); padding: 22px; border-radius: 4px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); }
.ledger-sample figcaption { font-size: .82rem; color: var(--ink-3); margin-top: 10px; }
.band-never { background: var(--paper); }
.never { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.never li { border-left: 4px solid var(--copper-2); padding: 4px 0 4px 20px; color: var(--ink-2); }
.never b { display: block; color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-bottom: 4px; }
.band-price { background: var(--paper-2); border-top: 1px solid var(--line); }

/* green-bar tables */
.gb-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.gb-table th, .gb-table td { padding: 9px 10px; text-align: left; vertical-align: top; }
.gb-table thead th { font: 700 .74rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.gb-table tbody th { font-weight: 500; }
.gb-table tbody tr:nth-child(4n+1), .gb-table tbody tr:nth-child(4n+2) { background: var(--bar); }
.gb-table td.num, .gb-table th.num { text-align: right; }
.gb-table td.num { font-family: var(--mono); font-size: 1rem; }
.gb-strong th, .gb-strong td { font-weight: 700; border-top: 1.5px solid var(--ink); }
.gb-now td { font-weight: 700; }
.w-in td { color: var(--green-2); }
.w-round th, .w-round td { color: var(--ink-3); }
.chip { display: inline-block; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 4px; white-space: nowrap; }
.chip-paid { background: #d3eadb; color: #0f3b2d; }
.chip-ontrack { background: #efe5cc; color: #5b4310; }
.chip-behind { background: #f7d9d5; color: #8f1d16; }
.chip-notyet, .chip-none { background: #e7e7e1; color: #3f4943; }

/* price table */
.pricetable { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; margin: 36px 0; max-width: 980px; }
.pt-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.pt-pass { border: 2px solid var(--green); position: relative; background:
  repeating-linear-gradient(180deg, var(--card) 0 64px, #f3f8f3 64px 128px); }
.pt-name { font-size: 1.5rem; margin-bottom: 6px; }
.pt-amt { font: 400 3rem/1 var(--serif); margin: 6px 0 4px; }
.pt-amt span { font: 600 1rem var(--sans); color: var(--ink-2); margin-left: 4px; }
.pt-alt { color: var(--copper); font-weight: 700; }
.pt-col ul { padding-left: 1.1em; margin: 14px 0; }
.pt-col li { margin-bottom: 6px; }
.pt-preview { background: var(--paper-2); border-radius: 8px; padding: 12px 14px; font-size: .95rem; margin: 0; }

/* page heads + prose */
.pagehead { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.prose { padding-bottom: 72px; }
.prose h2 { margin-top: 1.6em; }
.narrow-left { max-width: 760px; }
.rules { padding-left: 0; list-style: none; counter-reset: r; }
.rules li { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.rules h2 { font-size: 1.35rem; margin: 0 0 6px; }

/* planner */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 80px; }
.planform { min-width: 0; }
.fs { border: 0; border-top: 2px solid var(--ink); margin: 0 0 26px; padding: 16px 0 0; min-width: 0; }
.fs legend { font: 400 1.35rem var(--serif); padding: 0 12px 0 0; display: flex; align-items: center; gap: 10px; }
.fs-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--copper); color: #fff; font: 700 .9rem var(--sans); }
.fs-help { font-size: .9rem; color: var(--ink-2); }
.fld { display: block; margin-bottom: 14px; position: relative; min-width: 0; }
.fld > span:first-child { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.fld small { display: block; color: var(--ink-3); font-size: .82rem; margin-top: 4px; }
.fld input, .fld select { width: 100%; min-height: 46px; border: 1.5px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink);
  font: 400 1rem var(--sans); padding: 8px 12px; }
.fld input:focus, .fld select:focus { border-color: var(--green-2); outline: 3px solid rgba(200, 115, 63, .45); outline-offset: 0; }
.row2, .row3 { display: grid; gap: 0 16px; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1.3fr 1fr .8fr; }
.moneyrow { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: 10px; }
.moneyrow .fld { margin-bottom: 10px; }
.fld-amt .cur { position: absolute; left: 12px; bottom: 12px; color: var(--ink-3); font-family: var(--mono); }
.fld-amt input { padding-left: 26px; font-family: var(--mono); text-align: right; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-go { padding: 8px 0 14px; }
.form-go .btn { width: 100%; }
.sheet { min-width: 0; }
.sheet-paper { position: relative; background: var(--card); box-shadow: var(--shadow); padding: 30px 52px 26px; }
.sheet-k { font: 700 .82rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px dashed #8fa597; padding-bottom: 8px; }
.sheet-big { margin: 18px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.sheet-big-n { font: 400 clamp(3rem, 6vw, 4.4rem)/1 var(--serif); color: var(--green); }
.sheet-big-l { font: 600 1rem var(--sans); color: var(--ink-2); }
.sheet-sub { color: var(--ink-2); font-size: .95rem; }
.sheet-h3 { font: 700 .78rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin: 26px 0 8px; }
.sheet-print-note { display: none; font-size: .8rem; color: var(--ink-3); margin-top: 18px; }
.sheet-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sheet-actions form { margin: 0; }
.sheet-actions .fs-help { flex-basis: 100%; margin: 4px 0 0; }

/* Dues Book */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 80px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); margin-bottom: 24px; min-width: 0; }
.panel-quiet { background: transparent; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; padding-bottom: 80px; }
.book-main, .book-side { min-width: 0; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--green); color: #e9f1ea; border-radius: var(--r); padding: 22px 24px 18px; margin-bottom: 24px; }
.sum-item { padding-right: 12px; }
.sum-item + .sum-item { border-left: 1px solid rgba(233, 241, 234, .25); padding-left: 16px; }
.sum-k { display: block; font: 700 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #b9d4c2; }
.sum-v { display: block; font: 400 clamp(1.4rem, 2.6vw, 1.9rem)/1.2 var(--serif); color: #fff; margin-top: 6px; }
.sum-v.is-bad { color: #ffb4a8; }
.sum-bar { grid-column: 1 / -1; width: 100%; height: 12px; margin: 18px 0 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: rgba(233, 241, 234, .2); overflow: hidden; }
.sum-bar::-webkit-progress-bar { background: rgba(233, 241, 234, .2); border-radius: 999px; }
.sum-bar::-webkit-progress-value { background: #f0b48d; border-radius: 999px; }
.sum-bar::-moz-progress-bar { background: #f0b48d; border-radius: 999px; }
.sum-note { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: #cfe0d4; }
.payform { display: grid; grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.payform .fld { margin-bottom: 0; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ledger-counts { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ledger-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.locked { font-size: .85rem; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 8px; padding: 9px 12px; }
.gb-pays form { margin: 0; }
.panel-key input { font-family: var(--mono); font-size: .85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: .95rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; }

/* footer + phone dock */
.foot { background: var(--ink); color: #d7ddd8; padding: 48px 0 28px; font-size: .92rem; }
.foot a { color: #f3f1e7; }
.foot a:hover { color: #f0b48d; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid #36423b; }
.foot-word { display: flex; align-items: center; gap: 10px; font: 400 1.5rem var(--serif); color: #fff; margin-bottom: 8px; }
.foot-tag { color: #aeb8b1; max-width: 26em; }
.foot-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; align-content: start; justify-content: end; }
.foot-nav a { text-decoration: none; }
.foot-unoff p { margin: 22px 0; color: #aeb8b1; font-size: .85rem; max-width: 72em; }
.foot-unoff b { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; }
.foot-base p { margin: 0; }
.powered { font-weight: 700; color: #fff; }
.ver { color: #8d988f; font-family: var(--mono); }
.dock { display: none; }

/* error page */
.is-error .pagehead { min-height: 50vh; }

/* print page */
.printpage { padding: 32px 0 64px; }

@media (max-width: 1080px) {
  .paychip { display: none; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .payform { grid-template-columns: 1fr 1fr; }
  .payform .btn { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-grid, .ledger-grid { grid-template-columns: minmax(0, 1fr); }
  .lines, .never { grid-template-columns: minmax(0, 1fr); }
  .pricetable, .two-up { grid-template-columns: minmax(0, 1fr); }
  .summary { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .sum-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { justify-content: start; grid-template-columns: repeat(2, auto); }
  .printout-paper { transform: none; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .u-long { display: none; }
  .u-short { display: inline; }
  .topbar-row { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 10px; }
  .brand-word { font-size: 1.4rem; }
  .mainnav { margin: 6px -8px 0; width: calc(100% + 16px); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav { justify-content: space-between; }
  .mainnav a { white-space: nowrap; padding: 10px 8px; font-size: .88rem; }
  .row2, .row3, .dates { grid-template-columns: minmax(0, 1fr); }
  .moneyrow { grid-template-columns: minmax(0, 1fr) 7.5rem; }
  .printout-paper { padding: 20px 34px 18px; font-size: .74rem; }
  .printout-paper::before, .printout-paper::after, .sheet-paper::before, .sheet-paper::after { width: 18px; background-size: 18px 18px;
    background-image: radial-gradient(circle at 9px 9px, var(--paper-2) 0 3.5px, transparent 4px); }
  .stamp { left: 38%; bottom: 44px; font-size: 1.2rem; }
  .sheet-paper { padding: 22px 30px 20px; }
  .po-head { flex-direction: column; gap: 0; }
  .gb-table th, .gb-table td { padding: 8px 6px; }
  .col-short { display: none; }
  body:not(.nav-plan):not(.nav-book):not(.is-error) { padding-bottom: 76px; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 250, 244, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(15, 59, 45, .5); }
  .dock-btn { flex: 1; min-height: 48px; }
  .dock-price { font-size: .82rem; font-weight: 700; color: var(--copper); text-decoration: none; white-space: nowrap; }
  .foot-base { flex-direction: column; }
}

@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .unoff, .topbar, .foot, .dock, .no-print, .planform, .pagehead, .sheet-actions, .skip { display: none !important; }
  .plan-grid, .book-grid { display: block; padding: 0; }
  .sheet-paper, .printout-paper { box-shadow: none; padding: 0; transform: none; }
  .sheet-paper::before, .sheet-paper::after { display: none; }
  .gb-table tbody tr { background: none !important; border-bottom: 1px solid #999; }
  .sheet-print-note { display: block; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
