/* Proxy Manager landing page
   Restrained, type-led, one accent. Light/dark/system via a data-theme
   attribute (set by app.js) with prefers-color-scheme as the no-JS default.
   No framework, no build step. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --card: #ffffff;
  --fg: #15181d;
  --muted: #5b636e;
  --border: #e4e7eb;
  --border-strong: #d3d8de;
  --code-bg: #f1f3f5;
  --accent: #10804d;
  --accent-hover: #0c6b40;
  --accent-soft: rgba(16, 128, 77, 0.10);
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(16, 20, 28, 0.05), 0 10px 22px -12px rgba(16, 20, 28, 0.28);
  --shadow-hover: 0 2px 4px rgba(16, 20, 28, 0.06), 0 20px 38px -16px rgba(16, 20, 28, 0.34);
  --radius: 12px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116;
    --bg-alt: #12171e;
    --card: #141a22;
    --fg: #e9ecf0;
    --muted: #9aa3af;
    --border: #232b35;
    --border-strong: #2e3742;
    --code-bg: #1a212a;
    --accent: #3ddc84;
    --accent-hover: #5ce697;
    --accent-soft: rgba(61, 220, 132, 0.12);
    --on-accent: #052414;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 30px -14px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.55), 0 24px 46px -18px rgba(0, 0, 0, 0.8);
  }
}

:root[data-theme="dark"] {
  --bg: #0e1116;
  --bg-alt: #12171e;
  --card: #141a22;
  --fg: #e9ecf0;
  --muted: #9aa3af;
  --border: #232b35;
  --border-strong: #2e3742;
  --code-bg: #1a212a;
  --accent: #3ddc84;
  --accent-hover: #5ce697;
  --accent-soft: rgba(61, 220, 132, 0.12);
  --on-accent: #052414;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.55), 0 24px 46px -18px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.36em;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-alpha {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 9px; font-weight: 650;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
  vertical-align: 0.45em;
  transform: rotate(-6deg);
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--fg); text-decoration: none; }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 13px 20px; font-size: 16px; border-radius: 10px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-alt); }

/* ---------- Theme toggle ---------- */

.theme-toggle {
  width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--bg-alt); }
.theme-toggle svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  display: none;
}
.theme-toggle[data-mode="system"] .i-system,
.theme-toggle[data-mode="light"] .i-light,
.theme-toggle[data-mode="dark"] .i-dark { display: block; }

/* Navbar GitHub icon — only shown where the corner ribbon is hidden. */
.github-icon {
  width: 38px; height: 38px;
  display: none;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--fg);
}
.github-icon:hover { background: var(--bg-alt); text-decoration: none; }
.github-icon svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Status dot, version pill ---------- */

.status-dot {
  width: 6px; height: 6px; flex-shrink: 0;
  border-radius: 999px;
  background: var(--accent);
  animation: dot-pulse 2.8s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { box-shadow: 0 0 0 4px transparent; }
}

.version-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.version-pill[hidden] { display: none; }
.footer-brand .version-pill { margin-left: 3px; }

/* ---------- Download button + menu ---------- */

.download { position: relative; display: inline-flex; }
.download .dl-main { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.download .dl-caret {
  border-top-left-radius: 0; border-bottom-left-radius: 0;
  padding: 13px 10px;
  border-left: 1px solid color-mix(in srgb, var(--on-accent) 30%, transparent);
}
.dl-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dl-caret svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-version {
  font-size: 0.76em; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid color-mix(in srgb, var(--on-accent) 45%, transparent);
  border-radius: 5px; padding: 2px 6px; margin-left: 2px;
}
.dl-version[hidden] { display: none; }
.dl-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 208px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 30;
  display: flex; flex-direction: column;
}
.dl-menu[hidden] { display: none; }
.dl-menu a { color: var(--fg); padding: 9px 11px; border-radius: 7px; font-size: 15px; }
.dl-menu a:hover { background: var(--bg-alt); text-decoration: none; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 84px 0 0; text-align: center; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em;
}
.hero h1 {
  margin: 0 auto;
  max-width: 20ch;
  text-wrap: balance;
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 700;
}
.lede { margin: 22px auto 0; max-width: 56ch; color: var(--muted); font-size: 1.12rem; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.meta { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.hero-shot {
  margin: 54px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.hero-shot img { width: 100%; }

/* ---------- GitHub corner ---------- */

/* Fixed and in front of the sticky header; the header reserves space on the
   right (see the 721px media query) so the two never collide. Hidden on small
   screens, where the navbar `.github-icon` takes over. */
.github-corner { position: fixed; top: 0; right: 0; width: 78px; height: 78px; z-index: 50; }
.github-corner:hover { text-decoration: none; }
.github-corner svg { width: 100%; height: 100%; display: block; }
.github-corner .ribbon { fill: var(--fg); }
.github-corner .octo, .github-corner .octo-arm { fill: var(--bg); }
.github-corner .octo-arm { transform-origin: 130px 106px; }
.github-corner:hover .octo-arm { animation: octo-wave .56s ease-in-out; }
@keyframes octo-wave {
  0%, 100% { transform: rotate(0); }
  20%, 60% { transform: rotate(-25deg); }
  40%, 80% { transform: rotate(10deg); }
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.15rem); letter-spacing: -0.02em; line-height: 1.15; font-weight: 680; }
.section-lede { margin: 12px 0 0; color: var(--muted); font-size: 1.08rem; max-width: 64ch; }

/* ---------- Tilt / shading ---------- */

[data-tilt] {
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-shot, .shot-media, .split-media { box-shadow: var(--shadow); }
[data-tilt]:hover { box-shadow: var(--shadow-hover); }

/* ---------- Managed-tunnel split ---------- */

.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.split-media { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.split-copy h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 3vw, 2.05rem); letter-spacing: -0.02em; line-height: 1.15; }
.split-copy > p { margin: 0 0 20px; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.97rem; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 2px; top: 0;
  color: var(--accent); font-weight: 700;
}

/* ---------- Screenshot rows ---------- */

.shots { margin-top: 56px; display: grid; gap: 72px; }
.shot { display: grid; grid-template-columns: 1.55fr 1fr; gap: 44px; align-items: center; }
.shot.reverse { grid-template-columns: 1fr 1.55fr; }
.shot.reverse .shot-media { order: 2; }
.shot.reverse .shot-copy { order: 1; }
.shot-media { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.shot-copy h3 { margin: 0 0 8px; font-size: 1.28rem; letter-spacing: -0.01em; }
.shot-copy p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- How it works ---------- */

.flow { display: flex; align-items: stretch; justify-content: center; gap: 12px; margin-top: 52px; flex-wrap: wrap; }
.flow-node {
  flex: 0 1 auto; min-width: 150px;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); text-align: center;
}
.flow-title { font-weight: 650; font-size: 0.98rem; }
.flow-sub { color: var(--muted); font-size: 0.84rem; }
.flow-accent { border-color: var(--accent); background: var(--accent-soft); }
.flow-accent .flow-title { color: var(--accent); }
.flow-ok .flow-title { color: var(--accent); }
.flow-arrow { display: flex; align-items: center; color: var(--muted); font-size: 1.2rem; }
.flow-branch { display: flex; flex-direction: column; gap: 10px; }

.steps { margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 20px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; color: var(--muted); }
.steps li strong { color: var(--fg); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent); display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700;
}

/* ---------- Privacy ---------- */

.checks { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li strong { color: var(--fg); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ---------- FAQ ---------- */

.faq { margin-top: 40px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 34px 18px 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Final CTA ---------- */

.cta { padding: 96px 0; text-align: center; }
.cta h2 {
  margin: 0 auto; max-width: 20ch;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em; line-height: 1.12; font-weight: 680;
}

/* ---------- Support band ---------- */

.support-band { border-top: 1px solid var(--border); background: var(--bg); padding: 40px 0; }
.support-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.support-band p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 54ch; }
.support-band-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.star-icon { width: 16px; height: 16px; fill: currentColor; }
.star-count {
  font-size: 0.78em; font-weight: 650; letter-spacing: 0.01em;
  border: 1px solid color-mix(in srgb, var(--on-accent) 45%, transparent);
  border-radius: 5px; padding: 2px 6px;
}
.star-count[hidden] { display: none; }

/* ---------- Under the hood ---------- */

.underhood { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--border); }
.underhood h3 { margin: 0 0 18px; font-size: 1.15rem; letter-spacing: -0.01em; }
.underhood ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 36px; }
.underhood li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
.underhood li strong { color: var(--fg); }
.underhood li::before {
  content: ""; position: absolute; left: 2px; top: 0.58em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}

/* ---------- Content pages (privacy, support) ---------- */

.page-head { padding: 76px 0 0; }
.page-head h1 { margin: 0; font-size: clamp(1.9rem, 4.4vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.12; }
.page-head .lede { margin-top: 14px; }
.prose { padding: 40px 0 96px; }
.prose h2 { margin: 44px 0 12px; font-size: 1.32rem; letter-spacing: -0.015em; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { margin: 0 0 16px; color: var(--muted); }
.prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--fg); }
.prose a { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0 32px; }
.footer-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.25fr; gap: 32px; }
.footer-brand-col { max-width: 34ch; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--fg); }
.footer-tag { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 {
  margin: 0 0 3px; font-size: 12.5px; font-weight: 650;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}
.footer-col a { color: var(--muted); font-size: 14.5px; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.footer-note { margin: 0; color: var(--muted); font-size: 14px; }
.footer-note a { color: var(--muted); text-decoration: underline; }
.footer-legal { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav { display: none; }
  /* The nav is what pushes the actions right on desktop; without it, do it here
     so the Download button stays against the right wall on phones and iPad. */
  .header-actions { margin-left: auto; }
  .section { padding: 72px 0; }
  .hero { padding-top: 64px; }
  .shot, .shot.reverse { grid-template-columns: 1fr; gap: 22px; }
  .shot.reverse .shot-media { order: 0; }
  .shot.reverse .shot-copy { order: 0; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  .github-corner { display: none; }
  .github-icon { display: inline-grid; }
}

/* Reserve the top-right corner for the fixed ribbon so header controls clear it. */
@media (min-width: 721px) {
  .header-inner { padding-right: 86px; }
}

/* Touch devices have no hover, so let the octocat wave on its own. */
@media (hover: none) {
  .github-corner .octo-arm { animation: octo-wave 560ms ease-in-out; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { justify-content: center; transform: rotate(90deg); }
  .flow-node { min-width: 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .underhood ul { grid-template-columns: 1fr; }
  .support-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, [data-tilt] { transition: none; }
  .github-corner:hover .octo-arm { animation: none; }
  .status-dot { animation: none; }
}

/* ---------- Documentation ---------- */

.docs-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 56px; padding: 36px 0 96px; }
.docs-sidebar { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.docs-sidebar-title {
  margin: 14px 0 4px; font-size: 11.5px; font-weight: 650;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.docs-sidebar-title:first-child { margin-top: 0; }
.docs-sidebar a { color: var(--muted); font-size: 14.5px; padding: 5px 8px; border-radius: 6px; }
.docs-sidebar a:hover { color: var(--fg); background: var(--bg-alt); text-decoration: none; }
.docs-sidebar a[aria-current="page"] { color: var(--fg); background: var(--accent-soft); font-weight: 550; }

.docs-content { min-width: 0; max-width: 780px; }
.docs-content h2 { margin: 44px 0 12px; font-size: 1.3rem; letter-spacing: -0.015em; color: var(--fg); }
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 { margin: 28px 0 8px; font-size: 1.02rem; color: var(--fg); }
.docs-content p, .docs-content li { color: var(--muted); }
.docs-content ul, .docs-content ol { margin: 0 0 16px; padding-left: 22px; }
.docs-content li { margin-bottom: 7px; }
.docs-content strong { color: var(--fg); }
.docs-content pre {
  margin: 0 0 20px; padding: 14px 16px; background: var(--code-bg);
  border: 1px solid var(--border); border-radius: 10px; overflow-x: auto;
}
.docs-content pre code {
  background: none; border: 0; padding: 0; font-size: 0.86rem;
  line-height: 1.55; white-space: pre;
}

.docs-note {
  margin: 0 0 24px; padding: 12px 14px; border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 8px;
  background: var(--bg-alt); color: var(--muted); font-size: 0.95rem;
}

.docs-table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 22px; font-size: 0.92rem; }
.docs-table th, .docs-table td {
  text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.docs-table th { color: var(--fg); font-weight: 600; white-space: nowrap; }
.docs-table td { color: var(--muted); }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table code { white-space: nowrap; }
.docs-arg-type { color: var(--muted); font-size: 0.82em; }

.docs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; padding: 34px 24px 96px; }
.docs-card {
  display: block; padding: 18px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.docs-card:hover { text-decoration: none; box-shadow: var(--shadow-hover); }
.docs-card h3 { margin: 0 0 6px; color: var(--fg); font-size: 1rem; }
.docs-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  .docs-sidebar {
    position: static; flex-direction: row; flex-wrap: wrap; gap: 2px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
  }
  .docs-sidebar-title { display: none; }
  .docs-sidebar a { padding: 5px 10px; }
  .docs-cards { padding-left: 0; padding-right: 0; }
}
