@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans:vf@latest/latin-wght-normal.woff2")
    format("woff2-variations");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #f7f8f7;
  --fg: #0f1412;
  --muted: #5b655e;
  --line: #e4e8e4;
  --line-strong: #d2d8d2;
  --surface: #ffffff;
  --sidebar: #fafbfa;
  --accent: #0d7a4a;
  --accent-soft: #e7f6ee;
  --accent-ink: #0a5c38;
  --card-hover: #f3faf6;
  --code-bg: #f1f4f1;
  --font: "Geist Variable", "Segoe UI", sans-serif;
  --mono: "SF Mono", "Cascadia Code", "JetBrains Mono", ui-monospace, monospace;
  --sidebar-w: 268px;
  --topbar-h: 56px;
  --content-max: 780px;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--accent-ink);
}

/* —— Topbar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.brand .badge {
  margin-left: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-actions a,
.lang-btn,
.menu-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}

.top-actions a:hover,
.lang-btn:hover,
.lang-btn[aria-pressed="true"],
.menu-btn:hover {
  color: var(--fg);
  background: var(--bg-subtle);
}

.lang-switch {
  display: inline-flex;
  padding: 0.12rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-subtle);
}

.menu-btn {
  display: none;
}

/* —— Shell —— */
.docs-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  width: min(1280px, 100%);
  margin-inline: auto;
  min-height: calc(100vh - var(--topbar-h));
}

.sidebar {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow: auto;
  padding: 1.25rem 1rem 2rem;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.sidebar-group {
  margin-bottom: 1.35rem;
}

.sidebar-group h2 {
  margin: 0 0 0.45rem 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar a {
  display: block;
  padding: 0.42rem 0.65rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.sidebar a:hover {
  color: var(--fg);
  background: rgb(15 20 18 / 0.04);
}

.sidebar a[aria-current="page"] {
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-weight: 600;
}

.content {
  min-width: 0;
  padding: 2.2rem 2rem 4rem;
}

.content-inner {
  max-width: var(--content-max);
}

.page-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-weight: 700;
}

.page-desc {
  margin: 0.85rem 0 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section {
  margin-top: 2.4rem;
}

.section > h2 {
  margin: 0 0 0.95rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.section > p.lead {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Cards (docs navigation) —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.card:hover {
  border-color: rgb(13 122 74 / 0.35);
  background: var(--card-hover);
  transform: translateY(-1px);
}

.card-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

.card-body h3 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.card-body p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.card.horizontal {
  align-items: center;
}

/* —— Prose blocks —— */
.prose p {
  margin: 0 0 0.95rem;
  color: var(--ink, var(--fg));
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.35rem;
}

.steps {
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1rem 1.05rem 1rem 3.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.step h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.install-os {
  margin-top: 0.85rem;
}

.install-os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.install-os-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 2.05rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.install-os-tab:hover {
  color: var(--fg);
  background: var(--bg-subtle);
}

.install-os-tab[aria-selected="true"] {
  color: #f4f7f5;
  background: var(--fg);
}

.install-os-panel {
  display: none;
  margin-top: 0.85rem;
}

.install-os-panel.is-active {
  display: block;
}

.install-os-panel h4 {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.install-os-panel h4:first-child {
  margin-top: 0;
}

.install-os-panel p {
  margin: 0.25rem 0 0;
}

.install-code {
  position: relative;
  margin: 0.45rem 0 0;
  padding: 0.75rem 2.75rem 0.75rem 0.85rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.install-code code {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--fg);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre;
}

.install-copy {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.install-copy:hover {
  color: var(--accent-ink);
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.install-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.install-copy.is-copied {
  color: var(--accent-ink);
  border-color: #b7dcc8;
  background: var(--accent-soft);
}

.install-copy svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.rail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rail-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.rail-row:first-child {
  border-top: 0;
}

.rail-row .label {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rail-row h3 {
  margin: 0;
  font-size: 0.98rem;
}

.rail-row p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rail-row .hint {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.arch-board {
  display: grid;
  gap: 0.55rem;
}

.arch-node {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.arch-node .tag {
  display: inline-flex;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--fg);
  color: #f4f7f5;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.arch-node.alt .tag {
  background: var(--accent);
}

.arch-node h3 {
  margin: 0;
  font-size: 0.95rem;
}

.arch-node p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.arch-connector {
  width: 2px;
  height: 14px;
  margin-left: 2.9rem;
  background: var(--line-strong);
}

.arch-targets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.arch-target {
  padding: 0.8rem 0.9rem;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-align: center;
}

.section-lead {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.capability-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.capability-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.capability-nav a:hover {
  background: var(--card-hover);
  border-color: rgb(13 122 74 / 0.35);
  color: var(--accent-ink);
}

.capability {
  margin: 0 0 2rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
}

.capability-head {
  margin-bottom: 0.9rem;
}

.capability-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.capability-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.capability-lead {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.capability .flow-stage {
  margin-bottom: 1rem;
}

.capability-body h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.capability-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.capability-body .flow-steps {
  margin-top: 0.85rem;
}

.flow-more {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.flow-more a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.actor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}

.actor-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  background: #fff;
  color: var(--fg);
}

.actor-chip.user {
  background: #f4f5f4;
  border-color: #cfd4cf;
}

.actor-chip.kubeloop {
  background: var(--accent-soft);
  border-color: rgb(13 122 74 / 0.35);
  color: var(--accent-ink);
}

.actor-chip.k8s {
  background: #eef6f1;
  border-color: rgb(13 122 74 / 0.28);
  color: #174d35;
}

.actor-chip.dir-in {
  background: var(--accent-soft);
  border-color: rgb(13 122 74 / 0.35);
  color: var(--accent-ink);
}

.actor-chip.dir-out {
  background: #eaf0ff;
  border-color: rgb(47 111 237 / 0.35);
  color: #1f4fc4;
}

.flow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-subtle);
}

.flow-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.flow-tab:hover {
  color: var(--fg);
  background: rgb(255 255 255 / 0.7);
}

.flow-tab[aria-selected="true"] {
  color: #f4f7f5;
  background: var(--fg);
}

.flow-panel {
  display: none;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.flow-panel.is-active {
  display: block;
}

.flow-caption {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.flow-stage {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfb 0%, #f5f7f5 100%);
}

.flow-carousel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.flow-carousel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-subtle);
}

.flow-carousel-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 2.05rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.flow-carousel-tab:hover {
  color: var(--fg);
  background: rgb(255 255 255 / 0.7);
}

.flow-carousel-tab[aria-selected="true"] {
  color: #f4f7f5;
  background: var(--fg);
}

.flow-carousel-stage {
  position: relative;
}

.flow-carousel-slide {
  display: none;
}

.flow-carousel-slide.is-active {
  display: block;
}

.flow-carousel-head {
  margin-bottom: 0.75rem;
}

.flow-carousel-head h3 {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.flow-carousel-head p:last-child {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.flow-carousel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.flow-carousel-nav {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.flow-carousel-nav:hover {
  background: var(--bg-subtle);
}

.flow-carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.flow-carousel-dot {
  appearance: none;
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
}

.flow-carousel-dot.is-active {
  width: 1.15rem;
  background: var(--accent);
}

.flow-carousel-more {
  margin-left: auto;
  color: var(--accent-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .flow-carousel-more {
    flex: 1 1 100%;
    margin-left: 0;
  }
}

.flow-g6 {
  display: block;
  position: relative;
  width: 100%;
  min-height: 180px;
}

.flow-g6 canvas {
  display: block;
  width: 100% !important;
}

.flow-g6 .g6-html-node,
.flow-g6 [class*="html"] {
  pointer-events: none;
}

.flow-svg {
  display: block;
  width: 100%;
  height: auto;
}

.flow-zone {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-zone.accent {
  fill: var(--accent-ink);
}

.flow-zone.k8s {
  fill: #174d35;
}

.flow-dir {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-dir.in {
  fill: var(--accent-ink);
}

.flow-dir.out {
  fill: #2f6fed;
}

.flow-track {
  fill: none;
  stroke: rgb(13 122 74 / 0.28);
  stroke-width: 2;
  stroke-linecap: round;
}

.flow-track.in {
  stroke: rgb(13 122 74 / 0.35);
}

.flow-track.out {
  stroke: rgb(47 111 237 / 0.4);
}

.flow-track.primary {
  stroke: rgb(13 122 74 / 0.4);
}

.flow-track.shadow {
  stroke: rgb(91 101 94 / 0.4);
  stroke-dasharray: 4 4;
}

.flow-node rect {
  fill: #fff;
  stroke: var(--line-strong);
  stroke-width: 1.25;
}

.flow-node.user rect {
  fill: #f7f8f7;
  stroke: #c8cdc8;
}

.flow-node.accent rect {
  fill: var(--accent-soft);
  stroke: rgb(13 122 74 / 0.4);
}

.flow-node.alt rect {
  fill: #edf5f0;
  stroke: rgb(23 77 53 / 0.28);
}

.flow-node text {
  fill: var(--fg);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.flow-sub {
  fill: var(--muted) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.flow-wire-dash {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 7 14;
  animation: flow-dash 1s linear infinite;
}

.flow-wire-dash.in {
  stroke: var(--accent);
}

.flow-wire-dash.out {
  stroke: #2f6fed;
  animation-direction: reverse;
}

.flow-wire-dash.primary {
  stroke: var(--accent);
}

.flow-wire-dash.shadow {
  stroke: #7a857c;
  animation-duration: 1.25s;
}

.flow-packet {
  filter: drop-shadow(0 0 4px rgb(13 122 74 / 0.45));
}

.flow-packet.out {
  filter: drop-shadow(0 0 4px rgb(47 111 237 / 0.4));
}

.flow-packet.muted {
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgb(91 101 94 / 0.35));
}

.flow-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.flow-label.primary {
  fill: var(--accent-ink);
}

.flow-label.shadow {
  fill: var(--muted);
}

.flow-steps {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.flow-steps li + li {
  margin-top: 0.28rem;
}

@keyframes flow-dash {
  to {
    stroke-dashoffset: -26;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-wire-dash {
    animation: none !important;
    stroke-dasharray: none;
    opacity: 0.45;
  }

  .flow-packet {
    display: none;
  }
}

.callout {
  margin-top: 1.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgb(13 122 74 / 0.25);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.callout h3 {
  margin: 0;
  font-size: 0.95rem;
}

.callout p {
  margin: 0.35rem 0 0;
  color: var(--accent-ink);
  font-size: 0.9rem;
}

.callout .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.button-primary {
  background: var(--fg);
  color: #f7faf8;
}

.button-primary:hover {
  background: #000;
}

.button-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--fg);
}

.button-secondary:hover {
  background: var(--bg-subtle);
}

.footer-note {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-note a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 960px) {
  .card-grid,
  .card-grid.cols-3,
  .arch-targets {
    grid-template-columns: 1fr;
  }

  .rail-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .rail-row .hint {
    white-space: normal;
  }

  .flow-tabs,
  .capability-nav {
    flex-direction: column;
  }

  .flow-tab,
  .capability-nav a {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .menu-btn {
    display: inline-flex;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    z-index: 35;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 8px 0 30px rgb(15 20 18 / 0.08);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: var(--topbar-h) 0 0;
    z-index: 34;
    background: rgb(15 20 18 / 0.28);
  }

  .content {
    padding: 1.5rem 1.1rem 3rem;
  }
}
