/* Accounting worksheet practice: a columnar pad. Manila paper, petrol-blue ink, red rules between the column pairs
   and under the totals, slab-serif headings, tabular figures. */
:root {
  --bg: #f1ecdf; --paper: #fffdf7; --ink: #1f232b; --muted: #424754; --line: #d9d2c0; --line2: #8a8270; --rule: #a3392b;
  --accent: #1d4e68; --accent-ink: #fff; --hi: #f6efdc; --soft: #f7f3e8; --given: #f3eee1;
  --right: #1d6b33; --wrong: #a3261b; --close: #7a5300; --info: #1d4e68;
  --mk-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231d6b33' stroke-width='2.4'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
  --mk-wrong: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3261b' stroke-width='2.4'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9'/%3E%3C/svg%3E");
  --mk-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237a5300' stroke-width='2.4'%3E%3Cpath d='M8 2.5v7M8 13v.5'/%3E%3C/svg%3E");
  --mk-empty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3261b' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3C/svg%3E");
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --slab: Rockwell, "Roboto Slab", "Zilla Slab", "Sitka Small", "DejaVu Serif", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --r: 3px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c; --paper: #1d2027; --ink: #ece7da; --muted: #c2bcac; --line: #343844; --line2: #6e6a5e; --rule: #e0806f;
    --accent: #8cc4e0; --accent-ink: #0f1c24; --hi: #262a33; --soft: #22252d; --given: #23262e;
    --right: #74d29a; --wrong: #ff917f; --close: #f0c060; --info: #8cc4e0;
    --mk-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2374d29a' stroke-width='2.4'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
    --mk-wrong: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff917f' stroke-width='2.4'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9'/%3E%3C/svg%3E");
    --mk-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f0c060' stroke-width='2.4'%3E%3Cpath d='M8 2.5v7M8 13v.5'/%3E%3C/svg%3E");
    --mk-empty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff917f' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3C/svg%3E");
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: var(--accent); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.content-w { max-width: 1240px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 9; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--slab); line-height: 1.2; font-weight: 700; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.hero { padding: 22px 0 4px; border-bottom: 3px double var(--rule); margin-bottom: 10px; }
.hero h1 { font-size: clamp(1.5rem, 4.2vw, 2.25rem); margin: 0 0 6px; }
.lede { margin: 0 0 8px; max-width: 70ch; }

/* setup */
.setup { margin: 10px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: end; }
fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
legend { font-weight: 650; margin-bottom: 4px; }
.chips, .steps-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .step { position: relative; }
.chip input, .step input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, .step span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 13px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--paper); }
.chip input:checked + span, .step input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip input:focus-visible + span, .step input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.setrow { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 8px; }
.inline { display: inline-flex; align-items: center; gap: 8px; }
select, input { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line2); border-radius: var(--r); min-height: 44px; padding: 6px 8px; max-width: 100%; }
.btn { font: inherit; font-weight: 600; min-height: 44px; padding: 8px 16px; border-radius: var(--r); border: 1.5px solid var(--accent); background: var(--paper); color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 6px 14px; }
.link { font: inherit; background: none; border: 0; padding: 8px 2px; color: var(--accent); text-decoration: underline; cursor: pointer; min-height: 44px; }
.note { padding: 10px 12px; background: var(--paper); border: 1px solid var(--wrong); border-radius: var(--r); margin: 8px 0; }
#store-note { overflow-wrap: anywhere; }
.note.info { border-color: var(--info); }

/* the sheet */
.sheet { background: var(--paper); border-top: 3px solid var(--accent); padding: 14px 16px; margin: 8px 0 18px; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; }
.sheet-head h2 { margin: 0; font-size: 1.3rem; }
.code { font-family: var(--mono); letter-spacing: .06em; color: var(--accent); }
.lvname { font-family: var(--sans); font-weight: 400; font-size: 1rem; color: var(--muted); }
.score { margin: 0; color: var(--muted); }
.rules { margin: 6px 0; }
.rules summary, details.work summary, .recent summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--accent); }
.rules ul { margin: 2px 0 8px; padding-left: 20px; max-width: 76ch; }
.qs { list-style: none; margin: 0; padding: 0; }
.q { padding: 12px 0 20px; border-top: 1px solid var(--line2); }
.q h3 { font-size: 1.25rem; margin: 4px 0 6px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.q h3 .see { margin-left: auto; font: 600 1rem var(--sans); white-space: nowrap; padding: 10px 0; }
.qn { font-family: var(--mono); color: var(--rule); }
.scen, .task { margin: 0 0 8px; max-width: 76ch; }
.task { font-weight: 600; }
.adjdata { margin: 6px 0 12px; max-width: 76ch; }
.adjdata h4 { font-size: 1.05rem; margin: 0 0 4px; }
.adjdata ol { list-style: none; margin: 0; padding: 0; }
.adjdata li, .adjpeek li { padding: 3px 0 3px 2.2em; text-indent: -2.2em; border-bottom: 1px dotted var(--line); }
.adjpeek { display: none; }
.twrap.rows + .adjpeek { display: block; position: sticky; bottom: 0; z-index: 2; margin-top: 10px; background: var(--paper); border: 1.5px solid var(--line2); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.adjpeek summary { padding: 10px 12px; min-height: 44px; font-weight: 650; cursor: pointer; }
.adjpeek ol { list-style: none; margin: 0; padding: 0 12px 10px; max-height: 30vh; overflow-y: auto; }
html:has(.twrap.rows + .adjpeek) { scroll-padding-bottom: calc(var(--peek, 48px) + 12px); }
@media print { .adjpeek { display: none !important; } }
.adjdata .al, .adjpeek .al { display: inline-block; width: 2.2em; text-indent: 0; font-family: var(--mono); color: var(--rule); }

/* tables */
.twrap { overflow-x: auto; max-width: 100%; margin: 0 0 12px; }
table.st { border-collapse: collapse; }
.st caption { text-align: left; padding-bottom: 6px; }
.st caption span, .wsh span { display: block; }
.wsh { margin: 0 0 6px; }
.st-t { font-family: var(--slab); font-weight: 700; font-size: 1.1rem; }
.st-w { font-weight: 600; }
.st-s { color: var(--muted); }
.st th, .st td { padding: 3px 5px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: middle; }
.st thead th { font-weight: 600; vertical-align: bottom; }
.st .amt { text-align: right; font-variant-numeric: tabular-nums; }
.st td.given { background: var(--given); }
.st th[scope="row"] { min-width: 9rem; }
.st tfoot th, .st tfoot td, .st tr.tot th, .st tr.tot td { border-top: 1.5px solid var(--ink); border-bottom: 3px double var(--rule); font-weight: 650; }
.st tr.sub th, .st tr.sub td { border-top: 1px solid var(--ink); }
.st tr.bh th { font-weight: 650; padding-top: 8px; border-bottom: 1.5px solid var(--line2); }
.st tr.eh th { font-family: var(--slab); font-weight: 700; padding-top: 10px; border-bottom: 1.5px solid var(--line2); }
.st .nil { background: none; }

/* the worksheet: a red rule between the column pairs */
.ws { width: 100%; }
.ws thead th.pair { text-align: center; border-bottom: 1px solid var(--line2); font-family: var(--slab); }
.ws thead th.sd { font-weight: 500; color: var(--muted); }
.ws th.pair, .ws .sd:nth-of-type(odd) { border-left: 2px solid var(--rule); }
.ws.ws10 td:is(:nth-child(2), :nth-child(4), :nth-child(6), :nth-child(8), :nth-child(10)),
.ws.ws8 td:is(:nth-child(2), :nth-child(4), :nth-child(6), :nth-child(8)) { border-left: 2px solid var(--rule); }
.ws td.amt + td.amt { border-left-width: 1px; }
.ws tbody.foot tr.tot td.nil { border: 0; }
.ws tr.nil-row th, .ws tr.nil-row td { border-top: 1.5px solid var(--ink); }
.ws th[scope="row"] { min-width: 9rem; }
.ws th, .ws td { padding: 3px 2px; }
.ws th[scope="row"] { padding-right: 6px; }
.ws td.given { color: var(--ink); }
@media screen { .ws td.given, .keyfig .ws td.amt { min-width: 5.25rem; padding: 3px 5px; } .keyfig .ws td.amt { width: 8.4%; } }
.fsg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; align-items: start; }
@media (min-width: 1000px) { .fsg { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); } }
.atb, .pc, .jr { width: 100%; max-width: 34rem; }
.stm { width: 100%; max-width: 34rem; }
.stm td, .atb td, .pc td, .jr td { width: 1%; white-space: nowrap; }
.stm tr.bh th { font-family: var(--slab); }

/* answer boxes: one width per kind of answer */
.cell { font-variant-numeric: tabular-nums; text-align: right; padding: 6px 3px; font-size: 1rem; }
.cell.u-money { width: 6.375rem; }
.cell.u-choice { width: 11rem; text-align: left; padding-right: 26px; }
.kv { font-variant-numeric: tabular-nums; font-weight: 650; }
.cell.is-right { border-color: var(--right); box-shadow: inset 0 0 0 1px var(--right); }
.cell.is-wrong, .cell.is-unread, .cell.is-empty { border-color: var(--wrong); box-shadow: inset 0 0 0 1px var(--wrong); }
.cell.is-empty { border-style: dashed; }
.cell.is-close, .cell.is-own { border-color: var(--close); box-shadow: inset 0 0 0 1px var(--close); border-style: dashed; }
input.cell:is(.is-right, .is-wrong, .is-unread, .is-close, .is-own, .is-empty) { background-repeat: no-repeat; background-position: 3px center; background-size: 11px; padding-left: 16px; }
select.cell:is(.is-right, .is-wrong, .is-empty) { background-repeat: no-repeat; background-position: 6px center; background-size: 14px; padding-left: 26px; }
.cell.is-right { background-image: var(--mk-right); }
.cell.is-wrong, .cell.is-unread { background-image: var(--mk-wrong); }
.cell.is-close, .cell.is-own { background-image: var(--mk-close); }
.cell.is-empty { background-image: var(--mk-empty); }

/* tables that do not fit (fit.js): each row a block; each value with its column name above it, debit beside credit */
.twrap.rows table, .twrap.rows tbody, .twrap.rows thead, .twrap.rows tfoot, .twrap.rows caption { display: block; width: 100%; max-width: none; }
.twrap.rows thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.twrap.rows tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 10px; border-bottom: 1.5px solid var(--line2); padding: 6px 0 8px; }
.twrap.rows th[scope="row"], .twrap.rows th[scope="rowgroup"], .twrap.rows tr.bh th { grid-column: 1 / -1; display: block; border: 0; padding: 2px 0; font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.twrap.rows td { display: flex; flex-direction: column; align-items: flex-end; border: 0 !important; padding: 2px 0; background: none; width: auto; white-space: normal; }
.twrap.rows td::before { content: attr(data-l); align-self: flex-start; color: var(--muted); font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.twrap.rows td.given { flex-direction: row; justify-content: space-between; gap: 8px; }
.twrap.rows td.given:empty { display: none; }
.twrap.rows td.nil { display: none; }
.twrap.rows tr.tot { border-bottom: 3px double var(--rule); }
.twrap.rows .stm tr, .twrap.rows .atb tr { grid-template-columns: minmax(0, 1fr) auto; }
.twrap.rows .stm th[scope="row"] { grid-column: 1; align-self: center; }
.twrap.rows .stm td::before { content: none; }
/* the worksheet as rows: one block per account, the pairs down and debit and credit across, blocks side by side
   when there is room */
.twrap.rows .ws tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); column-gap: 28px; }
.twrap.rows .ws tr { grid-template-columns: minmax(0, 1fr) 6.375rem 6.375rem; column-gap: 8px; row-gap: 4px; align-items: center; }
.twrap.rows .ws tr::before, .twrap.rows .ws tr::after { grid-row: 1; text-align: right; color: var(--muted); font-size: 1rem; }
.twrap.rows .ws tr::before { content: "Debit"; grid-column: 2; }
.twrap.rows .ws tr::after { content: "Credit"; grid-column: 3; }
.twrap.rows .ws tr:is(.nil-row, .fin)::before, .twrap.rows .ws tr:is(.nil-row, .fin)::after { content: none; }
.twrap.rows .ws th[scope="row"] { grid-column: 1; grid-row: 1; }
.twrap.rows .ws tr.nil-row th[scope="row"] { grid-column: 1 / -1; }
.twrap.rows .ws td { min-height: 0; }
.twrap.rows .ws td.amt { width: auto; min-width: 0; padding: 2px 0; }
.twrap.rows .ws td.s-d { grid-column: 1 / span 2; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; }
.twrap.rows .ws td.s-d::before { content: attr(data-p); align-self: center; text-align: left; }
.twrap.rows .ws td.s-c { grid-column: 3; flex-direction: row; justify-content: flex-end; }
/* a label wraps by word, never mid-word: when the label and the figure do not fit on one line, the figure goes under it */
.twrap.rows .ws td.s-d { flex-wrap: wrap; row-gap: 2px; }
.twrap.rows .ws td.s-d::before { flex: 1 1 0; min-width: min-content; overflow-wrap: normal; }
.twrap.rows .ws td.s-d > :first-child { margin-left: auto; }
.keyfig .twrap.rows .ws td { flex-wrap: wrap; column-gap: 6px; }
@media (max-width: 429px) {
  .twrap.rows .ws th[scope="row"] { grid-column: 1 / -1; }
  .twrap.rows .ws tr::before, .twrap.rows .ws tr::after { grid-row: 2; }
}
@media (max-width: 359px) {
  .twrap.rows .ws td.s-d { align-items: flex-end; }
  .twrap.rows .ws td.s-c { align-self: end; }
}
.twrap.rows .ws td.s-c::before { content: none; }
.twrap.rows .ws td.given.s-c:empty, .twrap.rows .ws td.given.s-d:empty { display: flex; }
.twrap.rows .cell.u-money { width: 6.375rem; }

/* feedback */
.fbwrap { margin: 8px 0 0; max-width: 76ch; }
.fbwrap [role="status"] { scroll-margin-top: 12px; }
.fb { margin: 4px 0; padding: 6px 10px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--soft); }
.fb.right { border-color: var(--right); }
.fb.sum, .fb.wrong, .fb.unread, .fb.empty { border-color: var(--wrong); }
.fb.close, .fb.own { border-color: var(--close); }
.fblist { margin: 6px 0 0; padding-left: 2.2em; max-height: none; }
.fblist li.fb { margin: 4px 0; }
.qfoot { margin-top: 8px; }

/* the key */
details.work { margin-top: 8px; }
.keyfig { margin: 4px 0; }
.keyfig .al { font-family: var(--mono); color: var(--rule); }
.keyfig .ws td.c-ad, .keyfig .ws td.c-ac { white-space: nowrap; }
.steps { margin: 6px 0 8px; padding-left: 20px; max-width: 90ch; }
.steps li { margin: 2px 0; font-variant-numeric: tabular-nums; }
.steps li.sh { list-style: none; margin: 10px 0 2px -20px; font-weight: 650; font-family: var(--slab); }

.sheet-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; }
.confirm { flex-basis: 100%; margin: 0; padding: 8px 10px; background: var(--soft); border: 1px solid var(--close); border-radius: var(--r); }
.save-hint { flex-basis: 100%; margin: 0; color: var(--muted); }
.share { margin: 0 0 22px; }
.print-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.print-row label, .share-out label { display: grid; gap: 2px; }
.share-out input { width: 100%; font-family: var(--mono); }
.recent ul { list-style: none; padding: 0; margin: 4px 0; }
.recent li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.recent small { display: block; color: var(--muted); font-size: 1rem; }
.hint { color: var(--muted); margin: 6px 0; }

/* content below the tool */
.content { max-width: 74ch; padding-bottom: 20px; }
.content h2 { font-size: 1.4rem; margin: 26px 0 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 10px 0; font-weight: 600; min-height: 44px; }
.faq p { margin: 0 0 12px; }
.sources { color: var(--muted); overflow-wrap: anywhere; }

footer { border-top: 3px double var(--rule); padding: 16px 0 28px; color: var(--muted); font-size: 1rem; }
.indep { margin: 0 0 10px; }
.sb-footer p { margin: 6px 0; }
.sb-more { line-height: 1.8; }
.sb-footer a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); max-width: min(92vw, 520px); background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r); transition: transform .2s; z-index: 10; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.print-root { display: none; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .sheet { padding: 10px 8px; }
  .hero { padding-top: 14px; }
  .hero h1 { font-size: 1.4rem; }
  .lede { display: none; }
  .chip span, .step span { padding: 6px 10px; }
  .steps-row { display: grid; grid-template-columns: 1fr 1fr; }
  .step span { width: 100%; height: 100%; }
}

@media print {
  :root { --ink: #000; --muted: #222; --line: #888; --line2: #444; --rule: #000; --paper: #fff; --bg: #fff; --accent: #000; --hi: #fff; --given: #fff; --soft: #fff; }
  @page { margin: 10mm 12mm; }
  @page land { size: landscape; margin: 8mm 9mm; }
  .land { page: land; }
  body { background: #fff; color: #000; font: 10pt/1.25 var(--sans); }
  main, footer, .skip, .toast { display: none !important; }
  .print-root { display: block; }
  .psheet, .pkey { break-after: page; }
  .pkey:last-child, .psheet:last-child { break-after: auto; }
  table.pt { width: 100%; border-collapse: collapse; }
  .pt > thead .prun { color: #222; font-size: 10pt; padding-bottom: 3px; border-bottom: 0.5pt solid #888; }
  .ph h2 { margin: 4px 0 4px; font-size: 15pt; }
  .ph p { margin: 0 0 4px; }
  .pmeta { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; }
  .phrow { display: flex; align-items: baseline; gap: 12mm; margin: 0 0 4pt; }
  .phrow .pmeta { flex: 1; margin: 0; }
  .phrow h2 { font-size: 13pt; margin: 2pt 0; }
  .prules { margin: 0 0 4pt; padding-left: 12pt; columns: 2; column-gap: 8mm; }
  .prules li { break-inside: avoid; }
  .pq, .pk { list-style: none; margin: 0; padding: 0; }
  .pq > li { padding: 2pt 0 2pt; border-top: 0.5pt solid #888; }
  .pq > li.pb { break-before: page; }
  .pk > li { padding: 4pt 0 8pt; border-top: 0.5pt solid #888; }
  .pk > li + li { break-before: page; }
  .pqh h3, .pk h3 { font-size: 12pt; margin: 2pt 0 2pt; break-after: avoid; }
  .scen, .task { margin: 0 0 3pt; max-width: none; }
  .twrap { overflow: visible; margin: 0 0 4pt; }
  .st { break-inside: avoid; }
  .st caption { padding-bottom: 2pt; text-align: center; }
  .st-t { font-size: 11pt; }
  .st th, .st td { padding: 0 3pt; border-bottom: 0.5pt solid #999; }
  .st tfoot th, .st tfoot td, .st tr.tot th, .st tr.tot td { border-top: 1pt solid #000; border-bottom: 2.5pt double #000; }
  .st .pblank { display: block; height: 0; }
  .plab { font-weight: 600; }
  .adjdata { margin: 2pt 0 4pt; max-width: none; }
  .adjdata h4 { font-size: 11pt; margin: 0 0 1pt; }
  .adjdata ol { columns: 2; column-gap: 8mm; }
  .adjdata li { break-inside: avoid; border: 0; padding: 0 0 0 2.2em; }
  /* the worksheet on a landscape page: every row a write-in line */
  .ws { width: 100%; table-layout: fixed; break-inside: auto; }
  .wsh { text-align: center; margin: 0 0 2pt; line-height: 1.15; break-after: avoid; }
  .pkey .wsh { display: none; }
  .ws col.acct, .ws th.acct { width: 50mm; }
  .psheet .wsw { break-before: page; }
  .pkey.land .steps { columns: 3; column-gap: 6mm; break-before: page; }
  .ws th, .ws td { font-size: 10pt; }
  .ws thead th.pair { font-size: 10pt; }
  .ws th.pair, .ws .sd:nth-of-type(odd) { border-left: 1pt solid #000; }
  .ws.ws10 td:is(:nth-child(2), :nth-child(4), :nth-child(6), :nth-child(8), :nth-child(10)),
  .ws.ws8 td:is(:nth-child(2), :nth-child(4), :nth-child(6), :nth-child(8)) { border-left: 1pt solid #000; }
  .ws td.amt + td.amt { border-left: 0.5pt solid #999; }
  .psheet .ws tbody tr th, .psheet .ws tbody tr td { height: 18pt; vertical-align: bottom; }
  .ws th[scope="row"] { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .ws tbody.foot tr.tot td.nil, .ws tr.nil-row td.nil { border-bottom: 0; }
  .ws tbody.foot th[scope="row"] { white-space: normal; line-height: 1.1; }
  .fsg { display: grid; grid-template-columns: 78mm minmax(0, 1fr); column-gap: 8mm; align-items: start; }
  .atb, .pc, .jr, .stm { max-width: none; }
  .psheet :is(.stm, .jr, .pc) tbody tr:not(.bh):not(.eh) th, .psheet :is(.stm, .jr, .pc) tbody tr:not(.bh):not(.eh) td,
  .psheet .pc tfoot th, .psheet .pc tfoot td { height: 19pt; vertical-align: bottom; }
  .stm td, .atb td, .pc td, .jr td { width: 28mm; }
  .psheet .stw, .psheet .pcw { max-width: 120mm; }
  .psheet .last { break-before: page; }
  .pkey .fsg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pkey .stm td, .pkey .pc td, .pkey .jr td { width: 22mm; }
  .steps { margin: 4pt 0; max-width: none; padding-left: 14pt; columns: 2; column-gap: 8mm; }
  .steps li { break-inside: avoid; }
  .steps li.sh { margin: 5pt 0 1pt -14pt; break-after: avoid; }
  .keyfig { margin: 2pt 0 4pt; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
