/* bugoutbagchecklist.org: one shared stylesheet. Edit tokens in :root first.
   Theme: Olive Drab & Tan (chosen 2026-10-12). To go back to the original
   Navy & Safety Orange, swap in: bg #F6F4EE, ink #1B2420, muted #56615B, line #E2DDD0,
   brand #1F3A5F, accent #D9531E, accent-dark #B5420F, header #1F3A5F, footer #142538,
   logo-accent #FFB38F, nav-ink #E4ECF6, foot-ink #C9D4E2, foot-muted #A9B6C6,
   link-line rgba(31,58,95,.4). */
:root {
  --bg: #FFFFFF;
  --band-1: #F1F5F9;   /* light blue-gray section tint (was sage #F4F6EE) */
  --band-2: #FFFFFF;   /* white sections (was sand #FAF6EE; user preferred white) */
  --band-2-border: #E6E8DE;
  --row-line: #E9E8DF;
  --surface: #FFFFFF;
  --ink: #1F241A;
  --muted: #5C6152;
  --line: #DEDCCD;
  --brand: #3F4A2B;
  --brand-ink: #FFFFFF;
  --accent: #B8692A;
  --accent-dark: #96521C;
  --header: #2E3620;
  --footer: #232A18;
  --logo-accent: #E3B07A;
  --nav-ink: #E9EADF;
  --foot-ink: #D6D8C8;
  --foot-muted: #B3B6A2;
  --link-line: rgba(63, 74, 43, .4);
  --ess: #B42318;      --ess-bg: #FCE9E6;
  --rec: #1D4ED8;      --rec-bg: #E6EDFD;
  --sit: #4B5563;      --sit-bg: #ECEEF1;
  --radius: 12px;
  --max: 920px;   /* one column width for header, content and footer */
  --text: 100%;   /* text fills the same column so every section lines up */
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 4px 16px rgba(20, 30, 25, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 1.95rem); margin: 2.2em 0 .6em; padding-top: .2em; }
h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
p, ul, ol, dl { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--text); }
.wrap.prose { max-width: var(--max); }  /* a centered column that is also a text block keeps the column width */
.page-head + .wrap { padding-top: 28px; }
.muted { color: var(--muted); }

/* Header */
.site-header { background: var(--header); color: var(--brand-ink); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; white-space: nowrap; }
.logo:hover { color: #fff; }
.logo svg { width: 36px; height: 36px; flex: none; }
.wordmark { font-weight: 800; font-size: 1.08rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.wordmark small { display: block; color: var(--logo-accent); font-size: .62rem; letter-spacing: .32em; font-weight: 700; margin-top: 4px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--nav-ink); text-decoration: none; font-size: .93rem; padding: 6px 10px; border-radius: 6px; }
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.nav .nav-cta { background: var(--accent); color: #fff; font-weight: 600; }
.nav .nav-cta:hover { background: var(--accent-dark); }
@media (max-width: 760px) {
  .nav a:not(.nav-cta):not(.nav-keep) { display: none; }
  .wordmark { font-size: .98rem; }
}

/* Hero */
.hero { background: var(--band-2); border-bottom: 1px solid var(--line); padding: 36px 0 30px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent-dark); margin: 0; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .93rem; color: var(--muted); margin-bottom: 18px; }
.byline strong { color: var(--ink); }
.answer { font-size: 1.13rem; max-width: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0; }
.chips li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .9rem; font-weight: 600; margin: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-olive { background: var(--brand); color: #fff; }
.btn-olive:hover { background: #2E3620; color: #fff; }
.btn-steel { background: #3B5B78; color: #fff; }
.btn-steel:hover { background: #2C465E; color: #fff; }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* TOC */
.toc { background: var(--band-1); border: 0; border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; max-width: var(--text); }
.toc h2 { font-size: 1rem; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 20px; font-size: .95rem; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* Tier badges and key */
.tier { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.tier-essential { background: var(--ess-bg); color: var(--ess); }
.tier-recommended { background: var(--rec-bg); color: var(--rec); }
.tier-situational { background: var(--sit-bg); color: var(--sit); }

/* Tier cards above the checklist (click to filter) */
.tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 6px; }
.tier-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--sit); transition: box-shadow .15s, transform .15s; }
.tier-card:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.tc-essential { border-top-color: var(--ess); }
.tc-recommended { border-top-color: var(--rec); }
.tc-n { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.tc-essential .tc-n { color: var(--ess); }
.tc-recommended .tc-n { color: var(--rec); }
.tc-situational .tc-n { color: var(--sit); }
.tc-name { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
.tc-desc { font-size: .88rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) { .tier-cards { grid-template-columns: 1fr; } .tier-card { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; } .tc-desc { flex-basis: 100%; } }
.fine-print { font-size: .85rem; color: var(--muted); margin: 10px 0 0; padding-left: 22px; position: relative; }
.fine-print::before { content: "i"; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--muted); font: 700 10px/12px var(--font); text-align: center; }

/* Checklist toolbar */
.toolbar { display: none; }
.js .toolbar { display: block; position: sticky; top: 60px; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; margin: 18px 0 8px; }
.tb-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.tb-row + .tb-row { margin-top: 10px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { font: inherit; font-size: .88rem; border: 0; background: var(--surface); padding: 7px 12px; cursor: pointer; color: var(--ink); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 700; }
.tb-select { font: inherit; font-size: .9rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.tb-label { font-size: .88rem; color: var(--muted); }
.scen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 999px; padding: 4px 11px; cursor: pointer; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--brand); text-decoration: none; font-weight: 600; }
.chip[aria-pressed="true"]::before { content: "\2713\00a0"; color: var(--brand); }
.chip-n { font-weight: 400; color: var(--muted); font-size: .8rem; }
.tb-check { font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tb-stats { font-size: .92rem; font-variant-numeric: tabular-nums; flex: 1 1 260px; }
.tb-stats strong { color: var(--ink); }
.progress { height: 8px; background: #E3E8EE; border-radius: 999px; overflow: hidden; margin-top: 5px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.chip-all { color: var(--brand); border: 1px dashed var(--brand); text-decoration: none; font-weight: 600; background: transparent; }
.tb-actions { display: flex; gap: 14px; align-items: center; }
.tb-tickall { font: inherit; font-size: .85rem; background: none; border: 1px solid var(--brand); color: var(--brand); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-weight: 600; }
.tb-tickall:hover { background: var(--brand); color: #fff; }
.tb-reset { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }

.tb-push { margin-left: auto; }
.tb-statrow { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px !important; align-items: flex-start; gap: 12px 28px; }
.stat { display: flex; flex-direction: column; min-width: 110px; }
.stat-progress { flex: 1 1 220px; }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.stat-val { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.stat-val strong { font-size: 1.25rem; }
.stat-pct { font-size: .8rem; font-weight: 700; color: var(--accent-dark); margin-left: 4px; }
.stat-sub { font-size: .75rem; color: var(--muted); }
.stat-progress .progress { height: 10px; margin-top: 6px; }
.tb-statrow .tb-actions { align-self: center; }
@media (max-width: 760px) {
  .js .toolbar { position: static; }
  .tb-push { margin-left: 0; }
}

/* Checklist categories and items */
.cat { margin: 18px 0; padding: 8px 26px 14px; border-radius: 16px; background: var(--band-1); }
.cat:nth-of-type(even) { background: var(--band-2); border: 1px solid var(--band-2-border); }
.cat h3 { margin-top: .9em; }
.cat h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 2px; }
.cat h3 .count { font-size: .85rem; font-weight: 600; color: var(--muted); }
.cat-intro { max-width: var(--text); color: var(--muted); }
.items { list-style: none; padding: 0; margin: 0; }
.item { display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; padding: 14px 4px; margin: 0; border-top: 1px solid var(--row-line); }
.items .item:first-child { border-top: 0; }
.item input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
.item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.item-name { font-weight: 700; cursor: pointer; }
.item-num { color: var(--muted); font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; }
.item-note { grid-column: 2; margin: 2px 0 4px; font-size: .95rem; }
.item-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); align-items: center; }
.item-link { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--link-line); }
.item-link:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
.scen { font-size: .72rem; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.item.is-packed { background: rgba(255, 255, 255, .6); border-radius: 8px; }
.item.is-packed .item-note, .item.is-packed .item-meta { opacity: .6; }
.item.is-packed .item-name { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.item[hidden], .cat[hidden] { display: none; }
.empty-msg { display: none; padding: 16px; text-align: center; color: var(--muted); }
.empty-msg.show { display: block; }

/* Essentials quick list */
.quick { columns: 3 220px; column-gap: 28px; background: var(--band-2); border: 1px solid var(--band-2-border); border-radius: var(--radius); padding: 18px 22px; }
.quick h3 { font-size: .95rem; margin: 0 0 4px; break-after: avoid; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.quick ul { list-style: none; padding: 0; margin: 0 0 14px; break-inside: avoid; }
.quick li { margin: 0 0 2px; font-size: .95rem; }
.quick li::before { content: "\2610"; margin-right: 6px; color: var(--ess); }

/* Tables, diagrams, cards */
.table-wrap { overflow-x: auto; max-width: var(--text); }
table { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--bg); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
figure { margin: 24px 0; max-width: var(--text); }
figure.diagram { background: var(--band-1); border: 0; border-radius: var(--radius); padding: 16px; }
figure.diagram svg { display: block; max-width: 620px; margin: 0 auto; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
dl.types dt { font-weight: 700; font-size: 1.05rem; margin-top: 14px; }
dl.types dd { margin: 4px 0 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-size: 1.08rem; }
.card p { font-size: .93rem; color: var(--muted); margin: 0 0 6px; flex: 1; }
.card .btn { justify-content: center; }

/* FAQ */
.faq details { background: var(--band-1); border: 0; border-radius: 10px; margin-bottom: 10px; max-width: var(--text); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style-position: outside; }
.faq details > div { padding: 0 18px 14px; }

/* Author box */
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--band-2); border: 1px solid var(--band-2-border); border-radius: var(--radius); padding: 20px; margin: 36px 0; max-width: var(--text); }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; }
.author-box p { margin: 0 0 .4em; }

/* Page body for secondary pages */
main { padding-bottom: 48px; }
.page-head { background: var(--band-2); border-bottom: 1px solid var(--line); padding: 32px 0 24px; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 6px; }
.crumbs a { color: var(--muted); }

/* Footer */
.site-footer { background: var(--footer); color: var(--foot-ink); padding: 36px 0 28px; font-size: .92rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: 6px; }
.disclosure { border-top: 1px solid rgba(255,255,255,.15); margin-top: 22px; padding-top: 16px; font-size: .85rem; color: var(--foot-muted); }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }

/* Print: just the checklist, compact */
@media print {
  .site-header, .site-footer, .toolbar, .btns, .toc, .author-box, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .item { break-inside: avoid; padding: 6px 8px; border-radius: 4px; }
  .item-note { display: none; }
  a { color: inherit; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* First section right under the hero needs less top space */
.hero + .wrap > section:first-child > h2 { margin-top: 1.1em; }

/* Infographics gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 18px 0; align-items: start; }
.infographic { margin: 0; background: var(--band-1); border-radius: var(--radius); padding: 14px; }
.infographic img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); }
.infographic figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.infographic figcaption strong { color: var(--ink); font-size: 1rem; }
.infographic figcaption a { font-weight: 600; margin-top: 2px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
