/* Boring Apocalypse - "household field manual" theme: olive drab, coyote tan, blaze orange, stencil */
:root {
  --paper: #F3F2ED;
  --paper-2: #E6E4DA;
  --card: #FFFFFF;
  --ink: #1C1D18;
  --ink-2: #55574C;
  --line: #D3D0C3;
  --od: #4A5229;
  --od-dark: #2F3419;
  --od-deep: #22261A;
  --tan: #B8A07A;
  --tan-2: #EEE7D6;
  --orange: #D4521C;
  --orange-dark: #B04312;
  --yellow: #E8C547;
  --link: #8A3A10;
  --green: #4A5229;
  --red: #A8261B;
  --red-2: #F8E7E4;
  --stencil: "Big Shoulders Stencil Display", "Oswald", Impact, sans-serif;
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Roboto", Arial, sans-serif;
  --radius: 4px;
  --canvas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, .task:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.small { font-size: 13px; }

/* Labels and patches */
.kicker { display: inline-block; font: 600 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--od-dark); background: var(--tan-2); border: 1px solid var(--tan); outline: 1px dashed rgba(74, 82, 41, .45); outline-offset: -4px; padding: 6px 9px 5px; border-radius: 3px; text-decoration: none; margin-bottom: 10px; }
a.kicker:hover { background: var(--yellow); }
.meta { font: 400 13px/1.4 var(--body); color: var(--ink-2); margin: 6px 0 0; text-transform: uppercase; letter-spacing: .04em; }
.section-label, .stencil-label { font: 800 15px/1 var(--stencil); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 12px; }
.section-title { font: 700 28px/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 22px; }
.more { font: 600 14px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.btn { display: inline-block; font: 600 16px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; background: var(--orange); color: #fff; border: 0; border-radius: var(--radius); padding: 14px 22px; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--orange-dark); }
.btn:hover { background: var(--orange-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: rgba(0, 0, 0, .08); }

/* Header */
.topbar { background: var(--od-deep); color: #C9C6B2; font: 500 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-search { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.topbar-search:hover { color: #fff; }
.masthead { background: var(--od) var(--canvas); color: #fff; border-bottom: 4px solid var(--od-dark); }
.masthead-in { display: flex; align-items: center; gap: 18px; padding-top: 16px; padding-bottom: 16px; }
.brand { margin: 0; }
.brand a { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 800 clamp(28px, 4vw, 44px)/.9 var(--stencil); letter-spacing: .03em; text-transform: uppercase; color: var(--yellow); }
.brand-sub { font: 500 12px/1 var(--head); letter-spacing: .28em; text-transform: uppercase; color: #D8D4BC; margin-top: 6px; }
.flag-patch { margin-left: auto; flex: none; }
.masthead-cta { font: 600 15px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; background: var(--orange); color: #fff; padding: 12px 16px; border-radius: var(--radius); box-shadow: 0 3px 0 var(--orange-dark); }
.masthead-cta:hover { background: var(--orange-dark); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.nav { background: var(--ink); border-bottom: 3px solid var(--orange); }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding-top: 0; padding-bottom: 0; margin: 0 auto; }
.nav-list a { display: block; font: 500 15px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: #E9E6D8; padding: 15px 16px 13px; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.nav-list li:first-child a { padding-left: 0; }
.nav-list a:hover, .nav-list a[aria-current] { color: #fff; border-bottom-color: var(--yellow); }
.nav-tool { color: var(--yellow) !important; }

/* Home: lead */
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 40px; }
.lead { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--od); }
.lead-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lead-body { padding: 22px 26px 26px; }
.lead-title { font: 700 clamp(28px, 3.4vw, 42px)/1.08 var(--head); margin: 0 0 12px; }
.lead-title a, .side-title a, .card-title a { text-decoration: none; }
.lead-title a:hover, .side-title a:hover, .card-title a:hover { color: var(--orange-dark); }
.lead-dek { font-size: 18px; color: var(--ink-2); margin: 0; }
.lead-side { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--orange); padding: 20px 22px; }
.side-item { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 14px 0; border-top: 1px dashed var(--line); }
.side-item:first-of-type { border-top: 0; padding-top: 4px; }
.side-media img { width: 104px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.side-title { font: 600 18px/1.2 var(--head); margin: 0; }
.side-item .kicker { font-size: 10px; padding: 4px 7px 3px; margin-bottom: 6px; }

/* Home: basics (SOP) */
.basics { background: var(--od-dark) var(--canvas); color: #fff; padding: 44px 0 48px; border-top: 4px solid var(--yellow); }
.basics-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px 40px; margin-bottom: 26px; }
.basics-head .stencil-label { grid-column: 1 / -1; color: var(--yellow); }
.basics-head h2 { font: 700 38px/1 var(--head); text-transform: uppercase; margin: 0; }
.basics-head p { margin: 0; color: #D3D0BD; }
.basics-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: sop; }
.basics-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; background: rgba(0, 0, 0, .22); border: 2px solid #59613A; border-radius: var(--radius); padding: 18px 18px 20px; text-decoration: none; transition: border-color .15s, background .15s; }
.basics-list a:hover { border-color: var(--yellow); background: rgba(0, 0, 0, .35); }
.basics-list .n { font: 800 14px/1 var(--stencil); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.basics-list strong { font: 700 24px/1.1 var(--head); text-transform: uppercase; }
.basics-list span:last-child { font-size: 15px; color: #D3D0BD; }

/* Category blocks + cards */
.cat-block { padding-top: 46px; }
.cat-block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 24px; }
.cat-block-head h2 { font: 700 30px/1 var(--head); text-transform: uppercase; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cat-block-head h2 a { text-decoration: none; }
.sec-no { font: 800 13px/1 var(--stencil); letter-spacing: .18em; color: var(--orange); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--od); box-shadow: 0 4px 0 var(--od); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body .kicker { align-self: flex-start; }
.card-title { font: 600 21px/1.2 var(--head); margin: 0 0 8px; }
.card-dek { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 10px; }

/* Tool promo + manifesto */
.tool-promo { background: var(--ink); color: #fff; margin-top: 56px; padding: 44px 0; border-top: 6px solid var(--orange); }
.tool-promo .section-label { color: var(--yellow); }
.tool-promo h2 { font: 700 clamp(28px, 3.2vw, 40px)/1.05 var(--head); text-transform: uppercase; margin: 0 0 12px; }
.tool-promo p { max-width: 520px; color: #D9D6C8; }
.tool-promo-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tool-promo-img img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; border: 3px solid #3A3B33; }
.manifesto { margin-top: 56px; background: var(--tan-2); border-top: 1px solid var(--tan); border-bottom: 1px solid var(--tan); padding: 40px 0; }
.manifesto h2 { font: 700 36px var(--head); text-transform: uppercase; margin: 0 0 20px; }
.manifesto-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: order; }
.manifesto-cols p { margin: 0; font-size: 16px; border-left: 4px solid var(--od); padding-left: 16px; }
.manifesto-cols strong { display: block; font: 600 19px/1.2 var(--head); text-transform: uppercase; margin-bottom: 6px; }
.manifesto .more { display: inline-block; margin-top: 22px; }
.latest { padding-top: 48px; padding-bottom: 64px; }
.latest-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.latest-list li { break-inside: avoid; border-bottom: 1px dashed var(--line); }
.latest-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; text-decoration: none; }
.latest-list .kicker { grid-column: 1 / -1; margin: 0; justify-self: start; font-size: 10px; padding: 4px 7px 3px; }
.latest-title { font: 500 18px/1.3 var(--head); }
.latest-list a:hover .latest-title { color: var(--orange-dark); }
.latest-list .meta { margin: 0; align-self: end; }

/* Article */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font: 500 12px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange-dark); }
.crumbs [aria-current] { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.post-head { padding-top: 30px; max-width: 920px; }
.post-title { font: 700 clamp(32px, 4.6vw, 52px)/1.06 var(--head); margin: 0 0 14px; text-wrap: balance; }
.post-dek { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; max-width: 780px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font: 500 12px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 12px 0; }
.post-meta a { color: var(--ink); }
.print-btn { margin-left: auto; font: 600 13px var(--head); letter-spacing: .1em; text-transform: uppercase; background: var(--od); border: 0; color: #fff; border-radius: var(--radius); padding: 9px 14px; cursor: pointer; }
.print-btn:hover { background: var(--od-dark); }
.post-hero { margin: 24px auto 0; }
.post-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 740px); gap: 52px; justify-content: center; padding-top: 36px; }
.post-aside { position: relative; }
.toc { position: sticky; top: 20px; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--od); border-radius: var(--radius); padding: 16px 18px; font: 400 14px/1.4 var(--body); }
.toc-h { font: 800 14px var(--stencil); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px dashed var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 0; text-decoration: none; color: var(--ink-2); }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 600 12px/1.6 var(--head); color: var(--od); }
.toc a:hover, .toc a.active { color: var(--ink); font-weight: 500; }
.toc a.active::before { color: var(--orange); }
.short-answer { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 0 0 18px; margin-bottom: 34px; overflow: hidden; }
.short-answer-h { font: 700 18px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--yellow); margin: 0 0 14px; padding: 10px 20px; }
.short-answer-h span { font: 400 12px var(--head); letter-spacing: .12em; color: #C9C6B2; margin-left: 10px; }
.short-answer p { margin: 0 20px; font-size: 18px; font-weight: 500; }
.short-answer ul { margin: 14px 20px 0; padding-left: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.short-answer li { position: relative; padding-left: 22px; }
.short-answer li + li { margin-top: 7px; }
.short-answer li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--orange); }

/* Prose */
.prose { font-size: 18px; line-height: 1.7; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font: 700 30px/1.15 var(--head); margin: 2em 0 .6em; padding-top: .5em; border-top: 3px solid var(--ink); scroll-margin-top: 20px; }
.prose h3 { font: 600 22px/1.25 var(--head); margin: 1.6em 0 .45em; color: var(--od-dark); }
.prose a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 500; }
.prose a:hover { color: var(--orange); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .4em 0; }
.prose ul li::marker { color: var(--od); }
.prose ol li::marker { font: 700 .95em var(--head); color: var(--orange-dark); }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 2px dashed var(--line); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--body); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--od-dark); color: #fff; font: 500 13px/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.prose tbody tr:nth-child(even) td { background: #F7F6F1; }
.prose tr:last-child td { border-bottom: 0; }
/* Field-manual style boxes */
.callout { margin: 1.8em 0; padding: 0 0 14px; border: 2px solid var(--od); border-radius: var(--radius); background: var(--card); font-size: 16.5px; overflow: hidden; }
.callout p { margin: 0 18px .5em; } .callout p:last-child { margin-bottom: 0; }
.callout p:first-child { padding-top: 0; }
.callout::before { content: attr(data-label); display: block; font: 700 14px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; text-align: center; background: var(--od); color: #fff; padding: 8px; margin-bottom: 12px; }
.callout > p:first-child > strong:first-child { display: none; }
.callout-safety, .callout-warning, .callout-danger { border-color: var(--red); }
.callout-safety::before, .callout-warning::before, .callout-danger::before { content: "Warning"; background: var(--red); }
.callout-safety { background: var(--red-2); }
.callout-myth { border-color: var(--orange); }
.callout-myth::before { background: var(--orange); }
.callout-note { border-color: var(--ink-2); }
.callout-note::before { background: var(--ink-2); }
.callout-tip::before { content: "Field tip"; }
.prose blockquote:not(.callout) { margin: 1.5em 0; padding-left: 18px; border-left: 4px solid var(--tan); color: var(--ink-2); }
.checklist { list-style: none !important; padding-left: 0 !important; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px !important; }
.task { position: relative; padding: 9px 0 9px 34px; margin: 0 !important; cursor: pointer; border-bottom: 1px dashed var(--line); }
.task:last-child { border-bottom: 0; }
.task .box { position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 2px; background: #fff; }
.task.done { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--tan); }
.task.done .box { background: var(--od); border-color: var(--od); }
.task.done .box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.inline-figure { margin: 2.2em 0; }
.inline-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.inline-figure figcaption { font: 400 13px var(--body); color: var(--ink-2); margin-top: 8px; }
.faq { margin-top: 2.4em; }
.faq h3 { font: 600 20px/1.3 var(--head); color: var(--ink); margin: 1em 0 .4em; padding-top: .9em; border-top: 1px dashed var(--line); }
.faq h2 + h3 { border-top: 0; padding-top: 0; }
.sources { margin-top: 2.4em; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sources h2 { font-size: 22px; }
.sources ul { padding-left: 1.1em; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 44px; padding: 18px 20px; border: 1px solid var(--line); border-left: 6px solid var(--od); border-radius: var(--radius); background: var(--card); font-size: 15px; line-height: 1.55; }
.author-box svg { flex: none; }
.author-box p { margin: 0; }
.author-name { font: 600 17px var(--head) !important; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px !important; }
.disclaimer { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 18px 0 0; }
.related { padding-top: 52px; border-top: 3px solid var(--ink); margin-top: 56px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 36px; padding-bottom: 64px; }
.prevnext a { display: block; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font: 500 18px/1.3 var(--head); }
.prevnext a:hover { border-color: var(--od); box-shadow: 0 3px 0 var(--od); }
.prevnext span { display: block; font: 800 12px var(--stencil); text-transform: uppercase; letter-spacing: .16em; color: var(--orange); margin-bottom: 6px; }
.prevnext .next { text-align: right; }

/* Pages */
.page-head { padding-top: 34px; padding-bottom: 30px; max-width: 920px; }
.page-title { font: 700 clamp(32px, 4.4vw, 50px)/1.05 var(--head); text-transform: uppercase; margin: 0 0 14px; }
.page-intro { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 740px; }
.other-topics { padding-top: 52px; padding-bottom: 64px; }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list a { display: inline-flex; gap: 8px; align-items: center; font: 500 14px var(--head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 10px 14px; border: 1px solid var(--tan); outline: 1px dashed rgba(74, 82, 41, .4); outline-offset: -5px; border-radius: 3px; background: var(--tan-2); }
.pill-list a:hover { background: var(--yellow); }
.pill-list span { color: var(--ink-2); }
.archive { padding-bottom: 64px; }
.archive section { margin-bottom: 36px; }
.archive h2 { font: 700 26px var(--head); text-transform: uppercase; border-bottom: 3px solid var(--ink); padding-bottom: 8px; margin: 0 0 6px; }
.archive h2 a { text-decoration: none; }
.static-page { max-width: 780px; padding-top: 34px; padding-bottom: 64px; }
.page-figure img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 30px; }

/* Search */
.search-form { display: flex; gap: 10px; margin: 22px 0 10px; max-width: 640px; }
.search-form input { flex: 1; min-width: 0; font: 400 18px var(--body); padding: 12px 16px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); }
.search-results { list-style: none; padding: 0; margin: 24px 0 64px; max-width: 840px; }
.search-results a { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--line); text-decoration: none; }
.search-results img { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.search-results strong { display: block; font: 600 20px/1.25 var(--head); }
.search-dek { display: block; font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.notfound + section { padding-bottom: 64px; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; padding-bottom: 40px; }
.calc-form fieldset { border: 2px solid var(--od); border-radius: var(--radius); background: var(--card); padding: 14px 18px 18px; margin: 0 0 18px; }
.calc-form legend { font: 600 14px var(--head); text-transform: uppercase; letter-spacing: .14em; padding: 4px 10px; background: var(--od); color: #fff; border-radius: 2px; }
.calc-form label { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.calc-form input[type="number"] { width: 88px; font: 600 20px var(--head); padding: 6px 10px; border: 2px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); text-align: center; }
.calc-form input[type="number"]:focus { border-color: var(--od); outline: none; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 10px; }
.seg input { position: absolute; opacity: 0; }
.seg label { display: block; text-align: center; font: 500 15px var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 10px 4px; border: 2px solid var(--line); border-radius: 3px; cursor: pointer; }
.seg label:has(input:checked) { background: var(--od); color: #fff; border-color: var(--od); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--orange); }
.calc-form .check { justify-content: flex-start; border: 0; }
.calc-form .check input { width: 20px; height: 20px; accent-color: var(--od); }
.calc-out { background: var(--od-deep) var(--canvas); color: #fff; border-radius: var(--radius); border-top: 6px solid var(--yellow); padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.calc-stat { display: flex; flex-direction: column; }
.calc-num { font: 800 clamp(44px, 5.4vw, 66px)/1 var(--stencil); color: var(--yellow); letter-spacing: .02em; }
.calc-unit { font: 600 14px var(--head); text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; }
.calc-sub { font-size: 14px; line-height: 1.45; color: #D3D0BD; margin-top: 6px; }
.calc-list { grid-column: 1 / -1; border-top: 1px dashed rgba(255, 255, 255, .25); padding-top: 18px; }
.calc-list .section-label { color: var(--yellow); }
.calc-list .checklist { background: transparent; border: 0; padding: 0 !important; }
.calc-list .task { border-bottom-color: rgba(255, 255, 255, .18); font-size: 15.5px; line-height: 1.45; }
.calc-list .task .box { background: transparent; border-color: #E9E6D8; }
.calc-list .btn-ghost { color: #fff; margin-top: 16px; }
.tool-copy { max-width: 780px; padding-bottom: 64px; }

/* Footer */
.footer { background: var(--od-deep) var(--canvas); color: #D9D6C8; margin-top: 24px; font-size: 15px; line-height: 1.6; border-top: 6px solid var(--od); }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 46px; padding-bottom: 30px; }
.footer-brand { font: 800 30px var(--stencil); letter-spacing: .04em; text-transform: uppercase; color: var(--yellow); margin: 0 0 10px; }
.footer-about p { max-width: 460px; }
.footer-h { font: 600 13px var(--head); text-transform: uppercase; letter-spacing: .16em; color: var(--tan); margin: 6px 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 6px 0; }
.footer-base { border-top: 1px dashed rgba(255, 255, 255, .18); padding-top: 18px; padding-bottom: 26px; font: 500 12px var(--head); letter-spacing: .12em; text-transform: uppercase; color: #A9A68F; }

/* Responsive */
@media (max-width: 1020px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; margin-bottom: 28px; }
  .basics-list { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .nav-list a { padding: 14px 11px 12px; font-size: 14px; }
}
@media (max-width: 860px) {
  .lead-grid { grid-template-columns: 1fr; gap: 24px; }
  .tool-promo-in, .manifesto-cols, .footer-grid, .basics-head { grid-template-columns: 1fr; }
  .latest-list { columns: 1; }
  .flag-patch { display: none; }
  .masthead-in { gap: 10px; }
  .masthead-cta { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list li { width: 100%; border-bottom: 1px solid #33352C; }
  .nav-list a, .nav-list li:first-child a { padding: 14px 0; border: 0; margin: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .topbar-in span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 24px; }
  .brand-sub { font-size: 9px; letter-spacing: .2em; }
  .masthead-cta { font-size: 12px; padding: 9px 10px; white-space: nowrap; }
  .basics-list { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 26px; }
  .post-hero img { aspect-ratio: 16 / 10; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .next { text-align: left; }
  .search-results a { grid-template-columns: 96px 1fr; }
  .search-results img { width: 96px; }
  .calc-out { grid-template-columns: 1fr; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .print-btn { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Print: clean checklist pages */
@media print {
  body { font-size: 11.5pt; background: #fff; }
  .topbar, .nav, .nav-toggle, .masthead, .post-aside, .related, .prevnext, .footer, .print-btn, .post-hero, .inline-figure, .author-box, .btn, .calc-form, .tool-copy, .skip { display: none !important; }
  .post-layout { display: block; padding-top: 10px; }
  .prose a { color: #000; text-decoration: none; }
  .calc { display: block; }
  .calc-out { background: #fff; color: #000; padding: 0; border: 0; }
  .calc-num, .calc-list .section-label { color: #000; }
  .calc-sub { color: #333; }
  .task .box, .calc-list .task .box { border-color: #000 !important; }
  .callout::before { background: #000 !important; }
  h2, h3 { break-after: avoid; }
  .task, tr { break-inside: avoid; }
}
