/* otc-design.css — the OTC design system, v33 (session T1, 14 Oct 2026 built v32; retargeted to v33 on 20 Oct 2026).
   Source of truth: docs/page-template/v33/index-clean.html = the v32 rules + docs/page-template/v33/redesign.css on top
   (sha256s in docs/page-template/README.md). This file is built the same way: the v32 reproduction below (named tokens),
   then the "v33 block" = every redesign.css rule in source order with its variables mapped to the --o-* tokens (the
   preview-only .banner / .vtoggle rules left out), then the "house floor" block (docs/page-template/floor.json F21, F22,
   F23, F6). The intended differences from the reference: system font stacks with no font file (floor F1 / F7), the
   F21 field-border colours (≥ 3:1, enforced by template-match's required floor entries) and the F22 / F23 / F6 sizes
   and ring. The preview-only Desktop/Phone bar is not here.
   Load order (docs/design-standard.md head order): styles.css -> otc-design.css -> the scoped <style> with the design layer.
   A few rules restore the browser defaults v32 relies on that styles.css resets ("UA defaults" block); never delete them.
   Pages use it through drafts/templates/calculator-page.tpl; template-match.js checks the result against the v33 reference. */

/* ---- tokens ---- */
:root{
  /* colours (v32 :root) */
  --o-page:#F6F7FB; --o-surface:#FFFFFF; --o-ink:#111827; --o-ink2:#374151; --o-muted:#5F6878;
  --o-line:#C3CAD6; --o-field:#F4F6FA; --o-fieldline:#C3CAD6; --o-boxline:#7B8597; --o-accent:#2155E5; --o-accent-ink:#1A43B8;
  --o-brand:#0E9F6E; --o-brand-ink:#05664A; --o-brand-soft:#E8F8F1;
  --o-formula:#FCF0C9; --o-formula-ink:#382A00; --o-tip:#EEF3FF; --o-tip-line:#D5E0FF; --o-rowhover:#EEF3FF; --o-boxhover:#5A84EE; --o-keyhover:#12A574;
  /* colours v32 wrote inline (now named) */
  --o-card-line:#C3C8D4; --o-seg-bg:#EEF1F6; --o-ink3:#4B5563; --o-key-line:#3E9C78; --o-similar-top:#FFF5DD; --o-row-line:#F0F2F6;
  --o-row-hover:#FAFBFD; --o-hover-line:#9AA3B2; --o-th-bg:#F8FAFC; --o-th-line:#EEF1F6; --o-body-text:#2B3443; --o-tip-text:#23324F;
  --o-red:#DC2626; --o-red-ink:#B91C1C; --o-tipb-line:#A9B2C1; --o-tipb-ink:#6B7585; --o-disabled:#A3AAB6; --o-disabled-line:#E6E9EF;
  --o-learn:#FFF4D4; --o-switch-off:#CBD2DC; --o-tipbox-ink:#F3F4F6; --o-copy-hover:#E8EEFF; --o-prog:#DCE5FB; --o-opt-on:#F3F6FF;
  --o-share-dot:#F43F5E; --o-logo:#047857; --o-logo-hover:#059669; --o-ph-blue:#EAF0FF;
  --o-glow:0 0 0 3px rgba(33,85,229,.15); --o-glow-red:0 0 0 3px rgba(220,38,38,.15);
  /* fonts: v33 system stacks (redesign.css --f-body / --f-mono) — no web font, no font file, no preload (floor F1 / F7).
     Until 20 Oct 2026 these read var(--font-body) / var(--font-mono) = the self-hosted DM Sans / JetBrains Mono (plan D6). */
  --o-f-body:Arial,'Helvetica Neue',sans-serif;
  --o-f-mono:'SFMono-Regular',Consolas,monospace;
  /* type sizes */
  --o-fs-base:16px; --o-fs-h1:28px; --o-fs-h1-phone:26px; --o-fs-h2:21px; --o-fs-h3:16px; --o-fs-toc:18px; --o-fs-group:15px;
  --o-fs-ui:14px; --o-fs-text:13.4px; --o-fs-small:13px; --o-fs-micro:12.5px; --o-fs-hint:12px; --o-fs-num:16px; --o-fs-num-phone:18px;
  --o-fs-tag:22px; --o-fs-modal:19px; --o-fs-tip:13.5px; --o-fs-logo:.95rem;
  /* radii */
  --o-r-pill:999px; --o-r-card:16px; --o-r-calc:10px; --o-r-seg:12px; --o-r-segbtn:9px; --o-r-box:11px; --o-r-btn:12px;
  --o-r-sm:10px; --o-r-xs:8px; --o-r-tbox:14px; --o-r-chip:5px; --o-r-modal:18px;
  /* spacing and sizes */
  --o-wrap:1220px; --o-gutter:clamp(16px,4vw,44px); --o-col-article:520px; --o-col-rail:380px; --o-col-rail-md:340px;
  --o-col-gap:56px; --o-col-gap-md:36px; --o-gap-calc:4px; --o-gap-rail:20px; --o-gap-fields:20px; --o-pad-card:20px;
  --o-tap:44px; --o-box-h:46px; --o-photo:52px;
  /* shadows */
  --o-sh-hdr:0 6px 16px rgba(59,104,252,.1),0 1px 2.8px 1px rgba(41,76,194,.06);
  --o-sh-seg:0 1px 2px rgba(17,24,39,.14); --o-sh-pop:0 16px 40px rgba(17,24,39,.16);
  /* script contract (header script keeps it exact; sticky rail reads --railtop) */
  --hdr:113px;
  color-scheme:light;
}

/* ---- base ---- */
[hidden]{display:none!important}
*{box-sizing:border-box}
body.otc{margin:0;background:var(--o-page);color:var(--o-ink);font-family:var(--o-f-body);font-size:var(--o-fs-base);line-height:normal;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
/* v33 (20 Oct 2026): styles.css sets var(--font-body) on body, inputs, textareas and buttons and the design layer declares it
   as DM Sans at :root; on a template page both must resolve to the system stacks so no font file is ever requested (F1 / F7) */
body.otc{--font-body:Arial,'Helvetica Neue',sans-serif;--font-mono:'SFMono-Regular',Consolas,monospace}
a{color:var(--o-accent);text-decoration:underline;text-underline-offset:2px}
a:hover{color:var(--o-accent-ink)}
button{font-family:inherit}
input::placeholder,textarea::placeholder{color:var(--o-muted);opacity:1}
:focus-visible{outline:3px solid var(--o-accent);outline-offset:2px}
/* UA defaults v32 relies on (styles.css resets margin/padding and styles every label and select) */
button{padding:1px 6px}
label{display:inline;font-weight:inherit;color:inherit;margin-bottom:0}
.lbl label{font-size:inherit}
.box select,.usel select,.box input{width:auto;min-height:0;border-radius:0;background-image:none}
.wrap{max-width:var(--o-wrap);margin:0 auto;padding-inline:var(--o-gutter)}
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* ---- header ---- */
.logo svg{flex:0 0 auto;border-radius:7px}
.hdr{background:var(--o-surface);border-bottom:1px solid var(--o-line);position:sticky;top:0;z-index:30;box-shadow:var(--o-sh-hdr)}
.hrow{display:flex;align-items:center;gap:20px;padding-block:12px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--o-ink);min-height:var(--o-tap);flex:0 0 auto}
.logo b{font-family:var(--o-f-mono);font-weight:500;font-size:var(--o-fs-logo);letter-spacing:-.02em;color:var(--o-logo)}
.logo:hover b{color:var(--o-logo-hover)}
.search{flex:1 1 auto;display:flex;align-items:center;gap:10px;height:var(--o-tap);border:1px solid var(--o-line);background:var(--o-field);border-radius:var(--o-r-pill);padding-inline:16px;color:var(--o-muted);max-width:720px;font-size:var(--o-fs-base)}
.search input{flex:1;min-width:0;border:0;background:transparent;font:400 var(--o-fs-ui) var(--o-f-body);color:var(--o-ink);outline:none}
.search:focus-within{border-color:var(--o-accent);background:var(--o-surface);box-shadow:var(--o-glow)}
.hlinks{margin-left:auto;display:flex;align-items:center;gap:6px}
.hlinks a{color:var(--o-ink2);text-decoration:none;font-size:var(--o-fs-ui);font-weight:500;min-height:var(--o-tap);display:flex;align-items:center;padding-inline:10px;border-radius:var(--o-r-sm)}
.hlinks a:hover{background:var(--o-field)}
.mob{display:none;margin-left:auto;gap:4px}
.ibtn{width:var(--o-tap);height:var(--o-tap);border:0;border-radius:var(--o-r-sm);background:transparent;color:var(--o-ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ibtn:hover{background:var(--o-field)}
.tabs{display:flex;gap:4px 30px;overflow-x:auto;scrollbar-width:none}
.tabs a{color:var(--o-ink3);text-decoration:none;font-size:var(--o-fs-ui);font-weight:500;min-height:var(--o-tap);display:flex;align-items:center;border-bottom:2px solid transparent;white-space:nowrap}
.tabs a:hover{color:var(--o-ink)}
.tabs a[aria-current]{color:var(--o-brand-ink);border-bottom-color:var(--o-brand);font-weight:600}
.mmenu{display:none;flex-direction:column;padding:4px 20px 12px;border-top:1px solid var(--o-line);background:var(--o-surface)}
body.menu .mmenu{display:flex}
.mmenu a{min-height:48px;display:flex;align-items:center;color:var(--o-ink);text-decoration:none;font-size:15px;border-bottom:1px solid var(--o-row-line)}

/* ---- page grid + desktop smart-sticky rail ---- */
.grid{display:grid;grid-template-columns:minmax(0,var(--o-col-article)) var(--o-col-rail);grid-template-areas:"head rail" "meta rail" "body rail";grid-template-rows:auto auto 1fr;column-gap:var(--o-col-gap);justify-content:start;align-items:start;padding-block:40px 80px}
.head{grid-area:head;min-width:0}.meta{grid-area:meta;min-width:0}.body{grid-area:body;min-width:0;max-width:var(--o-col-article)}
.rail{grid-area:rail;min-width:0;display:flex;flex-direction:column;gap:var(--o-gap-rail)}
.related{display:flex;flex-direction:column;gap:var(--o-gap-rail);min-width:0}
@media (min-width:861px){.grid>.rail{position:sticky;top:var(--railtop,calc(var(--hdr) + 24px))}}

/* ---- H1 block ---- */
.updated{font-size:var(--o-fs-small);color:var(--o-muted);margin-bottom:8px}
.updated b{color:var(--o-ink);font-weight:600}
h1{margin:0 0 22px;font-size:var(--o-fs-h1);line-height:1.12;letter-spacing:-.025em;font-weight:700;text-wrap:balance}

/* ---- calculator: separate cards, 4 px apart ---- */
.calc{display:flex;flex-direction:column;gap:var(--o-gap-calc);position:relative}
.ccard,.calc>.grp{background:var(--o-surface);border:1px solid var(--o-card-line);border-radius:var(--o-r-calc)}
/* Employee / Employer soft segmented switch */
.seg{display:flex;gap:4px;background:var(--o-seg-bg);border-radius:var(--o-r-seg);padding:4px;margin:12px}
.seg button{flex:1 1 50%;min-height:var(--o-tap);border:0;border-radius:var(--o-r-segbtn);background:transparent;color:var(--o-ink3);font:500 var(--o-fs-ui) var(--o-f-body);cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--o-surface);color:var(--o-ink);font-weight:700;box-shadow:var(--o-sh-seg)}
.seg.sm{margin:0 0 -8px}
.seg.sm button{height:var(--o-tap);min-height:0;font-size:var(--o-fs-small);padding-inline:6px;line-height:1.25}
/* folded sections */
.grp>summary{list-style:none;display:flex;align-items:center;gap:14px;min-height:52px;padding:4px 20px;cursor:pointer;font-weight:600;font-size:var(--o-fs-group)}
.grp>summary::-webkit-details-marker{display:none}
.grp>summary svg{color:var(--o-accent);transition:transform .15s}
.grp:not([open])>summary svg{transform:rotate(180deg)}
.fields{display:flex;flex-direction:column;gap:var(--o-gap-fields);padding:2px 20px 22px}
.sub{margin:0}
.sub>summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:var(--o-tap);cursor:pointer;font-size:var(--o-fs-text);font-weight:500;color:var(--o-accent)}
.sub>summary::-webkit-details-marker{display:none}
.sub>summary svg{flex:0 0 auto;transition:transform .15s}
.sub[open]>summary svg{transform:rotate(180deg)}
.sub>.f{margin-top:2px}
/* field label row: (i), pin, ··· */
.lbl{display:flex;align-items:center;gap:6px;font-size:var(--o-fs-text);color:var(--o-ink2);margin-bottom:6px}
.lbl label{cursor:pointer}
.tipb{width:22px;height:22px;border-radius:11px;border:1.5px solid var(--o-tipb-line);background:transparent;color:var(--o-tipb-ink);font:700 12px var(--o-f-body);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;position:relative}
.tipb::after{content:"";position:absolute;inset:-11px}
.tipb:hover,.tipb.on{border-color:var(--o-accent);color:var(--o-accent)}
.tipb.on{background:var(--o-tip)}
.more{margin-left:auto;min-width:32px;height:28px;border:0;border-radius:var(--o-r-xs);background:transparent;color:var(--o-muted);font:700 15px var(--o-f-body);letter-spacing:1px;cursor:pointer;position:relative;padding:1px 6px}
.more::after{content:"";position:absolute;inset:-8px}
.more:hover,.more[aria-expanded="true"]{background:var(--o-field);color:var(--o-ink)}
.f.saved .more{color:var(--o-accent)}
.pinb{min-width:28px;height:28px;border:0;border-radius:var(--o-r-xs);background:transparent;color:var(--o-muted);display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;position:relative}
.pinb::after{content:"";position:absolute;inset:-8px -2px}
.pinb:hover{background:var(--o-field);color:var(--o-ink)}
.pinb[aria-pressed="true"]{color:var(--o-accent)}
.pinb svg path{fill:none}
.pinb[aria-pressed="true"] svg path{fill:currentColor}
.lbl .pinb + .more{margin-left:0}
.lbl .pinb{margin-left:auto}
.lbl .pinb + .more::after{left:-2px}
/* boxes with the unit inside */
.box{display:flex;align-items:center;height:var(--o-box-h);border:1px solid var(--o-boxline);background:var(--o-field);border-radius:var(--o-r-box);transition:border-color .12s,box-shadow .12s,background .12s}
.box:focus-within{border-color:var(--o-accent);background:var(--o-surface);box-shadow:var(--o-glow)}
.box input,.box select{flex:1 1 auto;min-width:0;height:100%;border:0;background:transparent;font:500 var(--o-fs-ui) var(--o-f-body);color:var(--o-ink);padding-inline:14px;outline:none;font-variant-numeric:tabular-nums}
.box input{padding-block:1px}
.box select{padding-block:0}
.box select{appearance:none;-webkit-appearance:none;cursor:pointer}
.box input{font-family:var(--o-f-mono);font-size:var(--o-fs-num);font-weight:500;letter-spacing:.01em}
.box input::placeholder{color:var(--o-muted);font-weight:400;font-family:var(--o-f-body);font-size:var(--o-fs-text);letter-spacing:0}
.box .unit{display:flex;align-items:center;gap:4px;padding-right:0;margin-right:6px;color:var(--o-accent);font-size:var(--o-fs-small);font-weight:500;white-space:nowrap}
.box .unit:last-child{padding-right:14px;margin-right:0}
.usel{position:relative;display:flex;align-items:center;color:var(--o-accent);margin-right:10px}
.usel select{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:var(--o-accent);font:500 var(--o-fs-small) var(--o-f-body);padding:0 18px 0 2px;cursor:pointer;height:var(--o-tap)}
.usel svg{position:absolute;right:0;pointer-events:none}
.box select.wide{padding-right:6px}
/* result boxes: green key boxes, read-only, computed (blue) */
.box.key{border-color:var(--o-key-line);background:var(--o-brand-soft)}
.box.key:not(.ro):focus-within{border-color:var(--o-accent)}
.box.key input{color:var(--o-brand-ink)}
.box.ro input{font-weight:500}
.box.computed:not(.key) input{color:var(--o-accent)}
.box.invalid,.box.invalid:focus-within{border-color:var(--o-red);box-shadow:var(--o-glow-red)}
@media (hover:hover){
  .box:not(.ro):not(.key):not(.invalid):hover:not(:focus-within),.fin:hover:not(:focus):not([aria-invalid="true"]),.fbta:hover:not(:focus){border-color:var(--o-boxhover)}
  .box.key:not(.ro):not(.invalid):hover:not(:focus-within){border-color:var(--o-keyhover)}
}
/* tip line and hints */
.hint{font-size:var(--o-fs-hint);color:var(--o-muted);margin-top:6px;line-height:1.5}
.hint.err{color:var(--o-red-ink)}
.hint.tiptext{color:var(--o-ink2)}
#calcStatus{margin:0 20px}#calcStatus:not(:empty){padding-top:12px}
#unitNote{margin:12px 20px 0}
.nojs{padding:14px 20px;font-size:var(--o-fs-ui);line-height:1.5}
.view-er{display:none}
body.er .view-emp{display:none}
body.er .view-er{display:block}
/* buttons under the results */
.acts{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 20px 0;border-top:1px solid var(--o-line)}
.tile{grid-row:span 2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:104px;border:1px solid var(--o-fieldline);border-radius:var(--o-r-btn);background:var(--o-surface);font:500 var(--o-fs-ui) var(--o-f-body);color:var(--o-ink);cursor:pointer}
.tile span.dot{width:32px;height:32px;border-radius:16px;background:var(--o-share-dot);color:#fff;display:flex;align-items:center;justify-content:center}
.btn{min-height:var(--o-box-h);border:1px solid var(--o-fieldline);border-radius:var(--o-r-btn);background:var(--o-surface);font:500 var(--o-fs-ui) var(--o-f-body);color:var(--o-ink);cursor:pointer;padding-inline:12px}
.btn:hover,.tile:hover{border-color:var(--o-hover-line)}
.btn:disabled{color:var(--o-disabled);border-color:var(--o-disabled-line);cursor:default}
a.btn{display:flex;align-items:center;justify-content:center;text-decoration:none}
.ask{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 18px;font-size:var(--o-fs-small);color:var(--o-ink2)}
.ask div{display:flex;gap:8px}
.ask button{min-height:var(--o-tap);min-width:56px;border:1px solid var(--o-fieldline);border-radius:var(--o-r-sm);background:var(--o-surface);color:var(--o-ink);font:500 var(--o-fs-small) var(--o-f-body);cursor:pointer;display:flex;align-items:center;gap:6px;justify-content:center}
.ask button.on{border-color:var(--o-brand);color:var(--o-brand-ink);background:var(--o-brand-soft)}
.thanks{color:var(--o-brand-ink);font-weight:600}

/* ---- related-calculators card + At-tax-time card ---- */
.card{background:var(--o-surface);border:1px solid var(--o-line);border-radius:var(--o-r-card)}
.similar{overflow:hidden}
.similar .top{background:var(--o-similar-top);margin:12px;border-radius:var(--o-r-sm);padding:12px 14px;font-weight:600;font-size:var(--o-fs-text)}
.similar a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding-inline:20px;border-top:1px solid var(--o-row-line);text-decoration:none;color:var(--o-ink);font-weight:500;font-size:var(--o-fs-text)}
.similar a:hover{background:var(--o-row-hover)}
.similar a svg{color:var(--o-accent);flex:0 0 auto}
.taxtime{padding:18px 20px}
.taxtime p{margin:4px 0 12px;font-size:var(--o-fs-text);line-height:1.6;color:var(--o-ink2)}
.taxtime h2{margin:0;font:inherit;font-weight:700}

/* ---- creator block: photo, creator, "Based on N sources" ---- */
.people{display:flex;gap:16px;align-items:flex-start;margin-bottom:14px}
.photo{width:var(--o-photo);height:var(--o-photo);border-radius:26px;flex:0 0 var(--o-photo);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;color:var(--o-brand-ink);background:var(--o-brand-soft);box-shadow:0 0 0 3px var(--o-surface),0 0 0 5px var(--o-brand)}
img.photo{object-fit:cover;color:transparent}
.people .k{font-size:var(--o-fs-small);font-weight:600;color:var(--o-ink);margin-bottom:3px}
.people .v{font-size:var(--o-fs-text);color:var(--o-ink2);line-height:1.5;margin-bottom:10px}
.facts{display:flex;flex-direction:column;gap:8px;margin:4px 0 16px;font-size:var(--o-fs-text);color:var(--o-ink2)}
.facts>div,.facts summary{display:flex;align-items:center;gap:10px}
.facts summary{cursor:pointer;list-style:none;min-height:32px}
.facts summary::-webkit-details-marker{display:none}
.facts ol{margin:8px 0 4px 30px;padding-left:16px;font-size:var(--o-fs-small);line-height:1.7}
/* icon row: votes, feedback, share, embed, cite; preferred source */
.icorow{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.ic{min-width:var(--o-tap);height:var(--o-tap);border:1px solid var(--o-fieldline);border-radius:var(--o-r-sm);background:var(--o-surface);display:flex;align-items:center;justify-content:center;gap:6px;padding-inline:10px;color:var(--o-ink2);cursor:pointer;font:500 var(--o-fs-ui) var(--o-f-body)}
.ic:hover{border-color:var(--o-hover-line);color:var(--o-ink)}
.vote{display:inline-flex;align-items:stretch;height:var(--o-tap);border:1px solid var(--o-fieldline);border-radius:var(--o-r-sm);background:var(--o-surface);overflow:hidden}
.vbtn{min-width:var(--o-tap);border:0;background:transparent;display:flex;align-items:center;justify-content:center;gap:6px;padding-inline:10px;color:var(--o-ink2);cursor:pointer;font:600 var(--o-fs-text) var(--o-f-body)}
.vbtn:hover{color:var(--o-ink);background:var(--o-field)}
.vbtn[aria-pressed="true"]{color:var(--o-accent);background:var(--o-tip)}
.vbtn[aria-pressed="true"] svg path{fill:currentColor;fill-opacity:.18}
.vsep{width:1px;background:var(--o-fieldline);margin:9px 0}
#askMore{font-size:var(--o-fs-small);margin-left:6px;display:inline;height:auto;min-height:0;min-width:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font-family:inherit;font-weight:inherit;text-decoration:underline;cursor:pointer}
#askMore:focus-visible{outline:2px solid #2155E5;outline-offset:2px}
.pref{display:inline-flex;align-items:center;gap:10px;min-height:var(--o-tap);border:1px solid var(--o-fieldline);border-radius:var(--o-r-sm);background:var(--o-surface);padding-inline:14px;font:500 var(--o-fs-text) var(--o-f-body);color:var(--o-ink);text-decoration:none;margin-bottom:34px}
/* table of contents */
.toc h2{font-size:var(--o-fs-toc);margin:0 0 10px;font-weight:700}
.toc ul{margin:0;padding-left:22px;line-height:1.55}
.toc li{padding-block:3px}
.toc li::marker{color:var(--o-accent)}
.toc a{font-size:var(--o-fs-text)}
/* hover card on name links */
.pname{cursor:pointer}
.pcard{position:absolute;z-index:42;width:400px;max-width:calc(100vw - 24px);background:var(--o-surface);border:1px solid var(--o-line);border-radius:var(--o-r-tbox);box-shadow:var(--o-sh-pop);padding:18px 20px;animation:fade .12s ease-out}
.pchead{display:flex;gap:16px;align-items:center;margin-bottom:12px;padding-right:36px}
.pcclose{position:absolute;top:10px;right:10px;width:36px;height:36px}
.pchead .photo{width:64px;height:64px;flex:0 0 64px;font-size:18px;border-radius:50%}
.pchead .photo.pj{background:var(--o-ph-blue);color:var(--o-accent-ink);box-shadow:0 0 0 3px #fff,0 0 0 5px var(--o-accent)}
.pchead b{display:block;font-size:15px}
.pcrole{font-size:var(--o-fs-small);color:var(--o-muted);margin:2px 0 4px}
.pchead a{font-size:var(--o-fs-text)}
.pcard p{margin:0 0 10px;font-size:var(--o-fs-text);line-height:1.6;color:var(--o-ink2)}
.pcard p.pcfoot{margin:0}

/* ---- article: formula (yellow) boxes, tip boxes, chips, steps, tables ---- */
.body p,.body li{font-size:var(--o-fs-text);line-height:1.75;color:var(--o-body-text)}
.body p{margin:0 0 16px}
.body p.lead{margin-top:30px}
.body b{color:var(--o-ink)}
.body h2{font-size:var(--o-fs-h2);line-height:1.25;letter-spacing:-.015em;font-weight:700;margin:46px 0 14px;text-wrap:balance;scroll-margin-top:calc(var(--hdr) + 20px)}
.body h3{font-size:var(--o-fs-h3);line-height:1.35;font-weight:700;margin:28px 0 8px}
.body p[id],.body ol[id],.body .formula[id],.body h3[id]{scroll-margin-top:calc(var(--hdr) + 20px)}
.formula{font-family:var(--o-f-mono);font-size:var(--o-fs-ui);background:var(--o-formula);color:var(--o-formula-ink);border-radius:var(--o-r-btn);padding:14px 18px;margin:6px 0 18px;overflow-wrap:anywhere}
.chip{font-family:var(--o-f-mono);font-size:var(--o-fs-micro);background:var(--o-formula);color:var(--o-formula-ink);border-radius:var(--o-r-chip);padding:1px 3px;white-space:nowrap}
.tip{display:flex;gap:12px;background:var(--o-tip);border:1px solid var(--o-tip-line);border-radius:var(--o-r-btn);padding:14px 16px;margin:8px 0 20px;font-size:var(--o-fs-text);line-height:1.6;color:var(--o-tip-text)}
.tip svg{flex:0 0 auto;color:var(--o-accent);margin-top:2px}
.steps{padding-left:24px;margin:0 0 18px}
.steps li{margin-bottom:10px;padding-left:4px}
.tbox{overflow-x:auto;background:var(--o-surface);border:1px solid var(--o-line);border-radius:var(--o-r-tbox);margin:8px 0 10px}
.tbox table{width:100%;border-collapse:collapse;font-size:var(--o-fs-text);min-width:340px}
.tbox caption{text-align:left;font-weight:700;padding:14px 16px 8px;font-size:var(--o-fs-text)}
.tbox th,.tbox td{padding:11px 16px;text-align:left;border-bottom:1px solid var(--o-th-line)}
.tbox tr:last-child td{border-bottom:0}
.tbox th{font-size:var(--o-fs-micro);color:var(--o-ink3);font-weight:600;background:var(--o-th-bg)}
.tbox td.n,.tbox th.n{text-align:right}
.tbox td{transition:background-color .12s ease}
@media (hover:hover){
  .tbox tr:hover>td{background:var(--o-rowhover)}
  .tbox tr:has(>td):hover>th{background:var(--o-rowhover)}
}
.src,.body p.src{font-size:var(--o-fs-micro);color:var(--o-muted)}
/* FAQ: v32 shows each question as an h3 with its answer open; the house gates read details.faq-item > summary +
   .faq-answer (claim-ledger FAQ mirror), so the same look is given to that markup (docs/page-template/floor.json) */
.body .faq-item{margin:0;border:0}
.body .faq-item>summary{list-style:none;display:flex;justify-content:flex-start;align-items:center;min-height:var(--o-tap);margin:28px 0 8px;padding:0;font-size:var(--o-fs-h3);line-height:1.35;font-weight:700;color:var(--o-ink);cursor:pointer}
.body .faq-item>summary::-webkit-details-marker{display:none}
.body .faq-item>summary::after{content:none}
.body .faq-answer{padding:0;font-size:inherit;color:inherit;line-height:inherit}
/* update history: v32's one source line; the house block is section#update-history with <li><time> entries */
.history{margin-top:18px}
.history ul{list-style:none;margin:0;padding:0}
.body .history li,.body .history p{font-size:var(--o-fs-micro);line-height:1.75;color:var(--o-muted);margin:0}

/* ---- footer ---- */
.ftr{background:var(--o-surface);border-top:1px solid var(--o-line)}
.fgrid{display:flex;flex-wrap:wrap;gap:36px 64px;padding-block:52px 34px}
.fbrand{flex:1 1 240px;max-width:300px}
.fbrand .tag{font-size:var(--o-fs-tag);font-weight:700;letter-spacing:-.02em;line-height:1.15;margin:0 0 14px}
.fbrand p{margin:0;font-size:var(--o-fs-text);line-height:1.6;color:var(--o-ink3)}
.fcol{flex:0 1 auto}
.fcol h3{font-size:var(--o-fs-ui);font-weight:700;margin:0 0 10px}
.cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
.ftr a{color:var(--o-ink3);text-decoration:none;font-size:var(--o-fs-text);min-height:40px;display:flex;align-items:center;gap:10px}
.ftr a:hover{color:var(--o-ink)}
.ftr a svg{color:var(--o-accent)}
.legal{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;border-top:1px solid var(--o-th-line);padding-block:16px 24px;font-size:var(--o-fs-micro);color:var(--o-muted)}
.legal div{display:flex;gap:20px;flex-wrap:wrap}
.legal a{min-height:32px;font-size:var(--o-fs-micro)}
@media (max-width:480px){.fcol a,.legal a{min-height:var(--o-tap)}}

/* ---- popups and dialogs: ··· menu, (i) text, pin tip, share / embed / cite, feedback ---- */
.pop{position:absolute;z-index:40;width:280px;background:var(--o-surface);border:1px solid var(--o-line);border-radius:var(--o-r-tbox);box-shadow:var(--o-sh-pop);padding:12px;animation:fade .12s ease-out}
.pop .learn{display:block;background:var(--o-learn);border-radius:var(--o-r-sm);padding:12px 14px;font-size:var(--o-fs-text);font-weight:500;color:var(--o-accent-ink)}
.poph{font-size:var(--o-fs-hint);font-weight:700;letter-spacing:.06em;color:var(--o-muted);margin:14px 4px 6px}
.tog{display:flex;align-items:center;gap:12px;min-height:var(--o-tap);padding-inline:4px;font-size:var(--o-fs-ui);cursor:pointer}
.tog input{position:absolute;opacity:0;width:1px;height:1px}
.sw{width:38px;height:22px;border-radius:11px;background:var(--o-switch-off);position:relative;transition:background .15s;flex:0 0 38px}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:8px;background:#fff;transition:transform .15s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.tog input:checked + .sw{background:var(--o-accent)}
.tog input:checked + .sw::after{transform:translateX(16px)}
.tog input:focus-visible + .sw{outline:3px solid var(--o-accent);outline-offset:2px}
.popclear{width:100%;min-height:var(--o-tap);border:0;border-top:1px solid var(--o-line);margin-top:6px;background:transparent;text-align:left;padding-inline:4px;font:500 var(--o-fs-ui) var(--o-f-body);color:var(--o-ink);cursor:pointer}
.tipbox{position:absolute;z-index:45;max-width:260px;background:var(--o-ink);color:var(--o-tipbox-ink);font-size:var(--o-fs-tip);line-height:1.5;border-radius:var(--o-r-sm);padding:10px 12px;box-shadow:0 10px 24px rgba(0,0,0,.2);animation:fade .1s ease-out}
.scrim{position:fixed;inset:0;z-index:50;width:auto;height:auto;max-width:none;max-height:none;margin:0;border:0;color:var(--o-ink);background:rgba(17,24,39,.45);display:flex;align-items:flex-start;justify-content:center;padding:max(60px,env(safe-area-inset-top,0px)) 16px 16px;overflow:auto;animation:fade .15s ease-out}
.scrim:not([open]){display:none}
.scrim::backdrop{background:transparent}
html:has(dialog[open]){overflow:hidden}
.modal{width:100%;max-width:740px;background:var(--o-surface);border-radius:var(--o-r-modal);box-shadow:0 24px 60px rgba(0,0,0,.25);padding:20px 22px 22px}
.mhead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.mt{font-size:var(--o-fs-modal);font-weight:700}
.ms{font-size:var(--o-fs-small);color:var(--o-muted);margin-top:2px}
.mtabs{display:flex;border-bottom:1px solid var(--o-line);margin:16px 0 18px}
.mtabs button{flex:1;min-height:var(--o-box-h);border:0;background:transparent;font:500 var(--o-fs-ui) var(--o-f-body);color:var(--o-ink3);display:flex;align-items:center;justify-content:center;gap:8px;border-bottom:2px solid transparent;cursor:pointer}
.mtabs button[aria-selected="true"]{color:var(--o-accent);border-bottom-color:var(--o-accent)}
.chk{display:flex;align-items:center;gap:10px;font-size:var(--o-fs-ui);min-height:40px;cursor:pointer}
.chk input{width:18px;height:18px;accent-color:var(--o-accent)}
.social{display:flex;justify-content:center;gap:28px;margin:16px 0 18px}
.social a{display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;color:var(--o-ink);font-size:var(--o-fs-small);font-weight:700;min-width:64px}
.social span{width:46px;height:46px;border-radius:23px;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px}
.social span svg{display:block}
.copyrow{display:flex;gap:8px;align-items:center;border:1px solid var(--o-boxline);background:var(--o-field);border-radius:var(--o-r-box);padding:6px}
.copyrow input,.copyrow textarea{flex:1;min-width:0;border:0;background:transparent;font:400 var(--o-fs-text) var(--o-f-body);color:var(--o-ink);padding:6px 8px;resize:none;outline:none}
.copyb{border:0;background:transparent;color:var(--o-accent);font:600 var(--o-fs-ui) var(--o-f-body);padding-inline:12px;cursor:pointer;min-height:40px;border-radius:var(--o-r-xs)}
.copyb:hover{background:var(--o-copy-hover)}
.copyrow textarea.urlbox{overflow:hidden;word-break:break-all;line-height:1.5;padding:6px 8px;min-height:0}
.copyrow:has(>textarea:focus,>input:focus){border-color:var(--o-accent);background:var(--o-surface);box-shadow:var(--o-glow)}
.mp{font-size:var(--o-fs-text);line-height:1.6;color:var(--o-ink2);margin:0 0 12px}
@keyframes fade{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
.mlead{font-size:15px;font-weight:600;margin:0 0 2px;color:var(--o-ink)}
.embedgrid{margin-top:14px}
.form2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form2 .full{grid-column:1/-1}
.fl{display:block;font-size:var(--o-fs-text);color:var(--o-ink2);margin-bottom:6px}
.fin{width:100%;height:var(--o-tap);border:1px solid var(--o-boxline);background:var(--o-field);border-radius:var(--o-r-box);font:400 var(--o-fs-ui) var(--o-f-body);color:var(--o-ink);padding-inline:14px;outline:none;transition:border-color .12s,box-shadow .12s,background .12s}
.fin:focus{border-color:var(--o-accent);background:var(--o-surface);box-shadow:var(--o-glow)}
.fin::placeholder{color:var(--o-muted)}
.fin[aria-invalid="true"]{border-color:var(--o-red)}
.agree{display:flex;gap:10px;align-items:flex-start;font-size:var(--o-fs-text);line-height:1.5;color:var(--o-ink2);cursor:pointer}
.agree input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--o-accent);flex:0 0 20px}
.agree.bad span{color:var(--o-red-ink)}
.agree input[aria-invalid="true"]{outline:2px solid var(--o-red);outline-offset:2px}
.ferr{font-size:var(--o-fs-micro);line-height:1.45;color:var(--o-red-ink);margin-top:6px}
.small{font-size:var(--o-fs-micro);color:var(--o-muted);margin:0;line-height:1.5}
.mfoot{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:18px}
.mfoot .msg{margin-right:auto;font-size:var(--o-fs-small);line-height:1.45;color:var(--o-ink2)}
.msg.err{color:var(--o-red-ink)}.msg.ok{color:var(--o-brand-ink);font-weight:600}
.pbtn{min-height:var(--o-box-h);border:0;border-radius:var(--o-r-sm);background:var(--o-accent);color:#fff;font:600 var(--o-fs-ui) var(--o-f-body);padding-inline:26px;cursor:pointer}
.pbtn:hover{background:var(--o-accent-ink)}
.pbtn.wide{min-width:230px}
.lbtn{min-height:var(--o-tap);border:0;background:transparent;color:var(--o-accent);font:500 var(--o-fs-ui) var(--o-f-body);cursor:pointer;padding-inline:8px;margin-right:auto}
.citegrid{display:grid;grid-template-columns:78px minmax(0,1fr);gap:14px;align-items:start}
.ctabs{display:flex;flex-direction:column;gap:4px}
.ctabs button{min-height:var(--o-tap);border:0;border-left:2px solid transparent;background:transparent;text-align:left;padding:0 10px;font:500 var(--o-fs-ui) var(--o-f-body);color:var(--o-ink);cursor:pointer}
.ctabs button[aria-selected="true"]{border-left-color:var(--o-accent);color:var(--o-accent)}
.cbox{display:block;width:100%;min-height:124px;border:1px solid var(--o-boxline);background:var(--o-field);border-radius:var(--o-r-box);padding:12px 14px;font:400 var(--o-fs-small)/1.75 var(--o-f-body);color:var(--o-muted);resize:none;outline:none;overflow-wrap:anywhere}
.cbox:focus{border-color:var(--o-accent);background:var(--o-surface);box-shadow:var(--o-glow)}
#citePanel{min-width:0}
.cbox .u{word-break:break-all}
.cbox.code{font-family:var(--o-f-mono);font-size:var(--o-fs-small);line-height:1.55;min-height:176px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--o-ink2)}
.fbmodal{max-width:560px}
.fbq{font-size:18px;font-weight:700;line-height:1.35;margin:0;padding-right:8px}
.prog{height:5px;border-radius:3px;background:var(--o-prog);margin:16px 0 18px;overflow:hidden}
.prog span{display:block;height:100%;background:var(--o-accent);border-radius:3px;transition:width .2s}
.fbta{display:block;width:100%;min-height:112px;border:1px solid var(--o-boxline);background:var(--o-field);border-radius:var(--o-r-box);padding:12px 14px;font:400 var(--o-fs-ui)/1.5 var(--o-f-body);color:var(--o-ink);resize:vertical;outline:none;transition:border-color .12s,box-shadow .12s,background .12s}
.fbta:focus{border-color:var(--o-accent);background:var(--o-surface);box-shadow:var(--o-glow)}
.opts{display:flex;flex-direction:column;gap:8px}
.opt{display:flex;align-items:center;gap:12px;min-height:48px;border:1px solid var(--o-fieldline);border-radius:var(--o-r-box);padding-inline:14px;font-size:var(--o-fs-ui);cursor:pointer}
.opt input{width:18px;height:18px;margin:0;accent-color:var(--o-accent);flex:0 0 18px}
.opt:has(input:checked){border-color:var(--o-accent);background:var(--o-opt-on)}
.fbline{border-top:1px solid var(--o-line);margin-top:20px}
.fbdone{font-size:var(--o-fs-text);line-height:1.6;color:var(--o-ink2);margin:0 0 8px}

/* ---- breakpoints (v32) ---- */
@media (max-width:1100px) and (min-width:861px){
  .grid{grid-template-columns:minmax(0,1fr) var(--o-col-rail-md);column-gap:var(--o-col-gap-md)}
}
@media (max-width:860px){
  .grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "rail" "meta" "body";grid-template-rows:auto;padding-block:26px 64px}
  .rail{margin-bottom:34px;max-width:600px}
  h1{margin-bottom:18px}
}
@media (max-width:480px){
  .calc{margin-inline:calc(-1 * var(--o-gutter))}
  .ccard,.calc>.grp{border-radius:0}
}
@media (max-width:760px){
  :root{--hdr:56px}
  .hrow{padding-block:6px 5px}
  .search,.hlinks,.tabs{display:none}
  .mob{display:flex}
  .fgrid{gap:30px}
  h1{font-size:var(--o-fs-h1-phone)}
}
@media (max-width:640px){
  .modal{padding:18px 16px 18px}
  .form2{grid-template-columns:1fr}
  .citegrid{grid-template-columns:minmax(0,1fr);gap:10px}
  .ctabs{flex-direction:row;border-bottom:1px solid var(--o-line)}
  .ctabs button{border-left:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:0 14px}
  .ctabs button[aria-selected="true"]{border-bottom-color:var(--o-accent)}
  .pbtn.wide{width:100%}
  .mt{font-size:18px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}.pop,.tipbox,.scrim,.pcard{animation:none}}
/* last on purpose: 16 px in every box on phones so iOS never zooms (v32; design-standard §2 Controls) */
@media (max-width:760px){
  .box input,.box select,.usel select,.fin,.fbta,.copyrow input,.copyrow textarea,.search input{font-size:16px}
  .box .unit{font-size:16px}
  .calc .box input{font-size:var(--o-fs-num-phone)}
}
@media print{
  header.hdr,footer.ftr,.related,.acts,.ask,#calcStatus,#calcLive,.icorow,.pref,.toc,.pop,.tipbox,.pcard,dialog,.more,.pinb,.tipb,.seg,.hint.tiptext,.usel svg,.box .unit svg,.sub>summary svg{display:none!important}
  body.otc{background:#fff;color:#000}
  .wrap{max-width:none;padding-inline:0}
  .grid{display:block;padding-block:0}
  .rail{display:block;position:static!important;max-width:none;margin:0 0 16px}
  .calc{margin:0;gap:6px}
  .ccard,.calc>.grp,.card{border:1px solid #999;border-radius:6px;box-shadow:none}
  .calc>.grp,.ccard>.grp,.card,.people,.facts{break-inside:avoid}
  .grp>summary{min-height:0;padding:8px 14px 2px;font-size:13px}
  .fields{gap:6px;padding:0 14px 8px}
  .f{break-inside:avoid}
  .lbl{margin-bottom:2px;font-size:11.5px}
  .box{height:28px;border:1px solid #999;background:#fff;border-radius:6px}
  .box input,.box select{font-size:12px;color:#000!important}
  .box .unit,.usel select{font-size:11px;color:#333}
  .hint{font-size:10px;margin-top:2px}
  h1{font-size:22px;margin:0 0 10px}
  .updated{margin-bottom:4px}
  .people{margin-bottom:6px}.facts{margin:0 0 6px}
  .body p,.body li{font-size:11px;line-height:1.45}
  .body p{margin:0 0 8px}
  .body h2{font-size:15px;margin:14px 0 5px;break-after:avoid}
  .body h3{font-size:12.5px;margin:10px 0 3px;break-after:avoid}
  .tbox,.formula,.tip,.steps{break-inside:avoid}
  .formula{font-size:12px;padding:8px 12px;margin:4px 0 10px;background:none;border:1px solid #bbb}
  .tip{background:none;border:1px solid #bbb;padding:8px 12px;margin:6px 0 12px;font-size:11.5px}
  .chip{background:none;border:1px solid #bbb}
  .tbox th,.tbox td{padding:5px 10px}.tbox table,.tbox caption,.src,.body p.src{font-size:11px}
  a{color:inherit;text-decoration:none}
}
@media (forced-colors:active){
  .box.invalid,.box.invalid:focus-within{outline:2px dashed CanvasText;outline-offset:2px}
  .seg button[aria-pressed="true"]{outline:2px solid ButtonText;outline-offset:-2px}
  .box.computed:not(.key) input{color:LinkText}
}

/* ---- S2b (14 Oct 2026): header states v32 never drew — the search results list, the tab lists, the phone search-open
   state — and the "saved on this device" note under a box. New states on v32 tokens, not restyles of a v32 component
   (the 6,144-byte scoped-style cap left no room on the page; reused by every sister page). ---- */
.hrow{position:relative}
.sres{position:absolute;left:var(--o-gutter);right:var(--o-gutter);top:100%;z-index:35;margin:4px 0 0;padding:6px;list-style:none;background:var(--o-surface);border:1px solid var(--o-line);border-radius:var(--o-r-tbox);box-shadow:var(--o-sh-pop)}
.sres a{display:block;min-height:var(--o-tap);padding:8px 12px;border-radius:var(--o-r-sm);text-decoration:none;color:var(--o-ink)}
.sres a b{display:block;font-size:var(--o-fs-ui);font-weight:600}
.sres [aria-selected="true"] a,.sres a:hover{background:var(--o-field)}
.tabwrap{position:relative;display:flex}
.tabpanel{position:absolute;left:0;top:100%;z-index:35;min-width:280px;padding:6px;background:var(--o-surface);border:1px solid var(--o-line);border-radius:var(--o-r-tbox);box-shadow:var(--o-sh-pop)}
.tabpanel a{display:flex;align-items:center;min-height:var(--o-tap);padding:0 12px;border-radius:var(--o-r-sm);text-decoration:none;color:var(--o-ink);font-size:var(--o-fs-ui);white-space:nowrap}
.tabpanel a:hover,.tabpanel a:focus-visible{background:var(--o-field)}
.hint.pinnote{color:var(--o-accent-ink)}
@media (max-width:760px){.hrow{flex-wrap:wrap}body.search-open .search{display:flex;flex-basis:100%;order:9;margin-top:6px;max-width:none}}
@media print{.sres,.tabpanel,.mmenu{display:none!important}}

/* ==== v33 block (20 Oct 2026) — docs/page-template/v33/redesign.css, every rule in source order, variables mapped to the
   --o-* tokens (--page → --o-page, --f-body → --o-f-body, …); the preview-only .banner / .vtoggle rules are left out.
   Concept 3 — blue and green learning cards. Existing copy and arithmetic retained. ==== */
@media screen{
:root{--o-page:#F4F7FC;--o-surface:#fff;--o-ink:#17233B;--o-ink2:#3D4D66;--o-muted:#596A80;--o-line:#D8E1ED;--o-field:#fff;--o-fieldline:#B7C7DB;--o-boxline:#91A6BF;--o-accent:#2155E5;--o-accent-ink:#1844BC;--o-brand:#0B9167;--o-brand-ink:#05664A;--o-brand-soft:#E8F8F1;--o-formula:#FFF4CE;--o-formula-ink:#493B13;--o-tip:#EEF3FF;--o-tip-line:#CEDBFF;--o-rowhover:#EFF4FF;--o-boxhover:#2155E5;--o-keyhover:#0B9167}
body.otc{font-family:var(--o-f-body);background:var(--o-page);font-size:16px;color:var(--o-ink)}
.hdr{background:#fff;box-shadow:0 3px 12px #23447508;border-bottom:1px solid #DDE5F0}.hrow{padding-block:17px;gap:26px}.logo b{font-family:var(--o-f-body);font-size:18px;font-weight:700;letter-spacing:-.04em;color:#087554}.logo svg{border-radius:9px}.search{background:#F4F7FC;border-radius:9px;border:1px solid #D9E2F1;max-width:450px;margin-left:20px}.search input{font-size:15px}.hlinks a{font-size:14px}.tabs{gap:8px;padding-bottom:10px}.tabs a{border:0;padding:0 16px;min-height:38px;border-radius:7px;font-size:14px}.tabs a[aria-current]{background:#EAF0FF;color:#1947BE}.tabs a:hover{background:#F1F5FC}
.grid{grid-template-columns:minmax(0,560px) 390px;grid-template-areas:'head head' 'meta rail' 'body rail';column-gap:48px;padding-top:34px;row-gap:0}.head{padding:0 0 27px;margin-bottom:28px;border-bottom:1px solid #D5DFEF}.updated{font-size:12px;margin-bottom:12px;color:#596A80}h1{font-family:var(--o-f-body);font-weight:700;font-size:42px;letter-spacing:-.04em;line-height:47px;margin:0}.body{max-width:560px}
.meta{background:#fff;padding:24px;border:1px solid #DCE5F0;border-radius:16px;margin-bottom:22px}.people{gap:16px;padding-bottom:14px;border-bottom:1px solid #E2E9F2;margin-bottom:14px}.photo{width:48px;height:48px;flex-basis:48px;border-radius:12px;box-shadow:none}.people .k{font-size:12px;color:#5B6D83}.people .v{font-size:14px;line-height:1.55}.facts{font-size:13px;gap:10px;margin-bottom:16px}.ic,.vote{border-radius:8px;background:#fff}.icorow{gap:8px}.pref{border:0;background:transparent;padding:0;min-height:44px;font-size:13px;margin-bottom:12px}.toc{border-top:1px solid #E2E9F2;padding-top:18px}.toc h2{font-size:16px;margin-bottom:13px}.toc ul{padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:8px}.toc li{padding:0}.toc a{display:flex;align-items:center;min-height:48px;height:100%;padding:10px 12px;font-size:13px;line-height:1.4;text-decoration:none;background:#F3F6FC;border:1px solid #E4EAF4;border-radius:7px}.toc a:hover{background:#E8EFFF;border-color:#BACDF9}
.topic-card{background:#fff;border:1px solid #DCE5F0;border-radius:16px;padding:26px;margin:22px 0;box-shadow:0 3px 12px #22477703}.body p,.body li{font-size:16px;line-height:1.8;color:#3B4C64}.body h2{font-family:var(--o-f-body);font-weight:700;font-size:25px;letter-spacing:-.025em;line-height:1.25;margin:0 0 20px;padding:0 0 17px;border-bottom:1px solid #E4EAF4}.body h3{font-size:18px;line-height:1.4;margin:28px 0 12px}.body .faq-item>summary{font-size:18px;line-height:1.4;margin:28px 0 12px}/* house FAQ markup mirrors .body h3 (= the reference's #faq ~ h3); the v32 rule above set 16px */.body>.topic-card>p:last-child{margin-bottom:0}.body>p{padding-inline:8px}.body h2{scroll-margin-top:calc(var(--hdr) + 30px)}
.formula{display:flex;align-items:center;min-height:76px;background:#FFF4CE;border:1px solid #E8D69B;border-radius:10px;padding:22px;font-family:var(--o-f-mono);font-size:17px;line-height:1.6;color:#493B13;margin:10px 0 22px;box-shadow:inset 0 4px #E6BE50;overflow-wrap:anywhere;word-break:normal}.chip{background:#FFF4CE;font-size:.9em;border-radius:4px;padding:2px 4px}.tip{border-radius:10px;font-size:14px;line-height:1.7;color:#344D7C}.steps{padding-left:25px}.steps li{padding-left:8px;margin-bottom:18px}.steps li::marker{font-weight:700;color:#2155E5}.tbox{border-radius:9px;border-color:#D8E2F0}table{font-size:14px}th,td,.tbox th,.tbox td{padding:13px 12px}/* .tbox th,.tbox td added: the v32 reproduction above uses that selector (0,1,1) and would beat redesign.css's th,td (0,0,1); the reference's v32 CSS has no .tbox th rule */thead{background:#EEF3FF}
.calc{gap:14px;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0}.calc>.ccard,.calc>.grp{background:#fff;border:1px solid #D4DFEF;border-radius:14px;box-shadow:0 3px 9px #274c7e05}.seg{background:#EEF3FF;border-radius:9px;margin:10px;padding:5px;gap:6px}.seg button{border-radius:6px;min-height:46px;font-size:14px;color:#3E5277;font-weight:600}.seg button[aria-pressed=true]{background:#2155E5;color:#fff;font-weight:700;box-shadow:0 2px 5px #2155E52B}.seg.sm{margin:0 0 -2px}.seg.sm button{font-size:12px;line-height:1.4;min-height:46px;height:auto}.seg.sm button[aria-pressed=true]{background:#fff;color:#1945BC;box-shadow:0 1px 4px #274c7e18}
.grp>summary{padding:18px 20px;min-height:62px;font-size:16px;font-weight:700;gap:12px;color:#243D62;border:0;background:transparent}.grp>summary svg{color:#087554;background:#E8F8F1;box-sizing:content-box;padding:6px;border-radius:7px;width:16px;height:16px}.fields{padding:4px 20px 24px;gap:22px}.lbl{font-size:14px;font-weight:600;line-height:20px;color:#3E5270;margin-bottom:8px}.box{height:52px;border:1px solid #91A6BF;background:#fff;border-radius:8px;box-shadow:none}.box input{font-family:var(--o-f-body);font-size:19px;font-weight:600;letter-spacing:0}.box .unit,.usel select{font-size:14px;color:#2155C6}.box.ro{background:#F5F8FD;border-color:#C8D5E6}.box.key{background:#E8F8F1;border:1px solid #87BCA4;box-shadow:none}.box.key input{font-size:21px;font-weight:700;color:#05664A}.hint{font-size:12px;line-height:19px;color:#596A80}.sub>summary{font-size:13px;color:#2155E5;border-top:1px solid #E4EAF4;padding-top:10px}.tipb{border-color:#9AAFCB;color:#526C92}.acts{padding:20px 20px 0;border-color:#E0E7F2}.btn,.tile,.ask button{border-radius:8px;border-color:#BFCCE0;font-size:13px}.ask{font-size:13px;padding:20px}.btn:hover{background:#EEF3FF}.taxtime{padding:22px;border-radius:14px;background:#E8F8F1;border:1px solid #B7DCCB}.taxtime p{font-size:14px}.similar{border-radius:14px}.similar .top{background:#EEF3FF;border-radius:8px}.similar a{font-size:14px}.ftr{background:#fff;border-top:1px solid #DAE3EF}.fbrand .tag{font-family:var(--o-f-body);font-weight:700;font-size:25px}.modal,.pop,.pcard{border-radius:14px}.pbtn{border-radius:8px;background:#2155E5}
/* The pin explanation participates in normal layout below its field. */
#pinTip{position:static!important;max-width:none;width:auto;left:auto!important;top:auto!important;z-index:auto;background:#EEF3FF;color:#344D7C;border:1px solid #CEDBFF;border-radius:7px;margin-top:10px;padding:10px 12px;font:400 12px/19px var(--o-f-body);box-shadow:none;animation:none}
@media(min-width:861px) and (max-width:1100px){.grid{grid-template-columns:minmax(0,1fr) 350px;column-gap:28px}.search{margin-left:0}.hrow{gap:16px}.logo b{font-size:16px}.toc ul{grid-template-columns:1fr}.meta,.topic-card{padding:22px}.tabs a{padding-inline:12px}.formula{font-size:15px;padding:18px}}
@media(max-width:860px){.grid{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'rail' 'meta' 'body';padding-top:25px;gap:0}.head{margin-bottom:24px;padding-bottom:22px}h1{font-size:36px}.rail,.body{max-width:600px}.calc{margin:0}.meta{max-width:600px}.body>p{padding-inline:0}}
@media(max-width:760px){.hrow{padding-block:9px;gap:10px}.logo b{font-size:16px}.logo svg{width:31px;height:31px}h1{font-size:32px;line-height:36px}.updated{font-size:12px}.fields{padding:2px 17px 22px}.grp>summary{padding-inline:17px}.box input,.box select,.usel select{font-size:16px}.calc .box input{font-size:20px}.box .unit{font-size:14px}.meta,.topic-card{padding:20px;border-radius:12px}.body h2{font-size:23px}.body p,.body li{font-size:16px;line-height:1.75}.formula{font-size:15px;padding:18px 16px;min-height:74px}.toc ul{grid-template-columns:1fr}.toc a{font-size:14px}.tip{padding:13px;font-size:14px}.acts,.ask{padding-inline:17px}}
@media(forced-colors:active){.calc,.box,.seg button{border:1px solid CanvasText}.seg button[aria-pressed=true]{outline:2px solid Highlight}}
}
/* Share is a separate, high-contrast action, distinct from site navigation. */
@media screen {
.ic[aria-label="Share this calculator"],#shareBtn{background:#B94312;color:#fff;border:1px solid #A4390C;box-shadow:0 2px 0 #8C310C;font-weight:700}
.ic[aria-label="Share this calculator"]{min-width:54px}
.ic[aria-label="Share this calculator"] svg{width:23px;height:23px;stroke-width:2.2}
#shareBtn .dot{background:transparent;color:#fff;width:36px;height:36px}
#shareBtn .dot svg{width:26px;height:26px}
.ic[aria-label="Share this calculator"]:hover,#shareBtn:hover{background:#96330D;color:#fff;border-color:#7D2B0A}
.ic[aria-label="Share this calculator"]:focus-visible,#shareBtn:focus-visible{outline:3px solid #175D89;outline-offset:4px}
}
/* Navigation helpers use existing page labels and respect reduced motion. */
@media screen {
.toc a[aria-current="location"]{font-weight:700;color:#123E5D;background:#DFEAF1;box-shadow:inset 3px 0 #175D89;padding-left:12px}
.calc .f:focus-within>.lbl{color:#10466A}.box:focus-within{outline:2px solid #175D89;outline-offset:2px;box-shadow:0 0 0 5px #E2EFF7}
.otc-quicknav{position:fixed;bottom:22px;right:24px;z-index:35;display:flex;gap:8px;padding:7px;background:#fff;border:1px solid #BAC8D1;border-radius:8px;box-shadow:0 5px 24px #233b4926;max-width:calc(100vw - 32px)}
.otc-quicknav button{min-height:48px;border:0;border-radius:4px;cursor:pointer;font:600 14px var(--o-f-body);display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 16px}.otc-return{background:#253B49;color:#fff}.otc-return:hover{background:#354D5E}.otc-quickshare{background:#B94312;color:#fff;min-width:48px}.otc-quickshare:hover{background:#96330D}.otc-quickshare svg{width:23px;height:23px}.otc-return svg{width:18px;height:18px;flex-shrink:0}
body:has(dialog[open]) .otc-quicknav{display:none}.ftr{padding-bottom:90px}
@media(max-width:760px){.otc-quicknav{bottom:max(12px,env(safe-area-inset-bottom));right:16px;left:16px}.otc-return{flex:1}.otc-quicknav button{font-size:14px;padding-inline:12px}}
}
@media print{.otc-quicknav{display:none!important}}
@media screen{.otc-return{background:#2155E5}.otc-return:hover{background:#1844BC}.otc-quicknav{border-color:#C2D1EB}.ftr{padding-bottom:90px}.toc a[aria-current="location"]{color:#1944B6;background:#E6EDFF;box-shadow:inset 3px 0 #2155E5;padding-left:12px}.box:focus-within{outline-color:#2155E5;box-shadow:0 0 0 5px #E8EFFF}}

/* Book help control: hover label sits above the label row, never over an input. */
@media screen{
.tipb{width:28px;height:28px;flex:0 0 28px;border:0;border-radius:6px;background:#EBF1FF;color:#2155C6;position:relative;margin-block:0}
.tipb::after{inset:-5px;content:""}
.tipb:hover,.tipb.on,.tipb:focus-visible{background:#DDE8FF;color:#1844BC;border:0}
.tipb svg{display:block;pointer-events:none}
.more-info-label{display:none;position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);padding:7px 10px;border-radius:6px;background:#193D81;color:#fff;white-space:nowrap;font:600 12px/1.35 var(--o-f-body);box-shadow:0 3px 8px #193D8120;z-index:46;pointer-events:auto}
.more-info-label::after{content:"";position:absolute;top:100%;left:0;right:0;height:7px}
.tipb:focus-visible:not(.help-label-dismissed) .more-info-label{display:block}
@media(hover:hover){.tipb:hover:not(.help-label-dismissed) .more-info-label{display:block}}
@media(pointer:coarse){.tipb{width:36px;height:36px;flex-basis:36px}.tipb::after{inset:-4px}}
}
/* Distinct hover and expanded states for help. */
@media screen{
.tipb{transition:background-color .12s ease,color .12s ease}
.more-info-label{background:#17233B;box-shadow:0 3px 8px #17233B24}
.tipb.on{background:#DDF4E9;color:#05664A}
.tipb:focus-visible{background:#2155E5;color:#fff}
@media(hover:hover){.tipb:hover{background:#2155E5;color:#fff}.tipb.on:hover{background:#087554;color:#fff}}
}
/* Clear feedback on expandable section headings and their arrows. */
@media screen{
.grp>summary{border-radius:13px;transition:background-color .14s ease}
.grp>summary svg{transition:transform .15s ease,background-color .14s ease,color .14s ease,box-shadow .14s ease}
.grp>summary:focus-visible{background:#EEF3FF;outline:2px solid #2155E5;outline-offset:2px}
.grp>summary:focus-visible svg{background:#2155E5;color:#fff;box-shadow:0 0 0 4px #DDE8FF,0 0 14px #2155E545}
.sub>summary{border-radius:6px;transition:background-color .14s ease}
.sub>summary svg{border-radius:5px;transition:background-color .14s ease,color .14s ease,box-shadow .14s ease}
.sub>summary:focus-visible svg{background:#2155E5;color:#fff;box-shadow:0 0 0 4px #DDE8FF,0 0 12px #2155E540}
@media(hover:hover){
.grp>summary:hover{background:#F1F5FF}
.grp>summary:hover svg{background:#2155E5;color:#fff;box-shadow:0 0 0 4px #DDE8FF,0 0 14px #2155E545}
.sub>summary:hover{background:#F1F5FF}
.sub>summary:hover svg{background:#2155E5;color:#fff;box-shadow:0 0 0 4px #DDE8FF,0 0 12px #2155E540}
}
}
/* Helpful feedback buttons: visible border and icon interaction states. */
@media screen{
.ask button{transition:border-color .12s ease,color .12s ease,background-color .12s ease,box-shadow .12s ease}
.ask button svg{color:inherit}
.ask button:focus-visible{border-color:#2155E5;color:#1844BC;background:#EEF3FF;outline:2px solid #2155E5;outline-offset:2px}
@media(hover:hover){.ask button:hover{border-color:#2155E5;color:#1844BC;background:#EEF3FF;box-shadow:0 0 0 2px #2155E518}}
.ask button[aria-pressed="true"]{border-color:#087554;color:#05664A;background:#E8F8F1}
}
/* Consistent interaction treatment following the observed usability audit. */
@media screen{
.more,.pinb,.ic,.vbtn,.btn,.copyb,.popclear,.mtabs button,.ctabs button,.ibtn,.usel select{transition:color .12s ease,background-color .12s ease,border-color .12s ease,box-shadow .12s ease}
.more{min-width:34px;height:30px;border:1px solid transparent;letter-spacing:1px}
.more[aria-expanded="true"]{background:#DDE8FF;color:#1844BC;border-color:#9CB8F5;box-shadow:0 0 0 2px #2155E512}
.pinb[aria-pressed="true"]{color:#05664A;background:#E8F8F1;box-shadow:0 0 0 1px #A4D8BF}
.usel select{border-radius:5px}.usel:focus-within{background:#EEF3FF;border-radius:5px}
.ic{position:relative}.control-label{display:none;position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);background:#17233B;color:#fff;padding:7px 10px;border-radius:6px;font:600 12px/1.4 var(--o-f-body);white-space:nowrap;z-index:46;box-shadow:0 3px 10px #17233B20}
.control-label::after{content:'';position:absolute;top:100%;height:9px;left:0;right:0}
.ic:last-child .control-label{left:auto;right:0;transform:none}
.ic:focus-visible:not(.help-label-dismissed) .control-label{display:block}
.ic:focus-visible,.more:focus-visible,.pinb:focus-visible,.copyb:focus-visible,.popclear:focus-visible{outline:2px solid #2155E5;outline-offset:3px}
.btn:disabled{color:#7C899C;border-color:#DAE2ED;background:#F3F5F9;box-shadow:none}
.social a span{transition:box-shadow .12s ease,transform .12s ease}.social a:focus-visible span{box-shadow:0 0 0 4px #DDE8FF}
.facts summary{border-radius:5px}.pname{border-radius:3px}.similar a svg{transition:transform .18s ease,color .18s ease}
@media(hover:hover){
.more:hover,.pinb:hover{background:#EEF3FF;color:#2155E5;border-color:#AEC3F3}
.pinb[aria-pressed="true"]:hover{background:#D8F2E5;color:#05664A}
.usel select:hover{background:#E8EFFF;color:#1844BC}
.box:not(.ro):not(.key):not(.invalid):hover:not(:focus-within){border-color:#6F98F0;box-shadow:0 0 0 3px #2155E50D}
.box.key:not(.ro):not(.invalid):hover:not(:focus-within){border-color:#0B9167;box-shadow:0 0 0 3px #0B916710}
.ic:not([aria-label="Share this calculator"]):hover{border-color:#2155E5;color:#1844BC;background:#EEF3FF}
.ic:hover:not(.help-label-dismissed) .control-label{display:block}
.vote:has(.vbtn:hover){border-color:#2155E5}.vbtn:hover{color:#1844BC;background:#EEF3FF}
.btn:not(:disabled):hover{border-color:#2155E5;color:#1844BC;background:#EEF3FF}
.btn:disabled:hover{border-color:#DAE2ED;color:#7C899C;background:#F3F5F9}
.copyb:hover,.popclear:hover,.mtabs button:hover,.ctabs button:hover,.ibtn:hover{background:#EEF3FF;color:#1844BC}
.tog:hover{background:#F3F6FD;border-radius:6px}.social a:hover span{box-shadow:0 0 0 4px #E7EEFD;transform:translateY(-2px)}
.facts summary:hover,.pname:hover{background:#EEF3FF;color:#1844BC}.similar a:hover{background:#EEF3FF;color:#1844BC}.similar a:is(:hover,:focus-visible) svg{transform:translateX(-4px);color:#087554}
}
/* Invalid feedback must remain red even while focused or hovered. */
.box.invalid,.box.invalid:focus-within{border-color:#DC2626;outline-color:#DC2626;box-shadow:0 0 0 3px #DC262620}
}
/* Unit menu: normal page flow, full-width options and a single focus treatment. */
@media screen{
.otc-native-unit{display:none!important}
.usel:has(.unit-trigger)>svg{display:none}
.unit-trigger{display:inline-flex;align-items:center;gap:7px;min-height:44px;border:0;border-radius:5px;padding:0 7px;background:transparent;color:#2155C6;font:500 14px var(--o-f-body);white-space:nowrap;cursor:pointer}
.usel .unit-trigger svg{position:static;flex-shrink:0;transition:transform .12s ease}
.unit-trigger[aria-expanded="true"]{background:#E8EFFF;color:#1844BC}.unit-trigger[aria-expanded="true"] svg{transform:rotate(180deg)}
.unit-trigger:focus-visible{outline:0}
.unit-options{position:relative;margin-top:8px;border:1px solid #B9CBE5;border-radius:9px;background:#fff;padding:5px;max-height:275px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 4px 14px #2445750C}
.unit-option{position:relative;padding:11px 36px 11px 13px;min-height:44px;line-height:22px;font:400 15px/22px var(--o-f-body);color:#334A6A;border-radius:5px;cursor:pointer;white-space:normal}
.unit-option[aria-selected="true"]{color:#1844BC;font-weight:600;background:#EEF3FF}.unit-option[aria-selected="true"]::after{content:'✓';position:absolute;right:13px;top:11px;color:#2155E5}
.unit-option.unit-active{background:#E6EEFF;box-shadow:inset 0 0 0 1px #B8CDF7}
.box:focus-within{outline:none;border-color:#2155E5;box-shadow:0 0 0 2px #2155E51A}
.box.invalid:focus-within{outline:none;border-color:#DC2626;box-shadow:0 0 0 2px #DC262620}
@media(hover:hover){.unit-trigger:hover{background:#EEF3FF;color:#1844BC}.unit-option:hover{background:#E6EEFF}}
@media(max-width:760px){.unit-trigger{font-size:16px}.unit-option{font-size:16px;min-height:46px}}
}
@media print{.unit-trigger,.unit-options{display:none!important}.otc-native-unit{display:block!important}}
/* Compact selector menu; preserves all original unit choices. */
@media screen{
.f:has(>.unit-options){position:relative}
.unit-options{position:absolute;right:0;width:174px;max-width:100%;max-height:232px;z-index:38;margin-top:5px;padding:4px;border-radius:7px;box-shadow:0 5px 18px #213C6024}
.unit-option{min-height:32px;padding:5px 28px 5px 10px;font-size:14px;line-height:22px;border-radius:4px}
.unit-option[aria-selected="true"]::after{top:5px;right:10px}
@media(pointer:coarse){.unit-option{min-height:44px;padding-block:11px}.unit-option[aria-selected="true"]::after{top:11px}}
}
/* Compact formula highlights: readable equations without oversized decoration. */
@media screen{
.body .formula{display:block;min-height:0;padding:11px 14px;margin:8px 0 18px;background:#FFF5D6;color:#493B13;border:0;border-radius:5px;box-shadow:none;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.body .chip{padding:1px 3px;background:#FFF5D6}
}

/* Related-link motion also respects reduced-motion preferences. */
@media (prefers-reduced-motion:reduce){.similar a svg{transition:none}.similar a:is(:hover,:focus-visible) svg{transform:none}}

/* Owner-approved site-wide tagline; rejected description removed by build. */
.ftr .fbrand{display:block}

/* Footer spacing reviewed against the owner's desktop screenshot. */
@media screen{
.ftr .fgrid{display:grid;grid-template-columns:minmax(0,350px) minmax(0,1.35fr) minmax(0,1fr) minmax(0,.8fr);gap:32px 48px;padding-block:40px 28px}
.ftr .fbrand{max-width:350px;min-width:0}
.ftr .fbrand .tag{text-wrap:balance;margin:0}
.ftr .fcol{min-width:0}
.ftr .legal{align-items:center}
@media(max-width:1099px){
.ftr .fgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 40px}
}
@media(max-width:760px){
.ftr .fgrid{gap:24px;padding-block:32px 24px}
.ftr .fbrand,.ftr .fcol:has(.cats){grid-column:1/-1}
.ftr .legal{row-gap:12px}
}
}

/* Keep the feedback question intact when room permits; move buttons below first. */
@media screen{
.ask{flex-wrap:wrap}
.ask>span{flex:0 1 auto;min-width:0;max-width:100%}
.ask>div{flex-shrink:0}
}

/* Compact feedback buttons, matching the owner's supplied proportions (floor F24 waiver). */
@media screen{
.ask>div{gap:12px}
.ask button{height:26px;min-height:26px;min-width:64px;padding:0 10px;border-radius:3px;font-size:12px;gap:5px}
.ask button svg{width:13px;height:13px}
}

/* Optional one-screen feedback with clear multi-selection controls. */
#fbInstructions{font-size:14px;color:#596A80;margin:8px 0 16px}
#fbChoices .opt{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}
#fbChoices input{width:18px;height:18px;accent-color:#2155E5;flex-shrink:0}
#fbScrim .mhead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
#fbScrim .mhead h2{font-size:20px;margin:0}
#fbClose{font-size:26px;min-width:36px;min-height:36px}
#fbNext:disabled{opacity:.45;cursor:default}

/* Approved footer brand lockup: reuse the header identity. */
@media screen{
.ftr .footer-logo{display:inline-flex;gap:10px;min-height:34px;margin-bottom:12px}
.ftr .footer-logo svg{flex:none;width:34px;height:34px}
.ftr .footer-logo b{font-size:18px}
.ftr .fbrand .tag{font-size:15px;font-weight:400;line-height:1.5;text-wrap:balance}
}

/* Approved desktop alignment and phone footer continuation. */
@media screen and (min-width:1100px){
main.grid{grid-template-columns:minmax(0,1fr) 390px;column-gap:48px}
main.grid>.body{max-width:none}
}
@media screen and (max-width:760px){
html{background:var(--o-page)}
.ftr{background:var(--o-page);padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
}
@media screen{
.pchead .photo.jason{background:var(--o-brand-soft);color:var(--o-brand-ink);box-shadow:none;border-radius:50%}
}
/* ==== end of the v33 block ==== */

/* ==== house floor on top of v33 (20 Oct 2026) — docs/design-standard.md §2; docs/page-template/floor.json. Where v33 draws
   less than the house floor, the floor wins (README "v32 → v33 changes applied to the records"). ==== */
@media screen{
/* F21 (F21a–F21l, required): field borders ≥ 3:1 against the colours next to them (WCAG 2.2 SC 1.4.11) —
   #7189A6 = 3.60:1 on the white card and field fill (v33 drew #91A6BF = 2.50:1); #4E9474 = 3.29:1 on the key box's
   #E8F8F1 fill and 3.61:1 on white (v33 drew #87BCA4 = 1.96:1). Proof: data/tests/non-text-contrast.js. The read-only
   non-key output border (#C8D5E6) and the hover border (#6F98F0) stay as v33 draws them (owner answer C, reported). */
:root{--o-boxline:#7189A6}
.box{border-color:#7189A6}
.box.key{border-color:#4E9474}
/* F22: header tabs keep the house 44 px (v33: 38 px) */
.tabs a{min-height:44px}
/* F23: the feedback dialog's close button keeps the house 44 × 44 px (v33: 36 px) */
#fbClose{min-width:44px;min-height:44px}
/* F6: the house 3 px focus ring on fields and on the custom unit trigger (v33: a 1 px border + 2 px ring, no outline;
   the unit trigger had outline 0); the invalid state keeps its red ring */
.box:focus-within{outline:3px solid var(--o-accent);outline-offset:2px}
.box.invalid:focus-within{outline-color:var(--o-red)}
.unit-trigger:focus-visible{outline:3px solid var(--o-accent);outline-offset:2px}
/* Owner fix 1 (4 Nov 2026, staged-page test): ONE ring per field. The page's design-layer sheet (loaded after this file) gives
   [tabindex]:focus-visible, select:focus-visible and input[type=…]:focus-visible their own 3 px square outline, which drew a
   second ring on the control INSIDE the rounded box on every select, every read-only box (tabindex -1) and the unit trigger,
   on top of the F6 box ring; .box input{outline:none} (0,1,1) lost to [tabindex]:focus-visible (0,2,0). These (0,2,1 / 0,3,0)
   win; the box keeps the F6 ring and the red invalid ring. The unit trigger sits inside the box (unit-picker.js), so the box
   ring is its ring. Proof: data/release/overtime-page/2026-11-04-focus-sweep.md */
.box input:focus-visible,.box select:focus-visible,.box textarea:focus-visible{outline:none;box-shadow:none}
.box .unit-trigger:focus-visible{outline:none}
/* the same double ring in the Share dialog's copy row (found by the sweep): the page sheet's input[type=text]:focus-visible
   outline on top of the row's own glow ring (.copyrow:has(>input:focus)); the row ring stays. box-shadow:none on both: the
   base sheet's focus halo on inputs and selects (styles.css, 3 px at 10 %) was a faint second ring inside the box too. */
.copyrow input[type=text]:focus-visible{outline:none;box-shadow:none}
/* Owner fix 5 (4 Nov 2026): whole-pixel rows above and inside the calculator so every (i) icon lands on an integer y — the
   title (42 px × 1.12 = 47.04 px → 47 px; 32 px phone title → 36 px), the field labels (14 px × 1.45 = 20.3 px → 20 px),
   the hints and the pin tip (12 px × 1.6 = 19.2 px → 19 px); font sizes unchanged. Proof: the sweep's (i) table. */
/* Owner fix 3 (4 Nov 2026): "Learn more about this field" (calculator-pin.js) scrolls the section heading under the sticky
   header, focuses it and tints it for 1.5 s in the house tip tint; reduced motion: no animation, the same tint for the same time
   (the script removes the class after 1.5 s either way) */
.body h2.otc-hl{animation:otc-hl 1.5s ease-out both;border-radius:6px}
@keyframes otc-hl{from{background-color:var(--o-tip)}to{background-color:transparent}}
@media (prefers-reduced-motion:reduce){.body h2.otc-hl{animation:none;background-color:var(--o-tip)}}
/* F20's phone side (design-standard §4.1 "typing fields ≥ 16 px" on phones, so iOS never zooms): the header search box keeps
   the house 16 px below 761 px (v33 draws 15 px; F20 waives 13 px+ only from 761 px up). Found by the phone check on the
   first v33 page, 20 Oct 2026 (data/design/v33-oc-phone.json: #q 15px < 16px at 320–402). */
@media (max-width:760px){.search input{font-size:16px}}
/* Tap targets ≥ 44 px (design-standard §4.1; the header .logo already has min-height var(--o-tap)): the footer logo link keeps
   44 px (v33 draws 34 px). Found by the lab's DOM pass on the first v33 page, 20 Oct 2026 (data/design/v33-oc.md: 179×34 px). */
.ftr .footer-logo{min-height:44px;align-items:center}
/* Tap targets ≥ 8 px apart (design-standard §4.1): the contents tiles sit exactly 8 px apart in v33 (gap:8px); with a two-line
   tile the sub-pixel layout at 375 px measured one pair under 8 px (OC-MATCH-DESIGN lab, 20 Oct 2026: match-design.md), so the
   rows sit 9 px apart; the two-column gap stays 8 px. */
.toc ul{row-gap:9px}
}
/* ==== end of the house floor ==== */

/* ==== OC-MATCH-DESIGN (20 Oct 2026): parts of the v33 design the v32 reproduction had no markup for — the name links that open
   the hover card, the card's photo, the share dialog's social badges (classes, never style=), the typeable result boxes and
   the feedback box's one screen. Page-scoped; no template component restyled. ==== */
@media screen{
a.pname{color:var(--o-accent);text-decoration:underline;text-decoration-color:rgba(37,99,235,.4);text-underline-offset:2px}
a.pname:hover,a.pname:focus-visible{background:#EEF3FF;color:#1844BC}
.pchead img.photo{object-fit:cover;background:var(--o-brand-soft);color:transparent}
.pcard a{color:var(--o-accent);text-decoration:underline;text-underline-offset:2px}
.social a.sfb span,.social a.sli span{background:none}.social a.sx span{background:#000}.social a.sli span{border-radius:3px}
.mhead .ibtn{flex:0 0 auto;color:var(--o-ink2)}
.pcclose{width:36px;height:36px}
/* a typeable result box: the engine's figure shows in the computed colour; a figure the visitor typed shows in the ink colour */
.box.key:not(.ro) input{cursor:text}
.box.key.computed:not(.ro) input{color:var(--o-brand-ink)}
.box:not(.key):not(.ro).computed input{color:var(--o-accent)}
.box.ro input{cursor:default}
#fbInstructions{margin:8px 0 16px}
#fbDone .fbdone{margin:12px 0 0}
.cbox[hidden]{display:none}
}
/* ==== end of OC-MATCH-DESIGN ==== */
/* ==== OC FINAL COPY (owner decided items 6 and 7, 30 Oct 2026; plan accepted 30 Oct 2026): the calculator's action buttons (Share result, Reload calculator, Clear all changes) and the Try-an-example button are 44 px tall at the house UI text size (14 px, the box-label size) instead of copying the 52 px box height; the Share tile is one row with a small icon and Clear spans the second row; the Related pages card sits at the bottom of the page above the footer. Page-scoped (the page's own style slot has no room; the embed's slot is at its cap). ==== */
.calc .acts .btn,.calc .acts .tile{min-height:44px;font-size:14px}
.calc .acts .tile{grid-row:auto;flex-direction:row;gap:8px}
.calc .acts .tile span.dot{width:18px;height:18px;border-radius:9px}
.calc .acts .tile span.dot svg{width:12px;height:12px}
.calc .acts #clear-btn{grid-column:1/-1}
.calc .ccard .btn{display:block;width:100%;min-height:44px;font-size:14px}
.rbottom{padding-bottom:40px}
.rbottom .similar{max-width:560px}
@media print{.rbottom{display:none!important}}

/* ==== LAYOUT D + TEXT SIZES F (owner YES, 4 Nov 2026) — desktop only, from the 861 px two-column breakpoint up; the phone
   layout (≤ 860 px) is untouched. Layout D: the content centred at 960 px (grid content; the .wrap gutters sit outside it),
   breadcrumb + H1 in the LEFT column with the calculator starting level with the breadcrumb (areas head/meta/body | rail),
   no rule line under the title, the left column unboxed (.meta and the article's .topic-card: no background, border, shadow
   or side padding); the calculator cards stay boxed. The 861–1100 px band keeps its 350 px rail / 28 px gap (L500; a 390 px
   rail + 48 px gap would leave about 355 px of text at 861 px); ≥ 1100 px keeps the 390 px rail / 48 px gap (L692).
   The embed (body[data-inframe]) loads this sheet too and is not part of the change, so the grid and H1 rules exclude it.
   Text sizes F, every line-height a whole number of pixels (the 4 Nov (i)-icon fix): H1 32/36; article reading text
   15/26; section headings 22/30; .body h3 (and the FAQ summary that mirrors it) 18/26; contents heading + links 14 px.
   The type rules keep the selectors of the v33 block (so .body p.src keeps its small size); the contents-link rule here is
   prefixed with .meta to beat the page sheet's 16 px contents-link rule, which loads after this file. Proof: data/release/overtime-page/2026-11-04-layout-d/ ==== */
@media screen and (min-width:861px){
body:not([data-inframe]) main.grid{max-width:calc(960px + 2*var(--o-gutter));margin-inline:auto;grid-template-areas:'head rail' 'meta rail' 'body rail'}
body:not([data-inframe]) .head{border-bottom:0;padding-bottom:0;margin-bottom:24px}
body:not([data-inframe]) .head h1{font-size:32px;line-height:36px}
.meta,.body .topic-card{background:none;border:0;border-radius:0;box-shadow:none;padding-inline:0}
.body>p{padding-inline:0}/* the 8 px inset lined loose paragraphs up with the boxed cards; unboxed, every left-column line starts at 0 (as ≤ 860 px) */
.body p,.body li,.body p.lead,.body td,.body th{font-size:15px;line-height:26px}
.body h2{font-size:22px;line-height:30px}
.body h3,.body .faq-item>summary{font-size:18px;line-height:26px}
.toc h2{font-size:14px;line-height:20px}
.meta .toc ul{font-size:14px;line-height:22px}
.meta .toc a{font-size:14px}
}

/* ==== LAYOUT I (owner 4 Nov 2026) — desktop (≥ 861 px, "same as Omni": full-width header, Related pages + footer on the
   text column's width) and phone (≤ 860 px, "similar to Omni, not the same": calculator edge to edge, square corners, thin
   dividers; labels weight 400; outlined (i); light grey boxes with a soft blue edge; creator block and article on the page
   background; one icon row; no floating dock; breadcrumb kept visible and compact — owner answer 4 Nov 2026, because
   BreadcrumbList must mark up visible content). Our colours, fonts, logo and words unchanged; page HTML unchanged.
   EVERY selector part starts with body:not([data-inframe]) so the embed (which loads this sheet) is untouched — linted by
   layout-sweep.js (h) and data/tests/overtime-calculator-page.js. The prefix also outranks the page's own <style>, which
   loads after this file. Every new line-height is a whole number of pixels. Proof: data/release/overtime-page/2026-11-04-layout-i-phone/ ==== */
/* rows above the icon row on whole pixels at every width (the creator name / role and the sources line) */
body:not([data-inframe]) .meta .people .k,body:not([data-inframe]) .meta .people .v{line-height:20px}
body:not([data-inframe]) .meta .facts summary{line-height:20px}
body:not([data-inframe]) .taxtime p{line-height:22px}
/* article rows on whole pixels too, so Related pages and the footer below them land on whole pixels */
body:not([data-inframe]) .body .tip,body:not([data-inframe]) .body .tip p{line-height:22px}
body:not([data-inframe]) .body p.src{line-height:22px}
body:not([data-inframe]) .body .history li,body:not([data-inframe]) .body .history p{font-size:var(--o-fs-micro);line-height:22px}
body:not([data-inframe]) .body .faq-item>summary{line-height:26px}
@media screen and (min-width:861px){
/* A1: header full width — logo at the left edge, About / Editorial Standards at the right, category row spread */
body:not([data-inframe]) header.hdr .hrow,body:not([data-inframe]) header.hdr nav.tabs{max-width:none;padding-inline:24px}
/* A2: Related pages and the footer on main's width (960 px content + gutters, centred) — left edges on the text column */
body:not([data-inframe]) aside.rbottom,body:not([data-inframe]) .ftr .fgrid,body:not([data-inframe]) .ftr .legal{max-width:calc(960px + 2*var(--o-gutter));margin-inline:auto}
/* the footer's divider lines drawn on that same 960 px width (not the full window) */
body:not([data-inframe]) .ftr{border-top:0}
body:not([data-inframe]) .ftr .fgrid,body:not([data-inframe]) .ftr .legal{position:relative}
body:not([data-inframe]) .ftr .legal{border-top:0}
body:not([data-inframe]) .ftr .fgrid::before,body:not([data-inframe]) .ftr .legal::before{content:"";position:absolute;top:0;left:var(--o-gutter);right:var(--o-gutter);border-top:1px solid #DAE3EF;pointer-events:none}
}
@media screen and (max-width:860px){
/* B9: breadcrumb kept, compact — a tighter top and a small gap to the title */
body:not([data-inframe]) main.grid{padding-top:14px;padding-bottom:0}
body:not([data-inframe]) .head .breadcrumb{margin:0 0 2px}
body:not([data-inframe]) .head{margin-bottom:20px;padding-bottom:16px}
/* B1: the calculator edge to edge, square corners, thin dividers between its sections, no gaps */
body:not([data-inframe]) .rail{max-width:none;margin-bottom:28px}
body:not([data-inframe]) .rail .calc{margin-inline:calc(-1 * var(--o-gutter));gap:0}
body:not([data-inframe]) .calc>.ccard,body:not([data-inframe]) .calc>.grp{border-radius:0;border-width:0 0 1px;border-style:solid;border-color:#E2E8F0;box-shadow:none}
body:not([data-inframe]) .calc>:first-child{border-top-width:1px}
body:not([data-inframe]) .calc>.ccard:first-child{padding:12px var(--o-gutter)}
body:not([data-inframe]) .calc .grp>summary{border-radius:0}
body:not([data-inframe]) .rail .related{margin-inline:calc(-1 * var(--o-gutter))}
body:not([data-inframe]) .rail .taxtime{border-radius:0;border-width:0 0 1px}
/* B2: labels at normal weight; (i) as a small outlined circle (the button keeps its 36 px box and 44 px hit area, so no
   tap or row change); section arrows without the green box */
body:not([data-inframe]) .calc .lbl{font-weight:400}
body:not([data-inframe]) .calc .tipb{background:transparent;color:#526C92}
body:not([data-inframe]) .calc .tipb svg{width:20px;height:20px;box-sizing:border-box;padding:3px;border:1.5px solid currentColor;border-radius:50%}
body:not([data-inframe]) .calc .tipb.on{background:transparent;color:#05664A}
body:not([data-inframe]) .calc .tipb.on svg{background:#DDF4E9}
body:not([data-inframe]) .calc .tipb:focus-visible{background:transparent;color:#2155E5;outline:2px solid #2155E5;outline-offset:0}
body:not([data-inframe]) .calc .grp>summary svg{background:none;padding:0;width:20px;height:20px}
/* an open fold's last box never touches the next fold's heading (8 px, the house tap spacing) */
body:not([data-inframe]) .calc details.sub[open]+details.sub{margin-top:8px}
/* B3: typing boxes light grey; the edge stays the house floor's soft blue #7189A6 (F21: 3.3:1 against this grey fill, 3.6:1
   against the white section — WCAG 1.4.11's 3:1 both sides); 46 px tall so the input, select and unit button inside keep a
   44 px hit area; result boxes white so the two never look alike; the green total boxes keep their own fill and floor edge */
body:not([data-inframe]) .calc .box{height:46px;background:#F3F5F8}
body:not([data-inframe]) .calc .box.ro{background:#fff}
body:not([data-inframe]) .calc .box.key{background:#E8F8F1}
body:not([data-inframe]) .calc .box input,body:not([data-inframe]) .calc .box select,body:not([data-inframe]) .calc .box .unit-trigger{min-height:44px;align-self:stretch}
/* B4: creator block on the page background; votes / feedback / Share / embed / cite in one row */
body:not([data-inframe]) .meta{background:none;border:0;border-radius:0;box-shadow:none;padding:0;max-width:600px}
body:not([data-inframe]) .meta .icorow{flex-wrap:nowrap;gap:8px}
body:not([data-inframe]) .meta .vbtn{padding-inline:8px;gap:4px}
/* B5: contents and every article section straight on the page background; reading text 15 / 26 (desktop size F) */
body:not([data-inframe]) .body .topic-card{background:none;border:0;border-radius:0;box-shadow:none;padding:0}
body:not([data-inframe]) .meta .toc ul{line-height:24px}
body:not([data-inframe]) .meta .toc a{font-size:15px}
body:not([data-inframe]) .body p.lead{margin-top:8px}
body:not([data-inframe]) .body h2{line-height:30px}
body:not([data-inframe]) .body p:not(.src),body:not([data-inframe]) .body li,body:not([data-inframe]) .body td,body:not([data-inframe]) .body th{font-size:15px;line-height:26px}
/* B6: the "At tax time" button full width, text centred, balanced lines */
body:not([data-inframe]) .taxtime .btn{display:flex;width:100%;min-height:44px;justify-content:center;align-items:center;text-align:center;text-wrap:balance;margin-top:12px;box-sizing:border-box}
/* B7: no floating dock on phones (the footer's 90 px room for it goes too) */
body:not([data-inframe]) .otc-quicknav{display:none}
body:not([data-inframe]) .ftr{padding-bottom:0}
/* B8: Related pages at the normal section spacing below the article */
body:not([data-inframe]) aside.rbottom{padding-top:8px}
/* every footer link and the header search box a full 44 px target */
body:not([data-inframe]) .ftr .fcol a,body:not([data-inframe]) .ftr .legal a{min-height:44px}
body:not([data-inframe]) header.hdr .search input{align-self:stretch;margin-block:-1px}
}
/* B4: narrow phones — Share as an icon (its aria-label "Share this calculator" unchanged; Omni's phone Share is an icon) */
@media screen and (max-width:411px){
body:not([data-inframe]) .meta .icorow .ic>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body:not([data-inframe]) .meta .icorow .ic{padding-inline:0}
}
/* B4: below 360 px the six buttons cannot sit in one row at 44 px and 8 px apart — two even rows of three (votes + feedback,
   then Share, embed, cite); never a lone button, never a hidden one */
@media screen and (max-width:359px){
body:not([data-inframe]) .meta .icorow{display:grid;grid-template-columns:repeat(3,max-content);gap:8px}
body:not([data-inframe]) .meta .icorow>.ic:nth-child(3){grid-column:1}
}
/* Sources list (4 Nov 2026 fix): the article's classless numbered list gets the same left space as .steps (25 px list +
   8 px item), at every width, so its outside numbers ("10." "11." "12.") sit inside the text column instead of the 16 px
   gutter (styles.css resets every padding to 0; B5 above took the card padding away). Only <ol> without a class inside the
   article: .steps and the contents list are untouched, and the update-history <ul> keeps its own no-bullet rule. Proof:
   data/release/overtime-page/2026-11-04-layout-i-phone/ (before/after-src-*), guard: layout-sweep.js (j) */
body:not([data-inframe]) .body ol:not([class]){padding-left:25px}
body:not([data-inframe]) .body ol:not([class])>li{padding-left:8px}
/* ==== END LAYOUT I ==== */
