/* =========================================================
   Entity Culling Mod - stylesheet
   Seed: S14 Mod Workshop Light
   Palette (from the logo): graphite + signal green + neutral mist
   ========================================================= */

:root {
  --ink: #1c1c1c;
  --text: #2f2f2f;
  --muted: #555555;
  --teal: #3d3d3d;      /* graphite: logo panel */
  --teal-600: #5f5f5f;
  --teal-100: #d8d8d8;
  --teal-50: #efefef;
  --saff: #22e516;      /* signal green: logo frame bars */
  --saff-600: #14a80a;
  --saff-100: #cff8ca;
  --saff-50: #effdec;
  --mist: #f4f4f4;
  --bg: #fafafa;
  --white: #ffffff;
  --line: #d9d9d9;
  --green-text: #0b7a00;
  --line-strong: #bdbdbd;
  --sage: #9a9a9a;
  --red: #a4271f;
  --red-50: #fbeae8;

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  --shadow-1: 0 1px 2px rgba(40, 40, 40, .08), 0 4px 14px rgba(40, 40, 40, .06);
  --shadow-2: 0 10px 30px rgba(40, 40, 40, .12);

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);

  /* bolt corners: small screw heads on workshop plates */
  --bolts:
    radial-gradient(circle at 10px 10px, var(--sage) 2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 10px) 10px, var(--sage) 2px, transparent 2.6px),
    radial-gradient(circle at 10px calc(100% - 10px), var(--sage) 2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), var(--sage) 2px, transparent 2.6px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.45rem); letter-spacing: -.028em; line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); letter-spacing: -.022em; }
h3 { font-size: 1.17rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--green-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
code { font-family: var(--mono); font-size: .88em; background: var(--teal-50); color: var(--teal); padding: .1em .4em; border-radius: var(--r-sm); }
ul, ol { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--saff); outline-offset: 3px; border-radius: 3px; box-shadow: 0 0 0 6px rgba(40, 40, 40, .25); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tint { background: var(--teal-50); }
.section--mist { background: var(--mist); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; }
.section-head--split h2 { margin: 0; }
.section-head--split p { margin: 0; max-width: 520px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font); text-decoration: none;
  padding: 15px 24px; border-radius: var(--r-sm); border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn--accent { background: var(--saff); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn--accent:hover { color: var(--ink); background: #4cf23f; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn--accent:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { background: var(--white); color: var(--teal); border-color: var(--teal-100); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--small { padding: 10px 16px; font-size: .92rem; box-shadow: 2px 2px 0 var(--ink); }
.btn--large { padding: 18px 30px; font-size: 1.08rem; }
.text-link { font-weight: 600; }

/* ---------- header: workbench toolbar ---------- */
.site-header { position: sticky; top: 0; z-index: 100; display: block; }
.toolbar { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--teal); transition: box-shadow .2s ease; }
.site-header.is-scrolled .toolbar { box-shadow: inset 0 3px 0 var(--teal), 0 6px 20px rgba(40, 40, 40, .08); }
.toolbar__inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; flex-shrink: 0; }
.brand img { border-radius: 6px; border: 1px solid var(--ink); }
.brand em { font-style: normal; font-weight: 500; color: var(--green-text); }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__group { display: flex; list-style: none; margin: 0; padding: 4px; gap: 2px; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; }
.nav__divider { width: 1px; height: 26px; background: var(--line-strong); margin: 0 6px; }
.nav__link { display: block; padding: 7px 11px; border-radius: 4px; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.nav__link:hover { background: var(--white); color: var(--teal); }
.nav__link.is-active, .nav__link[aria-current="page"] { background: var(--white); color: var(--teal); box-shadow: inset 0 -2px 0 var(--saff), 0 1px 2px rgba(0,0,0,.06); }
.nav__cta { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 42px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--white); cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle__bar { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background:
    linear-gradient(var(--bg), rgba(250, 250, 250, .6)),
    repeating-linear-gradient(0deg, transparent 0 39px, #e8e8e8 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #e8e8e8 39px 40px);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; color: var(--teal); background: var(--white); border: 1px solid var(--teal-100); padding: 6px 14px 6px 10px; border-radius: 30px; margin-bottom: 22px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--saff); box-shadow: 0 0 0 3px var(--saff-100); }
.hero h1 { max-width: 15ch; }
.hero__lead { font-size: 1.14rem; color: var(--muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }
.hero__spec { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.hero__spec div { padding: 12px 18px; border-right: 1px dashed var(--line-strong); }
.hero__spec div:last-child { border-right: 0; }
.hero__spec dt { font-size: .78rem; color: var(--muted); }
.hero__spec dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .95rem; }
.hero__visual { position: relative; margin: 0; }
.hero__visual img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); background: var(--mist); }
.float-module { position: absolute; font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r-sm); padding: 8px 14px; box-shadow: 3px 3px 0 var(--teal); animation: drift 6s ease-in-out infinite; }
.float-module--a { top: 30%; left: -22px; }
.float-module--b { top: 12%; right: -16px; background: var(--saff-100); animation-delay: -3s; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- about: workbench ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 230px; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.about__big { font-size: clamp(1.2rem, 1.8vw, 1.42rem); line-height: 1.5; color: var(--ink); font-weight: 500; }
.about__parts { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.about__parts img { border-radius: 6px; }
.parts-list { list-style: none; padding: 14px 6px 4px; margin: 0; counter-reset: part; display: grid; gap: 8px; font-size: .95rem; color: var(--muted); }
.parts-list li { display: grid; grid-template-columns: 90px 1fr; }
.parts-list strong { color: var(--ink); font-weight: 600; }
.spec-rail { position: relative; background: var(--white); background-image: var(--bolts); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 26px 22px; }
.spec-rail::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 4px; background: var(--saff); border-radius: 0 3px 3px 0; }
.spec-rail dl { margin: 0; display: grid; gap: 16px; }
.spec-rail dt { font-size: .8rem; color: var(--muted); }
.spec-rail dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .96rem; line-height: 1.4; }

/* ---------- features: assembly board ---------- */
.board {
  display: grid; gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: "a core b" "c core d" "e f f";
}
.board__core {
  grid-area: core; position: relative;
  background: var(--teal); color: #ededed; border-radius: var(--r-md); padding: clamp(28px, 3.5vw, 44px);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 22px, transparent 22px 44px);
}
.board__core h3 { color: #fff; font-size: clamp(1.45rem, 2.2vw, 1.9rem); font-weight: 700; max-width: 16ch; }
.board__core p { color: #e2e2e2; }
.core-gauge { display: flex; gap: 6px; margin-top: 26px; }
.core-gauge span { height: 8px; flex: 1; border-radius: 2px; background: rgba(255,255,255,.2); }
.core-gauge span:nth-child(-n+3) { background: var(--saff); }
.board__core { border-bottom: 4px solid var(--saff); }
.board__mod { position: relative; background: var(--white); background-image: var(--bolts); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 26px 24px 20px; transition: border-color .2s ease, transform .2s ease; }
.board__mod:hover { border-color: var(--teal-600); transform: translateY(-2px); }
.board__mod h3 { margin-bottom: .45em; }
.board__mod p { color: var(--muted); font-size: .97rem; margin: 0; }
.board__mod--a { grid-area: a; } .board__mod--b { grid-area: b; }
.board__mod--c { grid-area: c; } .board__mod--d { grid-area: d; }
.board__mod--e { grid-area: e; }
.board__mod--f { grid-area: f; background-color: var(--saff-50); border-color: var(--saff-100); border-style: dashed; }
/* connector pins towards the core */
.board__mod--a::after, .board__mod--c::after, .board__mod--b::before, .board__mod--d::before {
  content: ""; position: absolute; top: 50%; width: 18px; height: 2px; background: var(--teal-600);
}
.board__mod--a::after, .board__mod--c::after { right: -19px; }
.board__mod--b::before, .board__mod--d::before { left: -19px; }

/* ---------- how it works: assembly line ---------- */
.line__track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.line__track::before { content: ""; position: absolute; left: 4%; right: 4%; top: 30px; height: 12px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 18px, var(--mist) 18px 26px); border: 1px solid var(--line-strong); }
.station { position: relative; padding-top: 78px; }
.station__num { position: absolute; top: 6px; left: 0; width: 60px; height: 60px; display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; font-weight: 700; font-size: 1.4rem; color: var(--ink); box-shadow: 3px 3px 0 var(--teal); }
.station:last-child .station__num { background: var(--saff); }
.station h3 { font-size: 1.3rem; margin-bottom: .35em; }
.station p { color: var(--muted); margin: 0; max-width: 30ch; }

/* ---------- installation / setup ---------- */
.setup__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.setup__check { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--r-sm); padding: 26px; }
.setup__hint { font-size: .95rem; color: var(--muted); margin: 18px 0 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border: 2px solid var(--teal); border-radius: 4px; background: var(--teal-50); }
.check-list li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.procedure { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.procedure li { counter-increment: step; position: relative; padding: 0 0 30px 74px; }
.procedure li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 2px solid var(--teal); color: var(--teal); font-weight: 700; }
.procedure li::after { content: ""; position: absolute; left: 22px; top: 48px; bottom: 4px; width: 2px; background: var(--teal-100); }
.procedure li:last-child::after { display: none; }
.procedure h3 { margin-bottom: .3em; padding-top: 8px; }
.procedure p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- compatibility table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.compat-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compat-table th, .compat-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compat-table thead th { background: var(--mist); font-size: .88rem; color: var(--muted); font-weight: 600; }
.compat-table tbody th { font-weight: 600; color: var(--ink); width: 28%; }
.compat-table td:last-child { color: var(--muted); }
.compat-table tbody tr:last-child > * { border-bottom: 0; }
.compat-table tbody tr:hover { background: #fafafa; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 2px; }
.status--ok { color: var(--green-text); } .status--ok::before { background: var(--saff); outline: 1px solid var(--saff-600); }
.status--check { color: var(--text); } .status--check::before { background: var(--white); border: 2px dashed var(--muted); }
.status--no { color: var(--red); } .status--no::before { background: var(--red); }
.status--na { color: var(--muted); } .status--na::before { border: 2px solid var(--sage); }

/* ---------- release metadata band ---------- */
.section--band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.release__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.release__intro p { color: var(--muted); max-width: 46ch; }
.release__meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.release__meta div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.release__meta div:nth-child(odd) { border-right: 1px solid var(--line); }
.release__meta div:nth-child(even) { padding-left: 22px; }
.release__meta dt { font-size: .82rem; color: var(--muted); }
.release__meta dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); line-height: 1.45; }

/* ---------- use cases: typographic rows ---------- */
.uses__title { font-size: clamp(2rem, 4vw, 3rem); max-width: 14ch; margin-bottom: 36px; }
.uses__rows { display: grid; }
.use { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 48px; padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; width: 88%; }
.use:last-child { border-bottom: 1px solid var(--line); }
.use h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 600; margin: 0; }
.use p { margin: 0; color: var(--muted); }
.use--right { margin-left: auto; }

/* ---------- download panel ---------- */
.download { padding-top: calc(var(--section) * .6); padding-bottom: calc(var(--section) * .8); }
.download__panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-md); padding: clamp(24px, 4vw, 56px);
  box-shadow: 8px 8px 0 var(--teal-100);
}
.download__visual { margin: 0; }
.download__visual img { border-radius: var(--r-md); }
.download__body h2 { margin-bottom: .4em; }
.download__body > p { color: var(--muted); max-width: 56ch; }
.download__facts { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.download__facts li { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 14px; font-weight: 600; color: var(--ink); font-size: .93rem; background: var(--mist); }
.download__facts span { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; }
.download__note { font-size: .95rem; margin: 22px 0 0; padding-top: 18px; border-top: 1px dashed var(--line-strong); }

/* ---------- troubleshooting: diagnostic rows ---------- */
.diag__list { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; }
.diag__row { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); align-items: start; }
.diag__row:last-child { border-bottom: 0; }
.diag__row--head { background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; padding-top: 12px; padding-bottom: 12px; }
.diag__row h3 { font-size: 1.02rem; margin: 0; position: relative; padding-left: 20px; }
.diag__row h3::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 2px; background: var(--teal); }
.diag__row p { margin: 0; color: var(--muted); font-size: .97rem; }
.diag__row p:nth-of-type(1) { color: var(--text); font-weight: 500; }

/* ---------- guides preview: lanes ---------- */
.lanes__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.lane { border-radius: var(--r-md); padding: 28px; }
.lane--setup { background: var(--teal-50); border: 1px solid var(--teal-100); }
.lane--fix { background: var(--saff-50); border: 1px solid var(--saff-100); }
.lane__title { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.lane__title::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--teal); }
.lane--fix .lane__title::before { background: var(--saff); outline: 1px solid var(--saff-600); }
.lane__list { list-style: none; padding: 0; margin: 0; }
.lane-item { padding: 16px 0; border-top: 1px solid rgba(40, 40, 40, .14); }
.lane-item__link { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.lane-item__link:hover { color: var(--teal); text-decoration: underline; }
.lane-item__meta, .meta-strip { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.lane-item__meta span + span::before, .meta-strip span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 10px; border: 1px solid var(--sage); transform: rotate(45deg) translateY(-2px); }

/* ---------- pros and cons ---------- */
.procon__title { text-align: center; margin-bottom: 40px; }
.procon__grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 1000px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.procon__col { padding: clamp(24px, 3.5vw, 40px); }
.procon__col--pro { border-right: 1px solid var(--line); }
.procon__col h3 { display: flex; align-items: center; gap: 10px; }
.procon__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.procon__col li { position: relative; padding-left: 34px; }
.procon__col li::before { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; font-weight: 700; font-size: .95rem; line-height: 1; }
.procon__col--pro li::before { content: "+"; background: var(--saff-50); color: var(--green-text); border: 1px solid var(--saff-100); }
.procon__col--con li::before { content: "\2212"; background: var(--mist); color: var(--muted); border: 1px solid var(--line-strong); }

/* ---------- safety: hazard strip ---------- */
.safety { padding: 0 0 calc(var(--section) * .3); background: var(--teal-50); }
.hazard-callout {
  position: relative; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 28px 32px 28px 52px; overflow: hidden;
}
.hazard-callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 20px; background: repeating-linear-gradient(-45deg, var(--saff) 0 10px, var(--ink) 10px 20px); }
.hazard-callout h2 { font-size: 1.35rem; margin-bottom: .5em; }
.safety__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.safety__cols p, .hazard-callout p { margin: 0; color: var(--muted); }

/* ---------- FAQ: workshop manual ---------- */
.faq__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq__side { position: sticky; top: 96px; }
.faq__side > p { color: var(--muted); }
.faq-tabs { display: grid; gap: 10px; margin-top: 24px; }
.faq-tab { text-align: left; font: inherit; cursor: pointer; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 14px 18px; display: grid; gap: 2px; position: relative; transition: border-color .15s ease, background-color .15s ease; }
.faq-tab__name { font-weight: 600; color: var(--ink); }
.faq-tab__count { font-size: .85rem; color: var(--muted); }
.faq-tab:hover { border-color: var(--teal); }
.faq-tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); box-shadow: 4px 4px 0 var(--saff); }
.faq-tab[aria-selected="true"] .faq-tab__name { color: #fff; }
.faq-tab[aria-selected="true"] .faq-tab__count { color: #d8d8d8; }
.js .faq-panel[data-inactive] { display: none; }
.faq-panel + .faq-panel { margin-top: 36px; }
.faq-panel[hidden] { display: none; }
.faq-panel__title { font-size: 1rem; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.js .faq-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); margin-bottom: 8px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.is-open { border-color: var(--teal-600); box-shadow: inset 4px 0 0 var(--teal); }
.faq-item__q { margin: 0; font-size: 1rem; }
.faq-toggle { width: 100%; display: grid; grid-template-columns: 40px 1fr 22px; gap: 12px; align-items: center; text-align: left; font: 600 1rem/1.4 var(--font); color: var(--ink); background: none; border: 0; padding: 16px 18px; cursor: pointer; border-radius: var(--r-sm); }
.faq-toggle:hover .faq-text { color: var(--teal); }
.faq-index { font-size: .85rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; text-align: center; padding: 2px 0; background: var(--mist); }
.faq-item.is-open .faq-index { background: var(--saff); border-color: var(--saff-600); color: var(--ink); }
.faq-marker { position: relative; width: 18px; height: 18px; }
.faq-marker::before, .faq-marker::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--teal); transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-toggle[aria-expanded="true"] .faq-marker::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 20px 18px 70px; color: var(--muted); animation: open .22s ease; }
.faq-answer p { margin: 0; max-width: 66ch; }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- footer: workshop utility ---------- */
.site-footer { display: block; }
.footer {
  background-color: var(--mist);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(150, 150, 150, .16) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(150, 150, 150, .16) 31px 32px);
  border-top: 3px solid var(--teal);
  padding-top: 56px;
}
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.footer__brand p { color: var(--muted); font-size: .95rem; max-width: 40ch; margin-top: 14px; }
.footer__email { font-weight: 600; color: var(--ink) !important; }
.footer__title { font-size: .95rem; font-weight: 600; margin-bottom: 14px; color: var(--ink); padding-bottom: 8px; border-bottom: 2px solid var(--saff); display: inline-block; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer__col a { color: var(--text); font-size: .95rem; }
.footer__col a:hover { color: var(--teal); text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line-strong); font-size: .88rem; color: var(--muted); }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--green-text); font-weight: 600; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 6px; border: 2px solid var(--ink); background: var(--saff); color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; }
.to-top.is-visible { opacity: 1; transform: none; }

/* ---------- inner page heads ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); background: var(--white); border-bottom: 1px solid var(--line); }
.page-head__lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin: 0; }
.page-head--board { background: var(--teal-50); border-bottom-color: var(--teal-100); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.board-stats { display: flex; gap: 12px; margin: 0; }
.board-stats div { background: var(--white); border: 1px solid var(--teal-100); background-image: var(--bolts); border-radius: var(--r-sm); padding: 14px 22px; min-width: 120px; }
.board-stats dt { font-size: .8rem; color: var(--muted); }
.board-stats dd { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--teal); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sage); }
.crumbs a { color: var(--green-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- blog: knowledge board ---------- */
.kb { padding-top: clamp(36px, 5vw, 56px); padding-bottom: var(--section); }
.kb-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-md); overflow: hidden; margin-bottom: 56px; box-shadow: 8px 8px 0 var(--saff-100); }
.kb-feature__media { background: var(--mist); display: flex; align-items: center; }
.kb-feature__media img { width: 100%; height: auto; }
.kb-feature__body { padding: clamp(24px, 4vw, 44px); align-self: center; }
.kb-feature__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 10px; }
.kb-feature__title a { color: var(--ink); text-decoration: none; }
.kb-feature__title a:hover { color: var(--teal); }
.kb-feature__body p { color: var(--muted); }
.kb-lane { margin-bottom: 48px; padding-top: 28px; border-top: 2px solid var(--ink); }
.kb-lane--fix { background: var(--saff-50); border-top-color: var(--saff-600); padding: 28px; border-radius: 0 0 var(--r-md) var(--r-md); }
.kb-lane__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.kb-lane__head h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0; }
.kb-lane__count { font-size: .88rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 3px 10px; background: var(--white); }
.kb-lane__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.kb-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: border-color .2s ease; }
.kb-card:hover { border-color: var(--teal-600); }
.kb-card__media { display: block; border-bottom: 1px solid var(--line); }
.kb-card__media img { aspect-ratio: 1200 / 630; width: 100%; object-fit: cover; }
.kb-card__body { padding: 18px 20px 22px; }
.kb-card__body .meta-strip { margin: 0 0 8px; }
.kb-card__title { font-size: 1.1rem; margin-bottom: .4em; }
.kb-card__title a { color: var(--ink); text-decoration: none; }
.kb-card__title a:hover { color: var(--teal); text-decoration: underline; }
.kb-card__body p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- blog post ---------- */
.post-head { padding: clamp(32px, 5vw, 64px) 0; background: var(--white); border-bottom: 1px solid var(--line); }
.post-head__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.post-head h1 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }
.post-head__lead { font-size: 1.12rem; color: var(--muted); }
.post-head__media { margin: 0; }
.post-head__media img { border-radius: var(--r-md); border: 1px solid var(--line); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(40px, 6vw, 72px); align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 1.9em; padding-top: 10px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: .45em; }
.prose ol li::marker { color: var(--teal); font-weight: 700; }
.prose ul li::marker { color: var(--saff-600); }
.note { background: var(--saff-50); border-left: 4px solid var(--saff); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); }
.post-rail { position: sticky; top: 96px; display: grid; gap: 16px; }
.rail-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px; }
.rail-title { font-size: .95rem; font-weight: 600; margin-bottom: 12px; }
.rail-toc { margin: 0; padding-left: 1.2em; font-size: .92rem; display: grid; gap: 6px; }
.rail-toc a { color: var(--text); text-decoration: none; }
.rail-toc a:hover { color: var(--teal); text-decoration: underline; }
.rail-block--facts { background-image: var(--bolts); }
.rail-block--facts dl { margin: 0; display: grid; gap: 10px; }
.rail-block--facts dt { font-size: .78rem; color: var(--muted); }
.rail-block--facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .93rem; }
.rail-block--cta { background: var(--teal-50); border-color: var(--teal-100); }
.rail-block--cta p { font-size: .92rem; color: var(--text); }
.rail-related { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rail-related a { font-weight: 600; font-size: .93rem; color: var(--ink); text-decoration: none; display: block; }
.rail-related a:hover { color: var(--teal); text-decoration: underline; }
.rail-related span { font-size: .8rem; color: var(--muted); }
.related { background: var(--mist); padding: clamp(48px, 7vw, 80px) 0; border-top: 1px solid var(--line); }
.related__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.related__head h2 { margin: 0; }

/* ---------- supporting pages ---------- */
.about-page { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(32px, 6vw, 80px); padding-top: 48px; padding-bottom: var(--section); align-items: start; }
.spec-rail--page { position: sticky; top: 96px; }
.page-head--contact { background: var(--teal-50); border-bottom-color: var(--teal-100); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); padding-top: 48px; padding-bottom: var(--section); align-items: start; }
.contact__bench { background: var(--white); background-image: var(--bolts); border: 2px solid var(--ink); border-radius: var(--r-md); padding: 32px; box-shadow: 6px 6px 0 var(--saff-100); }
.contact__email { font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 700; color: var(--ink); word-break: break-all; padding: 12px 16px; background: var(--teal-50); border-radius: var(--r-sm); user-select: all; }
.contact__bench p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }
.contact__reasons h2 { font-size: 1.3rem; }
.contact__reasons .check-list { margin-bottom: 32px; }
.contact__reasons p { color: var(--muted); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: 48px; padding-bottom: var(--section); align-items: start; }
.doc-toc { position: sticky; top: 96px; border-left: 3px solid var(--teal); padding-left: 18px; }
.doc-toc__title { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.doc-toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .92rem; }
.doc-toc a { color: var(--text); text-decoration: none; }
.doc-toc a:hover { color: var(--teal); text-decoration: underline; }
.doc-updated { font-size: .9rem; color: var(--muted); }
.doc-sec h2 { font-size: 1.35rem; }
.doc--numbered .doc-body { counter-reset: clause; }
.doc--numbered .doc-sec h2::before { counter-increment: clause; content: counter(clause) "."; color: var(--teal); margin-right: 10px; }
.disclaimer { padding-top: 48px; padding-bottom: var(--section); }
.disclaimer .hazard-callout { margin-bottom: 40px; }
.disclaimer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 56px; max-width: none; }
.disclaimer__grid h2 { font-size: 1.25rem; border-top: 0; margin-top: 0; }
.disclaimer__grid section { border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .spec-rail { grid-column: 1 / -1; }
  .spec-rail dl { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px; padding: 18px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    max-height: calc(100vh - 70px); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav__group { flex-direction: column; }
  .nav__link { padding: 11px 12px; font-size: 1rem; }
  .nav__divider { display: none; }
  .nav__cta { margin: 4px 0 0; }
  .toolbar__inner { position: relative; }

  .hero__grid, .release__grid, .setup__grid, .faq__grid, .post-head__grid, .post-layout, .kb-feature, .contact, .about-page, .doc { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 20ch; }
  .setup__check, .faq__side, .post-rail, .doc-toc, .spec-rail--page { position: static; }
  .faq-tabs { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: 1fr 1fr; grid-template-areas: "core core" "a b" "c d" "e f"; }
  .board__mod::before, .board__mod::after { display: none; }
  .line__track { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .line__track::before { display: none; }
  .lanes__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .post-layout .post-rail { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .use { width: 100%; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .section-head--split { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .hero__spec { grid-template-columns: 1fr; width: 100%; }
  .hero__spec div { border-right: 0; border-bottom: 1px dashed var(--line-strong); }
  .hero__spec div:last-child { border-bottom: 0; }
  .hero__actions .btn { width: 100%; }
  .float-module { display: none; }
  .float-module--b { right: 8px; top: 8px; left: auto; }
  .float-module--a { top: auto; bottom: 8px; }
  .board { grid-template-columns: 1fr; grid-template-areas: "core" "a" "b" "c" "d" "e" "f"; }
  .line__track { grid-template-columns: 1fr; }
  .station { padding-top: 0; padding-left: 80px; min-height: 64px; }
  .release__meta { grid-template-columns: 1fr; }
  .release__meta div:nth-child(odd) { border-right: 0; }
  .release__meta div:nth-child(even) { padding-left: 0; }
  .use { grid-template-columns: 1fr; gap: 8px; }
  .download__panel { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--teal-100); }
  .download__visual { max-width: 360px; }
  .download__body .btn { width: 100%; }
  .diag__row { grid-template-columns: 1fr; gap: 6px; }
  .diag__row--head { display: none; }
  .procon__grid { grid-template-columns: 1fr; }
  .procon__col--pro { border-right: 0; border-bottom: 1px solid var(--line); }
  .safety__cols { grid-template-columns: 1fr; }
  .hazard-callout { padding: 24px 20px 24px 40px; }
  .faq-tabs { grid-template-columns: 1fr; }
  .faq-toggle { grid-template-columns: 34px 1fr 18px; padding: 14px; }
  .faq-answer { padding: 0 16px 16px 16px; }
  .footer__top { grid-template-columns: 1fr; }
  .page-head__grid { grid-template-columns: 1fr; }
  .kb-lane--fix { padding: 20px 16px; }
  .disclaimer__grid { grid-template-columns: 1fr; }
  .setup__check { padding: 20px; }
  .procedure li { padding-left: 62px; }
}

@media (max-width: 380px) {
  .brand span { font-size: .98rem; }
  .btn--large { padding: 16px 18px; }
}

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

@media print {
  .site-header, .site-footer, .to-top, .post-rail { display: none; }
}
