/* hillbillyhosting.org — Trail Signs. Own design system: Hepta Slab + Nunito Sans + Inconsolata;
   spruce / signboard brown / blaze yellow / trail cream; contour lines, carved signposts, trail-difficulty marks. */

@font-face { font-family: "Hepta Slab"; src: url("fonts/hepta-slab-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("fonts/nunito-sans-var.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Inconsolata"; src: url("fonts/inconsolata-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --spruce: #1e3a2f; --spruce-2: #2b5141; --spruce-3: #3f6b56;
  --board: #6b4423; --board-2: #8a5a32; --board-dark: #4a2f19;
  --blaze: #f2b705; --blaze-2: #ffd24a;
  --cream: #f6f1e5; --paper: #fffdf7; --line: #ddd3bd; --line-2: #e9e2d0;
  --slate: #2e4a5c; --moss: #6e7f3e;
  --ink: #1b1f1c; --muted: #4f554d;
  --stop: #a33a2b; --look: #8a5d00; --note: #2e6b4f;
  --display: "Hepta Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --text: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Inconsolata", "Consolas", "SFMono-Regular", Menlo, monospace;
  --r: 6px;
  --shadow: 0 1px 0 rgba(27, 31, 28, .06), 0 10px 30px -18px rgba(27, 31, 28, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); font-optical-sizing: auto; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--spruce-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--board); }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 2px; }
code { font: 500 .92em/1.3 var(--mono); background: var(--line-2); padding: .08em .35em; border-radius: 4px; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--display); color: var(--spruce); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(2.15rem, 1.4rem + 3.4vw, 4rem); }
h2 { font-weight: 700; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); }
h3 { font-weight: 700; font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.small { font-size: .88rem; color: var(--muted); }
.sr { 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(--blaze); color: var(--ink); padding: 8px 14px; z-index: 50; border-radius: var(--r); }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--spruce); color: var(--cream); box-shadow: 0 2px 0 var(--board-dark); }
.top-in { width: min(1200px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 800 1.22rem/1.1 var(--display); letter-spacing: .01em; }
.brand-sub { font-size: .78rem; color: #c9d6cc; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 10px 12px; border-radius: var(--r); position: relative; }
.nav a:hover { background: var(--spruce-2); color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blaze); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blaze); margin-left: 6px; vertical-align: 2px; }
.tag { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); background: var(--blaze); padding: 6px 14px 6px 10px; border-radius: 4px 18px 18px 4px; font-size: .82rem; line-height: 1.2; }
.tag:hover { background: var(--blaze-2); color: var(--ink); }
.tag-hole { width: 9px; height: 9px; border-radius: 50%; background: var(--spruce); box-shadow: inset 0 0 0 2px var(--board-dark); flex: none; }
.tag-text b { font-weight: 800; }
.tag-text em { display: block; font-style: normal; font-weight: 700; font-size: .72rem; color: var(--board-dark); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 10px; border-radius: var(--r); }
.menu summary::-webkit-details-marker { display: none; }
.bars { display: grid; gap: 5px; }
.bars i { display: block; width: 24px; height: 3px; background: var(--cream); border-radius: 2px; }
.menu-sheet { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); width: min(300px, calc(100vw - 32px)); padding: 8px; display: grid; }
.menu-sheet a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 12px; border-radius: 4px; }
.menu-sheet a[aria-current="page"] { background: var(--cream); box-shadow: inset 3px 0 0 var(--blaze); }
.menu-sheet .menu-price { font-weight: 600; font-size: .86rem; color: var(--board); border-top: 1px solid var(--line); margin-top: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 1rem/1.2 var(--text); padding: 13px 22px; border-radius: var(--r); border: 2px solid var(--spruce); background: var(--paper); color: var(--spruce); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--cream); color: var(--spruce); }
.btn-blaze { background: var(--blaze); border-color: var(--blaze); color: var(--ink); box-shadow: 0 3px 0 #b78a00; }
.btn-blaze:hover { background: var(--blaze-2); color: var(--ink); }
.btn-spruce { background: var(--spruce); color: var(--cream); }
.btn-spruce:hover { background: var(--spruce-2); color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--stop); border-color: var(--stop); color: #fff; }
.btn-small { padding: 7px 12px; font-size: .88rem; border-width: 1.5px; }
.btn-quiet { border-color: var(--line); color: var(--muted); }
.btn-wide { width: 100%; }
.btn-text { font-weight: 800; color: var(--spruce); text-decoration: none; border-bottom: 2px solid var(--blaze); padding-bottom: 2px; }
.btn-text:hover { color: var(--board); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 26px 0 18px; }

/* ---------- shared heads ---------- */
.kicker { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--board); margin-bottom: 14px; }
.blaze { display: inline-block; width: 12px; height: 20px; background: var(--blaze); border-radius: 2px; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--board); }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.page-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: 54px 0 40px; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); max-width: 22ch; }
.section-title { margin-bottom: .35em; }
.section-lede { color: var(--muted); max-width: 60ch; }

/* ---------- home: hero ---------- */
.hero { position: relative; background: var(--cream); overflow: hidden; border-bottom: 1px solid var(--line); }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; color: #cbbf9f; opacity: .7; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding: 72px 0 80px; }
.hero h1 { max-width: 15ch; }
.hero-price { font-size: .95rem; color: var(--muted); border-left: 4px solid var(--blaze); padding-left: 12px; max-width: 54ch; }
.post { position: relative; margin: 0; padding: 26px 0 40px; display: grid; gap: 18px; justify-items: center; }
.post-pole { position: absolute; left: 50%; top: 0; bottom: 34px; width: 22px; margin-left: -11px; background: linear-gradient(90deg, #7a5532, #a77a4c 45%, #6b4423); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.post-pole::before { content: ""; position: absolute; left: 3px; right: 3px; top: 42%; height: 26px; background: #fff; border-radius: 2px; }
.sign { position: relative; z-index: 1; width: min(400px, 100%); padding: 12px 40px 12px 18px; background: linear-gradient(180deg, #8f5f35, #74482a); color: #fff8ea; border-radius: 4px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12); clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); display: grid; gap: 2px; }
.sign-left { padding: 12px 18px 12px 40px; clip-path: polygon(26px 0, 100% 0, 100% 100%, 26px 100%, 0 50%); background: linear-gradient(180deg, #2b5141, #1e3a2f); transform: translateX(-18px); }
.sign-right { transform: translateX(18px); }
.sign-from { font: 500 .86rem/1.25 var(--mono); color: #e8d9bf; text-decoration: line-through; text-decoration-color: rgba(242, 183, 5, .7); overflow-wrap: anywhere; }
.sign-to { font: 700 1.1rem/1.25 var(--mono); color: #fff; overflow-wrap: anywhere; }
.sign-to::before { content: "→ "; color: var(--blaze); }
.post figcaption { position: relative; z-index: 1; font-size: .82rem; color: var(--muted); background: var(--cream); padding: 2px 8px; }

/* ---------- home: hazards ---------- */
.hazards { padding: 84px 0 70px; }
.hazard-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 34px; border-top: 3px solid var(--spruce); }
.hazard { padding: 28px 28px 8px 0; }
.hazard + .hazard { padding-left: 28px; border-left: 1px solid var(--line); }
.hazard svg { width: 56px; height: 56px; margin-bottom: 10px; }
.hazard p { color: var(--muted); }
.hazard-count { font: 700 .86rem/1.3 var(--mono); color: var(--board) !important; }

/* ---------- home: steps ---------- */
.steps { background: var(--spruce); color: var(--cream); padding: 80px 0; }
.steps .section-title { color: #fff; }
.steps .section-lede { color: #c9d6cc; }
.steps-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.trail { list-style: none; margin: 0; padding: 0; counter-reset: s; position: relative; }
.trail::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; border-left: 3px dashed #5f8a73; }
.trail li { counter-increment: s; position: relative; padding: 4px 0 22px 66px; color: #dfe8e1; }
.trail li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--blaze); color: var(--ink); font: 800 1.15rem/1 var(--display); border-radius: 4px; box-shadow: 0 0 0 4px var(--spruce); }
.trail b { color: #fff; display: block; font-size: 1.08rem; }
.trail code { background: #2b5141; color: #fff3cf; }

/* ---------- code panels (also on /map) ---------- */
.output-band { padding: 84px 0; }
.output-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.output-copy p { color: var(--muted); }
.code-tabs { background: #14231d; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.tab-list { display: flex; gap: 2px; background: #0e1914; padding: 6px 6px 0; overflow-x: auto; }
.tab-list button { font: 700 .88rem/1 var(--text); color: #9fb4a8; background: transparent; border: 0; padding: 12px 16px; border-radius: 6px 6px 0 0; cursor: pointer; white-space: nowrap; }
.tab-list button[aria-selected="true"] { background: #14231d; color: #fff; box-shadow: inset 0 3px 0 var(--blaze); }
.code { margin: 0; padding: 18px 20px; color: #e9efe9; font: 500 .88rem/1.55 var(--mono); max-height: 420px; overflow: auto; white-space: pre; tab-size: 4; }
.js .code-tabs [role="tabpanel"][hidden] { display: none; }
.panel { position: relative; }
.copy { position: absolute; top: 10px; right: 12px; font: 700 .8rem/1 var(--text); background: var(--blaze); color: var(--ink); border: 0; border-radius: 4px; padding: 7px 10px; cursor: pointer; z-index: 1; }
.copy-light { position: static; }
.panel .code { padding-top: 46px; }

/* ---------- passes ---------- */
.passes { background: var(--cream); padding: 80px 0; border-top: 1px solid var(--line); }
.pass-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 26px; max-width: 940px; }
.pass-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 30px 30px 22px; position: relative; }
.pass-card-pass { border: 2px solid var(--spruce); box-shadow: 8px 8px 0 var(--blaze); }
.pass-name { font: 800 .85rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--board); }
.pass-price { font: 800 2.6rem/1 var(--display); color: var(--spruce); margin: 6px 0 4px; }
.pass-price span { font: 700 1rem var(--text); color: var(--muted); }
.pass-alt { color: var(--muted); font-weight: 700; }
.pass-card ul { list-style: none; margin: 16px 0; padding: 0; }
.pass-card li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line-2); }
.pass-card li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 14px; background: var(--blaze); border-radius: 2px; }
.pass-preview, .preview-box { background: #fff4c7; border-left: 4px solid var(--blaze); padding: 10px 14px; border-radius: 4px; font-size: .94rem; }
.preview-box { max-width: 70ch; margin-top: 18px; }
.pass-more { margin-top: 26px; }
.price-table { padding: 56px 0 30px; }

/* ---------- not band / faq ---------- */
.not-band { padding: 76px 0; }
.not-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 40px; }
.not-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.not-list li { border-top: 3px solid var(--board); padding-top: 12px; color: var(--muted); }
.not-list b { display: block; color: var(--ink); font-family: var(--display); font-size: 1.1rem; }
.faq { padding: 40px 0 80px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 40px; }
.faq dt { font: 700 1.1rem/1.3 var(--display); color: var(--spruce); margin-top: 18px; }
.faq dd { margin: 6px 0 0; color: var(--muted); border-bottom: 1px solid var(--line-2); padding-bottom: 16px; }

/* ---------- Map Maker ---------- */
.limit-line { font-size: .94rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blaze); border-radius: 4px; padding: 10px 14px; max-width: 80ch; }
.example-note { font-size: .94rem; color: var(--muted); }
.maker { padding: 34px 0 70px; }
.maker-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr); gap: 22px; align-items: start; }
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label, .card-form label { font-weight: 800; font-size: .95rem; }
.hint { font-weight: 500; color: var(--muted); font-size: .84rem; }
textarea, input[type="text"] { width: 100%; font: 500 .95rem/1.5 var(--mono); color: var(--ink); background: #fff; border: 1.5px solid #bfb39a; border-radius: var(--r); padding: 10px 12px; }
input[type="text"] { font-family: var(--text); }
textarea { resize: vertical; min-height: 120px; }
textarea:focus, input[type="text"]:focus { border-color: var(--spruce); outline: 3px solid rgba(242, 183, 5, .55); outline-offset: 0; }
.side { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.opts { border: 0; margin: 4px 0 16px; padding: 0; }
.opts legend { font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: .92rem !important; padding: 6px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--spruce); flex: none; }
.result { border-top: 4px solid var(--spruce); margin-top: 24px; padding-top: 36px; }
.result-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.tally { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 18px 0 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.tally div { padding: 14px 16px; border-left: 1px solid var(--line); }
.tally div:first-child { border-left: 0; background: var(--spruce); color: var(--cream); }
.tally dt { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tally dd { margin: 2px 0 0; font: 800 2rem/1.1 var(--display); }
.tally div:first-child dd { color: #fff; }
.t-stop dd { color: var(--stop); } .t-look dd { color: var(--look); } .t-note dd { color: var(--note); }
.sub { margin-top: 34px; font-size: 1.3rem; }
.findings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.finding { padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line-2); position: relative; font-size: .95rem; overflow-wrap: anywhere; }
.finding .mark { position: absolute; left: 6px; top: 15px; }
.f-code { font: 700 .82rem/1 var(--mono); background: var(--line-2); padding: 3px 6px; border-radius: 3px; margin-right: 8px; }
.f-level { font-weight: 800; }
.f-why { font-size: .85rem; }
/* trail-difficulty marks: green circle = good to know, yellow square = look at this, red diamond = stopped */
.mark { display: inline-block; width: 14px; height: 14px; }
.f-note .mark { background: var(--note); border-radius: 50%; }
.f-warning .mark { background: var(--blaze); box-shadow: inset 0 0 0 2px #b78a00; }
.f-error .mark { background: var(--stop); transform: rotate(45deg) scale(.86); }
.f-error .f-level { color: var(--stop); } .f-warning .f-level { color: var(--look); } .f-note .f-level { color: var(--note); }
.rules { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.rule { display: grid; grid-template-columns: 52px minmax(0, 1fr) 70px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 16px; border-top: 1px solid var(--line-2); font: 500 .95rem/1.4 var(--mono); }
.rule:nth-child(even) { background: #fbf8ef; }
.rule-head { border-top: 0; background: var(--cream) !important; font: 800 .78rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.r-line { color: var(--muted); font-size: .85rem; }
.r-from { color: var(--board-dark); overflow-wrap: anywhere; }
.r-arrow { color: var(--spruce-3); font-weight: 700; font-size: .85rem; }
.r-to { color: var(--spruce); font-weight: 700; overflow-wrap: anywhere; }
.r-to small { display: block; font: 500 .8rem/1.3 var(--text); color: var(--muted); }
.lone { list-style: none; padding: 0; margin: 0 0 12px; }
.lone li { padding: 9px 0; border-bottom: 1px solid var(--line-2); overflow-wrap: anywhere; }
.pill { display: inline-block; font: 700 .76rem/1 var(--text); padding: 4px 8px; border-radius: 99px; background: #e8efe9; color: var(--note); margin: 0 4px; }
.pill-ok { background: #e3f0e6; }
.pill-stop { background: #f6e3df; color: var(--stop); }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 6px; }
.dl-label { font-weight: 800; font-size: .92rem; margin-right: 4px; }
.testpad { margin-top: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 6px 20px 18px; }
.testpad-row { display: flex; gap: 10px; align-items: stretch; }
.testpad-row textarea { min-height: 48px; }
.walks { list-style: none; padding: 0; margin: 12px 0 0; }
.walk { padding: 9px 12px; border-radius: 6px; margin-top: 6px; background: #fff; border-left: 4px solid var(--note); overflow-wrap: anywhere; }
.walk-miss { border-left-color: var(--stop); }
.walk-res { display: block; font-size: .92rem; color: var(--muted); }
.savebox { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.alert { border-radius: 6px; padding: 12px 16px; margin: 12px 0; }
.alert-stop { background: #f9e9e5; border-left: 4px solid var(--stop); }
.alert-look { background: #fff4c7; border-left: 4px solid var(--blaze); }
.alert-note { background: #e5f0e8; border-left: 4px solid var(--note); }
.alert-title { font-weight: 800; margin-bottom: 4px; }
.alert ul { margin: 0; padding-left: 20px; }

/* ---------- checks page ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; }
.finding-key { display: inline-flex; gap: 8px; align-items: center; }
.checks { padding: 48px 0 30px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.check-item { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.check-code { font: 800 1.25rem/1 var(--display); color: var(--spruce); display: flex; align-items: center; gap: 8px; }
.check-item h2 { font-size: 1.2rem; margin-bottom: 6px; }
.check-item p { color: var(--muted); margin: 0; }
.check-level { font: 700 .74rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 6px; vertical-align: 3px; }
.method { background: var(--cream); border-top: 1px solid var(--line); padding: 64px 0 80px; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.plain-list { padding-left: 20px; color: var(--muted); }
.plain-list li { margin-bottom: 12px; }
.plain-list b { color: var(--ink); }

/* ---------- prose / book ---------- */
.prose { padding: 48px 0 80px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose p { color: #33382f; }
.book-start, .book { padding: 40px 0 80px; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 940px; }
.card-form { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.card-form h2 { font-size: 1.35rem; margin: 0; }
.keybox { background: #fff4c7; border: 2px dashed var(--board); border-radius: 10px; padding: 16px 18px; margin-top: 16px; max-width: 820px; }
.keybox-small summary { cursor: pointer; font-weight: 700; color: var(--spruce); }
.keyline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 0; }
.keyline code { font-size: .9rem; overflow-wrap: anywhere; }
.book-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 3px solid var(--spruce); padding-bottom: 12px; }
.book-bar p { margin: 0; font-weight: 700; }
.maps { list-style: none; margin: 0; padding: 0; }
.map-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.map-name { font: 700 1.2rem/1.2 var(--display); }
.map-main { min-width: 0; overflow-wrap: anywhere; }
.map-main p { margin: 4px 0 0; }
.map-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.map-actions form { margin: 0; }
.empty { padding: 26px 0; color: var(--muted); }
.book-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.book-foot form { margin: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: 220px; }

/* ---------- footer ---------- */
.foot { background: var(--board-dark); color: #eadcc4; padding: 52px 0 26px; border-top: 6px solid var(--board); }
.foot a { color: #fff3cf; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.foot-name { font: 800 1.3rem/1.2 var(--display); color: #fff; }
.foot-name span { color: var(--blaze); }
.foot-about p { max-width: 64ch; font-size: .94rem; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 32px; align-content: start; }
.foot-links a { text-decoration: none; font-weight: 700; }
.foot-links a:hover { text-decoration: underline; color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #6b5338; margin-top: 30px; padding-top: 16px; font-size: .88rem; }
.foot-base p { margin: 0; }
.foot-ver { color: #b9a68a; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .maker-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .side .opts, .side .btn-wide { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav, .tag { display: none; }
  .menu { display: block; }
  .brand { margin-right: auto; }
  .hero-grid, .steps-grid, .output-grid, .not-grid, .faq-grid, .method-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-grid { padding: 48px 0 56px; }
  .check-list { grid-template-columns: minmax(0, 1fr); }
  .tally { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tally div:nth-child(4) { border-left: 0; }
  .tally div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .maker-grid, .side, .pass-row, .book-grid, .not-list, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hazard-row { grid-template-columns: minmax(0, 1fr); }
  .hazard, .hazard + .hazard { padding: 22px 0 6px; border-left: 0; border-bottom: 1px solid var(--line); }
  .rule { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; }
  .rule-head { display: none; }
  .r-arrow { grid-column: 2; font-size: .78rem; }
  .r-to { grid-column: 2; }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally div:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .tally div:first-child { grid-column: 1 / -1; border-top: 0; }
  .tally div:nth-child(even) { border-left: 1px solid var(--line); }
  .tally div:nth-child(odd):not(:first-child) { border-left: 0; }
  .savebox { grid-template-columns: minmax(0, 1fr); }
  .testpad-row { flex-direction: column; }
  .sign, .sign-left, .sign-right { transform: none; }
  .post { padding-top: 10px; }
  .check-item { grid-template-columns: 58px minmax(0, 1fr); }
  .foot-base { flex-direction: column; }
  .brand-sub { display: none; }
  .page-head { padding: 38px 0 30px; }
  .pass-card-pass { box-shadow: 5px 5px 0 var(--blaze); }
  .inline-form input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .top, .foot, .side, .testpad, .savebox, .downloads, .copy, .tab-list { display: none !important; } .code { max-height: none; color: #000; } .code-tabs { background: #fff; } }
