:root {
  --docs-line: rgb(126 170 207 / 28%);
  --docs-muted: #9fb8cf;
  --docs-panel: #061b3a;
  --docs-panel-deep: #04182f;
}

.docs-page { background: #031226; }
.docs-main { overflow: visible; }
.docs-masthead {
  padding: 4.5rem max(2rem, calc((100vw - 76rem) / 2)) 3rem;
  border-bottom: 1px solid var(--docs-line);
  background:
    radial-gradient(circle at 82% 12%, rgb(23 140 255 / 19%), transparent 28rem),
    linear-gradient(145deg, #061b3a, #031226 72%);
}
.docs-breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.25rem; color: var(--docs-muted); font-size: .72rem; }
.docs-breadcrumbs a { color: var(--atrekes-cyan-accent); text-decoration: none; }
.docs-breadcrumbs span[aria-hidden="true"] { opacity: .55; }
.docs-masthead h1 { max-width: 15ch; margin-bottom: 1rem; color: #fff; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.docs-masthead .lede { max-width: 52rem; margin-bottom: 0; }
.docs-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.docs-meta span { padding: .35rem .55rem; border: 1px solid rgb(92 214 255 / 34%); border-radius: 999px; color: #d9eefc; font-size: .68rem; font-weight: 750; }

.docs-shell { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); width: min(80rem, 100%); margin: 0 auto; padding: 3rem 2rem 7rem; }
.docs-sidebar { align-self: start; position: sticky; top: 5.2rem; }
.docs-sidebar > span { display: block; margin-bottom: .7rem; color: var(--atrekes-cyan-accent); font-size: .64rem; font-weight: 850; letter-spacing: .11em; }
.docs-nav { display: grid; gap: .18rem; }
.docs-nav a { padding: .48rem .6rem; border-left: 2px solid transparent; border-radius: 0 .25rem .25rem 0; color: #a8c0d5; font-size: .78rem; font-weight: 650; line-height: 1.3; text-decoration: none; }
.docs-nav a:hover, .docs-nav a:focus-visible { color: #fff; background: rgb(36 209 245 / 8%); }
.docs-nav a[aria-current="page"] { border-left-color: var(--atrekes-cyan-accent); color: #fff; background: rgb(36 209 245 / 11%); }
.docs-sidebar-note { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--docs-line); color: #7795b0; font-size: .68rem; }

.docs-article { min-width: 0; max-width: 54rem; }
.docs-article section { scroll-margin-top: 6rem; padding: 0 0 3.2rem; }
.docs-article section + section { padding-top: 3.2rem; border-top: 1px solid var(--docs-line); }
.docs-article h2 { margin-bottom: 1rem; color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.docs-article h3 { margin: 2rem 0 .7rem; color: #eaf6ff; font-size: 1.25rem; letter-spacing: -.025em; }
.docs-article p, .docs-article li { color: #b8cee1; font-size: .94rem; }
.docs-article strong { color: #eef8ff; }
.docs-article a { color: var(--atrekes-cyan-accent); }
.docs-article code { padding: .08rem .28rem; border-radius: .2rem; color: #dcf7ff; background: #0b2949; font: .84em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.docs-article ul, .docs-article ol { display: grid; gap: .55rem; padding-left: 1.3rem; }
.docs-article li::marker { color: var(--atrekes-cyan-accent); }

.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.docs-card { padding: 1.25rem; border: 1px solid var(--docs-line); border-radius: .45rem; background: linear-gradient(150deg, rgb(13 41 72 / 82%), rgb(4 24 47 / 94%)); }
.docs-card > span { color: var(--atrekes-cyan-accent); font-size: .62rem; font-weight: 850; letter-spacing: .09em; }
.docs-card h2, .docs-card h3 { margin: 1.25rem 0 .65rem; font-size: 1.2rem; }
.docs-card p { margin-bottom: 0; color: #9fb8cf; font-size: .82rem; }
.docs-card a { display: inline-block; margin-top: 1rem; font-size: .78rem; font-weight: 800; text-decoration: none; }

.docs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 1.6rem 0 0; overflow: hidden; border: 1px solid var(--docs-line); border-radius: .45rem; background: var(--docs-line); }
.docs-facts div { min-height: 7.5rem; padding: 1.15rem; background: var(--docs-panel-deep); }
.docs-facts strong, .docs-facts span { display: block; }
.docs-facts strong { color: var(--atrekes-cyan-accent); font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.055em; line-height: 1; }
.docs-facts span { margin-top: .55rem; color: var(--docs-muted); font-size: .68rem; font-weight: 750; line-height: 1.35; }

.docs-table-wrap { margin: 1.25rem 0; overflow-x: auto; border: 1px solid var(--docs-line); border-radius: .45rem; }
.docs-table { width: 100%; min-width: 42rem; border-collapse: collapse; }
.docs-table th, .docs-table td { padding: .8rem .9rem; border-bottom: 1px solid var(--docs-line); vertical-align: top; text-align: left; }
.docs-table thead th { color: #8eabc4; background: #04182f; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.docs-table tbody th { color: #f1f9ff; background: rgb(6 27 58 / 62%); font-size: .8rem; }
.docs-table td { color: #b8cee1; font-size: .78rem; }
.docs-table tbody tr:last-child > * { border-bottom: 0; }
.docs-status { display: inline-flex; padding: .16rem .4rem; border-radius: 999px; font-size: .64rem; font-weight: 850; white-space: nowrap; }
.docs-status-yes { color: #042c22; background: #62e8bf; }
.docs-status-partial { color: #fff4d1; background: #8a6118; }
.docs-status-boundary { color: #d9eaff; background: #174875; }

.docs-callout { margin: 1.25rem 0; padding: 1rem 1.1rem; border-left: 3px solid var(--atrekes-cyan-accent); color: #bad0e2; background: rgb(36 209 245 / 7%); }
.docs-callout strong { display: block; margin-bottom: .35rem; color: #fff; }
.docs-callout p:last-child { margin-bottom: 0; }
.docs-callout-caution { border-left-color: #f1b74a; background: rgb(241 183 74 / 8%); }

.docs-code { padding: 1rem; overflow-x: auto; border: 1px solid var(--docs-line); border-radius: .4rem; color: #d9eefc; background: #020e1d; font: .76rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.docs-page-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: .75rem; margin-top: 1rem; }
.docs-page-links a { display: flex; min-width: 0; min-height: 4.5rem; flex-direction: column; justify-content: center; padding: .9rem 1rem; border: 1px solid var(--docs-line); border-radius: .4rem; color: #fff; background: var(--docs-panel); font-size: .82rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; }
.docs-page-links a span { display: block; margin-top: .3rem; color: #8fa9c0; font-size: .7rem; font-weight: 500; }
.docs-page-links a:hover { border-color: var(--atrekes-cyan-accent); }
.docs-page-links-wide { grid-template-columns: 1fr; }
.docs-source-note { color: #7896b0 !important; font-size: .72rem !important; }
.docs-footer { display: block; width: 100%; margin-top: 1rem; padding: 2rem 0 0; border-top: 1px solid var(--docs-line); color: inherit; background: transparent; }

.benchmark-flavor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.benchmark-flavor-grid .docs-card { display: flex; flex-direction: column; }
.benchmark-flavor-grid .docs-card a { margin-top: auto; padding-top: 1rem; }
.benchmark-chart { margin: 1.4rem 0; overflow: hidden; border: 1px solid var(--docs-line); border-radius: .45rem; background: linear-gradient(145deg, #061c39, #031326); }
.benchmark-chart svg { display: block; width: 100%; height: auto; min-width: 38rem; }
.benchmark-chart-legend { display: flex; flex-wrap: wrap; gap: .65rem 1rem; padding: .85rem 1rem 0; color: #b8cee1; font-size: .65rem; font-weight: 700; }
.benchmark-chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.benchmark-chart-legend i { width: .7rem; height: .18rem; border-radius: 999px; }
.benchmark-grid line { stroke: rgb(126 170 207 / 22%); stroke-width: 1; }
.benchmark-axis text { fill: #8eabc4; font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.benchmark-cdf-line { fill: none; stroke: var(--series); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.benchmark-rate-line { fill: none; stroke: var(--series); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.benchmark-rate-grid text { fill: #8eabc4; font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.benchmark-chart circle { fill: #04182f; stroke: var(--series); stroke-width: 3; }
.benchmark-controls { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.benchmark-control { padding: .5rem .7rem; border: 1px solid var(--docs-line); border-radius: 999px; color: #acd0e7; background: #051a35; font: 750 .7rem/1 inherit; cursor: pointer; }
.benchmark-control:hover, .benchmark-control:focus-visible { border-color: var(--atrekes-cyan-accent); color: #fff; }
.benchmark-control[aria-pressed="true"] { border-color: var(--atrekes-cyan-accent); color: #031226; background: var(--atrekes-cyan-accent); }
.benchmark-comparison-chart { overflow-x: auto; }
.benchmark-comparison-chart svg { min-width: 44rem; }
.benchmark-comparison-line { fill: none; stroke: var(--series); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.benchmark-comparison-chart .benchmark-series-miss .benchmark-comparison-line { stroke-dasharray: 9 7; }
.benchmark-anchor-label { fill: #eef8ff; paint-order: stroke; stroke: #031226; stroke-width: 4px; stroke-linejoin: round; font: 750 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.benchmark-chart-note { padding: .85rem 1rem 1rem; color: #8fa9c0; font-size: .68rem; }
.benchmark-evidence-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benchmark-source-grid { margin-top: 1.4rem; }
.benchmark-source-grid .docs-card { display: flex; flex-direction: column; }
.benchmark-source-grid .docs-card a { margin-top: auto; padding-top: 1rem; }
.capacity-bars { display: grid; gap: 1rem; margin: 1.4rem 0; }
.capacity-row { display: grid; grid-template-columns: minmax(9rem, 1.2fr) minmax(10rem, 3fr) minmax(9rem, 1fr); gap: 1rem; align-items: center; }
.capacity-row > div:first-child strong, .capacity-row > div:first-child span { display: block; }
.capacity-row > div:first-child strong { color: #edf8ff; font-size: .78rem; }
.capacity-row > div:first-child span, .capacity-row em { color: #86a4bd; font-size: .66rem; font-style: normal; }
.capacity-track { position: relative; height: .7rem; overflow: hidden; border-radius: 999px; background: #102c49; }
.capacity-target, .capacity-achieved { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.capacity-target { border-right: 2px solid #fff; background: rgb(255 255 255 / 10%); }
.capacity-achieved { height: .7rem; background: var(--atrekes-cyan-accent); }
.capacity-achieved.miss { background: #f1b74a; }
.capacity-achieved.context { background: #83a9ff; }
.archive-search { display: block; width: min(100%, 32rem); margin: .6rem 0 1rem; padding: .75rem 1rem; border: 1px solid var(--docs-line); border-radius: .3rem; background: #102c49; color: #edf8ff; font: inherit; }
.archive-search:focus-visible { outline: 2px solid var(--atrekes-cyan-accent); outline-offset: 2px; }
#archive-files th { overflow-wrap: anywhere; }
#archive-files tr[hidden] { display: none; }
.archive-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1rem 0; }
.archive-pages button { padding: .5rem .8rem; border: 1px solid var(--docs-line); border-radius: .3rem; background: #102c49; color: #edf8ff; font: inherit; cursor: pointer; }
.archive-pages button:disabled { opacity: .5; cursor: default; }
.archive-pages button:focus-visible { outline: 2px solid var(--atrekes-cyan-accent); outline-offset: 2px; }

@media (max-width: 62rem) {
  .docs-shell { grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; }
  .docs-grid { grid-template-columns: 1fr; }
  .benchmark-flavor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 46rem) {
  .docs-masthead { padding: 3.2rem 1.25rem 2.5rem; }
  .docs-shell { display: block; padding: 1.4rem 1.25rem 5rem; }
  .docs-sidebar { position: static; margin-bottom: 2.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--docs-line); }
  .docs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-nav a { padding: .5rem; border: 1px solid var(--docs-line); border-radius: .25rem; }
  .docs-nav a[aria-current="page"] { border-color: var(--atrekes-cyan-accent); }
  .docs-sidebar-note { display: none; }
  .docs-facts { grid-template-columns: 1fr; }
  .docs-facts div { min-height: 0; }
  .docs-page-links { grid-template-columns: 1fr; }
  .benchmark-flavor-grid { grid-template-columns: 1fr; }
  .benchmark-evidence-grid { grid-template-columns: 1fr; }
  .benchmark-chart { overflow-x: auto; }
  .capacity-row { grid-template-columns: 1fr; gap: .35rem; }
}
