/* Home Sizing. Swiss / International style, like a printed engineering data sheet.
   Light only: white paper, black ink, greys, square corners, 2px and 6px black rules, Helvetica set large.
   Colour has exactly two jobs: red #e30613 = safety (a result that can hurt someone if ignored),
   yellow #ffc400 = warning (the size works but check something). Everything else is black.
   No dark panels, no green, no gradients, no shadows, no rounded cards, no pills, no uppercase labels. */
:root {
  --bg: #ffffff; --ink: #000000; --ink-2: #222222; --muted: #5f5f5f; --line: #d6d6d6; --line-2: #9a9a9a; --tint: #f3f3f3;
  --warn: #ffc400; --bad: #e30613;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
code { font-size: .9em; background: var(--tint); padding: 1px 4px; }
[hidden] { display: none !important; }
.n { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── header + nav ─────────────────────────────────────────────────── */
.top { background: #fff; border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 30; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 58px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 18px; height: 18px; border: 3px solid var(--ink); position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 4px; background: var(--ink); }
.topnav { display: flex; margin-left: auto; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.topnav .menu > summary { font-size: 16px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.topnav .menu > summary::after, .allnav > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.topnav .menu > summary:hover, .menu[open] > summary { background: var(--ink); color: #fff; }
.topnav .menu > summary.cur { font-weight: 700; }
.menu-pop { position: absolute; right: 0; top: 100%; background: #fff; border: 2px solid var(--ink); min-width: 340px; }
.menu-pop ul { list-style: none; margin: 0; padding: 0; }
.menu-pop li + li { border-top: 1px solid var(--line); }
.menu-pop a { display: grid; gap: 1px; padding: 10px 14px; text-decoration: none; }
.menu-pop a:hover, .menu-pop a[aria-current] { background: var(--ink); color: #fff; }
.menu-pop a:hover .md, .menu-pop a[aria-current] .md { color: #cfcfcf; }
.menu-pop .mn { font-weight: 700; font-size: 16px; }
.menu-pop .md { font-size: 14px; color: var(--muted); line-height: 1.4; }
.allnav { display: none; margin-left: auto; }
.allnav > summary { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 8px 12px; border: 2px solid var(--ink); min-height: 42px; }
.sheet { position: fixed; left: 0; right: 0; top: 60px; max-height: calc(100vh - 60px); overflow: auto; background: #fff; border-bottom: 2px solid var(--ink); padding: 4px 20px 20px; }
.sheet-h { margin: 16px 0 0; font-size: 15px; font-weight: 700; padding-bottom: 4px; border-bottom: 2px solid var(--ink); }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet a { display: block; padding: 10px 0; min-height: 44px; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet a[aria-current] { font-weight: 700; }
@media (max-width: 980px) { .topnav { display: none; } .allnav { display: block; } }

/* ── type ─────────────────────────────────────────────────────────── */
h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.0; letter-spacing: -.035em; font-weight: 700; margin: 0; max-width: 24ch; text-wrap: balance; }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 22px 0 6px; font-weight: 700; }
.lede { color: var(--ink-2); margin: 14px 0 0; font-size: 20px; line-height: 1.45; max-width: 62ch; }
.lede-s { color: var(--ink-2); margin: 0; max-width: 62ch; }
.fh { color: var(--muted); font-size: 14px; margin: 6px 0 0; line-height: 1.45; }
.phead { padding: 30px 0 26px; }
.xlink { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); }
.crumb { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.crumb a { color: var(--muted); }

/* ── calculator ───────────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-top: 6px solid var(--ink); border-bottom: 2px solid var(--ink); }
.inputs { padding: 20px 28px 24px 0; border-right: 2px solid var(--ink); display: grid; gap: 16px; align-content: start; }
.out { padding: 20px 0 28px 28px; min-width: 0; }
@media (max-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .inputs { padding: 18px 0 22px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .out { padding: 20px 0 24px; }
}
.fld { display: grid; gap: 5px; }
.fl { font-size: 15px; font-weight: 700; }
.fin { display: flex; align-items: stretch; }
.fin input { flex: 1; min-width: 0; }
input[type=number] { appearance: textfield; -moz-appearance: textfield; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink);
  font: 400 20px/1.2 var(--sans); font-variant-numeric: tabular-nums; padding: 9px 11px; min-height: 48px; width: 100%; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.unit { display: flex; align-items: center; padding: 0 12px; border: 2px solid var(--ink); border-left: 0; background: var(--tint); font-size: 15px; white-space: nowrap; }
select.sel { appearance: none; width: 100%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); border: 2px solid var(--ink); border-radius: 0; padding: 11px 36px 11px 11px; font: 16px var(--sans); min-height: 48px; }
.chk { display: flex; gap: 10px; align-items: center; font-size: 16px; cursor: pointer; min-height: 32px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: #000; margin: 0; flex: none; }
.adv { border-top: 1px solid var(--ink); padding-top: 4px; }
.adv > summary { cursor: pointer; font-weight: 700; padding: 8px 0; list-style: none; display: flex; justify-content: space-between; }
.adv > summary::-webkit-details-marker { display: none; }
.adv > summary::after { content: "+"; font: 400 24px/1 var(--sans); }
.adv[open] > summary::after { content: "–"; }
.adv[open] { display: grid; gap: 16px; padding-bottom: 4px; }
.when { display: grid; }
.fnote { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.apps { border: 0; padding: 0; margin: 0; min-width: 0; }
.apps legend { font-size: 15px; font-weight: 700; padding: 0 0 6px; }
.apptbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.apptbl th { text-align: left; font-size: 13px; font-weight: 400; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 4px 6px 4px 0; }
.apptbl td { border-bottom: 1px solid var(--line); padding: 4px 6px 4px 0; vertical-align: middle; }
.apptbl td:nth-child(2) { color: var(--muted); }
.apptbl input[type=number] { width: 64px; min-height: 36px; padding: 4px 8px; font-size: 17px; border-width: 1px; }
.apptbl input[type=number]:not([value="0"]) { font-weight: 700; }
.v240 { color: var(--ink); white-space: nowrap; }

/* the answer */
.ans { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0; max-width: 22ch; text-wrap: balance; }
.ans-s { font-size: 19px; line-height: 1.45; margin: 14px 0 0; max-width: 58ch; color: var(--ink-2); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 0; }
.copied { font-size: 14px; color: var(--muted); }
.btn { appearance: none; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 700 15px/1.1 var(--sans); padding: 10px 14px; border-radius: 0; cursor: pointer; min-height: 44px; }
.btn:hover { background: #fff; color: var(--ink); }
.btn-quiet { background: #fff; color: var(--ink); font-weight: 400; }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.warns { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; max-width: 70ch; }
.warns li { border-left: 6px solid var(--ink); padding: 2px 0 2px 14px; font-size: 16px; line-height: 1.45; }
.warns .w-warn { border-left-color: var(--warn); }
.warns .w-bad { border-left-color: var(--bad); font-weight: 700; }
.out-h { font-size: 19px; margin: 28px 0 8px; padding-top: 10px; border-top: 2px solid var(--ink); }
.work { width: 100%; border-collapse: collapse; font-size: 15px; }
.work th { text-align: left; font-weight: 400; width: 38%; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.work td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.work td.n { font-weight: 700; }
.work td.note { color: var(--muted); font-size: 14px; }
.work tr:last-child th, .work tr:last-child td { border-bottom: 2px solid var(--ink); }
@media (max-width: 560px) { .work td.note { display: none; } }
.picks { margin: 0; padding-left: 20px; }
.picks li { margin: 5px 0; }

/* answer pages */
.short { border-top: 6px solid var(--ink); padding: 22px 0 26px; }
.assume { margin: 14px 0 0; color: var(--muted); font-size: 15px; max-width: 70ch; }
.grid { width: 100%; max-width: 900px; border-collapse: collapse; font-size: 17px; }
.grid th, .grid td { text-align: left; padding: 9px 16px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid thead th { border-bottom: 2px solid var(--ink); font-size: 15px; color: var(--muted); font-weight: 400; }
.grid tbody th { font-weight: 400; }
.grid tbody td { font-weight: 700; }
.wide { max-width: none; }

/* ── copy below the calculator ────────────────────────────────────── */
.copy { max-width: 780px; }
.block { margin: 56px 0 0; border-top: 2px solid var(--ink); padding-top: 12px; }
.block p, .block li { color: var(--ink-2); }
.block ul, .block ol { padding-left: 22px; }
.block li { margin: 6px 0; }
.tbl { overflow-x: auto; }
.block table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 10px 0; }
.block th, .block td { text-align: left; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.block thead th { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--sans); }
.faq details[open] summary::after { content: "–"; }
.ans-body p:first-child { margin-top: 0; }
.alist { list-style: none; padding: 0 !important; }
.alist li { margin: 0; border-bottom: 1px solid var(--line); }
.alist a { display: block; padding: 10px 0; font-weight: 700; text-decoration: none; }
.alist a:hover { text-decoration: underline; }
.text h1 { padding-top: 34px; }
.text { padding-bottom: 72px; }
.statezones { font-size: 15px; line-height: 1.7; }

/* rows (related, home) */
.related { margin: 64px 0 72px; max-width: 900px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.trow { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.trow:hover { background: var(--tint); }
.trow:hover .tn { text-decoration: underline; }
.tn { font-weight: 700; }
.td { color: var(--muted); font-size: 15px; }
.trow-3 { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr) minmax(0, 1.2fr); }
.tv { font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .trow, .trow-3 { grid-template-columns: 1fr; gap: 2px; } }

/* ── home ─────────────────────────────────────────────────────────── */
.home-head { padding: 52px 0 36px; border-bottom: 6px solid var(--ink); }
.home-head h1 { font-size: clamp(48px, 8vw, 104px); letter-spacing: -.045em; max-width: 12ch; }
.home-head .lede { font-size: 21px; }
.hgroup { margin: 44px 0 0; }
.group-h { font-size: 30px; margin: 0 0 10px; }
.cols { columns: 2 340px; column-gap: 40px; list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.cols li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.cols a { display: block; padding: 10px 0; text-decoration: none; font-weight: 700; }
.cols a:hover { text-decoration: underline; }
.home-copy { margin-bottom: 72px; }

/* ── footer ───────────────────────────────────────────────────────── */
.foot { border-top: 6px solid var(--ink); padding: 30px 0 40px; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 24px; }
.foot-about p { margin: 0 0 8px; max-width: 42ch; }
.foot h2 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 8px; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 5px 0; }
.foot a { color: var(--ink-2); }
.foot-brand { font-weight: 700; font-size: 19px; color: var(--ink); }
.legal { margin: 24px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
/* phone answer bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 6px solid var(--ink); text-decoration: none; }
.mbar-h { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.mbar-go { font-size: 15px; border: 2px solid var(--ink); padding: 6px 10px; white-space: nowrap; }
@media (min-width: 861px) { .mbar { display: none !important; } }
@media print { .top, .foot, .acts, .related { display: none; } .calc { grid-template-columns: 1fr 1fr; } }
