@font-face { font-family: "Garamond"; src: url("fonts/garamond.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Garamond"; src: url("fonts/garamond-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f4f3ef;          /* sanctuary stone */
  --field: #ffffff;
  --ink: #1b2325;
  --muted: #535e5f;
  --line: #d9dcd8;
  --line-strong: #7f8b8b; /* input borders, 3:1 on bg */
  --acc: #0f5c61;         /* spruce, from the Advent greens */
  --acc-ink: #ffffff;
  --acc-soft: #e0eded;
  --band: #123c40;
  --band-ink: #f1f4f2;
  --brass: #7d5a0e;       /* brass altar ware; text-safe */
  --brass-soft: #f4ead3;
  --bad: #9e2f27;
  --bad-soft: #f8e4e1;
  --ok: #24653c;
  --paper: #fffefb;
  --paper-ink: #1d1d1b;
  --paper-muted: #5a5853;
  --focus: #c77a0a;
  --serif: "Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 4px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111819; --field: #18211f; --ink: #e7ecea; --muted: #a7b2b0; --line: #2b3735; --line-strong: #63716f;
    --acc: #6cc3c4; --acc-ink: #0b1a1b; --acc-soft: #183235; --band: #0c1617; --band-ink: #e7ecea;
    --brass: #dcb25a; --brass-soft: #2e2615; --bad: #f09a8f; --bad-soft: #3a1f1c; --ok: #8fd3a5;
    --paper: #f7f4ec; --paper-ink: #1d1d1b; --paper-muted: #55524c; --focus: #f0b54a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: var(--acc); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--field); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.band { background: var(--band); color: var(--band-ink); }
.band-in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--band-ink); text-decoration: none; font: 600 22px/1 var(--serif); }
.brand svg { color: #e8f0ee; flex: none; }
.band nav { display: flex; gap: 18px; }
.band nav a { color: var(--band-ink); font-size: 15px; text-underline-offset: 3px; white-space: nowrap; }
.brand span { white-space: nowrap; }
@media (max-width: 400px) { .brand { font-size: 19px; gap: 8px; } .band nav { gap: 12px; } }
@media (max-width: 359px) { .band nav a[href="#how"] { display: none; } }

.hero { padding: 22px 0 8px; max-width: 760px; }
h1 { font: 600 34px/1.1 var(--serif); margin: 0 0 8px; letter-spacing: -0.2px; }
.lede { margin: 0; color: var(--muted); font-size: 17px; }
.lede .link { font-size: 17px; }
h2 { font: 600 24px/1.2 var(--serif); margin: 0 0 10px; }

.link { background: none; border: 0; padding: 0; color: var(--acc); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 0; }
.btn { font: 600 16px/1.2 var(--sans); padding: 11px 16px; min-height: 44px; border-radius: var(--r); border: 1.5px solid var(--line-strong); background: var(--field); color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.small { padding: 8px 12px; font-size: 15px; }
.btn.quiet { border-color: var(--line); }
.btn:hover { filter: brightness(0.97); }
.add { background: none; border: 0; color: var(--acc); font: 600 15px var(--sans); padding: 10px 0; min-height: 44px; cursor: pointer; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, legend { font-size: 15px; font-weight: 600; }
input, select, textarea { font: 16px/1.35 var(--sans); color: var(--ink); background: var(--field); border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 9px 10px; min-height: 44px; width: 100%; min-width: 0; }
textarea { min-height: 0; resize: vertical; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--acc); margin: 0; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 4px; }

.tool { padding: 14px 0 28px; }
.store-note { background: var(--brass-soft); color: var(--ink); border-left: 4px solid var(--brass); padding: 10px 12px; margin: 0 0 12px; }
.season { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); width: 100%; max-width: 480px; overflow: hidden; }
.season label { position: relative; }
.season input { position: absolute; opacity: 0; }
.season label { display: flex; }
.season span { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; padding: 8px 6px; min-height: 44px; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; border-right: 1.5px solid var(--line); }
.season label:last-child span { border-right: 0; }
.season input:checked + span { background: var(--acc); color: var(--acc-ink); }
.season input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }

.cols > * { margin-bottom: 0; }
.col-out { margin-top: 22px; }
@media (min-width: 980px) {
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 32px; align-items: start; }
  .cols > :not(.col-out) { grid-column: 1; }
  .col-out { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; }
}

.entry { border-top: 3px solid var(--acc); padding-top: 12px; display: grid; gap: 14px; }
.entry h2 { margin: 0; }
.ded-list, .line-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ded-row { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 44px; gap: 6px; }
.line-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.4em 44px; gap: 6px; }
.line-row.solo { grid-template-columns: minmax(0, 1fr) 4.4em; }
.ded-row.solo { grid-template-columns: minmax(0, 11em) minmax(0, 1fr); }
.x { width: 44px; min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; border-radius: var(--r); }
.x:hover { color: var(--bad); }
@media (max-width: 520px) {
  .ded-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .ded-row .names { grid-column: 1 / -1; grid-row: 2; }
  .ded-row.solo { grid-template-columns: minmax(0, 1fr); }
}
.pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
@media (max-width: 420px) { .pay { grid-template-columns: 1fr 1fr; } .pay .btn { grid-column: 1 / -1; } }
.due { font-weight: 400; color: var(--muted); }
.more summary, .paste summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--acc); }
.more-in { display: grid; gap: 12px; padding: 4px 0 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-msg { margin: 0; min-height: 0; color: var(--bad); font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--ok); }

.paste { margin-top: 14px; border-top: 1px solid var(--line); }
.paste-in { display: grid; gap: 8px; padding-bottom: 8px; }
.paste-in label { font-size: 15px; color: var(--muted); }
.paste-out { border-left: 4px solid var(--acc); padding: 6px 12px; background: var(--acc-soft); }
.paste-out p { margin: 6px 0; }
.paste-out ul { margin: 4px 0 8px; padding-left: 20px; }

.checks:not(:empty) { margin-top: 14px; border-left: 4px solid var(--brass); background: var(--brass-soft); padding: 8px 12px; }
.checks h3 { font: 600 17px var(--sans); margin: 4px 0 6px; }
.checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.checks .link { font-size: 15px; min-height: 32px; }

.orders { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.orders-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.orders-head h2 { margin: 0; }
.orders-sum { margin: 2px 0 8px; color: var(--muted); }
.find { margin-bottom: 8px; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-list li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: start; }
.order-list li.editing { background: var(--acc-soft); }
.order-list li.flag .on { color: var(--brass); }
.on { color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.o-main { min-width: 0; overflow-wrap: anywhere; }
.o-giver { font-weight: 600; }
.o-deds { color: var(--ink); font-size: 15px; }
.o-meta { color: var(--muted); font-size: 14px; }
.o-meta .owes { color: var(--bad); font-weight: 600; }
.o-btns { display: flex; gap: 2px; }
.o-btns button { min-height: 44px; min-width: 44px; background: none; border: 0; color: var(--acc); font: 600 15px var(--sans); cursor: pointer; padding: 0 6px; }
.o-btns button.del { color: var(--muted); }
.empty p, .example-bar { color: var(--muted); }
.example-bar { background: var(--brass-soft); color: var(--ink); padding: 8px 12px; border-left: 4px solid var(--brass); }

.prices { margin-top: 14px; border-top: 1px solid var(--line); }
.cat { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cat th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 600; padding: 0 4px 4px 0; }
.cat td { padding: 3px 4px 3px 0; }
.cat th:nth-child(1) { width: 34%; } .cat th:nth-child(2) { width: 22%; } .cat th:nth-child(3) { width: 20%; } .cat th:nth-child(4) { width: 17%; } .cat th:nth-child(5) { width: 44px; }
.cat input { padding: 8px 6px; }
.cat .ex { display: block; font-size: 13px; color: var(--muted); }
.ex-note { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
@media (max-width: 480px) {
  .cat thead { display: none; }
  .cat, .cat tbody, .cat tr, .cat td { display: block; width: 100%; }
  .cat tr { display: grid; grid-template-columns: 1fr 1fr 5em 44px; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .cat td:nth-child(1) { grid-column: 1 / 4; } .cat td:nth-child(5) { grid-column: 4; grid-row: 1; }
  .cat td::before { content: attr(data-l); display: block; font-size: 13px; color: var(--muted); }
}

.tabs { display: flex; flex-wrap: wrap; gap: 0 2px; border-bottom: 2px solid var(--line-strong); }
.tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 8px; min-height: 44px; font: 600 15px var(--sans); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--acc); }
.panel { padding-top: 12px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 15px; margin: 6px 0; }

/* the paper preview: the one raised element on the page */
.paper { background: var(--paper); color: var(--paper-ink); border: 1px solid #d6d2c8; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px rgba(20,30,30,.08); padding: 28px 24px; margin-top: 10px; }
.bulletin { font-family: var(--serif); font-size: 18px; line-height: 1.35; }
.b-church { text-align: center; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; color: var(--paper-muted); }
.b-title { text-align: center; font: 600 28px/1.15 var(--serif); margin: 0 0 6px; }
.b-intro { text-align: center; margin: 0 auto 6px; max-width: 34em; }
.b-verse { text-align: center; font-style: italic; margin: 0 auto 14px; max-width: 34em; color: var(--paper-muted); }
.b-verse .ref { font-style: normal; white-space: nowrap; }
.b-orn { text-align: center; color: #9a7a2f; margin: 4px 0 12px; letter-spacing: .5em; font-size: 14px; }
.b-group { margin: 0 0 14px; }
.b-h { font: italic 600 20px/1.2 var(--serif); margin: 0 0 6px; text-align: center; }
.b-list { list-style: none; margin: 0; padding: 0; }
.b-list li { margin: 0 0 4px; padding-left: 1.2em; text-indent: -1.2em; break-inside: avoid; }
.b-giver td { vertical-align: top; padding: 3px 10px 3px 0; break-inside: avoid; }
.b-table { width: 100%; border-collapse: collapse; }
.b-table th { text-align: left; font: italic 600 18px var(--serif); border-bottom: 1px solid #b8b2a5; padding: 0 10px 4px 0; }
.b-table td { padding: 5px 10px 5px 0; vertical-align: top; border-bottom: 1px solid #e6e1d6; }
.b-table td:first-child { width: 40%; }
.b-empty { text-align: center; color: var(--paper-muted); font-style: italic; margin: 18px 0; }
.b-flag { background: #fbecc4; }

.florist table, .money table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.florist th, .florist td, .money th, .money td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.florist th, .money th { font-size: 14px; color: var(--muted); }
.num { text-align: right !important; }
.florist tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--line-strong); }
.money .sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.money .sum div { border-top: 3px solid var(--line-strong); padding-top: 6px; }
.money .sum div.owed { border-top-color: var(--bad); }
.money .sum b { display: block; font: 600 24px var(--serif); }
.money .sum span { font-size: 14px; color: var(--muted); }
.money h3, .florist h3 { font: 600 17px var(--sans); margin: 14px 0 4px; }
.money .bym { color: var(--muted); margin: 0 0 8px; }
.money .ok { color: var(--ok); font-weight: 600; }
@media (max-width: 480px) { .florist th, .florist td, .money th, .money td { padding-right: 5px; font-size: 14px; } .florist td:first-child { overflow-wrap: anywhere; } }
@media (max-width: 480px) { .money .sum { grid-template-columns: 1fr 1fr; } .money .sum b { font-size: 20px; } }

.tag-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 8px; }
.tag { background: var(--paper); color: var(--paper-ink); border: 1px dashed #8d877a; padding: 12px; font-family: var(--serif); min-height: 120px; display: flex; flex-direction: column; justify-content: center; text-align: center; overflow-wrap: anywhere; }
.tag .t-kind { font-style: italic; font-size: 15px; }
.tag .t-name { font-size: 19px; font-weight: 600; line-height: 1.2; }
.tag .t-by { font-size: 15px; margin-top: 6px; }
.tag .t-foot { font-family: var(--sans); font-size: 11px; color: var(--paper-muted); margin-top: 8px; }
.more-tags { color: var(--muted); align-self: center; }

.form-view { font-family: var(--serif); padding: 20px; }
@media (max-width: 480px) { .paper { padding: 20px 14px; } .bulletin { font-size: 17px; } }
.keep { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.keep .link { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.file-btn { cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r); z-index: 30; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.25); display: flex; gap: 14px; align-items: center; }
.toast .link { color: var(--bg); font-weight: 700; min-height: 36px; }

.content { max-width: 720px; padding: 20px 0 30px; border-top: 1px solid var(--line); }
.content h2 { margin-top: 18px; }
.content p { margin: 0 0 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; min-height: 44px; }
.faq details p { margin: 0 0 12px; }
.sources { font-size: 15px; color: var(--muted); margin-top: 18px !important; }

footer { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
.sb-footer p { margin: 0 0 8px; }

/* ---------- printed order form (screen preview and print share these) ---------- */
.of { font-family: var(--serif); color: #1d1d1b; font-size: 14px; line-height: 1.3; }
.of .of-church { text-align: center; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.of h3 { text-align: center; font: 600 21px/1.15 var(--serif); margin: 2px 0 4px; }
.of .of-intro { text-align: center; margin: 0 0 8px; }
.of .of-line { display: flex; gap: 6px; align-items: flex-end; margin: 9px 0 0; }
.of .of-line span { white-space: nowrap; }
.of .of-line i { flex: 1; border-bottom: 1px solid #1d1d1b; min-width: 2em; height: 1.1em; }
.of .of-box { display: inline-block; width: 11px; height: 11px; border: 1px solid #1d1d1b; margin-right: 4px; vertical-align: -1px; }
.of table { border-collapse: collapse; width: 100%; margin: 8px 0 0; font-size: 13px; }
.of th, .of td { border: 1px solid #77736a; padding: 3px 6px; text-align: left; }
.of td.blank { height: 1.6em; }
.of .of-small { font-size: 12px; margin: 8px 0 0; }
.of .of-kinds { margin: 9px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- half sheet bulletin insert (sizes in pt so the off-screen measuring matches the paper) ---------- */
.hs-page { display: flow-root; font-family: var(--serif); color: #111; font-size: 11pt; line-height: 1.28; }
.hs-page.small { font-size: 10pt; line-height: 1.24; }
.hs-page.large { font-size: 12.5pt; }
.hs-page .b-church { font-size: 8.5pt; color: #444; margin: 0 0 2pt; }
.hs-page .b-title { font-size: 17pt; margin: 0 0 4pt; }
.hs-page .b-intro { max-width: none; margin: 0 0 4pt; }
.hs-page .b-verse { max-width: none; color: #333; margin: 0 0 4pt; }
.hs-page .b-orn { font-size: 8pt; color: #6b5520; margin: 2pt 0 8pt; }
.hs-page .b-group { margin: 0 0 8pt; }
.hs-page .b-h { font-size: 1.1em; margin: 0 0 3pt; }
.hs-page .b-list li { margin: 0 0 2.5pt; }
.hs-page .b-table th { font-size: 1em; padding: 0 6pt 3pt 0; border-bottom-color: #888; }
.hs-page .b-table td { padding: 3pt 6pt 3pt 0; border-bottom-color: #ccc; }
.hs-cont { font: 8.5pt/1.3 var(--sans); color: #555; text-align: center; margin: 0 0 8pt; }
.hs-num { position: absolute; left: 0; right: 0; bottom: 0.25in; margin: 0; text-align: center; font: 8pt var(--sans); color: #555; }
.bulletin.half { max-width: 430px; margin-left: auto; margin-right: auto; font-size: 16px; }
.bulletin.half .b-title { font-size: 24px; }
@media (min-width: 560px) { .opts:has(.paper-field) { grid-template-columns: 1fr 1fr 1.25fr; } }
@media (max-width: 559px) { .paper-field { grid-column: 1 / -1; } }

/* ---------- print ---------- */
.print-sheet { display: none; }
@media print {
  @page { margin: 0.5in; }
  html, body { background: #fff !important; color: #000; }
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block; font-family: var(--serif); color: #111; }
  .toast { display: none !important; }
  .ps-foot { font: 9pt var(--sans); color: #555; margin-top: 10pt; }

  /* bulletin */
  .pb { font-size: 12.5pt; line-height: 1.32; }
  .pb.small { font-size: 11pt; line-height: 1.25; }
  .pb.large { font-size: 14pt; }
  .pb .b-church { font-size: 10pt; color: #444; }
  .pb .b-title { font-size: 21pt; }
  .pb .b-verse { color: #333; }
  .pb .b-orn { color: #6b5520; }
  .pb .cols2 { column-count: 2; column-gap: 0.35in; }
  .pb .b-h { break-after: avoid; font-size: 1.1em; }
  .pb .b-group { break-inside: auto; }
  .pb .b-list li { break-inside: avoid; }
  .pb .b-table th { font-size: 1em; }
  .pb .b-table tr { break-inside: avoid; }
  .pb .b-table thead { display: table-header-group; }

  /* florist and money */
  .pf h1, .pm h1 { font: 600 19pt var(--serif); margin: 0 0 2pt; }
  .pf .sub, .pm .sub { font: 10.5pt var(--sans); margin: 0 0 10pt; color: #333; }
  .pf table, .pm table { width: 100%; border-collapse: collapse; font: 10.5pt/1.3 var(--sans); }
  .pf th, .pf td, .pm th, .pm td { border-bottom: 0.75pt solid #999; padding: 4pt 6pt 4pt 0; text-align: left; vertical-align: top; }
  .pf th, .pm th { border-bottom: 1.25pt solid #333; font-weight: 700; }
  .pf tfoot td { font-weight: 700; border-top: 1.25pt solid #333; border-bottom: 0; }
  .pf tr, .pm tr { break-inside: avoid; }
  .pm h2 { font: 600 13pt var(--serif); margin: 12pt 0 4pt; break-after: avoid; }
  .pm .sum { font: 11pt/1.5 var(--sans); }
  .pm .sum td { border: 0; padding: 1pt 12pt 1pt 0; }
  .pm thead { display: table-header-group; }
  .num { text-align: right !important; }
  .sign { display: flex; gap: 0.4in; margin-top: 22pt; font: 10pt var(--sans); break-inside: avoid; }
  .sign div { flex: 1; border-top: 0.75pt solid #000; padding-top: 3pt; }

  /* pot tags: 2 across, 4 down, 3.5 x 2.3 in */
  .pt-page { display: grid; grid-template-columns: 3.5in 3.5in; grid-auto-rows: 2.3in; justify-content: center; break-after: page; }
  .pt-page:last-child { break-after: auto; }
  .pt { border: 0.75pt dashed #888; padding: 0.16in 0.2in; display: flex; flex-direction: column; justify-content: center; text-align: center; overflow: hidden; overflow-wrap: break-word; }
  .pt .t-kind { font-style: italic; font-size: 12pt; }
  .pt .t-name { font-size: 15pt; font-weight: 600; line-height: 1.15; }
  .pt .t-name.long { font-size: 12.5pt; }
  .pt .t-by { font-size: 12pt; margin-top: 5pt; }
  .pt .t-foot { font: 8pt var(--sans); color: #444; margin-top: 7pt; }
  .pt-blank { justify-content: space-evenly; text-align: left; font-size: 11pt; }
  .pt-blank .of-line { display: flex; gap: 6px; align-items: flex-end; margin: 0; }
  .pt-blank .of-line i { flex: 1; border-bottom: 0.75pt solid #333; height: 1.2em; }
  .pt-blank .of-box { display: inline-block; width: 9pt; height: 9pt; border: 0.75pt solid #333; margin: 0 3pt 0 0; vertical-align: -1pt; }
  .pt-blank .of-box ~ .of-box { margin-left: 10pt; }

  /* half sheet inserts: one landscape page per half sheet, the same half twice, a cut line down the middle */
  .hs-sheet { display: flex; position: relative; break-after: page; overflow: hidden; }
  .hs-sheet:last-child { break-after: auto; }
  .hs-sheet.half-letter { width: 11in; height: 8.44in; }
  .hs-sheet.half-a4 { width: 297mm; height: 208.5mm; }
  .hs-sheet::after { content: ""; position: absolute; top: 0.2in; bottom: 0.2in; left: 50%; border-left: 0.75pt dashed #999; }
  .hs-cell { flex: 1 1 0; min-width: 0; position: relative; padding: 0.45in; }

  /* order forms: two per page */
  .po-page { break-after: page; }
  .po-page:last-child { break-after: auto; }
  .po { height: 4.85in; overflow: hidden; padding: 0.06in 0.1in; }
  .po .of { font-size: 11pt; }
  .po .of table { font-size: 10.5pt; }
  .po .of .of-small { font-size: 10pt; }
  .po + .po { border-top: 0.75pt dashed #777; padding-top: 0.14in; margin-top: 0.1in; }
}
