/* ==========================================================
   Sodium Extra Mod — style.css
   Design seed: S14 Mod Workshop Light
   Palette: moss green + flame yellow (from the Sodium Extra icon) + chalk mist (light only)
   ========================================================== */

:root {
  --ink: #1e2614;
  --ink-2: #48523d;
  --ink-3: #66705a;
  --moss: #3f6127;
  --moss-d: #2f4a1c;
  --moss-t: #e8eedf;
  --moss-t2: #f1f5ea;
  --slate: #56636f;
  --slate-t: #eceff1;
  /* Accent colors sampled from the Sodium Extra flame icon */
  --amber-l: #ffe300;   /* icon highlight (top-left) */
  --amber: #ffd400;     /* icon mid-tone */
  --amber-deep: #ffc400;/* icon shadow (bottom-right) */
  --amber-grad: linear-gradient(135deg, #ffe300 0%, #ffd400 50%, #ffc400 100%);
  --amber-d: #a57d00;   /* darkened icon tone for focus rings, borders and small text */
  --amber-t: #fff8d1;   /* light icon tint for surfaces */
  --chalk: #f6f7f2;
  --white: #ffffff;
  --line: #d8ddcd;
  --line-2: #c2c9b2;
  --grid: rgba(63, 97, 39, 0.07);
  --shadow-1: 0 1px 0 rgba(30, 38, 20, 0.04), 0 6px 18px -10px rgba(30, 38, 20, 0.18);
  --shadow-2: 0 2px 0 rgba(30, 38, 20, 0.05), 0 18px 40px -22px rgba(47, 74, 28, 0.35);
  --r-plate: 6px;
  --r-module: 14px;
  --r-chip: 3px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--chalk);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--moss-d); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; color: var(--ink); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--amber-d); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-chip);
}
.skip-link:focus { top: 12px; color: var(--white); }

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

.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-tint { background: var(--moss-t2); border-block: 1px solid var(--line); }
.section-white { background: var(--white); border-block: 1px solid var(--line); }

/* Technical grid backdrop used on workshop surfaces */
.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }

/* Part tag: small workshop label used sparingly */
.part-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 500; color: var(--moss-d);
  margin-bottom: 14px;
}
.part-tag::before {
  content: ""; width: 18px; height: 2px; background: var(--amber);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 0.98rem;
  padding: 14px 24px; border-radius: var(--r-plate);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--amber-grad); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(165, 125, 0, 0.55); }
.btn-primary:hover { background: var(--amber-l); color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--moss-d); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--moss); color: var(--moss-d); }
.btn-moss { background: var(--moss); color: var(--white); }
.btn-moss:hover { background: var(--moss-d); color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* ==========================================================
   HEADER — workbench toolbar
   ========================================================== */
#site-header { position: sticky; top: 0; z-index: 100; }
.toolbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  transition: box-shadow .2s ease;
}
.is-scrolled .toolbar { box-shadow: 0 8px 24px -18px rgba(30, 38, 20, 0.45); }
.toolbar-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand:hover { color: var(--ink); }

.nav-tray {
  margin-left: auto; display: flex; align-items: center; gap: 2px;
  padding: 4px; border: 1px solid var(--line); border-radius: var(--r-plate);
  background: var(--chalk);
}
.nav-tray a {
  display: block; padding: 7px 12px; border-radius: 4px;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.nav-tray a:hover { background: var(--white); color: var(--ink); }
.nav-tray a.is-active { background: var(--white); color: var(--moss-d); box-shadow: inset 0 -2px 0 var(--moss); }
.nav-tray .nav-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.toolbar .btn { padding: 10px 18px; font-size: 0.92rem; }
.nav-tray .mobile-cta { display: none; }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: var(--r-plate);
  border: 1px solid var(--line-2); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease, background-color .2s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================
   HERO — mod assembly composition
   ========================================================== */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); background-color: var(--chalk); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.spec-rail {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-plate); background: var(--white); overflow: hidden;
  width: fit-content; max-width: 100%;
}
.spec-rail div { padding: 10px 18px; border-right: 1px solid var(--line); }
.spec-rail div:last-child { border-right: 0; }
.spec-rail dt { font-size: 0.75rem; color: var(--ink-3); }
.spec-rail dd { margin: 0; font-weight: 600; font-size: 0.92rem; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 30px 40px rgba(47, 74, 28, 0.14)); }
.float-a { animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ==========================================================
   ABOUT — workbench explanation
   ========================================================== */
.bench { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 210px; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-plate); background: var(--white); }
.bench > * { padding: clamp(24px, 3.2vw, 40px); }
.bench-main { border-right: 1px solid var(--line); }
.bench-main p { color: var(--ink-2); }
.bench-parts { border-right: 1px solid var(--line); background: var(--moss-t2); }
.bench-parts h3 { font-size: 1rem; margin-bottom: 14px; }
.parts-list { list-style: none; margin: 0; padding: 0; }
.parts-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 0; border-top: 1px dashed var(--line-2); font-size: 0.94rem; }
.parts-list li:first-child { border-top: 0; }
.parts-list b { display: block; font-weight: 600; }
.parts-list span { color: var(--ink-3); font-size: 0.86rem; }
.part-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--moss); position: relative; margin-top: 2px; }
.part-dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--amber); }
.bench-spec { display: flex; flex-direction: column; gap: 18px; font-size: 0.88rem; }
.bench-spec dt { color: var(--ink-3); font-size: 0.78rem; }
.bench-spec dd { margin: 0; font-weight: 600; }
.bench-spec img { margin-top: auto; width: 100%; }

/* ==========================================================
   FEATURES — assembly board
   ========================================================== */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); margin: 0; }
.assembly {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "anim core core part"
    "detl core core rend"
    "toast toast cfg cfg";
}
.module {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-module);
  padding: 22px; position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.module:hover { border-color: var(--moss); transform: translateY(-2px); }
.module h3 { font-size: 1.05rem; margin-bottom: 8px; }
.module p { color: var(--ink-2); font-size: 0.93rem; margin: 0; }
.module .mod-icon { width: 38px; height: 38px; margin-bottom: 14px; }
.module::before, .module::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); top: 10px; }
.module::before { left: 10px; }
.module::after { right: 10px; }
.m-anim { grid-area: anim; }
.m-part { grid-area: part; }
.m-detl { grid-area: detl; }
.m-rend { grid-area: rend; }
.m-toast { grid-area: toast; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; border-radius: var(--r-plate); }
.m-toast .mod-icon { margin: 0; }
.m-cfg { grid-area: cfg; background: var(--slate-t); border-style: dashed; border-color: var(--line-2); border-radius: var(--r-plate); }
.m-core {
  grid-area: core; border: 2px solid var(--moss); border-radius: var(--r-plate);
  background: linear-gradient(180deg, var(--white) 0%, var(--moss-t2) 100%);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column;
}
.m-core h3 { font-size: 1.45rem; }
.m-core p { font-size: 1rem; }
.m-core ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 0.92rem; }
.m-core li { padding-left: 18px; position: relative; color: var(--ink-2); }
.m-core li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--amber); border-radius: 2px; }
.m-core .core-plate { margin-top: auto; padding-top: 22px; font-size: 0.8rem; color: var(--ink-3); }

/* ==========================================================
   HOW IT WORKS — assembly line
   ========================================================== */
.line-stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; margin-top: 12px; }
.line-stations::before {
  content: ""; position: absolute; left: 40px; right: calc(25% - 60px); top: 34px; height: 10px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 14px, transparent 14px 22px);
  border-block: 2px solid var(--line-2); border-radius: 2px;
}
.station { position: relative; padding: 0 18px; text-align: left; }
.station-num {
  width: 78px; height: 78px; border-radius: var(--r-plate); background: var(--white);
  border: 2px solid var(--moss); display: grid; place-items: center; position: relative; z-index: 1;
  font-weight: 700; font-size: 1.5rem; color: var(--moss-d); margin-bottom: 22px;
}
.station:last-child .station-num { background: var(--amber-grad); border-color: var(--amber-deep); color: var(--ink); }
.station h3 { font-size: 1.1rem; margin-bottom: 6px; }
.station p { color: var(--ink-2); font-size: 0.93rem; margin: 0; }
.station small { display: block; margin-top: 10px; color: var(--ink-3); font-size: 0.8rem; border-left: 2px solid var(--amber); padding-left: 10px; }

/* ==========================================================
   INSTALLATION — procedure + requirements panel
   ========================================================== */
.procedure-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.req-panel { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-plate); overflow: hidden; }
.req-panel h3 { font-size: 1rem; margin: 0; padding: 14px 20px; background: var(--moss); color: var(--white); }
.req-panel ul { list-style: none; margin: 0; padding: 8px 20px 18px; }
.req-panel li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; display: flex; gap: 10px; }
.req-panel li:last-child { border-bottom: 0; }
.req-panel li::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid var(--moss); border-radius: 3px; margin-top: 5px; }
.proc-steps { list-style: none; margin: 0; padding: 0; counter-reset: proc; }
.proc-steps li { counter-increment: proc; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.proc-steps li:first-child { border-top: 0; padding-top: 0; }
.proc-steps li::before {
  content: counter(proc, decimal-leading-zero); font-weight: 700; font-size: 1.05rem; color: var(--moss-d);
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 2px dashed var(--moss);
}
.proc-steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.proc-steps p { color: var(--ink-2); margin: 0; font-size: 0.95rem; }
code, .kbd { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.88em; background: var(--moss-t); padding: 1px 6px; border-radius: 3px; color: var(--moss-d); }

/* ==========================================================
   COMPATIBILITY — loader matrix
   ========================================================== */
.compat-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-plate); background: var(--white); }
.matrix { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.93rem; }
.matrix th, .matrix td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { background: var(--moss-t2); font-weight: 600; font-size: 0.85rem; color: var(--ink-2); }
.matrix tbody tr:last-child td, .matrix tbody tr:last-child th { border-bottom: 0; }
.matrix tbody th { font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 2px; }
.status-yes::before { background: var(--moss); }
.status-no::before { background: transparent; border: 2px solid #9a4a3a; }
.status-check::before { background: var(--amber); }
.compat-note { font-size: 0.86rem; color: var(--ink-3); margin-top: 14px; }

/* ==========================================================
   RELEASE INFORMATION — tag panel
   ========================================================== */
.release { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--r-plate); overflow: hidden; border: 1px solid var(--line-2); }
.release-tag { background: var(--white); padding: clamp(28px, 4vw, 48px); position: relative; }
.release-tag .tag-label { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--moss-d); background: var(--moss-t); padding: 8px 18px 8px 34px; border-radius: 4px; position: relative; margin: 6px 0 18px; }
.release-tag .tag-label::before { content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--white); border: 2px solid var(--moss); }
.release-meta { background: var(--moss-t2); padding: clamp(28px, 4vw, 48px); border-left: 1px solid var(--line); }
.release-meta dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 0; }
.release-meta dt, .release-meta dd { margin: 0; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 0.93rem; }
.release-meta dt { color: var(--ink-3); }
.release-meta dd { font-weight: 500; }

/* ==========================================================
   USE CASES — typographic rows (no cards)
   ========================================================== */
.usecase-list { list-style: none; margin: 0; padding: 0; }
.usecase-list li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.usecase-list li:last-child { border-bottom: 1px solid var(--line-2); }
.usecase-list h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; margin: 0; }
.usecase-list p { margin: 0; color: var(--ink-2); }

/* ==========================================================
   DOWNLOAD — wide bench
   ========================================================== */
.download-bench { background: var(--white); border-block: 1px solid var(--line-2); }
.download-inner { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.download-card { border: 2px solid var(--moss); border-radius: var(--r-plate); padding: clamp(26px, 3.5vw, 42px); background: var(--chalk); position: relative; }
.download-card::before, .download-card::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); top: 12px; }
.download-card::before { left: 12px; }
.download-card::after { right: 12px; }
.download-card h2 { margin-bottom: 10px; }
.download-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.download-facts li { font-size: 0.84rem; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: var(--r-chip); background: var(--white); }
.download-card .btn { width: 100%; padding: 17px 24px; font-size: 1.05rem; }
.download-note { font-size: 0.85rem; color: var(--ink-3); margin: 16px 0 0; padding-left: 12px; border-left: 2px solid var(--amber); }

/* ==========================================================
   TROUBLESHOOTING — problem / fix rows
   ========================================================== */
.fix-rows { border: 1px solid var(--line-2); border-radius: var(--r-plate); background: var(--white); overflow: hidden; }
.fix-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); border-top: 1px solid var(--line); }
.fix-row:first-child { border-top: 0; }
.fix-row > div { padding: 20px 24px; }
.fix-problem { background: var(--chalk); border-right: 1px solid var(--line); font-weight: 600; display: flex; gap: 12px; align-items: flex-start; }
.fix-problem::before { content: "!"; flex: none; width: 24px; height: 24px; border-radius: 4px; background: var(--amber-t); color: var(--amber-d); border: 1px solid var(--amber); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; margin-top: 1px; }
.fix-solution { color: var(--ink-2); font-size: 0.95rem; }
.fix-solution p { margin: 0; }

/* ==========================================================
   GUIDES PREVIEW — knowledge board
   ========================================================== */
.board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.board-group { border: 1px solid var(--line-2); border-radius: var(--r-plate); background: var(--white); }
.board-group > h3 { font-size: 0.95rem; margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--moss-t2); display: flex; justify-content: space-between; align-items: center; }
.board-group > h3 span { font-weight: 500; color: var(--ink-3); font-size: 0.82rem; }
.guide-link { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px 20px; text-decoration: none; color: var(--ink); border-top: 1px dashed var(--line); transition: background-color .15s ease; }
.board-group > h3 + .guide-link { border-top: 0; }
.guide-link:hover { background: var(--chalk); color: var(--ink); }
.guide-link img { width: 92px; height: 62px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.guide-link strong { display: block; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.guide-link span { font-size: 0.85rem; color: var(--ink-3); line-height: 1.5; display: block; }
.board-foot { margin-top: 28px; }

/* ==========================================================
   PROS & CONS — balanced comparison
   ========================================================== */
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 3px solid var(--ink); }
.procon > div { padding: 30px clamp(18px, 3vw, 36px) 10px 0; }
.procon > div + div { padding-left: clamp(18px, 3vw, 36px); border-left: 1px solid var(--line-2); }
.procon h3 { display: flex; align-items: center; gap: 10px; }
.procon ul { list-style: none; margin: 0; padding: 0; }
.procon li { padding: 12px 0 12px 32px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.procon li::before { position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; }
.pros li::before { content: "+"; background: var(--moss-t); color: var(--moss-d); }
.cons li::before { content: "\2013"; background: var(--slate-t); color: var(--slate); }

/* ==========================================================
   SAFETY NOTICE — full-width callout
   ========================================================== */
.safety { background: var(--amber-t); border-block: 1px solid #ffe680; }
.safety-inner { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.safety-icon { width: 72px; height: 72px; }
.safety h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.safety p { color: var(--ink-2); }
.safety ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.safety li { margin-bottom: 8px; }

/* ==========================================================
   FAQ — workshop manual with tool-group tabs
   ========================================================== */
.faq-tabs { display: inline-flex; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-plate); padding: 4px; background: var(--white); margin-bottom: 26px; flex-wrap: wrap; }
.faq-tab {
  font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  padding: 11px 20px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.faq-tab .count { font-size: 0.75rem; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--moss-t); color: var(--moss-d); }
.faq-tab[aria-selected="true"] { background: var(--moss); color: var(--white); }
.faq-tab[aria-selected="true"] .count { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.faq-panel[hidden] { display: none; }
.faq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq-aside { border-left: 3px solid var(--amber); padding-left: 18px; color: var(--ink-2); font-size: 0.93rem; }
.faq-aside h3 { font-size: 1.05rem; }
.faq-list { border: 1px solid var(--line-2); border-radius: var(--r-plate); background: var(--white); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-q {
  width: 100%; text-align: left; font-family: inherit; font-size: 1rem; font-weight: 500; color: var(--ink);
  background: none; border: 0; cursor: pointer; padding: 18px 20px; display: grid; grid-template-columns: 34px 1fr 22px; gap: 12px; align-items: center;
}
.faq-q:hover { background: var(--chalk); }
.faq-q .idx { font-size: 0.78rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.faq-q .marker { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); justify-self: end; transition: background-color .2s ease, border-color .2s ease; }
.faq-q[aria-expanded="true"] { color: var(--moss-d); font-weight: 600; }
.faq-q[aria-expanded="true"] .marker { background: var(--amber); border-color: var(--amber-d); }
.faq-a { overflow: hidden; height: 0; transition: height .28s ease; }
.faq-a-inner { padding: 0 20px 20px 66px; color: var(--ink-2); font-size: 0.95rem; }
.faq-a-inner p { margin: 0; }

/* ==========================================================
   FOOTER — light utility workshop
   ========================================================== */
#site-footer { display: block; }
.footer { background: var(--white); border-top: 1px solid var(--line-2); position: relative; padding: 56px 0 0; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-bottom: 40px; }
.footer-brand p { color: var(--ink-2); font-size: 0.93rem; max-width: 40ch; margin-top: 14px; }
.footer h2 { font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; color: var(--ink); letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; font-size: 0.93rem; }
.footer a:hover { color: var(--moss-d); text-decoration: underline; }
.footer .plain-email { font-size: 0.93rem; color: var(--ink); font-weight: 500; }
.footer-bar { position: relative; border-top: 1px solid var(--line); padding: 18px 0 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.85rem; color: var(--ink-3); }
.footer-bar a { font-size: 0.85rem; color: var(--moss-d); font-weight: 500; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Scroll to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: var(--r-plate); border: 1px solid var(--line-2); background: var(--white); color: var(--moss-d);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-1);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================
   INNER PAGES
   ========================================================== */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); background-color: var(--chalk); }
.crumbs { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--moss-d); text-decoration: underline; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }

.prose { color: var(--ink-2); }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: 1.12rem; margin-top: 1.5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--ink); }
.prose .note { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 14px 18px; border-radius: 0 var(--r-plate) var(--r-plate) 0; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.93rem; background: var(--white); }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--moss-t2); color: var(--ink); }

/* About page: split with spec column */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.side-plate { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-plate); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-plate h2 { font-size: 1rem; }
.side-plate ul { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.side-plate li { padding: 9px 0; border-top: 1px dashed var(--line); }
.side-plate li:first-child { border-top: 0; }

/* Contact page */
.contact-plate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: var(--r-plate); background: var(--white); overflow: hidden; }
.contact-plate > div { padding: clamp(24px, 4vw, 44px); }
.contact-plate > div + div { border-left: 1px solid var(--line); background: var(--moss-t2); }
.email-plate { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; color: var(--moss-d); padding: 14px 18px; border: 2px dashed var(--moss); border-radius: var(--r-plate); display: inline-block; margin: 8px 0 16px; word-break: break-all; user-select: all; }

/* Legal pages: index rail + text */
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.legal-index { position: sticky; top: calc(var(--header-h) + 20px); font-size: 0.9rem; border-left: 2px solid var(--line-2); padding-left: 16px; }
.legal-index p { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.legal-index ol { margin: 0; padding-left: 18px; color: var(--ink-3); }
.legal-index li { margin-bottom: 6px; }
.legal-index a { color: var(--ink-2); text-decoration: none; }
.legal-index a:hover { color: var(--moss-d); text-decoration: underline; }
.updated { font-size: 0.88rem; color: var(--ink-3); }

/* ==========================================================
   BLOG LISTING — workshop knowledge board
   ========================================================== */
.kb-featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 2px solid var(--moss); border-radius: var(--r-plate); background: var(--white); overflow: hidden; margin-bottom: 48px; text-decoration: none; color: var(--ink); }
.kb-featured:hover { color: var(--ink); }
.kb-featured img { width: 100%; height: 100%; object-fit: cover; border-right: 1px solid var(--line); }
.kb-featured-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.kb-featured-body h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.kb-featured-body p { color: var(--ink-2); }
.meta-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding: 0; list-style: none; }
.meta-strip li { font-size: 0.78rem; font-weight: 500; padding: 3px 10px; border-radius: var(--r-chip); background: var(--moss-t); color: var(--moss-d); }
.meta-strip li.alt { background: var(--slate-t); color: var(--slate); }
.kb-section { margin-bottom: 52px; }
.kb-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.kb-section-head h2 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.kb-section-head p { margin: 0; color: var(--ink-3); font-size: 0.9rem; }
.kb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kb-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-module); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .2s ease, transform .2s ease; }
.kb-card:hover { border-color: var(--moss); color: var(--ink); transform: translateY(-2px); }
.kb-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.kb-card-body { padding: 18px 20px 22px; }
.kb-card h3 { font-size: 1.05rem; line-height: 1.35; }
.kb-card p { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.kb-card.kb-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.kb-card.kb-wide img { width: 50%; flex: none; aspect-ratio: 16 / 9; border-bottom: 0; border-right: 1px solid var(--line); }
.kb-card.kb-wide .kb-card-body { padding: 24px clamp(20px, 3vw, 40px); }
.kb-card.kb-wide h3 { font-size: 1.3rem; }

/* ==========================================================
   BLOG POST
   ========================================================== */
.post-hero-img { max-width: 980px; margin-top: 28px; border: 1px solid var(--line-2); border-radius: var(--r-plate); overflow: hidden; background: var(--white); }
.post-hero-img img { width: 100%; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.post-body { max-width: 72ch; }
.post-body .intro { font-size: 1.1rem; color: var(--ink); }
.post-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.side-box { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-plate); overflow: hidden; }
.side-box h2 { font-size: 0.92rem; margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--moss-t2); letter-spacing: 0; }
.side-box ul, .side-box ol { margin: 0; padding: 12px 18px 16px 34px; font-size: 0.9rem; }
.side-box li { margin-bottom: 7px; }
.side-box a { color: var(--ink-2); text-decoration: none; }
.side-box a:hover { color: var(--moss-d); text-decoration: underline; }
.side-box dl { margin: 0; padding: 8px 18px 14px; font-size: 0.88rem; }
.side-box dt { color: var(--ink-3); font-size: 0.78rem; margin-top: 8px; }
.side-box dd { margin: 0; font-weight: 500; }
.side-cta { background: var(--moss); color: var(--white); border-radius: var(--r-plate); padding: 20px; }
.side-cta p { font-size: 0.9rem; color: #e6eddc; }
.side-cta strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.side-cta .btn { width: 100%; }
.related { margin-top: 56px; padding-top: 32px; border-top: 2px solid var(--ink); }
.related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-list a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-plate); background: var(--white); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.related-list a:hover { border-color: var(--moss); color: var(--moss-d); }
.related-list span { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.82rem; margin-top: 6px; }

/* ==========================================================
   REVEAL
   ========================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .faq-a { height: auto; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .nav-tray a { padding: 7px 9px; font-size: 0.86rem; }
  .bench { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bench-spec { grid-column: 1 / -1; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .bench-spec img { display: none; }
  .bench-parts { border-right: 0; }
  .assembly { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "core core" "anim part" "detl rend" "toast toast" "cfg cfg"; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav-tray {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 10px 20px 20px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line-2);
    background: var(--white); box-shadow: 0 18px 30px -20px rgba(30, 38, 20, 0.4);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-tray.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-tray a { padding: 12px 10px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-tray .nav-sep { display: none; }
  .nav-tray .mobile-cta { display: inline-flex; margin-top: 14px; border-bottom: 0; border-radius: var(--r-plate); color: var(--ink); }
  .toolbar-inner { position: relative; }
  .toolbar .header-cta { display: none; }
  .hero-grid, .download-inner, .compat-layout, .procedure-grid, .faq-layout, .about-layout, .legal-layout, .post-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; max-width: 560px; }
  .req-panel, .side-plate, .legal-index, .post-sidebar { position: static; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .line-stations { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .line-stations::before { display: none; }
  .release { grid-template-columns: minmax(0, 1fr); }
  .release-meta { border-left: 0; border-top: 1px solid var(--line); }
  .safety-inner { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .kb-featured { grid-template-columns: minmax(0, 1fr); }
  .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-featured img { border-right: 0; border-bottom: 1px solid var(--line); }
  .related-list { grid-template-columns: minmax(0, 1fr); }
  .legal-index { border-left: 0; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-plate); }
}

@media (max-width: 680px) {
  body { font-size: 0.98rem; }
  .bench { grid-template-columns: minmax(0, 1fr); }
  .bench-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .assembly { grid-template-columns: minmax(0, 1fr); grid-template-areas: "core" "anim" "part" "detl" "rend" "toast" "cfg"; }
  .m-core ul { grid-template-columns: minmax(0, 1fr); }
  .m-toast { grid-template-columns: minmax(0, 1fr); }
  .line-stations { grid-template-columns: minmax(0, 1fr); }
  .station { padding: 0; display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
  .station-num { width: 60px; height: 60px; font-size: 1.2rem; margin: 0; }
  .usecase-list li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fix-row { grid-template-columns: minmax(0, 1fr); }
  .fix-problem { border-right: 0; border-bottom: 1px solid var(--line); }
  .procon { grid-template-columns: minmax(0, 1fr); }
  .procon > div + div { padding-left: 0; border-left: 0; }
  .release-meta dl { grid-template-columns: minmax(0, 1fr); }
  .release-meta dt { border-bottom: 0; padding-bottom: 0; }
  .contact-plate { grid-template-columns: minmax(0, 1fr); }
  .contact-plate > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .faq-a-inner { padding-left: 20px; }
  .faq-q { grid-template-columns: 28px 1fr 18px; padding: 16px; }
  .faq-tabs { display: flex; width: 100%; }
  .faq-tab { flex: 1 1 auto; justify-content: center; padding: 10px 12px; }
  .spec-rail { grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  .spec-rail div { padding: 10px 12px; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-link { grid-template-columns: 72px 1fr; }
  .guide-link img { width: 72px; height: 52px; }
  .kb-grid { grid-template-columns: minmax(0, 1fr); }
  .kb-card.kb-wide { flex-direction: column; align-items: stretch; }
  .kb-card.kb-wide img { width: 100%; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 380px) {
  .brand span { font-size: 0.95rem; }
  .spec-rail { grid-template-columns: minmax(0, 1fr); }
  .spec-rail div { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .float-a { animation: none; }
}
