/* Leibold Irrigation inventory control system.
   Looks like the company's own paperwork: white paper, black type, the logo's
   red, grey rules, a heavy rule under the letterhead, boxed form fields like
   the purchase order, and spreadsheet-style tables the crew already knows. */

@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/serif.woff2") format("woff2"), url("/assets/fonts/serif.ttf") format("truetype"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-400.woff2") format("woff2"), url("/assets/fonts/plex-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-500.woff2") format("woff2"), url("/assets/fonts/plex-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-600.woff2") format("woff2"), url("/assets/fonts/plex-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --shade: #f3f3f2;      /* table heads, hover, field labels */
  --shade-2: #e9e9e7;
  --rule: #c9c9c6;       /* box and table borders */
  --rule-soft: #e2e2df;  /* row lines */
  --ink: #141414;
  --ink-2: #4a4a47;
  --muted: #6b6b67;      /* 5.3:1 on white */
  --grey: #969696;       /* the purchase order's grey */

  --red: #c40d0d;        /* logo red, deepened for text and buttons on white */
  --red-dark: #9e0a0a;
  --mark-ink: #141414;
  --mark-red: #fd0100;   /* the logo itself */

  --ok: #1d6b3b;   --ok-bg: #e4f2e8;
  --low: #7a5200;  --low-bg: #fbf0d4;
  --crit: #b00c0c; --crit-bg: #fbe3e1;

  --ok-line: #b9dcc4; --low-line: #e9d29a; --crit-line: #efb4ae; --danger-line: #e2a39d;
  --hover: #f8f8f6;      /* row hover */
  --selected: #fff6d6;   /* selected row, like a highlighted cell */
  --inverse: #141414; --on-inverse: #ffffff;   /* toasts, pressed toggles */

  --series-1: #2b2b29;   /* the measured value */
  --series-2: #a9a9a5;   /* the estimate it is compared with */

  --serif: "Source Serif 4", "Lucida Bright", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 3vw, 48px);
  --max: 1480px;
}

/* Dark mode: the same paperwork layout on charcoal. Follows the device unless
   the header switch has set data-theme. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1b1b1a; --shade: #242423; --shade-2: #2d2d2b;
  --rule: #4a4a46; --rule-soft: #353533;
  --ink: #ecebe7; --ink-2: #c6c5bf; --muted: #a09f99; --grey: #807f7a;
  --red: #d42a26; --red-dark: #b81f1c;
  --mark-ink: #ecebe7; --mark-red: #ff2b1f;
  --ok: #86d6a1;   --ok-bg: #1c3225;   --ok-line: #2f5a3e;
  --low: #ecc675;  --low-bg: #372d12;  --low-line: #6a5622;
  --crit: #ff9389; --crit-bg: #3d1e1c; --crit-line: #7a3530; --danger-line: #7a3530;
  --hover: #222221; --selected: #3a3418;
  --inverse: #ecebe7; --on-inverse: #141414;
  --series-1: #e4e3de; --series-2: #6e6d68;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1b1b1a; --shade: #242423; --shade-2: #2d2d2b;
    --rule: #4a4a46; --rule-soft: #353533;
    --ink: #ecebe7; --ink-2: #c6c5bf; --muted: #a09f99; --grey: #807f7a;
    --red: #d42a26; --red-dark: #b81f1c;
    --mark-ink: #ecebe7; --mark-red: #ff2b1f;
    --ok: #86d6a1;   --ok-bg: #1c3225;   --ok-line: #2f5a3e;
    --low: #ecc675;  --low-bg: #372d12;  --low-line: #6a5622;
    --crit: #ff9389; --crit-bg: #3d1e1c; --crit-line: #7a3530; --danger-line: #7a3530;
    --hover: #222221; --selected: #3a3418;
    --inverse: #ecebe7; --on-inverse: #141414;
    --series-1: #e4e3de; --series-2: #6e6d68;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); }
a { color: var(--ink); text-decoration-color: var(--grey); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 .8em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mk-ink { fill: var(--mark-ink); }
.mk-red { fill: var(--mark-red); }

/* ---------- type ---------- */
.page-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
main { padding: 26px 0 72px; }

/* letterhead: logo, company name, heavy rule like the purchase order */
.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 26px; height: 34px; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; align-self: stretch; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: flex; align-items: center; padding: 0 12px; text-decoration: none; color: var(--ink-2); font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.nav a:hover { color: var(--ink); background: var(--shade); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.who { display: flex; align-items: center; gap: 16px; flex: none; font-size: .9rem; }
.who a { color: var(--ink-2); }
.theme-switch { background: none; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink-2); font: 500 .85rem var(--sans); padding: 4px 9px; cursor: pointer; }
.theme-switch:hover { color: var(--ink); background: var(--shade); }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 10px; }
  .who { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; height: 44px; }
}

/* job heading + section tabs (folder tabs) */
.job-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: 16px; }
.job-head .meta { color: var(--ink-2); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: .95rem; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 14px; color: var(--ink-2); font-weight: 500; text-decoration: none; white-space: nowrap; border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); background: var(--shade); }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--paper); border-color: var(--rule); border-top: 3px solid var(--red); padding-top: 7px; }

/* ---------- sections ---------- */
.block { margin: 0 0 40px; }
.block > h2, .block-head h2 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
.block > h2 { margin-bottom: 12px; }
.block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.block-head .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cols { display: grid; gap: 8px 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cols-side { grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 460px); } }

/* ---------- key figures: boxed fields, like the PO's ship-info row ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 36px; overflow: hidden; }
.figures > div { display: flex; flex-direction: column; padding: 0 0 10px; border-left: 1px solid var(--rule); min-width: 0; }
.figures > div:first-child { border-left: 0; }
.figures .label { order: -1; display: block; background: var(--shade); border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: .82rem; padding: 5px 12px; }
.figures .fig { display: block; margin-top: auto; padding: 8px 12px 0; font-size: 1.55rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.figures .fig small { font-size: .62em; color: var(--muted); font-weight: 500; }
.figures .fig.bad { color: var(--crit); }
.figures .fig.warn { color: var(--low); }
@media (max-width: 640px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .figures > div { border-left: 0; border-top: 1px solid var(--rule); }
  .figures > div:nth-child(2n) { border-left: 1px solid var(--rule); }
  .figures > div:nth-child(-n+2) { border-top: 0; }
}

/* ---------- tables: spreadsheet-style ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-weight: 600; color: var(--ink); font-size: .85rem; padding: 7px 10px; background: var(--shade); border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th + th, td + td { border-left: 1px solid var(--rule-soft); }
th.num, td.num { text-align: right; }
tbody tr.row-link { cursor: pointer; }
tbody tr.row-link:hover { background: var(--hover); }
tbody tr.selected, tbody tr.selected:hover { background: var(--selected); }
tr.group td { background: var(--shade-2); font-weight: 600; font-size: .88rem; padding-top: 6px; padding-bottom: 6px; }
tfoot td { border-top: 1px solid var(--rule); border-bottom: 0; font-weight: 600; background: var(--shade); }
td .sub { display: block; color: var(--muted); font-size: .82rem; }
.empty { color: var(--muted); padding: 14px 0; }

/* ---------- chips ---------- */
.chip { display: inline-block; font-size: .8rem; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 3px; border: 1px solid var(--rule); color: var(--ink-2); background: var(--paper); white-space: nowrap; }
.chip.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.chip.low { color: var(--low); background: var(--low-bg); border-color: var(--low-line); }
.chip.critical { color: var(--crit); background: var(--crit-bg); border-color: var(--crit-line); }
.chip.reorder { color: var(--ink); background: var(--paper); border-color: var(--ink); }
.chip.archived { color: var(--muted); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--grey); background: var(--paper); color: var(--ink); font: 500 .95rem var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--shade); border-color: var(--ink-2); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { border-color: transparent; color: var(--ink-2); padding: 0 8px; background: none; }
.btn.ghost:hover { color: var(--ink); background: var(--shade); }
.btn.danger { color: var(--crit); border-color: var(--danger-line); }
.btn.armed { background: var(--crit); border-color: var(--crit); color: var(--paper); }
.btn.small { height: 30px; padding: 0 10px; font-size: .85rem; }
.btn:disabled { opacity: .45; cursor: default; }

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
label.field > small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
input, select, textarea { width: 100%; height: 38px; padding: 0 9px; border-radius: 3px; border: 1px solid var(--grey); background: var(--paper); color: var(--ink); font: 400 .95rem var(--sans); }
textarea { height: auto; min-height: 84px; padding: 7px 9px; line-height: 1.45; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
input:disabled, select:disabled, textarea:disabled { background: var(--shade); color: var(--ink-2); }
input[type="number"] { font-variant-numeric: tabular-nums; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ink); }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.cell-input { height: 32px; width: 84px; text-align: right; padding: 0 7px; }
.cell-input.wide { width: 100%; text-align: left; }
.cell-input.dirty { border-color: var(--low); background: var(--low-bg); }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--grey); border-radius: 4px; overflow: hidden; }
.seg button { background: var(--paper); border: 0; border-left: 1px solid var(--rule); color: var(--ink-2); font: 500 .88rem var(--sans); padding: 7px 12px; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--shade); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--inverse); color: var(--on-inverse); }
.seg .count { opacity: .7; margin-left: 6px; font-variant-numeric: tabular-nums; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.toolbar input[type="search"] { max-width: 260px; }

/* holes: check boxes, like the Y grid in the workbook */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.area { height: 40px; border-radius: 3px; border: 1px solid var(--grey); background: var(--paper); color: var(--ink-2); font: 500 .9rem var(--sans); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.area::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--grey); border-radius: 2px; background: var(--paper); flex: none; }
.area:hover { background: var(--shade); color: var(--ink); }
.area[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.area[aria-pressed="true"]::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.area:disabled { cursor: default; }

/* editor panel beside a list (inventory, contacts, users) */
.frame { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: 4px; padding: 16px 18px; }
.frame h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-bottom: 12px; }
.st-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .st-layout.has-editor { grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 440px); } .st-layout .editor { position: sticky; top: 74px; max-height: calc(100vh - 92px); overflow: auto; } }

/* ---------- division stock levels ---------- */
.div-rows { border: 1px solid var(--rule); border-radius: 4px; }
.div-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(120px, 1.5fr) 200px; gap: 6px 18px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--rule-soft); }
.div-row:first-child { border-top: 0; }
.div-row .name { font-weight: 600; }
.div-row .name small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.div-row .counts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bar-track { height: 10px; background: var(--shade-2); border-radius: 2px; position: relative; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--ok); border-radius: 2px; }
.bar-label { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .85rem; margin-top: 3px; }
@media (max-width: 640px) { .div-row { grid-template-columns: 1fr; } .div-row .counts { justify-content: flex-start; } }

.split { display: flex; gap: 2px; height: 14px; margin: 4px 0 8px; }
.split > span { border-radius: 2px; min-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text, .chart .lbl { fill: var(--muted); font: 400 11px var(--sans); font-variant-numeric: tabular-nums; }
.chart .val { fill: var(--ink); font: 600 11px var(--sans); font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--rule-soft); stroke-width: 1; }
.chart .base { stroke: var(--ink-2); stroke-width: 1; }
.chart .hit { fill: transparent; }
.chart g.col:hover .mark { opacity: .8; }
.chart-cap { color: var(--muted); font-size: .85rem; margin: 8px 0 0; max-width: 70ch; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--paper); border: 1px solid var(--ink); border-radius: 3px; padding: 7px 9px; font-size: .85rem; min-width: 140px; }
.tip b { display: block; font-weight: 600; margin-bottom: 3px; }
.tip div { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.tip div span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
details.table-view { margin-top: 8px; }
details.table-view summary { cursor: pointer; color: var(--ink-2); font-size: .85rem; }
details.table-view .table-wrap { margin-top: 6px; }

/* ---------- sign in ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gutter); background: var(--shade); }
.auth-box { width: 100%; max-width: 380px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: 4px; padding: 26px 24px; }
.auth-box svg { width: 40px; height: auto; margin-bottom: 14px; }
.auth-box h1 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.15; margin-bottom: 6px; }
.auth-box p { color: var(--ink-2); margin-bottom: 18px; }
.auth-box .btn { width: 100%; height: 42px; margin-top: 4px; }
.form-error { color: var(--crit); font-size: .9rem; margin: 2px 0 8px; min-height: 1.2em; }

/* ---------- messages ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; background: var(--inverse); color: var(--on-inverse); border-radius: 4px; padding: 10px 16px; font-size: .92rem; max-width: min(560px, calc(100vw - 32px)); }
.toast.error { background: var(--crit); color: var(--paper); }
.banner { border: 1px solid var(--rule); background: var(--shade); border-radius: 4px; padding: 9px 12px; margin-bottom: 22px; color: var(--ink-2); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.banner.warn { background: var(--low-bg); border-color: var(--low-line); color: var(--low); }
.loading { color: var(--muted); padding: 32px 0; }
.disclaimer { color: var(--muted); font-size: .82rem; max-width: 80ch; margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

@media (pointer: coarse) {
  .btn, input, select { min-height: 44px; }
  .btn.small, .cell-input, .seg button { min-height: 40px; }
}

/* ---------- purchase order paper ---------- */
.paper-bar { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 16px; }
.paper { background: #fff; color: #111; max-width: 820px; margin: 0 auto; padding: 40px 44px; font: 400 13px/1.45 var(--sans); border: 1px solid var(--rule); }
.paper .po-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; border-bottom: 2px solid #111; padding-bottom: 14px; margin-bottom: 16px; }
.paper .po-brand { display: flex; gap: 14px; align-items: flex-start; }
.paper .po-brand svg { width: 42px; }
.paper .mk-ink { fill: #141414; }
.paper .mk-red { fill: #fd0100; }
.paper th { color: #333; }
.paper td, .paper b, .paper h4 { color: inherit; }
.paper .po-brand b { font-family: var(--serif); font-size: 18px; display: block; }
.paper .po-num { text-align: right; }
.paper .po-num b { display: block; font-family: var(--serif); font-size: 20px; }
.paper .po-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.paper .po-meta h4 { font-size: 11px; color: #555; font-weight: 600; margin-bottom: 4px; }
.paper .po-notice { font-weight: 600; font-size: 11.5px; margin: 10px 0; }
.paper table { font-size: 12.5px; }
.paper th { background: none; color: #333; border-bottom: 1px solid #111; font-size: 11.5px; padding: 6px 8px 6px 0; white-space: normal; }
.paper th + th, .paper td + td { border-left: 0; }
.paper td { border-bottom: 1px solid #ddd; padding: 6px 8px 6px 0; }
.paper tbody tr:last-child td { border-bottom: 1px solid #ddd; }
.paper .ship td, .paper .ship th { border: 1px solid #bbb; padding: 5px 6px; }
.paper .ship { margin-bottom: 14px; }
.paper .po-total td { border-top: 1px solid #111; border-bottom: 0; font-weight: 700; background: none; }
.paper .po-foot { display: grid; grid-template-columns: 1fr auto; gap: 24px; margin-top: 18px; }
.paper .terms { columns: 2; column-gap: 28px; font-size: 9.5px; line-height: 1.4; white-space: pre-line; }
.paper .terms-page { margin-top: 36px; border-top: 2px solid #111; padding-top: 14px; }
.paper .terms-page h4 { font-size: 12px; margin-bottom: 10px; }
@media print {
  .site-header, .no-print, .paper-bar, .toast { display: none !important; }
  main { padding: 0; }
  .wrap { padding: 0; max-width: none; }
  .paper { max-width: none; padding: 0; border: 0; }
  .paper .terms-page { break-before: page; border-top: 0; margin-top: 0; }
}
