@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/jetbrains-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 14px;
  --radius-s: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --accent: var(--red);
  --accent-ink: var(--red-ink);
  --pin: var(--green);
}

:root, .light-scope, .lab-pane {
  color-scheme: light;
  --paper: #eef1ec;
  --card: #ffffff;
  --ink: #17221d;
  --muted: #56645c;
  --line: #d2d9d1;
  --line-soft: #e5eae4;
  --hole: #c3cbc2;
  --pcb: #0f3a2c;
  --pcb-deep: #0a2a20;
  --pcb-text: #0f3a2c;
  --silk: #e9f2ec;
  --red: #d9302a;
  --red-ink: #b3221d;
  --red-hover: #b3221d;
  --blue: #2557d6;
  --yellow: #f4b400;
  --green: #18965a;
  --warn: #fff3cf;
  --surface-2: #f7f9f6;
  --ok-bg: #dcf3e5;
  --ok-ink: #0f6b3e;
  --lvl0: #0f7a47;
  --lvl1: #8a6200;
  --pin-bg: #e4efe8;
  --code-bg: #e2ebe4;
  --input-line: #9aa79e;
  --dot: #3c4741;
  --header-bg: rgba(255, 255, 255, 0.86);
  --shadow-s: 0 1px 2px rgba(15, 30, 22, 0.06), 0 2px 6px rgba(15, 30, 22, 0.05);
  --shadow-m: 0 2px 4px rgba(15, 30, 22, 0.06), 0 12px 28px -6px rgba(15, 30, 22, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0c1411;
    --card: #131d18;
    --ink: #e4ece7;
    --muted: #9db0a5;
    --line: #26362d;
    --line-soft: #1d2a23;
    --hole: #2b3b32;
    --pcb: #103d2e;
    --pcb-deep: #08201a;
  --pcb-text: #74e0a8;
    --red: #ec4840;
    --red-ink: #ff8e85;
    --red-hover: #c9302a;
    --blue: #86a8ff;
    --green: #35c27c;
    --warn: #33290f;
    --surface-2: #18241e;
    --ok-bg: #12382a;
    --ok-ink: #74e0a8;
    --lvl0: #5fd598;
    --lvl1: #f4c542;
    --pin-bg: #183b2c;
    --code-bg: #1e2c25;
    --input-line: #3d5146;
    --dot: #93a59a;
    --header-bg: rgba(19, 29, 24, 0.82);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-m: 0 2px 4px rgba(0, 0, 0, 0.3), 0 14px 30px -8px rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0c1411;
  --card: #131d18;
  --ink: #e4ece7;
  --muted: #9db0a5;
  --line: #26362d;
  --line-soft: #1d2a23;
  --hole: #2b3b32;
  --pcb: #103d2e;
  --pcb-deep: #08201a;
  --pcb-text: #74e0a8;
  --red: #ec4840;
  --red-ink: #ff8e85;
  --red-hover: #c9302a;
  --blue: #86a8ff;
  --green: #35c27c;
  --warn: #33290f;
  --surface-2: #18241e;
  --ok-bg: #12382a;
  --ok-ink: #74e0a8;
  --lvl0: #5fd598;
  --lvl1: #f4c542;
  --pin-bg: #183b2c;
  --code-bg: #1e2c25;
  --input-line: #3d5146;
  --dot: #93a59a;
  --header-bg: rgba(19, 29, 24, 0.82);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-m: 0 2px 4px rgba(0, 0, 0, 0.3), 0 14px 30px -8px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 750; font-variation-settings: "wdth" 118; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; font-variation-settings: "wdth" 108; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.88em; }
strong, b { font-weight: 650; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }

.rail {
  height: 18px;
  background:
    linear-gradient(var(--red), var(--red)) 0 2px / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 14px / 100% 2px no-repeat,
    radial-gradient(circle, var(--hole) 1.6px, transparent 2.2px) 0 0 / 18px 18px repeat-x;
}

.top { position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--ink); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); transition: box-shadow 0.25s var(--ease); }
.top::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--blue) 66.6%); }
.top.scrolled { box-shadow: var(--shadow-m); }
.top-in { display: flex; align-items: center; gap: 12px 20px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 850; font-size: 1.35rem; font-variation-settings: "wdth" 125; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { color: var(--ink); transition: transform 0.3s var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.brand b { color: var(--red); font-weight: 850; }
.top-tools { order: 3; display: flex; align-items: center; gap: 6px; }
.theme-toggle, .nav-toggle { display: inline-grid; place-items: center; height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; font: 600 0.95rem var(--body); transition: border-color 0.2s, background 0.2s; }
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--ink); }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.nav-toggle { display: none; grid-auto-flow: column; gap: 8px; padding: 0 14px; }
.bars { display: grid; gap: 4px; width: 18px; }
.bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-open .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .bars span:nth-child(2) { opacity: 0; }
.nav-open .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.main-nav { order: 2; display: flex; align-items: center; gap: 2px; }
.main-nav > a, .nav-more-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; padding: 8px 12px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 550 0.97rem var(--body); transition: background 0.2s, color 0.2s; }
.main-nav > a:hover, .nav-more-btn:hover { background: var(--surface-2); color: var(--ink); }
.main-nav > a[aria-current="page"], .nav-more-btn.is-current { color: var(--red-ink); background: color-mix(in srgb, var(--red) 10%, transparent); }
.main-nav .nav-admin { border: 1px solid var(--line); }
.nav-more { position: relative; }
.nav-more-btn svg { transition: transform 0.2s var(--ease); }
.nav-more.open .nav-more-btn svg { transform: rotate(180deg); }
.nav-more-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; display: grid; gap: 2px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-m); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0.18s; }
.nav-more.open .nav-more-list { opacity: 1; visibility: visible; transform: none; }
.nav-more-list a { display: grid; gap: 1px; padding: 9px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.nav-more-list a:hover { background: var(--surface-2); color: var(--ink); }
.nav-more-list a[aria-current="page"] strong { color: var(--red-ink); }
.nav-more-list strong { font-weight: 650; font-size: 0.97rem; }
.nav-more-list span { font-size: 0.85rem; color: var(--muted); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 0.95rem; font-variation-settings: "wdth" 92; color: var(--pcb-text); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--yellow); }
.eyebrow a { color: inherit; }
.lead { font-size: 1.17rem; line-height: 1.55; color: var(--muted); max-width: 62ch; margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 1rem var(--body); padding: 11px 20px; border-radius: var(--radius-s); border: 2px solid var(--red); background: var(--red); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.section { padding-block: 44px; }
.section.tight { padding-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head > a { font-weight: 600; }
.section > h2 { margin-bottom: 22px; }
.page-head { padding-block: 48px 26px; }
.empty { color: var(--muted); padding: 32px 0; }
.back { display: inline-block; margin-bottom: 18px; font-weight: 600; text-decoration: none; }

.hero { position: relative; background: var(--card); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-board {
  position: relative;
  padding-block: 64px 0;
  background-image: radial-gradient(circle, var(--hole) 1.6px, transparent 2.3px);
  background-size: 18px 18px;
  background-position: 9px 9px;
}
.hero-copy { position: relative; max-width: 1000px; background: var(--card); padding: 8px 18px 6px 0; box-shadow: 0 0 0 18px var(--card); border-radius: 2px; }
.hero h1 { font-size: clamp(2.6rem, 7.6vw, 5.6rem); line-height: 0.98; font-weight: 850; letter-spacing: -0.035em; }
.hero h1 span { display: block; }
.hero .lead { font-size: 1.22rem; margin: 22px 0 0; }
.hero-wires { position: relative; display: block; width: 100%; height: 120px; margin-top: 26px; overflow: visible; }
.hero-wires path { fill: none; stroke-width: 6; stroke-linecap: round; }
.hero-wires .w-red { stroke: var(--red); }
.hero-wires .w-yellow { stroke: var(--yellow); }
.hero-wires .w-blue { stroke: var(--blue); }
.hero-wires .w-shade { stroke: rgba(0, 0, 0, 0.13); transform: translate(1px, 3px); }
.hero-wires circle { fill: var(--dot); }
@media (prefers-reduced-motion: no-preference) {
  .hero-wires path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wire-in 1.1s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
  .hero-wires .w-yellow { animation-delay: 0.18s; }
  .hero-wires .w-blue { animation-delay: 0.36s; }
  .entries .entry::before { transform: scaleY(0); transform-origin: top; animation: plug 0.25s ease-out forwards; }
  .entries .entry:nth-child(1)::before { animation-delay: 1.05s; }
  .entries .entry:nth-child(2)::before { animation-delay: 1.23s; }
  .entries .entry:nth-child(3)::before { animation-delay: 1.41s; }
}
@keyframes wire-in { to { stroke-dashoffset: 0; } }
@keyframes plug { to { transform: scaleY(1); } }

.entries { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 40px; }
.entry { position: relative; display: grid; gap: 6px; align-content: start; padding: 22px 22px 20px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.entry::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 14px; height: 18px; margin-left: -7px; border-radius: 3px 3px 2px 2px; background: var(--c, var(--red)); }
.entry.red { --c: var(--red); }
.entry.yellow { --c: var(--yellow); }
.entry.blue { --c: var(--blue); }
.entry strong { font: 800 1.45rem/1.1 var(--display); font-variation-settings: "wdth" 118; }
.entry span { color: var(--muted); }
.entry em { font-style: normal; font-weight: 650; color: var(--ink); margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; }
.entry em::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.entry:hover { color: var(--ink); background: var(--surface-2); box-shadow: 4px 4px 0 var(--c); }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.level { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.level::before { content: ""; grid-row: 1 / span 3; width: 18px; height: 18px; margin-top: 6px; border-radius: 50%; background: var(--led, var(--green)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--led, var(--green)) 22%, transparent); }
.level:nth-child(1) { --led: var(--green); }
.level:nth-child(2) { --led: var(--yellow); }
.level:nth-child(3) { --led: var(--red); }
.level:hover { border-color: var(--ink); color: var(--ink); }
.level-n { display: none; }
.level strong { font: 800 1.35rem var(--display); font-variation-settings: "wdth" 115; grid-column: 2; }
.level span { color: var(--muted); grid-column: 2; }
.level em { font-style: normal; font-weight: 650; margin-top: 6px; grid-column: 2; }

.callout { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; background: var(--pcb); color: var(--silk); border-radius: var(--radius); padding: 30px 34px; position: relative; overflow: hidden; }
.callout::after {
  content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 200px; pointer-events: none;
  background: radial-gradient(circle, rgba(233, 242, 236, 0.16) 2.4px, transparent 3px) 0 0 / 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.callout > * { position: relative; z-index: 1; }
.callout h2 { color: #fff; }
.callout p { color: #b9cfc4; margin: 8px 0 0; max-width: 64ch; }
.callout .btn { background: var(--yellow); border-color: var(--yellow); color: #17221d; }
.callout .btn:hover { background: #fff; border-color: #fff; color: #17221d; }

.callout.alt { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-left: 6px solid var(--blue); }
.callout.alt::after { display: none; }
.callout.alt h2 { color: var(--ink); }
.callout.alt p { color: var(--muted); }
.callout.alt .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.callout.alt .btn:hover { background: var(--blue); border-color: var(--blue); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; overflow: hidden; }
.card:hover { border-color: var(--ink); color: var(--ink); }
.card h3 { padding: 16px 18px 6px; font-size: 1.28rem; }
.card p { padding: 0 18px; color: var(--muted); font-size: 0.97rem; flex: 1; }
.card-meta { padding: 12px 18px 16px; font-size: 0.88rem; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; }
.card:hover .arrow { color: var(--red); }

.spec { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px 0; font-size: 0.85rem; font-weight: 600; font-variation-settings: "wdth" 92; color: var(--muted); }
.spec > span { padding: 2px 10px; border-radius: 999px; background: var(--paper); white-space: nowrap; }
.lvl { display: inline-flex; align-items: center; gap: 6px; }
.lvl::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.lvl-0 { color: var(--lvl0); }
.lvl-1 { color: var(--lvl1); }
.lvl-1::before { background: var(--yellow); }
.lvl-2 { color: var(--red-ink); }
.spec.big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 26px 0 0; overflow: hidden; }
.spec.big > div { padding: 12px 16px; border-right: 1px solid var(--line); }
.spec.big > div:last-child { border-right: 0; }
.spec.big.five { grid-template-columns: repeat(5, 1fr); }
.spec.big dt { font-size: 0.85rem; font-weight: 550; color: var(--muted); }
.spec.big dd { margin: 2px 0 0; font: 750 1.1rem var(--display); font-variation-settings: "wdth" 110; color: var(--ink); }
.spec.big dd.lvl-0 { color: var(--lvl0); }
.spec.big dd.lvl-1 { color: var(--lvl1); }
.spec.big dd.lvl-2 { color: var(--red-ink); }

label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--input-line); border-radius: var(--radius-s); padding: 10px 12px; width: 100%; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }
textarea { resize: vertical; line-height: 1.5; }
textarea.mono { font-family: var(--mono); font-size: 0.9rem; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-top: 24px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { flex: 1 1 180px; }
.filters .clear { padding: 12px 4px; font-weight: 600; }

.project { padding-block: 32px 48px; }
.draft, .alert { background: var(--warn); border-left: 5px solid var(--yellow); padding: 10px 14px; border-radius: var(--radius-s); }
.project-body { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; margin-top: 36px; align-items: start; }
.parts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; }
.parts h2 { font-size: 1.35rem; }
.hint { font-size: 0.9rem; color: var(--muted); margin: 8px 0 12px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { border-top: 1px solid var(--line-soft); }
.checklist label { grid-template-columns: auto auto 1fr; align-items: start; gap: 10px; padding: 10px 0; font-weight: 450; cursor: pointer; }
.checklist input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--green); }
.checklist .qty { font: 600 0.88rem var(--mono); color: var(--green); padding-top: 2px; min-width: 2ch; }
.checklist small { display: block; color: var(--muted); font-size: 0.85rem; }
.checklist input:checked ~ span:last-child { text-decoration: line-through; color: var(--muted); }

.guide { min-width: 0; }
.guide section { margin-bottom: 40px; }
.guide h2 { margin-bottom: 16px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th { text-align: left; font-size: 0.85rem; font-weight: 650; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.wiring code { white-space: nowrap; font-weight: 600; }
.wiring .pin { color: var(--pcb-text); background: var(--pin-bg); padding: 2px 7px; border-radius: 4px; }
.wiring .wire { width: 64px; min-width: 44px; padding-inline: 4px; --w: var(--red);
  background:
    radial-gradient(circle at 6px 50%, var(--dot) 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 6px) 50%, var(--dot) 3px, transparent 3.5px),
    linear-gradient(var(--w), var(--w)) center / calc(100% - 20px) 4px no-repeat; }
.wiring tr:nth-child(5n + 2) .wire { --w: var(--blue); }
.wiring tr:nth-child(5n + 3) .wire { --w: var(--yellow); }
.wiring tr:nth-child(5n + 4) .wire { --w: var(--green); }
.wiring tr:nth-child(5n + 5) .wire { --w: #7a4cc2; }
.wiring td:last-child { color: var(--muted); font-size: 0.9rem; }

.steps { list-style: none; counter-reset: adim; margin: 0; padding: 0; }
.steps li { counter-increment: adim; position: relative; padding: 0 0 26px 56px; border-left: 3px solid var(--line); margin-left: 18px; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before { content: counter(adim); position: absolute; left: -20px; top: -4px; width: 37px; height: 37px; display: grid; place-items: center; background: var(--pcb); color: #fff; font: 800 1rem var(--display); border-radius: 50%; box-shadow: 0 0 0 4px var(--paper); }
.steps h3 { margin-bottom: 6px; }
.steps p { white-space: pre-line; margin: 0; }

.code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.code-head h2 { margin: 0; }
.copy { font: 650 0.9rem var(--body); padding: 7px 14px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); border-radius: var(--radius-s); cursor: pointer; }
.copy:hover { background: var(--ink); color: var(--paper); }
.code { margin: 0; background: var(--pcb-deep); color: #dcebe2; padding: 20px 22px; border-radius: var(--radius); overflow-x: auto; font-size: 0.86rem; line-height: 1.6; tab-size: 2; border-top: 6px solid var(--pcb); }
.code::selection, .code ::selection { background: var(--yellow); color: var(--ink); }

.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px; }
.pager a { font: 750 1.08rem var(--display); font-variation-settings: "wdth" 108; text-decoration: none; color: var(--ink); max-width: 48%; }
.pager a:hover { color: var(--red-ink); }
.pager small { display: block; font: 600 0.85rem var(--body); color: var(--muted); margin-bottom: 2px; }
.pager .next { text-align: right; margin-left: auto; }

.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lesson-list a { display: grid; gap: 6px; align-content: start; height: 100%; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.lesson-list a:hover { border-color: var(--ink); color: var(--ink); }
.lesson-list .level-n { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 0.88rem; color: var(--pcb-text); font-variation-settings: "wdth" 92; }
.lesson-list .level-n::before { content: ""; width: 18px; height: 6px; border-radius: 2px; background: repeating-linear-gradient(90deg, #a0623a 0 4px, var(--yellow) 4px 6px, #a0623a 6px 9px, var(--red) 9px 11px, #a0623a 11px 18px); }
.lesson-list strong { font: 800 1.25rem/1.15 var(--display); font-variation-settings: "wdth" 112; }
.lesson-list span:last-child { color: var(--muted); font-size: 0.97rem; }
.lesson-list em { font-style: normal; font-weight: 600; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.lesson-list.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sources { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.sources ul { margin: 6px 0 0; padding-left: 20px; }
.lesson { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 24px; }
.toc { position: sticky; top: 92px; font-size: 0.94rem; }
.toc h2 { font-size: 0.95rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; font-variation-settings: "wdth" 100; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.lesson-body { max-width: 74ch; }
.lesson-body section { margin-bottom: 36px; scroll-margin-top: 96px; }
.lesson-body h2 { margin-bottom: 12px; }
.lesson-body ul { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.lesson-body .table-scroll { margin: 0 0 1em; }
.lesson-body td:first-child { font-weight: 600; white-space: nowrap; }
.formula { font: 500 1rem var(--mono); background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius-s); padding: 12px 16px; margin: 0 0 1em; white-space: pre-wrap; }
.lesson-body .tip { background: var(--card); margin: 0 0 1em; padding: 10px 14px; }
.lesson-body .warn { background: var(--warn); border-left: 5px solid var(--yellow); border-radius: var(--radius-s); padding: 10px 14px; margin: 0 0 1em; }
.lesson-body pre.code { margin: 0 0 1em; white-space: pre; }
.sources a { color: var(--blue); }
.fig { margin: 0 0 1em; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; text-align: center; }
.muted-note { color: var(--muted); font-size: 0.95rem; }
.example { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--radius-s); padding: 14px 16px; margin: 0 0 1em; }
.example h3 { font-size: 0.98rem; font-weight: 750; color: var(--blue); margin-bottom: 8px; font-variation-settings: "wdth" 100; }
.example ul { margin: 0; list-style: none; padding: 0; }
.example li { padding: 5px 0; border-top: 1px solid var(--line-soft); }
.example li:first-child { border-top: 0; }

.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.term { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.term h2 { font-size: 1.3rem; margin: 6px 0 10px; }
.kind { font-size: 0.88rem; font-weight: 650; color: var(--pcb-text); }
.tip { background: var(--paper); border-left: 4px solid var(--yellow); padding: 8px 12px; font-size: 0.94rem; margin: 0; border-radius: 0 var(--radius-s) var(--radius-s) 0; }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.calc-form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-content: start; }
.calc-out { background: var(--pcb); color: #fff; border-radius: var(--radius); padding: 24px; }
.calc-label { font-weight: 600; font-size: 0.95rem; color: #b9cfc4; margin: 0; }
.calc-value { font: 850 clamp(2.6rem, 7vw, 4.2rem) var(--display); font-variation-settings: "wdth" 125; color: var(--yellow); margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
.calc-out dl { margin: 0; }
.calc-out dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.calc-out dt { color: #c7d9cf; }
.calc-out dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.calc-note { margin: 16px 0 0; color: #ffe3a3; font-size: 0.95rem; min-height: 1.6em; }
.calc ~ .formula, .calc + .formula { margin-top: 20px; color: var(--muted); font-size: 0.95rem; }

.prose h2 { margin: 28px 0 10px; font-size: 1.35rem; }

.admin-form { display: grid; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 860px; }
.admin-form.small { max-width: 380px; margin-top: 20px; }
.admin-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.admin-form .check { grid-template-columns: auto 1fr; align-items: center; }
.admin-form .check input { width: 18px; height: 18px; }
.admin-table td:first-child { font-weight: 600; }
.row-actions { display: flex; gap: 16px; justify-content: flex-end; align-items: center; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.link.danger { color: var(--red-ink); }

.wrap-wide { width: min(1400px, 100% - 40px); margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.chips a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; font-weight: 600; padding: 6px 13px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--card); }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips a[aria-current="true"] { background: var(--pcb); color: #fff; border-color: var(--pcb); }
.chips.small a { font-size: 0.85rem; padding: 4px 10px; }
.post-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.post-card .spec { padding-top: 14px; }
.post { max-width: 800px; padding-block: 32px 48px; }
.post-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.post-head .eyebrow a { color: inherit; }
.post-head .lead { margin-top: 14px; }
.post-meta { font-size: 0.92rem; font-weight: 550; color: var(--muted); margin: 14px 0 0; }
.post-hero { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin: 28px 0 0; }
.post-body { margin-top: 28px; font-size: 1.08rem; line-height: 1.75; overflow-wrap: break-word; }
.post-body h2 { font-size: 1.55rem; margin: 1.6em 0 0.5em; }
.post-body h3 { font-size: 1.22rem; margin: 1.4em 0 0.4em; }
.post-body h4 { font: 700 1.05rem var(--display); margin: 1.2em 0 0.4em; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 1em; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { margin: 0 0 1em; padding: 4px 18px; border-left: 5px solid var(--yellow); background: var(--card); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.post-body blockquote p { margin: 10px 0; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-body figure { margin: 1.4em 0; }
.post-body figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 6px; text-align: center; }
.post-body :not(pre) > code { background: var(--code-bg); padding: 1px 6px; border-radius: 4px; }
.post-body pre.code { margin: 0 0 1em; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-foot { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.post-foot p { margin: 0 0 10px; }

.admin-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.admin-bar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-bar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-bar nav a { padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.admin-bar nav a:hover { background: var(--paper); }
.admin-bar nav a[aria-current="page"] { border-bottom-color: var(--red); }
.admin-bar-end { display: flex; gap: 18px; align-items: center; font-size: 0.95rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 36px; }
.stat { display: grid; gap: 2px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--pcb); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
a.stat:hover { border-left-color: var(--red); color: var(--ink); }
.stat span { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.stat strong { font: 850 2.6rem/1.1 var(--display); font-variation-settings: "wdth" 120; }
.stat em { font-style: normal; color: var(--muted); font-size: 0.92rem; }
.stat.quick { align-content: start; gap: 10px; }
.stat.quick .btn { text-align: center; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-bottom: 28px; }
.admin-recent { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-recent li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.admin-recent li:last-child { border-bottom: 0; }
.admin-recent a { color: var(--ink); font-weight: 600; text-decoration: none; }
.admin-recent a:hover { text-decoration: underline; }
.badge { font-size: 0.8rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--paper); color: var(--muted); white-space: nowrap; }
.badge.live { background: var(--ok-bg); color: var(--ok-ink); }
.post-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.post-main, .post-side { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.post-side { position: sticky; top: 92px; }
.post-side .check { grid-template-columns: auto 1fr; align-items: center; font-size: 1.05rem; }
.post-side .check input { width: 18px; height: 18px; }
.post-side .small { font-size: 0.85rem; margin: -8px 0 0; }
.btn.small { padding: 7px 12px; font-size: 0.9rem; justify-self: start; }
.md-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.md-tools button { font: 600 0.88rem var(--body); padding: 6px 11px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--card); color: var(--ink); cursor: pointer; }
.md-tools button:hover { border-color: var(--ink); background: var(--paper); }
.md-status { font-size: 0.88rem; color: var(--red-ink); margin-left: 6px; }
.md-panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.md-pane textarea { font: 400 0.95rem/1.6 var(--mono); min-height: 520px; }
.md-pane-title { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.md-preview { margin: 0; border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 14px 18px; min-height: 520px; max-height: 760px; overflow: auto; font-size: 1rem; }
.md-preview > :first-child { margin-top: 0; }

.foot { margin-top: 40px; background: var(--pcb); color: var(--silk); }
.foot::before { content: ""; display: block; height: 18px; background:
    linear-gradient(var(--red), var(--red)) 0 3px / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 13px / 100% 2px no-repeat,
    radial-gradient(circle, var(--hole) 1.5px, transparent 2px) 9px 0 / 18px 18px repeat-x,
    var(--paper); }
.foot-in { padding-block: 30px 34px; display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot strong { font: 850 1.25rem var(--display); font-variation-settings: "wdth" 125; color: #fff; }
.foot a { color: #fff; }
.foot-note { color: #a9c3b6; font-size: 0.92rem; margin-top: 6px !important; max-width: 60ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; font-size: 0.95rem; }
.foot-nav a { text-decoration: none; color: #dbe9e1; }
.foot-nav a:hover { color: var(--yellow); }

.arc-head { position: relative; }
.arc-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.arc-stats > div { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.arc-stats dt { order: 2; font-size: 0.9rem; font-weight: 550; color: var(--muted); }
.arc-stats dd { order: 1; margin: 0; font: 850 1.25rem var(--display); font-variation-settings: "wdth" 115; }
.arc-stats dd.lvl-0, .arc-stats dd.lvl-1, .arc-stats dd.lvl-2 { display: inline-flex; align-items: center; gap: 7px; }
.arc-stats dd.lvl-0::before, .arc-stats dd.lvl-1::before, .arc-stats dd.lvl-2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.arc-stats dd.lvl-1::before { background: var(--yellow); }
.chips .n { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.chips a[aria-current="true"] .n { color: #b9cfc4; }
.filters .check { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; font-weight: 600; padding-bottom: 12px; }
.filters .check input { width: 18px; height: 18px; accent-color: var(--green); }
.arc-count { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
.arc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.arc-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.arc-card:hover { color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--pcb); }
.arc-no { position: absolute; top: 14px; right: 16px; font: 800 0.95rem var(--display); font-variation-settings: "wdth" 115; color: var(--hole); }
.arc-card:hover .arc-no { color: var(--red); }
.arc-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.84rem; font-weight: 600; color: var(--muted); padding-right: 44px; font-variation-settings: "wdth" 92; }
.arc-card h3 { font-size: 1.12rem; line-height: 1.25; margin: 0; }
.arc-card p { margin: 0; color: var(--muted); font-size: 0.93rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.arc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.83rem; font-weight: 550; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 4px; }
.arc-foot .fixed { color: var(--ok-ink); background: var(--ok-bg); border-radius: 999px; padding: 1px 9px; white-space: nowrap; font-weight: 650; }
.arc-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.arc-pages a { font-weight: 650; min-width: 40px; text-align: center; padding: 7px 11px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--card); color: var(--ink); text-decoration: none; }
.arc-pages a:hover { border-color: var(--ink); }
.arc-pages a[aria-current="page"] { background: var(--pcb); border-color: var(--pcb); color: #fff; }
.arc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.arc-note { margin-top: 26px; background: var(--warn); border-left: 6px solid var(--yellow); border-radius: var(--radius-s); padding: 12px 18px; max-width: 80ch; }
.arc-note strong { font-weight: 750; }
.arc-note p { margin: 2px 0 0; }
.arc-relay { border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 12px; }
.arc-pins td:nth-child(3) { font-weight: 600; }
.arc-pins td:last-child { color: var(--muted); font-size: 0.9rem; }
.arc-libs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.arc-libs li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); }
.arc-libs code { font-weight: 700; color: var(--pcb-text); }
.arc-libs span { color: var(--muted); font-size: 0.93rem; }
.code-tools { display: flex; gap: 8px; }
a.copy { text-decoration: none; }
.arc-check { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.arc-check h2 { font-size: 1.25rem; }
.arc-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.arc-check li { padding-left: 28px; position: relative; }
.arc-check li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 13px; border-radius: 50%; }
.arc-check li.ok::before { background: var(--green); box-shadow: 0 0 0 3px var(--ok-bg); }
.arc-check li.fix::before { background: var(--yellow); box-shadow: 0 0 0 3px var(--warn); }
.arc-related { margin-top: 8px; margin-bottom: 24px; }
.arc-related h2 { margin-bottom: 16px; }

@media (max-width: 960px) {
  .entries { grid-template-columns: 1fr; gap: 26px; }
  .hero-wires { display: none; }
  .entries .entry::before { animation: none; transform: none; }
  .hero-board { padding-bottom: 8px; }
  .entries { padding-top: 34px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .levels { grid-template-columns: 1fr; }
  .project-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .parts { position: static; }
  .spec.big, .spec.big.five { grid-template-columns: repeat(2, 1fr); }
  .spec.big.five > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .spec.big > div:nth-child(2) { border-right: 0; }
  .spec.big > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .calc { grid-template-columns: 1fr; }
  .post-editor { grid-template-columns: minmax(0, 1fr); }
  .post-side { position: static; }
  .md-panes { grid-template-columns: minmax(0, 1fr); }
  .md-pane textarea, .md-preview { min-height: 280px; }
  .lesson { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; }
  .steps li { padding-left: 36px; }
  .callout { padding: 24px; }
}
@media (max-width: 520px) {
  .hero-board { padding-top: 40px; }
  .hero-copy { box-shadow: 0 0 0 10px var(--card); }
  .filters { padding: 14px; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { transition: background-color 0.25s, color 0.25s; }
::selection { background: color-mix(in srgb, var(--yellow) 55%, transparent); }
.foot-tr { color: var(--yellow); }

.btn { transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-s); }
.btn:active { transform: none; }
input, select, textarea { transition: border-color 0.2s, box-shadow 0.2s; }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 30%, transparent); }

.card, .level, .lesson-list a, .arc-card, .entry, .term, .stat { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s, background 0.2s; }
.card, .level, .lesson-list a, .arc-card { box-shadow: var(--shadow-s); }
.card:hover, .level:hover, .lesson-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.arc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m), 4px 4px 0 var(--pcb); }
.entry:hover { transform: translateY(-3px); }
.card .arrow { display: inline-block; transition: transform 0.25s var(--ease), color 0.2s; }
.card:hover .arrow { transform: translateX(4px); }
.card h3 { transition: color 0.2s; }
.card:hover h3, .arc-card:hover h3 { color: var(--red-ink); }
.post-cover { transition: transform 0.4s var(--ease); }
.post-card:hover .post-cover { transform: scale(1.03); }
.filters, .table-scroll, .calc-form, .parts, .arc-check { box-shadow: var(--shadow-s); }
.chips a { transition: border-color 0.2s, background 0.2s, color 0.2s; }
.copy { transition: background 0.2s, color 0.2s; }

.hero { background: var(--card); }
.hero-wires .w-shade { stroke: color-mix(in srgb, var(--ink) 14%, transparent); }

.eyebrow.on-dark { color: var(--yellow); }
.tools-band { margin-top: 24px; padding-block: 56px 60px; background: var(--pcb-deep); color: var(--silk); position: relative; overflow: hidden; }
.tools-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(233, 242, 236, 0.09) 1.6px, transparent 2.2px) 0 0 / 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.tools-band .wrap { position: relative; }
.tools-band h2 { color: #fff; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(233, 242, 236, 0.14); color: var(--silk); text-decoration: none; transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s; }
.tool:hover { color: var(--silk); transform: translateY(-3px); background: rgba(255, 255, 255, 0.08); border-color: var(--yellow); }
.tool-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--yellow) 16%, transparent); color: var(--yellow); margin-bottom: 6px; }
.tool strong { font: 800 1.3rem/1.15 var(--display); font-variation-settings: "wdth" 115; color: #fff; }
.tool > span:not(.tool-ic) { color: #b9cfc4; }
.tool em { font-style: normal; font-weight: 650; color: var(--yellow); margin-top: 6px; }
.tool em span { display: inline-block; transition: transform 0.25s var(--ease); }
.tool:hover em span { transform: translateX(4px); }
.tools-band + * { margin-top: 0; }

.foot { margin-top: 0; }
main > :last-child:not(.tools-band) { margin-bottom: 40px; }
.foot::before { height: 4px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--blue) 66.6%); }

.light-scope, .lab-pane { color: var(--ink); color-scheme: light; }

@media (max-width: 1080px) {
  .top-in { flex-wrap: wrap; }
  .nav-toggle { display: inline-grid; }
  .main-nav { order: 4; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 10px; border-top: 1px solid var(--line); }
  .nav-open .main-nav { display: flex; animation: nav-in 0.22s var(--ease); }
  .main-nav > a, .nav-more-btn { padding: 12px 14px; border-radius: var(--radius-s); font-size: 1.05rem; }
  .nav-more-btn { display: none; }
  .nav-more-list { position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; }
  .nav-more-list a { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; padding: 12px 14px; }
  .nav-more-list strong { font-weight: 550; font-size: 1.05rem; }
  .nav-open .top-in { max-height: calc(100dvh - 4px); overflow-y: auto; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 860px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tools-band { padding-block: 44px; }
}
@media (max-width: 420px) {
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 0 10px; }
}
