/* Ringwright — set like a service book: paper, ink, rubric red, brass. */
:root {
  --paper: #f3ecdd;
  --paper-2: #ebe2cf;
  --paper-3: #e2d6bd;
  --ink: #1f1a15;
  --ink-2: #4a4036;
  --ink-3: #7a6c5c;
  --rubric: #9b2a1f;
  --rubric-deep: #6b1f1c;
  --brass: #b98a37;
  --brass-pale: #e9c77b;
  --felt: #22242b;
  --foam: #2e3039;
  --rule: #b9a888;
  --ok: #3d5a3a;
  --serif: 'Spectral', 'Iowan Old Style', Georgia, serif;
  --fell: 'IM Fell English', 'Iowan Old Style', Georgia, serif;
  --fellsc: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(120,90,40,.08), transparent 55%);
  background-attachment: fixed;
}
a { color: var(--rubric-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rubric); }
:focus-visible { outline: 2px solid var(--rubric); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
img, svg { max-width: 100%; }
.small { font-size: .86rem; color: var(--ink-2); }
.sc { font-family: var(--fellsc); letter-spacing: .02em; }
.rubric { color: var(--rubric); font-style: italic; }
.rubric::before { content: '\2720\00a0'; font-style: normal; font-size: .8em; }
.plain-rubric { color: var(--rubric); font-style: italic; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- Masthead ---------- */
.mast {
  max-width: 1180px; margin: 0 auto; padding: 18px 22px 10px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-bottom: 3px double var(--ink);
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark-bell { width: 30px; height: 30px; color: var(--rubric-deep); }
.mark-word { font-family: var(--fellsc); font-size: 1.85rem; line-height: 1; letter-spacing: .03em; }
.mast-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; font-size: .98rem; }
.mast-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; }
.mast-nav a:hover { color: var(--rubric); }
.mast-nav a[aria-current="page"] { border-bottom: 1px solid var(--rubric); }
.mast-nav .mast-cta { background: var(--rubric-deep); color: #fbf3e3; padding: 6px 12px; border-radius: 2px; }
.mast-nav .mast-cta:hover { background: var(--rubric); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-family: var(--serif); font-weight: 500; font-size: 1rem;
  padding: 10px 18px; border-radius: 2px; border: 1px solid var(--rubric-deep);
  background: var(--rubric-deep); color: #fbf3e3; text-decoration: none; cursor: pointer; line-height: 1.25;
}
.btn:hover { background: var(--rubric); color: #fff; }
.btn.quiet { background: transparent; color: var(--rubric-deep); }
.btn.quiet:hover { background: var(--paper-2); color: var(--rubric); }
.btn.ink { background: var(--ink); border-color: var(--ink); }
.btn.small { padding: 6px 11px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Home: opening spread ---------- */
.spread {
  max-width: 1180px; margin: 0 auto; padding: 30px 22px 10px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 40px;
}
.spread > *, .maker > *, .board-row > * { min-width: 0; }
.verso { padding-right: 34px; border-right: 1px solid var(--rule); }
.verso .lead { font-size: 1.32rem; line-height: 1.45; margin: 4px 0 18px; }
.verso .lead::first-letter {
  font-family: var(--fell); float: left; font-size: 3.7rem; line-height: .8; padding: 5px 8px 0 0; color: var(--rubric-deep);
}
.verso p { margin: 0 0 14px; }
.verso .act { margin: 22px 0 8px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.verso .act .price-note { font-size: .92rem; color: var(--ink-2); }
.recto h2, .section-head {
  font-family: var(--fell); font-weight: 400; font-size: 1.45rem; margin: 0 0 4px; line-height: 1.2;
}
.recto .scene { margin: 0 0 10px; }
.scene-time { font-family: var(--fellsc); color: var(--rubric); margin-right: 6px; }
.table-frame { overflow-x: auto; overflow-y: hidden; margin: 6px 0 4px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.tbl { display: block; width: 100%; height: auto; color: var(--ink); }
.tbl-felt { fill: var(--felt); }
.tbl-foam { fill: var(--foam); stroke: #3c3f4a; }
.bell circle:first-of-type { stroke: rgba(0,0,0,.35); stroke-width: .8; }
.bell-crown { fill: rgba(40,25,5,.35); stroke: rgba(255,240,200,.35); stroke-width: .6; }
.bell-ring { fill: none; stroke: #e2574a; stroke-width: 2.2; }
.bell-name { fill: #d8cfbd; font: 12px var(--serif); text-anchor: middle; }
.bell.acc .bell-name { fill: #bfae8d; font-style: italic; }
.plac-card { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.plac-id { font: 21px var(--fell); text-anchor: middle; fill: var(--ink); }
.plac-sub { font: 11.5px var(--serif); text-anchor: middle; fill: var(--ink-2); letter-spacing: .03em; }
.plac.absent .plac-card { fill: var(--paper-3); }
.plac.absent .plac-id { fill: var(--rubric); text-decoration: line-through; }
.plac.absent .plac-hatch { color: var(--rubric); }
.plac.clickable { cursor: pointer; }
.plac.clickable:hover .plac-card, .plac.clickable:focus .plac-card { fill: #fff6e0; stroke: var(--rubric); stroke-width: 2; }
.plac.clickable:focus { outline: none; }
.demo-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.demo-log { min-height: 3.2em; font-size: .98rem; margin: 6px 0 0; padding: 8px 12px; background: var(--paper-2); border-left: 3px solid var(--rubric); }
.linkish { background: none; border: none; padding: 0; color: var(--rubric-deep); text-decoration: underline; font: inherit; cursor: pointer; }

.demo-sub { font-family: var(--fell); font-weight: 400; font-size: 1.15rem; margin: 18px 0 4px; }
.demo-ledger .ledger { font-size: .86rem; }
.demo-ledger .ledger th, .demo-ledger .ledger td { padding: 4px 6px; }
.demo-ledger .pos-id { font-size: 1.05rem; }
.demo-ledger .pos-hands { display: none; }
.demo-ledger .rem { font-size: .82rem; }
.mini-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-card { border: 1.5px solid var(--ink); background: #fff; padding: 8px 12px; min-width: 150px; flex: 1; }
.mini-card b { font-family: var(--fell); font-weight: 400; font-size: 1.2rem; display: block; }
.mini-card .small { display: block; margin-bottom: 6px; }
.mini-card .chip { font-size: 1.05rem; }

/* ---------- Sections ---------- */
.folio {
  max-width: 1180px; margin: 0 auto; padding: 34px 22px; border-top: 1px solid var(--rule);
}
.folio-num { font-family: var(--fellsc); color: var(--rubric); font-size: 1.05rem; margin-right: 10px; }
.folio h2 { font-family: var(--fell); font-weight: 400; font-size: 1.9rem; line-height: 1.15; margin: 0 0 14px; }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 44px; }
.cols-2 > * { min-width: 0; }
.measure { max-width: 46em; }
.folio p { margin: 0 0 14px; }

/* keyboard explainer */
.kbd-wrap { overflow-x: auto; padding-bottom: 6px; }
.kbd { position: relative; height: 150px; min-width: 520px; margin: 10px 0 6px; }
.kbd .wk, .kbd .bk { position: absolute; top: 34px; border: 1px solid var(--ink); border-radius: 0 0 3px 3px; display: flex; align-items: flex-end; justify-content: center; font-size: 10px; padding-bottom: 3px; cursor: default; }
.kbd .wk { height: 86px; background: #fbf6ea; z-index: 1; }
.kbd .bk { height: 52px; background: var(--ink); color: #d9cdb5; z-index: 2; font-size: 8.5px; }
.kbd .wk.hot { background: var(--brass-pale); }
.kbd .bk.hot { background: var(--rubric-deep); color: #fff; }
.kbd .brk { position: absolute; top: 4px; height: 24px; border: 1px solid var(--rubric); border-bottom: none; text-align: center; font-family: var(--fell); font-size: 14px; color: var(--rubric); cursor: pointer; background: transparent; padding: 0; }
.kbd .brk.on, .kbd .brk:hover { background: rgba(155,42,31,.1); }
.kbd-caption { font-size: .95rem; min-height: 3em; }

/* specimen */
.specimen { background: #fbf6ea; border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--paper-3), 4px 6px 0 -1px var(--paper-2); padding: 18px 20px; }
.specimen-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin-bottom: 10px; }
.specimen-head .t { font-family: var(--fell); font-size: 1.25rem; }
.sample-tag { font-family: var(--fellsc); color: var(--rubric); font-size: .9rem; border: 1px solid var(--rubric); padding: 0 6px; }

/* ledger table */
.ledger-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--rule); }
.ledger thead th { font-family: var(--fellsc); font-weight: 400; font-size: .95rem; border-bottom: 1.5px solid var(--ink); color: var(--ink-2); }
.ledger tbody th { white-space: nowrap; font-weight: 400; }
.pos-id { font-family: var(--fell); font-size: 1.25rem; display: inline-block; min-width: 1.9em; }
.pos-hands { font-size: .78rem; color: var(--ink-3); display: block; }
.ledger .cnt { text-align: right; font-variant-numeric: lining-nums tabular-nums; width: 2.5em; }
.ledger .rem { color: var(--ink-2); font-size: .88rem; min-width: 12em; }
.ledger tr.is-absent { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(155,42,31,.07) 7px 9px); }
.ledger tr.is-absent .pos-id { color: var(--rubric); text-decoration: line-through; }
.chip { display: inline-block; padding: 0 5px; margin: 1px 0; border: 1px solid var(--ink-3); background: #fffaf0; font-variant-numeric: lining-nums; white-space: nowrap; }
.chip.acc { background: var(--paper-3); font-style: italic; }
.chip.borrowed { border-color: var(--rubric); box-shadow: inset 0 0 0 1px var(--rubric); color: var(--rubric-deep); }
.none { color: var(--ink-3); font-style: italic; }
.nick { width: 7.5em; font: inherit; font-size: .9rem; padding: 2px 4px; border: none; border-bottom: 1px dotted var(--ink-3); background: transparent; }
.abs { display: block; font-size: .8rem; color: var(--ink-2); margin-top: 3px; white-space: nowrap; }

/* issues */
.issues { margin: 0; padding-left: 1.4em; }
.issues li { margin-bottom: 7px; }
.issues li.sev-1::marker { color: var(--rubric); font-weight: 700; }
.issues li.sev-1 { color: var(--rubric-deep); }
.issues li.sev-3 { color: var(--ink-2); }
.all-clear { border-left: 3px solid var(--ok); padding: 6px 12px; background: rgba(61,90,58,.08); }

/* hymn board pricing */
.board-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 44px; align-items: start; }
.hymnboard {
  background: linear-gradient(180deg, #5a3a1f, #3f2814); border-radius: 6px 6px 3px 3px; padding: 16px 16px 18px;
  box-shadow: inset 0 0 0 3px #6e4a28, inset 0 0 0 5px #2f1e0f, 0 6px 0 -2px #2f1e0f; color: #f4ecd9; max-width: 420px;
  position: relative;
}
.hymnboard::before { content: ''; display: block; width: 46%; height: 26px; margin: -34px auto 12px; background: linear-gradient(180deg, #5a3a1f, #4a2f18); border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-shadow: inset 0 0 0 3px #6e4a28; }
.hb-row { display: grid; grid-template-columns: 4.6em 1fr; align-items: center; gap: 12px; margin-bottom: 9px; text-decoration: none; color: inherit; }
.hb-num { background: #111; color: #f7f0de; font-family: var(--fell); font-size: 2rem; text-align: center; padding: 2px 0 0; border: 1px solid #000; box-shadow: inset 0 0 0 1px #333; font-variant-numeric: lining-nums; }
.hb-row:hover .hb-num { color: var(--brass-pale); }
.hb-txt { font-size: .96rem; line-height: 1.3; }
.hb-txt b { font-family: var(--fellsc); font-weight: 400; font-size: 1.1rem; color: var(--brass-pale); }

/* plans page */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); background: #fbf6ea; }
.plan { padding: 20px 20px 22px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.plan:last-child { border-right: none; }
.plan.feature { background: #fffaf0; box-shadow: inset 0 4px 0 var(--rubric-deep); }
.plan h3 { font-family: var(--fellsc); font-weight: 400; font-size: 1.45rem; margin: 0; }
.plan .who { color: var(--ink-2); font-style: italic; margin: 0 0 12px; font-size: .95rem; }
.plan .cost { font-family: var(--fell); font-size: 2.6rem; line-height: 1; margin: 6px 0 2px; font-variant-numeric: lining-nums; }
.plan .cost small { font-family: var(--serif); font-size: .95rem; color: var(--ink-2); }
.plan .per { font-size: .88rem; color: var(--ink-2); margin-bottom: 14px; }
.plan ul { margin: 0 0 18px; padding-left: 1.1em; flex: 1; }
.plan li { margin-bottom: 6px; font-size: .95rem; }
.plan li::marker { content: '\2022\00a0'; color: var(--rubric); }
.plan .btn { align-self: flex-start; }
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .95rem; }
.compare th, .compare td { padding: 7px 8px; border-bottom: 1px solid var(--rule); text-align: left; }
.compare td.c { text-align: center; width: 6.5em; }
.compare thead th { font-family: var(--fellsc); font-weight: 400; border-bottom: 1.5px solid var(--ink); }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--ink-3); }

details.faq { border-bottom: 1px solid var(--rule); padding: 10px 0; }
details.faq summary { cursor: pointer; font-family: var(--fell); font-size: 1.15rem; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: '\203A\00a0'; color: var(--rubric); display: inline-block; transition: transform .15s; }
details.faq[open] summary::before { transform: rotate(90deg); }
details.faq p { margin: 8px 0 4px; }

/* order slip */
.slip { max-width: 640px; margin: 0 auto; background: #fbf6ea; border: 1px solid var(--ink); padding: 26px 28px; position: relative; }
.slip::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; background: radial-gradient(circle at 5px -1px, transparent 5px, #fbf6ea 5.5px) repeat-x; background-size: 10px 9px; }
.slip h1 { font-family: var(--fellsc); font-weight: 400; font-size: 1.8rem; margin: 0 0 4px; }
.slip fieldset { border: none; padding: 0; margin: 18px 0 0; }
.slip legend { font-family: var(--fell); font-size: 1.15rem; margin-bottom: 6px; padding: 0; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--rule); margin-bottom: -1px; cursor: pointer; background: #fffcf4; }
.opt:has(input:checked) { border-color: var(--rubric-deep); background: #fff6e4; position: relative; z-index: 1; }
.opt input { margin-top: 5px; accent-color: var(--rubric-deep); }
.opt .o-main { flex: 1; }
.opt .o-price { font-variant-numeric: lining-nums; white-space: nowrap; }
.opt small { display: block; color: var(--ink-2); }
select { max-width: 100%; }
.field select { width: 100%; }
select, .field input[type=number] { font: inherit; padding: 6px 8px; border: 1px solid var(--ink-3); background: #fffcf4; border-radius: 0; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px double var(--ink); margin-top: 20px; padding-top: 10px; font-size: 1.15rem; }
.total-line .amt { font-family: var(--fell); font-size: 2rem; font-variant-numeric: lining-nums; }
.notice { border: 1px solid var(--rubric); background: #fff6e8; padding: 14px 16px; }

/* ---------- Chart-Maker ---------- */
.maker { max-width: 1280px; margin: 0 auto; padding: 18px 22px 30px; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0 30px; }
.order-of-work { border-right: 1px solid var(--rule); padding-right: 24px; }
.step { margin-bottom: 22px; }
.step h2 { font-family: var(--fell); font-weight: 400; font-size: 1.3rem; margin: 0 0 6px; display: flex; gap: 8px; align-items: baseline; }
.step h2 .n { font-family: var(--fellsc); color: var(--rubric); }
.step .rubric, .step .plain-rubric { font-size: .9rem; margin: 0 0 8px; }
.field { margin: 8px 0; }
.field label { display: block; font-size: .92rem; color: var(--ink-2); margin-bottom: 3px; }
.field input[type=text], .field textarea { width: 100%; font: inherit; padding: 6px 8px; border: 1px solid var(--ink-3); background: #fffcf4; border-radius: 0; }
.field textarea { min-height: 64px; font-size: .92rem; }
.seg { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); }
.seg button { flex: 1 1 auto; min-width: 0; font: inherit; font-size: .9rem; border: none; border-right: 1px solid var(--ink); background: #fffcf4; padding: 6px 8px; cursor: pointer; color: var(--ink); }
.seg button:last-child { border-right: none; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.msg { font-size: .9rem; margin: 6px 0 0; }
.msg.err { color: var(--rubric); }
.msg.ok { color: var(--ok); }
.choir-tag { font-family: var(--fellsc); font-size: .78rem; color: var(--rubric-deep); border: 1px solid var(--rubric-deep); padding: 0 4px; margin-left: 4px; text-decoration: none; white-space: nowrap; }

/* bells-used grid */
.grid-oct { display: grid; grid-template-columns: 2.2em repeat(14, minmax(0, 1fr)); grid-template-rows: 22px 26px; gap: 2px 1px; margin-bottom: 6px; }
.grid-oct .olabel { grid-row: 1 / span 2; font-family: var(--fell); font-size: 1rem; align-self: center; color: var(--ink-2); }
.key { font: inherit; font-size: 10.5px; padding: 0; border: 1px solid var(--ink-3); cursor: pointer; line-height: 1; font-variant-numeric: lining-nums; min-height: 22px; }
.key.w { grid-row: 2; background: #fffcf4; color: var(--ink-2); }
.key.b { grid-row: 1; background: var(--paper-3); color: var(--ink-3); }
.key.on.w { background: var(--brass); color: #1b1307; border-color: #6c4c17; font-weight: 700; }
.key.on.b { background: var(--rubric-deep); color: #fff; border-color: var(--rubric-deep); font-weight: 700; }
.key.out { opacity: .35; background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgba(0,0,0,.15) 3px 4px); }
.key.miss { outline: 2px dashed var(--rubric); outline-offset: -3px; }
.grid-legend { font-size: .82rem; color: var(--ink-2); }
.missing-mode .key { cursor: crosshair; }

.out-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 18px; flex-wrap: wrap; border-bottom: 3px double var(--ink); padding-bottom: 8px; margin-bottom: 12px; }
.out-title { font-family: var(--fell); font-size: 1.7rem; line-height: 1.15; margin: 0; }
.out-meta { font-size: .9rem; color: var(--ink-2); }
.out-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.warnbox { border-left: 3px solid var(--rubric); background: #fff3e4; padding: 8px 12px; margin: 10px 0; font-size: .95rem; }
.empty-state { border: 1px dashed var(--ink-3); padding: 26px; text-align: center; color: var(--ink-2); background: rgba(255,255,255,.3); }
.empty-state p { max-width: 34em; margin: 0 auto 10px; }
.out-section { margin: 18px 0 0; }
.out-section h3 { font-family: var(--fell); font-weight: 400; font-size: 1.25rem; margin: 0 0 6px; }
.preview-band { background: var(--ink); color: var(--paper); font-size: .9rem; padding: 7px 22px; text-align: center; }
.preview-band a { color: var(--brass-pale); }
.share-box { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--ok); background: rgba(61,90,58,.07); font-size: .95rem; }
.share-box input { width: 100%; font: inherit; padding: 4px 6px; margin-top: 4px; border: 1px solid var(--ink-3); background: #fffcf4; }
.upsell { margin-top: 26px; padding: 14px 16px; border: 1px solid var(--ink); background: #fbf6ea; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.upsell p { margin: 0; max-width: 40em; }

/* cards for printing */
#cards { display: none; }

/* ---------- Footer ---------- */
.colophon { border-top: 3px double var(--ink); margin-top: 30px; }
.colophon-inner { max-width: 1180px; margin: 0 auto; padding: 18px 22px 40px; text-align: center; font-size: .92rem; color: var(--ink-2); }
.colophon-mark { font-family: var(--fellsc); font-size: 1.3rem; color: var(--ink); margin: 0 0 4px; }
.colophon p { margin: 0 0 6px; }
.colophon-small { font-size: .82rem; }

.page-narrow { max-width: 820px; margin: 0 auto; padding: 30px 22px; }
.page-narrow h1 { font-family: var(--fell); font-weight: 400; font-size: 2.1rem; margin: 0 0 10px; line-height: 1.15; }
.page-narrow h2 { font-family: var(--fell); font-weight: 400; font-size: 1.4rem; margin: 26px 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .spread { grid-template-columns: minmax(0, 1fr); }
  .verso { padding-right: 0; border-right: none; border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 18px; }
  .maker { grid-template-columns: minmax(0, 1fr); }
  .order-of-work { border-right: none; padding-right: 0; border-bottom: 3px double var(--ink); margin-bottom: 20px; }
  .board-row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .spread, .folio, .maker, .page-narrow, .mast { padding-left: 16px; padding-right: 16px; }
  .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { border-right: none; border-bottom: 1px solid var(--rule); }
  .mast-nav { gap: 2px 14px; font-size: .92rem; }
  .mark-word { font-size: 1.55rem; }
  .verso .lead { font-size: 1.18rem; }
  .folio h2 { font-size: 1.6rem; }
  .slip { padding: 20px 16px; }
  .ledger .rem { min-width: 9em; }
  .compare td.c { width: 4.2em; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody { display: block; }
  .ledger tr { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; border-bottom: 1px solid var(--rule); padding: 6px 0; }
  .ledger th, .ledger td { border: none; padding: 2px 4px; }
  .ledger tbody th { order: 1; }
  .ledger td.bells { order: 2; }
  .ledger td.cnt { order: 3; }
  .ledger td.who { order: 4; grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
  .ledger td.who .abs { margin: 0; }
  .ledger td.rem { order: 5; grid-column: 1 / -1; min-width: 0; }
  .ledger td.rem:empty { display: none; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .mast, .colophon, .order-of-work, .out-actions, .preview-band, .upsell, .no-print, .share-box, .abs { display: none !important; }
  .maker { display: block; padding: 0; }
  .table-frame { overflow: visible; }
  .tbl { min-width: 0 !important; }
  .ledger { font-size: 10pt; }
  .nick { border: none; }
  .chip { border-color: #555; }
  a { color: inherit; text-decoration: none; }
  body.print-cards #chart-out { display: none; }
  body.print-cards #cards { display: block; }
  #cards .card { page-break-inside: avoid; border: 1.5pt solid #000; padding: 10pt 14pt; margin-bottom: 10pt; width: 48%; display: inline-block; vertical-align: top; margin-right: 1.5%; min-height: 60mm; }
  #cards .card h4 { font-family: var(--fell); font-size: 20pt; margin: 0 0 4pt; font-weight: 400; }
  #cards .card .piece { font-size: 9pt; color: #444; margin-bottom: 6pt; }
  #cards .card .big { font-size: 17pt; line-height: 1.5; }
  #cards .card .big span { display: inline-block; border: 1pt solid #000; padding: 0 5pt; margin: 0 3pt 3pt 0; }
}
