:root {
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Consolas, monospace;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --z-base: 1;
  --z-header: 100;
  --z-skip: 200;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg-card: #121826;
  --bg-elevated: #1a2234;
  --border: #2a3548;
  --text: #e8edf5;
  --text-muted: #8b9bb4;
  --header-bg: rgba(11, 15, 23, 0.85);
  --grid-line: rgba(14, 165, 233, 0.04);
  --shadow: 0 8px 32px rgba(8, 20, 40, 0.45);
  --brand-mark-bg: color-mix(in srgb, var(--accent) 14%, transparent);
  --brand-mark-border: color-mix(in srgb, var(--accent) 28%, transparent);
  --brand-mark-shadow: 0 0 20px color-mix(in srgb, var(--accent) 10%, transparent);
  --card-hover-border: color-mix(in srgb, var(--accent) 55%, transparent);
  --btn-primary-fg: #ffffff;
  --btn-primary-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 38%, transparent);
  --code-bg: #070a10;
  --code-fg: #c9d5e8;
  --disclaimer-bg: rgba(251, 191, 36, 0.08);
  --disclaimer-border: rgba(251, 191, 36, 0.25);
  --noise-opacity: 0.035;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-card: #ffffff;
  --bg-elevated: #eef2f8;
  --border: #d5dde9;
  --text: #0f172a;
  --text-muted: #64748b;
  --header-bg: rgba(244, 247, 251, 0.92);
  --grid-line: rgba(14, 165, 233, 0.07);
  --shadow: 0 8px 28px rgba(15, 40, 80, 0.1);
  --brand-mark-bg: color-mix(in srgb, var(--accent) 12%, transparent);
  --brand-mark-border: color-mix(in srgb, var(--accent) 32%, transparent);
  --brand-mark-shadow: 0 0 16px color-mix(in srgb, var(--accent) 14%, transparent);
  --card-hover-border: color-mix(in srgb, var(--accent) 45%, transparent);
  --btn-primary-fg: #ffffff;
  --btn-primary-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 28%, transparent);
  --code-bg: #f1f5f9;
  --code-fg: #334155;
  --disclaimer-bg: rgba(251, 191, 36, 0.12);
  --disclaimer-border: rgba(245, 158, 11, 0.35);
  --noise-opacity: 0.04;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: var(--z-skip);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--btn-primary-fg);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus-ring);
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: var(--z-base);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--brand-mark-bg);
  border: 1px solid var(--brand-mark-border);
  box-shadow: var(--brand-mark-shadow);
}

.brand-mark img {
  display: block;
  width: 22px;
  height: 22px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent); }
.nav a.is-active {
  color: var(--accent);
  font-weight: 600;
}

.theme-toggle {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.site-main { padding: 2.5rem 0 4.5rem; }

.hero-banner { margin-bottom: 2.5rem; }
.hero-banner-inner {
  background: transparent;
  border: none;
  box-shadow: none;
}
.hero-banner-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 2.5rem 3rem;
  align-items: start;
  padding: 0.25rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
}
.hero-banner-main {
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: hero-in 0.55s ease both;
}
.hero-promise {
  animation: hero-in 0.55s ease 0.08s both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-banner-main h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.accent-text {
  color: var(--accent);
}
.lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42rem;
  margin: 0 0 1.35rem;
}
.lead strong { color: var(--text); font-weight: 600; }
.lead code,
.hero-promise-item code {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 0;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: flex-start; flex-wrap: wrap; }

.hero-promise {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-promise-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.hero-promise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}
.hero-promise-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}
.hero-promise-mark {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  position: relative;
}
.hero-promise-mark::after {
  content: "";
  position: absolute;
  inset: 0.45rem 0.35rem 0.35rem 0.45rem;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}
.hero-promise-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.hero-promise-item span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.hero-promise-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  margin: 1rem 0 0;
  font-size: 0.82rem;
}
.hero-promise-foot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.hero-promise-foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero-banner-body {
    grid-template-columns: 1fr;
    padding: 0 0 2rem;
    gap: 1.75rem;
  }
  .hero-banner-main {
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--btn-primary-fg);
  box-shadow: var(--btn-primary-shadow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.98) translateY(0); }
.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost:active { transform: scale(0.98); }

.section { margin-top: 3rem; }
.section-head { margin-bottom: 1.5rem; }
.section-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.muted { color: var(--text-muted); font-size: 0.9rem; }

.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.api-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.api-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.api-card-top { display: flex; justify-content: space-between; align-items: center; }
.api-version {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.status-stable { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.status-beta { background: rgba(251, 191, 36, 0.15); color: var(--amber); }
.status-deprecated { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.api-card h3 { font-size: 1.15rem; font-weight: 600; }
.api-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.api-card-meta code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.api-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  padding-top: 0.25rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 4rem;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.feature-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.feature p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding: 1.5rem 0 2rem;
}
.footer-inner { text-align: center; }
.footer-line {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.footer-line + .footer-line { margin-top: 0.35rem; }
.footer-muted { font-size: 0.8rem; }
.footer-icp {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-icp:hover { color: var(--accent); }

/* Doc page */
.doc-page { padding-bottom: 3rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb span { margin: 0 0.35rem; }

.doc-crosslink {
  font-size: 0.85rem;
  margin: -0.75rem 0 1.25rem;
}
.doc-crosslink a { color: var(--accent); text-decoration: none; }
.doc-crosslink a:hover { text-decoration: underline; }

.doc-header { margin-bottom: 2rem; }
.doc-header-top { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.doc-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
.doc-base { margin-top: 1rem; }
.doc-base code.base-url {
  display: block;
  margin-top: 0.35rem;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-all;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.doc-intro h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 0.75rem; color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-elevated);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.disclaimer {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--disclaimer-bg);
  border: 1px solid var(--disclaimer-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--amber);
}

.tabs { margin-top: 1.5rem; }
.tab-list {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tab {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab:active { transform: scale(0.98); }
.tab-panel[hidden] { display: none !important; }

.endpoint { margin-bottom: 1.5rem; }
.endpoint-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.badge-get { background: rgba(52, 211, 153, 0.2); color: var(--green); }
.badge-post { background: rgba(56, 189, 248, 0.2); color: var(--accent); }
.badge-put { background: rgba(251, 191, 36, 0.2); color: var(--amber); }
.badge-delete { background: rgba(248, 113, 113, 0.2); color: var(--red); }
.badge-default { background: var(--bg-elevated); color: var(--text-muted); }
.endpoint-path {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
}
.endpoint h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.endpoint h4 {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 1.25rem 0 0.5rem;
}

.table-wrap { overflow-x: auto; margin: 0.75rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
th { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.03em; }
td code {
  font-family: var(--mono);
  font-size: 0.8em;
  background: var(--bg-elevated);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}
.http-code {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.code-block,
.code-block-wrap {
  position: relative;
}
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--code-fg);
  margin: 0.5rem 0;
}
.code-block code { white-space: pre; }

.example-set { margin-bottom: 2rem; }
.example-set h3,
.example-set > h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.endpoint-ref { margin-bottom: 1rem; }
.endpoint-ref code { font-family: var(--mono); font-size: 0.85rem; color: var(--text-muted); }

.lang-tabs { margin-top: 0.75rem; }
.lang-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.lang-tab {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-tab.active,
.lang-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lang-tab:active { transform: scale(0.98); }
.lang-panel { display: none; }
.lang-panel.active { display: block; }

.btn-copy {
  margin-top: 0.5rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-copy:hover { color: var(--accent); border-color: var(--accent); }
.btn-copy:active { transform: scale(0.98); }
.btn-copy.is-copied {
  color: var(--green);
  border-color: var(--green);
}

.prose { color: var(--text-muted); line-height: 1.7; }
.prose h2 {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}
.prose p { margin-bottom: 0.75rem; max-width: 42rem; }
.prose strong { color: var(--text); }
.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-elevated);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  color: var(--text);
}
.prose pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
}
.prose pre code {
  background: none;
  padding: 0;
  color: var(--code-fg);
  font-size: 0.8rem;
  line-height: 1.55;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}
.prose ul, .prose ol { margin: 0.5rem 0 1rem 1.25rem; max-width: 42rem; }
.prose li { margin-bottom: 0.35rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 0.75rem 0; }
.prose th, .prose td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.prose th { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; }

/* 404 */
.not-found-page {
  text-align: center;
  padding: 4rem 0 5rem;
  max-width: 28rem;
  margin: 0 auto;
}
.not-found-code {
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.not-found-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}
.not-found-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.not-found-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .header-actions { gap: 0.5rem; }
  .nav { gap: 0.65rem; }
  .nav a { font-size: 0.8rem; }
  .brand-text { display: none; }
}
