:root {
  --bg: #0e1215;
  --bg-2: #11171b;
  --surface: #161c21;
  --surface-2: #1b2329;
  --surface-3: #212b32;
  --border: #26313a;
  --border-strong: #35434e;
  --text: #e4eaee;
  --text-2: #bac6ce;
  --muted: #8b9aa6;
  --accent: #4fd18b;
  --accent-strong: #6be0a0;
  --accent-soft: rgba(79, 209, 139, 0.12);
  --accent-ink: #052113;
  --amber: #e9b44c;
  --amber-soft: rgba(233, 180, 76, 0.12);
  --blue: #6cb4ee;
  --blue-soft: rgba(108, 180, 238, 0.12);
  --red: #ef6f6c;
  --red-soft: rgba(239, 111, 108, 0.12);
  --violet: #b49cf0;
  --violet-soft: rgba(180, 156, 240, 0.12);
  --code-bg: #0a0e11;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 18px 48px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --font-sans: system-ui, sans-serif;
  --font-mono: ui-monospace, monospace;
  --wrap: 1200px;
  --measure: 46rem;
  --header-h: 68px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f7f5;
  --bg-2: #edf1ee;
  --surface: #ffffff;
  --surface-2: #f3f6f4;
  --surface-3: #e8ede9;
  --border: #dbe2dd;
  --border-strong: #c2ccc6;
  --text: #152027;
  --text-2: #33434d;
  --muted: #5b6a74;
  --accent: #12804a;
  --accent-strong: #0d6b3d;
  --accent-soft: rgba(18, 128, 74, 0.09);
  --accent-ink: #ffffff;
  --amber: #9a6200;
  --amber-soft: rgba(196, 128, 0, 0.1);
  --blue: #1d6db3;
  --blue-soft: rgba(29, 109, 179, 0.08);
  --red: #bf3633;
  --red-soft: rgba(191, 54, 51, 0.08);
  --violet: #6a4cc2;
  --violet-soft: rgba(106, 76, 194, 0.08);
  --code-bg: #eef2ef;
  --shadow: 0 1px 2px rgba(20, 32, 39, 0.06), 0 8px 24px rgba(20, 32, 39, 0.06);
  --shadow-lg: 0 2px 4px rgba(20, 32, 39, 0.06), 0 18px 48px rgba(20, 32, 39, 0.1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.38em;
  color: var(--text);
}

kbd {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.05em 0.4em;
}

pre {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  line-height: 1.55;
  margin: 0 0 1.4em;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.86rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 650;
  color: var(--text);
  background: var(--surface-2);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--accent);
  z-index: 120;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 18, 21, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

[data-theme="light"] .site-header {
  background: rgba(245, 247, 245, 0.88);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-light {
  font-weight: 400;
  color: var(--muted);
  margin-right: 1px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 550;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav a[aria-current="page"],
.site-nav a.is-active {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
}

.breadcrumbs {
  padding-top: 1.6rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.breadcrumbs li + li {
  margin-top: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--border-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 12px var(--accent);
}

.eyebrow--amber {
  color: var(--amber);
}

.eyebrow--amber::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft), 0 0 12px var(--amber);
}

.unit {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.72rem;
  line-height: 1.3;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 44rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--small {
  padding: 0.45rem 0.8rem;
  font-size: 0.86rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 5rem 0;
}

.section--band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--tight {
  padding: 3.25rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin-bottom: 0.35rem;
}

.section-head p {
  margin: 0;
  color: var(--text-2);
  max-width: 40rem;
}

.section-head .link-more {
  flex-shrink: 0;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.link-more::after {
  content: ">";
  font-family: var(--font-mono);
  transition: transform 0.15s ease;
}

.link-more:hover::after {
  transform: translateX(3px);
}

.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lede {
  margin-bottom: 2rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-points li + li {
  margin-top: 0;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.rack-figure {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.rack-figure svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
}

.led-blink {
  animation: blink 2.4s infinite;
}

.led-blink--2 {
  animation-delay: 0.8s;
}

.led-blink--3 {
  animation-delay: 1.6s;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
  55% {
    opacity: 1;
  }
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}

a.card:hover .card-title {
  color: var(--accent);
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.card-title {
  font-size: 1.14rem;
  margin: 0 0 0.5rem;
  transition: color 0.15s ease;
}

.card p {
  color: var(--text-2);
  font-size: 0.97rem;
  margin: 0 0 1rem;
}

.card-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card--led::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  opacity: 0.85;
}

.level {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  line-height: 1.5;
}

.level--beginner {
  color: var(--accent);
}

.level--intermediate {
  color: var(--blue);
}

.level--advanced {
  color: var(--amber);
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.path {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.path li + li {
  margin-top: 0;
}

.path li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.path li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  letter-spacing: 0.08em;
}

.path h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.path p {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 0.8rem;
}

.path a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}

.principles li + li {
  margin-top: 0;
}

.principles li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1.35rem 1.5rem 1.35rem 0;
  border-bottom: 1px solid var(--border);
}

.principles li:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.principles li:nth-child(even) {
  padding-left: 1.5rem;
}

.principles .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  padding-top: 0.2rem;
}

.principles strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.principles span.desc {
  color: var(--text-2);
  font-size: 0.95rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.stat {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.page-header {
  padding: 1.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header h1 {
  max-width: 22ch;
}

.page-header .lede {
  margin-bottom: 0;
}

.page-header--center {
  text-align: center;
}

.page-header--center h1,
.page-header--center .lede {
  margin-left: auto;
  margin-right: auto;
}

.article-header {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.article-header h1 {
  max-width: 24ch;
}

.article-meta {
  list-style: none;
  padding: 1.1rem 0 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-meta li + li {
  margin-top: 0;
}

.article-meta a {
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
}

.article-meta a:hover {
  color: var(--accent);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(0, 15.5rem);
  justify-content: space-between;
  gap: 4rem;
  padding-bottom: 3rem;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow-y: auto;
  font-size: 0.88rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--border);
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li + li {
  margin-top: 0.15rem;
}

.toc a {
  display: block;
  padding: 0.25rem 0;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.4;
  position: relative;
}

.toc a:hover {
  color: var(--text);
}

.toc a.is-active {
  color: var(--accent);
}

.toc a.is-active::before {
  content: "";
  position: absolute;
  left: calc(-1.1rem - 1px);
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--accent);
}

.toc-extra {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.toc-extra p {
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.prose {
  min-width: 0;
}

.prose > h2 {
  margin-top: 2.6em;
  padding-top: 0.4em;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose > h3 {
  margin-top: 2em;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose strong {
  color: var(--text);
}

.prose ul li::marker {
  color: var(--accent);
}

.prose ol li::marker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.prose .table-wrap {
  margin: 0 0 1.6em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-wrap table {
  min-width: 520px;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.prose figure {
  margin: 0 0 1.8em;
}

figure.diagram {
  margin: 0 0 1.8em;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

figure.diagram svg {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
}

.dg-box {
  fill: var(--surface-2);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.dg-box--accent {
  fill: var(--accent-soft);
  stroke: var(--accent);
}

.dg-box--amber {
  fill: var(--amber-soft);
  stroke: var(--amber);
}

.dg-box--blue {
  fill: var(--blue-soft);
  stroke: var(--blue);
}

.dg-box--red {
  fill: var(--red-soft);
  stroke: var(--red);
}

.dg-box--violet {
  fill: var(--violet-soft);
  stroke: var(--violet);
}

.dg-line {
  stroke: var(--border-strong);
  stroke-width: 2;
  fill: none;
}

.dg-line--accent {
  stroke: var(--accent);
}

.dg-line--red {
  stroke: var(--red);
}

.dg-line--dash {
  stroke-dasharray: 6 5;
}

.dg-text {
  fill: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.dg-sub {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.dg-led {
  fill: var(--accent);
}

.dg-led--amber {
  fill: var(--amber);
}

.dg-led--blue {
  fill: var(--blue);
}

.dg-rail {
  fill: var(--surface-3);
  stroke: var(--border-strong);
}

.dg-frame {
  fill: var(--bg-2);
  stroke: var(--border-strong);
  stroke-width: 2;
}

.callout {
  position: relative;
  margin: 0 0 1.6em;
  padding: 1.15rem 1.3rem 1.15rem 1.3rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.callout p:last-child,
.callout ul:last-child,
.callout ol:last-child {
  margin-bottom: 0;
}

.callout p,
.callout li {
  font-size: 0.98rem;
}

.callout--rule {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%), var(--surface);
}

.callout--caution {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, var(--amber-soft), transparent 70%), var(--surface);
}

.callout--caution .callout-title {
  color: var(--amber);
}

.callout--bench {
  border-left-color: var(--blue);
  background: linear-gradient(90deg, var(--blue-soft), transparent 70%), var(--surface);
}

.callout--bench .callout-title {
  color: var(--blue);
}

.callout--myth {
  border-left-color: var(--violet);
  background: linear-gradient(90deg, var(--violet-soft), transparent 70%), var(--surface);
}

.callout--myth .callout-title {
  color: var(--violet);
}

.callout--danger {
  border-left-color: var(--red);
  background: linear-gradient(90deg, var(--red-soft), transparent 70%), var(--surface);
}

.callout--danger .callout-title {
  color: var(--red);
}

.keypoints {
  margin: 0 0 2.4em;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.keypoints h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
  padding: 0;
}

.keypoints ul {
  margin: 0;
  padding-left: 1.2em;
}

.keypoints li {
  color: var(--text);
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.6em;
}

.compare > div {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.compare h4 {
  margin-bottom: 0.5rem;
}

.compare ul {
  margin: 0;
  padding-left: 1.1em;
}

.compare li {
  font-size: 0.95rem;
}

.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 0 0 1.6em;
}

.steps > li {
  counter-increment: s;
  position: relative;
  padding: 0 0 1.1rem 3rem;
  margin: 0;
}

.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}

.steps > li::after {
  content: "";
  position: absolute;
  left: calc(1rem - 0.5px);
  top: 2.2rem;
  bottom: 0.2rem;
  width: 1px;
  background: var(--border);
}

.steps > li:last-child::after {
  display: none;
}

.steps > li > strong:first-child {
  display: block;
  margin-bottom: 0.15rem;
}

.article-footer {
  padding-bottom: 4rem;
}

.article-footer-inner {
  max-width: var(--measure);
}

.author-box {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 2.5rem;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

.avatar--lg {
  width: 72px;
  height: 72px;
  font-size: 1.2rem;
}

.author-box h2 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.author-box .role {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.author-box p {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 0;
}

.related h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.related-list li + li {
  margin-top: 0;
}

.related-list a {
  display: block;
  height: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.97rem;
}

.related-list a span {
  display: block;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.related-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pager a {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.pager a:hover {
  border-color: var(--accent);
}

.pager small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.pager .next {
  text-align: right;
  grid-column: 2;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 550;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label,
.field .label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}

.field small {
  color: var(--muted);
  font-size: 0.8rem;
}

input[type="text"],
input[type="search"],
input[type="number"],
select {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  line-height: 1.3;
}

input:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.search-input {
  max-width: 28rem;
}

.empty-note {
  color: var(--muted);
  font-style: italic;
}

.guide-section + .guide-section {
  margin-top: 3.5rem;
}

.guide-section-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.guide-section-head h2 {
  margin: 0;
  font-size: 1.4rem;
}

.guide-section-head .unit {
  color: var(--accent);
  font-family: var(--font-mono);
}

.guide-section-head p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.alpha-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.alpha-nav a {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
}

.alpha-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.alpha-nav span {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--border-strong);
}

.glossary-group + .glossary-group {
  margin-top: 2.5rem;
}

.glossary-letter {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.glossary-list {
  margin: 0;
}

.glossary-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.glossary-item:last-child {
  border-bottom: 0;
}

.glossary-item dt {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.glossary-item dd {
  margin: 0;
  color: var(--text-2);
}

.glossary-item dd a {
  font-size: 0.92rem;
}

.faq-group + .faq-group {
  margin-top: 3rem;
}

.faq-group > h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 0.65rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.2rem;
  font-weight: 650;
  color: var(--text);
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-answer {
  padding: 1rem 1.2rem 0.2rem;
}

.faq-answer p,
.faq-answer li {
  color: var(--text-2);
}

.checklist-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.checklist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.4rem;
}

.checklist-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.checklist-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.checklist-bar {
  width: 120px;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}

.checklist-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

.checklist-intro {
  color: var(--text-2);
  font-size: 0.97rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  margin: 0;
  border-top: 1px solid var(--border);
}

.checklist label {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.8rem 0.25rem;
  cursor: pointer;
  color: var(--text-2);
}

.checklist input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.25rem 0 0;
  accent-color: var(--accent);
}

.checklist input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
}

.checklist span strong {
  color: var(--text);
}

.checklist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tool-form,
.tool-result {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
}

.tool-form {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.tool-form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tool-result h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.result-main {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.result-sub {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.result-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--text-2);
}

.result-list li strong {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.result-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.device-rows {
  display: grid;
  gap: 0.6rem;
}

.device-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) 40px;
  gap: 0.6rem;
  align-items: center;
}

.device-row .icon-btn {
  width: 40px;
  height: 40px;
}

.device-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) 40px;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.bar-split {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--surface-3);
  margin: 0.5rem 0 1.25rem;
}

.bar-split span {
  display: block;
  height: 100%;
}

.bar-split .b-usable {
  background: var(--accent);
}

.bar-split .b-parity {
  background: var(--amber);
}

.bar-split .b-reserve {
  background: var(--border-strong);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: -1px;
}

.legend .l-usable::before {
  background: var(--accent);
}

.legend .l-parity::before {
  background: var(--amber);
}

.legend .l-reserve::before {
  background: var(--border-strong);
}

.spec-table td:first-child {
  color: var(--muted);
  width: 34%;
  font-size: 0.9rem;
}

.spec-table td {
  color: var(--text-2);
}

.build-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2.5rem;
  align-items: start;
}

.build-figure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
}

.build-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8em;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.build-stats li {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.build-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text);
}

.build-stats span {
  font-size: 0.8rem;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.person {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.person h3 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}

.person .role {
  font-size: 0.85rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.6rem;
}

.person p {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 0.6rem;
}

.person .beats {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.changelog {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border);
}

.changelog > li {
  position: relative;
  margin: 0 0 2rem;
  padding-left: 1.75rem;
}

.changelog > li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.changelog time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.changelog h2 {
  font-size: 1.15rem;
  margin: 0.2rem 0 0.5rem;
}

.changelog ul {
  margin-bottom: 0;
}

.changelog li li {
  color: var(--text-2);
  font-size: 0.97rem;
}

.sitemap-cols {
  columns: 3 16rem;
  column-gap: 2.5rem;
}

.sitemap-cols section {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.sitemap-cols h2 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.sitemap-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-cols li {
  font-size: 0.95rem;
}

.notfound {
  padding: 6rem 0 7rem;
  text-align: center;
}

.notfound .code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--surface-3);
  -webkit-text-stroke: 1px var(--border-strong);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.notfound .lede {
  margin: 0 auto 2rem;
}

.notfound .btn-row {
  justify-content: center;
  margin-bottom: 3rem;
}

.terminal {
  max-width: 34rem;
  margin: 0 auto 3rem;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--code-bg);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.terminal pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.86rem;
  color: var(--text-2);
}

.notfound-links {
  max-width: 44rem;
  margin: 0 auto;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

pre:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 1;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: var(--shadow);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 4rem 0 2rem;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.footer-brand p {
  color: var(--text-2);
  margin: 1rem 0 0;
  max-width: 24rem;
}

.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-base p {
  margin: 0;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.status-line::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.note-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note-list li {
  margin: 0;
  border-top: 1px solid var(--border);
}

.note-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.note-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1.5rem;
  padding: 1.15rem 0;
  text-decoration: none;
  color: var(--text);
}

.note-list a:hover .note-title {
  color: var(--accent);
}

.note-title {
  font-weight: 650;
  font-size: 1.05rem;
  transition: color 0.15s ease;
}

.note-desc {
  grid-column: 1;
  color: var(--text-2);
  font-size: 0.94rem;
}

.note-meta {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  align-self: center;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 200px at 100% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
}

.cta-band h2 {
  margin-bottom: 0.4rem;
}

.cta-band p {
  margin: 0;
  color: var(--text-2);
}

.prose .cta-band {
  margin: 2.5rem 0 0;
}

.inline-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inline-list li + li {
  margin-top: 0;
}

.updated-note {
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 1320px) {
  .site-nav a {
    padding: 0.45rem 0.55rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 1200px) {
  .menu-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem 2rem;
    overflow-y: auto;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav a {
    font-size: 1.1rem;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .site-nav a[aria-current="page"],
  .site-nav a.is-active {
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rack-figure {
    max-width: 360px;
    margin: 0 auto;
  }

  .path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .toc {
    position: static;
    order: -1;
    max-height: none;
    border-left: 0;
    padding: 1.1rem 1.25rem;
    margin-bottom: 2.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .toc a.is-active::before {
    display: none;
  }

  .toc-extra {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .build-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .build-figure {
    max-width: 320px;
  }
}

@media (min-width: 1201px) {
  .site-nav {
    display: block !important;
  }
}

@media (max-width: 860px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .principles li:nth-child(odd) {
    border-right: 0;
  }

  .principles li:nth-child(even) {
    padding-left: 0;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .build-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .guide-section-head {
    flex-wrap: wrap;
  }

  .guide-section-head p {
    margin-left: 0;
    flex-basis: 100%;
  }

  .cta-band {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.75rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .wrap {
    padding: 0 1.1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .path,
  .compare,
  .related-list,
  .pager,
  .tool-form .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager .next {
    grid-column: 1;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .lede {
    font-size: 1.1rem;
  }

  .note-list a {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-meta {
    grid-column: 1;
    grid-row: auto;
  }

  .author-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .person {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-name {
    font-size: 1.02rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root,
  [data-theme="light"] {
    --bg: #ffffff;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4f4f4;
    --text: #000000;
    --text-2: #222222;
    --muted: #555555;
    --border: #cccccc;
    --accent: #0d6b3d;
  }

  .site-header,
  .site-footer,
  .toc,
  .to-top,
  .progress,
  .breadcrumbs,
  .checklist-actions,
  .filter-bar,
  .pager,
  .copy-btn,
  .skip-link,
  .no-print {
    display: none !important;
  }

  body {
    font-size: 11pt;
  }

  .article-layout {
    display: block;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .checklist-block,
  .callout,
  .faq-item {
    break-inside: avoid;
  }

  .faq-item .faq-answer {
    display: block;
  }
}

.page-body {
  padding-bottom: 5rem;
}

.page-body > .section:first-child {
  padding-top: 0;
}

.prose-narrow {
  max-width: var(--measure);
}

figure.diagram {
  overflow-x: auto;
}

figure.diagram svg {
  min-width: 560px;
}

.result-warnings {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.result-warnings li {
  position: relative;
  padding: 0.6rem 0.8rem 0.6rem 2rem;
  margin: 0 0 0.5rem;
  border: 1px solid var(--amber);
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.result-warnings li::before {
  content: "!";
  position: absolute;
  left: 0.8rem;
  top: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--amber);
}

.field-error {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--text);
  font-size: 0.9rem;
}

.split-output {
  margin-bottom: 3rem;
}

.split-output h2 {
  font-size: 1.3rem;
}

.split-output p {
  color: var(--text-2);
}

.split-output td {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.prose-narrow {
  margin-top: 1rem;
}

.result-list li strong {
  max-width: 60%;
}

.hub-intro {
  max-width: var(--measure);
  margin-bottom: 2.5rem;
  color: var(--text-2);
}

.hub-block + .hub-block {
  margin-top: 4rem;
}

.prose .path {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1.6em;
}

.prose .path li {
  margin: 0;
}

.prose .path h3 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .prose .path {
    grid-template-columns: minmax(0, 1fr);
  }
}

.notfound-links .inline-list {
  justify-content: center;
}

.build-stats span {
  display: block;
  line-height: 1.4;
  margin-top: 0.25rem;
}
