@font-face {
  font-family: "Sora";
  src: url("/app/fonts/sora-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 700;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/app/fonts/source-sans-3-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 700;
}

:root {
  --docs-ink: #16243b;
  --docs-muted: #53627a;
  --docs-blue: #2458d6;
  --docs-blue-dark: #163d9c;
  --docs-line: #d8e2ef;
  --docs-paper: #f7f9fc;
  --docs-panel: #eaf1fb;
  --docs-panel-strong: #dce9fb;
  --docs-green: #17664f;
  --docs-amber: #8b551e;
  --docs-code: #10213d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--docs-ink);
  background: var(--docs-paper);
  font-family: "Source Sans 3", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--docs-blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--docs-blue); }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid #f3b63f;
  outline-offset: 3px;
}

.docs-skip {
  position: absolute;
  left: -10000px;
  top: 0;
  z-index: 10;
  padding: 0.6rem 0.85rem;
  background: #fff;
  color: var(--docs-ink);
}
.docs-skip:focus { left: 1rem; top: 1rem; }

code, pre, .docs-kicker, .docs-breadcrumb, .docs-status, .docs-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--docs-line);
  border-radius: 4px;
  background: #fff;
  color: var(--docs-code);
  font-size: 0.88em;
}

pre {
  overflow-x: auto;
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid #20375d;
  border-radius: 8px;
  background: var(--docs-code);
  color: #edf4ff;
  font-size: 0.82em;
  line-height: 1.6;
}

pre code { padding: 0; border: 0; background: transparent; color: inherit; }

.docs-topbar {
  border-bottom: 1px solid var(--docs-line);
  background: rgba(247, 249, 252, 0.96);
}

.docs-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--docs-ink);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.docs-brand img { width: 30px; height: 30px; }

.docs-top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.docs-top-links a { color: var(--docs-muted); }

.docs-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 780px);
  gap: 4.5rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.2rem 2rem 5rem;
}

.docs-sidebar {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding-right: 1rem;
}

.docs-kicker {
  margin: 0 0 1rem;
  color: var(--docs-blue-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-sidebar nav { display: grid; gap: 0.18rem; }
.docs-sidebar a {
  display: block;
  padding: 0.42rem 0.65rem;
  border-left: 2px solid transparent;
  color: var(--docs-muted);
  text-decoration: none;
}
.docs-sidebar a:hover, .docs-sidebar a[aria-current="page"] {
  border-left-color: var(--docs-blue);
  color: var(--docs-blue-dark);
  background: var(--docs-panel);
}

.docs-sidebar .docs-nav-label {
  margin: 1.4rem 0 0.35rem;
  color: var(--docs-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.docs-main { min-width: 0; }

.docs-breadcrumb {
  margin-bottom: 1.3rem;
  color: var(--docs-muted);
  font-size: 0.75rem;
}

.docs-main h1, .docs-main h2, .docs-main h3 {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.docs-main h1 { margin: 0 0 1.25rem; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.04em; }
.docs-main h2 { margin: 3rem 0 0.85rem; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -0.025em; }
.docs-main h3 { margin: 1.8rem 0 0.55rem; font-size: 1.22rem; }
.docs-main p { max-width: 74ch; }
.docs-main li { max-width: 74ch; }

.docs-lede {
  max-width: 62ch;
  margin: 0 0 2rem;
  color: var(--docs-muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.docs-hero {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem;
  border: 1px solid #abc5ec;
  border-left: 5px solid var(--docs-blue);
  background: var(--docs-panel);
}

.docs-hero h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.docs-hero p { margin: 0; }

.docs-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 2.5rem 0;
  border-top: 1px solid var(--docs-line);
  border-bottom: 1px solid var(--docs-line);
}

.docs-evidence-grid > div {
  padding: 1.15rem 1.2rem 1.15rem 0;
  border-right: 1px solid var(--docs-line);
}
.docs-evidence-grid > div + div { padding-left: 1.2rem; }
.docs-evidence-grid > div:last-child { border-right: 0; }
.docs-evidence-grid dt { color: var(--docs-muted); font-size: 0.85rem; }
.docs-evidence-grid dd { margin: 0.25rem 0 0; font-family: "Sora", sans-serif; font-size: 1.05rem; }

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.docs-card {
  display: block;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--docs-line);
  background: #fff;
  color: var(--docs-ink);
  text-decoration: none;
}
.docs-card:hover { border-color: #8eabda; background: var(--docs-panel); }
.docs-card h3 { margin: 0 0 0.35rem; font-size: 1.08rem; }
.docs-card p { margin: 0; color: var(--docs-muted); font-size: 0.96rem; line-height: 1.5; }

.docs-note, .docs-warning {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--docs-blue);
  background: #fff;
}
.docs-warning { border-left-color: var(--docs-amber); background: #fff9ef; }
.docs-note strong, .docs-warning strong { color: var(--docs-ink); }

.docs-table-wrap { overflow-x: auto; margin: 1.25rem 0 2rem; }
.docs-main table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.docs-main th, .docs-main td { padding: 0.72rem 0.75rem; border: 1px solid var(--docs-line); text-align: left; vertical-align: top; }
.docs-main th { background: var(--docs-panel); font-family: "Sora", sans-serif; font-size: 0.82rem; }
.docs-main td p { margin: 0; }

.docs-checklist { padding-left: 1.25rem; }
.docs-checklist li { margin: 0.45rem 0; }
.docs-checklist li::marker { color: var(--docs-blue); }

.docs-meta { color: var(--docs-muted); font-size: 0.78rem; }
.docs-status { color: var(--docs-green); font-size: 0.8rem; }

.docs-footer {
  border-top: 1px solid var(--docs-line);
  background: #fff;
}
.docs-footer-inner { max-width: 1320px; margin: 0 auto; padding: 1.6rem 2rem 2.5rem; color: var(--docs-muted); font-size: 0.92rem; }

.docs-mobile-nav { display: none; }

@media (max-width: 980px) {
  .docs-shell { grid-template-columns: 200px minmax(0, 1fr); gap: 2.5rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .docs-topbar-inner { align-items: flex-start; padding: 0.9rem 1rem; }
  .docs-top-links { justify-content: flex-end; gap: 0.65rem; font-size: 0.86rem; }
  .docs-shell { display: block; padding: 1.4rem 1rem 3.5rem; }
  .docs-sidebar { display: none; }
  .docs-mobile-nav { display: block; margin-bottom: 1.6rem; border: 1px solid var(--docs-line); background: #fff; }
  .docs-mobile-nav summary { padding: 0.75rem 0.9rem; cursor: pointer; font-family: "Sora", sans-serif; font-size: 0.9rem; font-weight: 600; }
  .docs-mobile-nav nav { display: grid; gap: 0.1rem; padding: 0.2rem 0.4rem 0.6rem; }
  .docs-mobile-nav a { padding: 0.4rem 0.5rem; }
  .docs-evidence-grid, .docs-card-grid { grid-template-columns: 1fr; }
  .docs-evidence-grid > div, .docs-evidence-grid > div + div { padding: 0.9rem 0; border-right: 0; border-bottom: 1px solid var(--docs-line); }
  .docs-evidence-grid > div:last-child { border-bottom: 0; }
  .docs-main h1 { font-size: 2.25rem; }
}

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

@media print {
  .docs-topbar, .docs-sidebar, .docs-mobile-nav, .docs-footer { display: none !important; }
  .docs-shell { display: block; max-width: none; padding: 0; }
  a { color: inherit; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
