/* The workbook as it is in the file: white sheet, grey headings, blue verified columns.
   These are the document's own colours, shown as a picture of the document would show them. */
.wb { position: relative; min-width: 0; max-width: 100%; background: #fff; color: #000; border: 1px solid var(--line); font: 13px/1.35 'Times New Roman', Times, serif; }
.wb-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.wb-panels { min-width: 0; max-width: 100%; }
.wb-panel { display: none; min-width: 0; max-width: 100%; }
.wb-radio:nth-of-type(1):checked ~ .wb-panels > .wb-panel:nth-child(1), .wb-radio:nth-of-type(2):checked ~ .wb-panels > .wb-panel:nth-child(2),
.wb-radio:nth-of-type(3):checked ~ .wb-panels > .wb-panel:nth-child(3), .wb-radio:nth-of-type(4):checked ~ .wb-panels > .wb-panel:nth-child(4) { display: block; }
.wb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; max-width: 100%; padding: 14px; }
.wb-scroll:focus-visible { outline-offset: -3px; outline-color: #000; }
.wb table { border-collapse: collapse; width: 100%; }
.wb-grid { min-width: 1080px; font-size: 12px; }
.wb-grid th, .wb-grid td { padding: 2px 4px; }
.wb-form { max-width: 900px; }
.wb th, .wb td { border: 1px solid #000; padding: 3px 6px; text-align: left; vertical-align: middle; font-weight: 400; white-space: pre-line; }
.wb thead th, .wb .wb-head, .wb .wb-title { background: #dadada; font-weight: 700; text-align: center; }
.wb .wb-ver { background: #d9e2f3; }
.wb td.c { text-align: center; }
.wb .wb-blank { border: 0; background: #fff; }
.wb-form tbody th[scope='row'] { text-align: right; font-weight: 700; width: 32%; }
.wb-grid tbody th[scope='row'] { font-weight: 400; }
.wb-total th[scope='row'] { text-align: right; font-weight: 700; }
.wb-grid th:nth-child(8), .wb-grid td:nth-child(8) { min-width: 130px; }
.wb-grid td:last-child { min-width: 170px; }
.wb-tabs { display: flex; overflow-x: auto; background: #e9e9e9; border-top: 1px solid #9a9a9a; font: 13px/1.2 system-ui, sans-serif; }
.wb-tabs label { padding: 11px 18px; min-height: 40px; color: #333; font-size: 13px; font-weight: 400; border-right: 1px solid #c4c4c4; cursor: pointer; white-space: nowrap; }
.wb-radio:nth-of-type(1):checked ~ .wb-tabs label:nth-child(1), .wb-radio:nth-of-type(2):checked ~ .wb-tabs label:nth-child(2),
.wb-radio:nth-of-type(3):checked ~ .wb-tabs label:nth-child(3), .wb-radio:nth-of-type(4):checked ~ .wb-tabs label:nth-child(4) { background: #fff; color: #000; font-weight: 600; box-shadow: inset 0 2px 0 #000; }
.wb-radio:focus-visible ~ .wb-tabs { outline: 2px solid var(--gold); outline-offset: 2px; }
.wb { color-scheme: light; }
.wb-radio:nth-of-type(5):checked ~ .wb-panels > .wb-panel:nth-child(5),
.wb-radio:nth-of-type(6):checked ~ .wb-panels > .wb-panel:nth-child(6) { display: block; }
.wb-radio:nth-of-type(5):checked ~ .wb-tabs label:nth-child(5),
.wb-radio:nth-of-type(6):checked ~ .wb-tabs label:nth-child(6) { background: #fff; color: #000; font-weight: 600; box-shadow: inset 0 2px 0 #000; }
.wb-radio:focus-visible ~ .wb-tabs { outline-offset: -3px; }
.wb .wb-ledger { table-layout: fixed; font-size: 12px; overflow-wrap: anywhere; }
.wb .wb-ledger .wb-bold { font-weight: 700; }
.wb .wb-ledger .wb-center { text-align: center; }
.wb .wb-ledger .wb-right { text-align: right; }
.workbook-intro { display: grid; grid-template-columns: 1fr minmax(18rem, .82fr); align-items: end; gap: 1.5rem 5vw; margin-bottom: 2rem; }
.workbook-intro h2 em { color: #edcfab; }
.workbook-intro p:not(.label) { margin: 0 0 1.1rem; color: #dae5e5; max-width: 60ch; }
.sheet-frame { border: 1px solid #546968; box-shadow: 0 12px 32px #0004; min-width: 0; }
.sheet-frame .wb { border: 0; }
.sheet-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: 12px 16px; background: #172d35; color: #e3edeb; font: .88rem/1.5 var(--mono); }
.workbook-note { margin-top: 1rem; color: #c4d2d3; font-size: .94rem; }
@media (max-width: 670px) {
  .workbook-intro { grid-template-columns: 1fr; }
  .wb-scroll { max-height: 62vh; overflow-y: auto; }
  .wb-tabs { flex-wrap: wrap; }
  .wb-tabs label { padding-inline: 12px; }
}
