/* ==========================================================================
   LowPC Lab — design system
   8 GB RAM. No GPU. Field reports only.
   ========================================================================== */

:root {
  --ink: #0f1418;
  --ink-2: #1b242c;
  --ink-3: #2e3a42;
  --paper: #f4f0e6;
  --paper-2: #fffdf7;
  --lime: #c8f560;
  --lime-dim: #a9d94a;
  --orange: #ff6b3d;
  --teal: #86d8c6;
  --sky: #a9d6ec;
  --amber: #ffd166;
  --muted: #5b6a63;
  --muted-2: #7d8a83;
  --line: #0f1418;
  --line-soft: #d8d2c3;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 10px;
  --wrap: 1120px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 20, 24, 0.055) 1px, transparent 0) 0 0 / 22px 22px,
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--lime); color: var(--ink); }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--paper-2);
  padding: 10px 16px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.42rem); }
p  { margin: 0 0 1.1em; }
strong { font-weight: 750; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #e9e4d6;
  border: 1px solid var(--line-soft);
  padding: 0.1em 0.34em;
  border-radius: 4px;
  word-break: break-word;
}
pre {
  margin: 0 0 1.5em;
  padding: 18px 20px;
  background: var(--ink);
  color: #e8f2e4;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  overflow-x: auto;
  line-height: 1.55;
  font-size: 0.9rem;
}
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 1em; }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.kicker.is-accent { color: #2f6b4f; }

/* ---------- utility bar / header ---------- */
.util-bar {
  background: var(--ink);
  color: #cfd8cf;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--ink);
}
.util-bar .wrap {
  display: flex; gap: 18px; align-items: center; justify-content: space-between;
  min-height: 36px; padding-block: 6px; flex-wrap: wrap;
}
.util-bar b { color: var(--lime); font-weight: 700; }
.util-bar .dot { color: var(--orange); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 240, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--ink); color: var(--lime);
  border-radius: 9px; border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--orange);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.18rem; letter-spacing: -0.03em; }
.brand-text small {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--mono);
  font-size: 0.78rem; font-weight: 600; text-decoration: none;
  padding: 9px 11px; border-radius: 6px; white-space: nowrap;
}
.site-nav a:hover { background: #e7e1d1; }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--paper-2); }
.site-nav .nav-cta {
  margin-left: 8px; border: 2px solid var(--ink); background: var(--lime);
  box-shadow: 2px 2px 0 var(--ink); font-weight: 700;
}
.site-nav .nav-cta:hover { background: var(--lime-dim); }
.nav-toggle {
  display: none; background: var(--paper-2); border: 2px solid var(--ink);
  border-radius: 7px; padding: 8px 10px; cursor: pointer;
  font-family: var(--mono); font-weight: 700; box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 0.86rem;
  padding: 13px 20px; border-radius: 8px;
  border: 2px solid var(--ink); text-decoration: none;
  background: var(--paper-2); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--lime); }
.btn-primary:hover { background: var(--lime-dim); }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; padding-inline: 6px; text-decoration: underline; }
.btn-ghost:hover { transform: none; box-shadow: none; background: #e7e1d1; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 78px) 0 26px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 5vw, 56px); align-items: start;
}
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .mark {
  background: linear-gradient(transparent 58%, var(--lime) 58%);
  padding: 0 0.06em;
}
.hero-lead {
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: #33423a; max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note {
  margin-top: 22px; font-family: var(--mono); font-size: 0.74rem;
  color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap;
}
.hero-note span::before { content: "■"; color: var(--orange); margin-right: 6px; font-size: 0.6em; vertical-align: 2px; }

/* spec card */
.spec-card {
  background: var(--paper-2); border: 2px solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transform: rotate(0.4deg);
}
.spec-card-head {
  background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 16px; display: flex; justify-content: space-between; gap: 10px;
}
.spec-card-head .live { color: var(--orange); }
.spec-list { list-style: none; margin: 0; padding: 6px 0; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 16px; border-bottom: 1px dashed var(--line-soft);
  font-family: var(--mono); font-size: 0.78rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list dt, .spec-list .k { color: var(--muted); }
.spec-list .v { font-weight: 700; text-align: right; }
.spec-foot {
  background: #ece7d8; border-top: 2px solid var(--ink);
  padding: 10px 16px; font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
}

/* ticker */
.ticker {
  margin-top: clamp(34px, 5vw, 54px);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--ink); color: var(--paper-2);
  overflow: hidden; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 0; padding: 11px 0;
  animation: slide 42s linear infinite;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em;
}
.ticker-track span { padding: 0 26px; }
.ticker-track b { color: var(--lime); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
.section { padding: clamp(46px, 7vw, 84px) 0 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 20px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }
.section-head .more {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px;
  white-space: nowrap;
}

/* verdict chips */
.verdict {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 9px; border: 2px solid var(--ink); border-radius: 999px;
  white-space: nowrap; line-height: 1.2;
}
.verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.verdict.is-works { background: var(--lime); color: var(--ink); }
.verdict.is-tweaks { background: var(--amber); color: var(--ink); }
.verdict.is-cloud { background: var(--sky); color: var(--ink); }
.verdict.is-no { background: #f2b8a6; color: var(--ink); }

/* run table */
.table-card {
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--paper-2); box-shadow: var(--shadow); overflow: hidden;
}
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.table-card table { min-width: 620px; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th {
  background: var(--ink); color: var(--paper-2);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.09em;
  text-transform: uppercase; font-weight: 700; border-bottom: 2px solid var(--ink);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f7f3e8; }
td .mono, th .mono { font-family: var(--mono); font-size: 0.86em; }

.card[hidden] { display: none; }

/* cards */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper-2); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 20px 20px 18px;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
a.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
a.card:hover .card-title { text-decoration-color: var(--orange); }
.card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
  margin-bottom: 12px;
}
.card-cat { color: #2f6b4f; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.card-title {
  font-size: 1.1rem; font-weight: 800; line-height: 1.28;
  letter-spacing: -0.015em; margin: 0 0 9px;
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.card-desc { font-size: 0.9rem; color: #43524a; margin: 0 0 16px; flex: 1; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px dashed var(--line-soft); padding-top: 12px;
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
}

/* path cards */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.path {
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--paper-2); padding: 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.path-num {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px;
}
.path h3 { margin-bottom: 8px; }
.path p { font-size: 0.92rem; color: #43524a; flex: 1; }
.path ul { margin: 0 0 18px; padding-left: 18px; font-size: 0.88rem; }
.path ul li { margin-bottom: 4px; }
.path a.path-link { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; }

/* rule band */
.rule-band {
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--ink); color: #dfe8dd; margin-top: clamp(50px, 7vw, 80px);
}
.rule-band .wrap {
  display: grid; grid-template-columns: auto 1fr; gap: 26px;
  padding-block: 30px; align-items: center;
}
.rule-band .badge {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--ink);
  font-family: var(--mono); font-weight: 800; font-size: 0.78rem;
  border: 3px solid var(--lime); flex: none;
}
.rule-band p { margin: 0; font-size: 1.02rem; max-width: 80ch; }
.rule-band strong { color: var(--lime); }

/* ---------- page hero (interior) ---------- */
.page-hero { padding: clamp(34px, 5vw, 58px) 0 8px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { color: #3b4a42; max-width: 62ch; font-size: 1.04rem; }
.breadcrumb {
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
  padding-top: 18px;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted-2); }

/* ---------- filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 16px 0 6px;
}
.filter-label { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); margin-right: 4px; }
.chip {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  border: 2px solid var(--ink); background: var(--paper-2);
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
  color: var(--ink);
}
.chip:hover { background: #e7e1d1; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper-2); }
.search-box {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); background: var(--paper-2);
  border-radius: 8px; padding: 5px 10px; box-shadow: 2px 2px 0 var(--ink);
}
.search-box input {
  border: 0; background: transparent; font: inherit; font-size: 0.86rem;
  padding: 5px; width: 200px; color: var(--ink); outline: none;
}
.search-box svg { flex: none; }

/* ---------- article ---------- */
.article-head { padding: clamp(30px, 5vw, 52px) 0 0; }
.article-head h1 { font-size: clamp(1.9rem, 4.2vw, 3.15rem); max-width: 26ch; }
.article-deck { font-size: 1.08rem; color: #3b4a42; max-width: 64ch; }
.article-info {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  padding: 16px 0 0; border-top: 1px dashed var(--line-soft); margin-top: 8px;
}
.article-info b { color: var(--ink); font-weight: 700; }

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 5vw, 56px); align-items: start;
  padding-top: 30px;
}
.article-body { min-width: 0; }
.article-body h2 {
  margin-top: 2.1em; padding-top: 0.2em;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 1.8em; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.45em; }
.article-body li::marker { color: #2f6b4f; }
.article-body blockquote {
  margin: 1.6em 0; padding: 14px 20px;
  border-left: 6px solid var(--orange); background: #fbf1e9;
  border-radius: 0 8px 8px 0;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { border: 0; border-top: 2px dashed var(--line-soft); margin: 2.2em 0; }
.article-body table { font-size: 0.88rem; margin: 0 0 1.6em; border: 2px solid var(--ink); }
.article-body th, .article-body td { border: 1px solid var(--line-soft); }
.article-body thead th { border: 0; border-bottom: 2px solid var(--ink); }
.article-body img { border: 2px solid var(--ink); border-radius: 8px; }

/* callouts via blockquote markers or classes */
.callout {
  border: 2px solid var(--ink); border-radius: 8px;
  padding: 15px 18px; margin: 1.6em 0;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--paper-2);
}
.callout p:last-child { margin-bottom: 0; }
.callout-title {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 6px !important;
}
.callout.is-ok { background: #eef8d9; }
.callout.is-ok .callout-title { color: #2f6b4f; }
.callout.is-warn { background: #fdf0d2; }
.callout.is-warn .callout-title { color: #8a5a00; }
.callout.is-stop { background: #fbe3da; }
.callout.is-stop .callout-title { color: #a33f1d; }
.callout.is-info { background: #e6f2f7; }
.callout.is-info .callout-title { color: #1f5d75; }

/* spec strip inside article */
.spec-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border: 2px solid var(--ink); border-radius: 8px; overflow: hidden;
  margin: 0 0 26px; background: var(--paper-2);
}
.spec-strip div { padding: 10px 13px; border-right: 1px solid var(--line-soft); }
.spec-strip div:last-child { border-right: 0; }
.spec-strip dt {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.spec-strip dd { margin: 0; font-family: var(--mono); font-size: 0.76rem; font-weight: 700; }

/* toc */
.toc {
  position: sticky; top: 96px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--paper-2); box-shadow: var(--shadow-sm);
  padding: 16px 18px; font-size: 0.84rem;
}
.toc-title {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin-bottom: 7px; counter-increment: toc; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 0.64rem; color: var(--orange); margin-right: 7px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.side-card {
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--paper-2); padding: 16px 18px; margin-top: 20px;
  font-size: 0.86rem; box-shadow: var(--shadow-sm);
}
.side-card h2 { font-size: 0.95rem; margin-bottom: 8px; }
.side-card p { margin-bottom: 10px; color: var(--muted); font-size: 0.84rem; }

/* ad slots (disabled until IDs are configured) */
.ad-slot {
  border: 2px dashed var(--line-soft); border-radius: 8px;
  padding: 12px; margin: 26px 0; text-align: center;
  font-family: var(--mono); font-size: 0.66rem; color: var(--muted-2);
  background: rgba(255, 253, 247, 0.5);
}
.ad-slot[hidden] { display: none; }
.ad-slot .ad-label {
  display: block; text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 4px;
}

/* disclosure banner */
.aff-banner {
  border: 2px solid var(--ink); border-left: 8px solid var(--orange);
  border-radius: 0 8px 8px 0; background: #fdf5ea;
  padding: 11px 15px; font-size: 0.8rem; margin: 0 0 24px;
  font-family: var(--mono);
}
.aff-banner a { font-weight: 700; }

/* related */
.related { margin-top: 48px; padding-top: 26px; border-top: 2px solid var(--ink); }
.related h2 { font-size: 1.3rem; }

/* article footer nav */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px;
}
.post-nav a {
  border: 2px solid var(--ink); border-radius: 8px; padding: 14px 16px;
  text-decoration: none; background: var(--paper-2);
  font-size: 0.86rem; font-weight: 700; box-shadow: 2px 2px 0 var(--ink);
}
.post-nav a:hover { background: #f0ebdc; }
.post-nav span { display: block; font-family: var(--mono); font-size: 0.62rem; color: var(--muted); font-weight: 400; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.1em; }
.post-nav a.next { text-align: right; }

/* ---------- prose pages ---------- */
.prose { max-width: 74ch; padding-bottom: 20px; }
.prose h2 { margin-top: 2em; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 0.4em; }
.prose table { font-size: 0.88rem; margin: 0 0 1.6em; border: 2px solid var(--ink); }
.prose th, .prose td { border-bottom: 1px solid var(--line-soft); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(60px, 8vw, 100px);
  background: var(--ink); color: #c9d4c8;
  border-top: 6px solid var(--lime);
  padding: 44px 0 30px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
.site-footer .brand-mark { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; }
.site-footer .brand-text strong { color: var(--paper-2); }
.site-footer .brand-text small { color: #8fa096; }
.site-footer h3 {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #c9d4c8; text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.site-footer p { color: #93a49a; font-size: 0.82rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid #33403a; margin-top: 34px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.68rem; color: #7f9187;
}

/* ---------- misc ---------- */
.notice {
  border: 2px solid var(--ink); background: #fff6d9; border-radius: 8px;
  padding: 12px 16px; font-size: 0.86rem; margin: 0 0 20px;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .spec-card { transform: none; max-width: 520px; }
  .card-grid, .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 4px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 8px; font-size: 0.86rem; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
  .util-bar .wrap { justify-content: center; gap: 6px 16px; text-align: center; }
  .card-grid, .paths { grid-template-columns: 1fr; }
  .rule-band .wrap { grid-template-columns: 1fr; gap: 14px; }
  .post-nav { grid-template-columns: 1fr; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  .section-head { align-items: start; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .footer-grid { grid-template-columns: 1fr; }
  .util-bar { font-size: 0.64rem; }
  .brand-text small { display: none; }
}
@media print {
  .site-header, .util-bar, .site-footer, .toc, .ad-slot, .post-nav, .hero-actions { display: none !important; }
  body { background: #fff; }
  .article-layout { display: block; }
}
