/* ==========================================================================
   Aerobic Model: design 03 ("data dashboard") as a Zensical theme override.
   Dark only. Templates live in overrides/; classes of this theme start with
   `as-`. Stock Zensical components (search, admonitions, TOC, code) are
   themed through their CSS variables plus a few targeted rules.
   ========================================================================== */

/* ---------- 1. tokens ---------- */
:root {
  --as-bg: #07090D;
  --as-panel: #0F141B;
  --as-panel-2: #131A23;
  --as-line: #1E2733;
  --as-line-2: #2A3646;
  --as-text: #E6EDF3;
  --as-body: #CDD6E0;
  --as-muted: #9AA8B6;
  --as-faint: #5B6878;              /* decoration only, never text */
  --as-teal: #2DD4BF;
  --as-teal-dim: rgba(45, 212, 191, .14);
  --as-amber: #F59E0B;
  --as-amber-dim: rgba(245, 158, 11, .14);
  --as-red: #F43F5E;
  --as-blue: #60A5FA;
  --as-blue-dim: rgba(96, 165, 250, .14);
  --as-radius: 14px;
  --as-radius-sm: 8px;
  --as-f-head: "Space Grotesk", system-ui, sans-serif;
  --as-f-body: "Inter", system-ui, sans-serif;
  --as-f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --as-wrap: 1280px;
  --as-gutter: 40px;
  --as-header: 64px;
}

/* Zensical / Material variables, so stock components match */
[data-md-color-scheme="slate"] {
  --md-hue: 215;
  --md-default-bg-color: #07090D;
  --md-default-bg-color--light: rgba(7, 9, 13, .54);
  --md-default-bg-color--lighter: rgba(7, 9, 13, .26);
  --md-default-bg-color--lightest: rgba(7, 9, 13, .07);
  --md-default-fg-color: #E6EDF3;
  --md-default-fg-color--light: #9AA8B6;
  --md-default-fg-color--lighter: #5B6878;
  --md-default-fg-color--lightest: rgba(154, 168, 182, .16);
  --md-primary-fg-color: #2DD4BF;
  --md-primary-fg-color--light: #5EEAD4;
  --md-primary-fg-color--dark: #14B8A6;
  --md-primary-bg-color: #04201C;
  --md-primary-bg-color--light: rgba(4, 32, 28, .7);
  --md-accent-fg-color: #5EEAD4;
  --md-accent-fg-color--transparent: rgba(45, 212, 191, .1);
  --md-accent-bg-color: #04201C;
  --md-typeset-color: #CDD6E0;
  --md-typeset-a-color: #2DD4BF;
  --md-typeset-mark-color: rgba(245, 158, 11, .3);
  --md-typeset-table-color: #1E2733;
  --md-typeset-table-color--light: rgba(45, 212, 191, .04);
  --md-typeset-kbd-color: #131A23;
  --md-typeset-kbd-accent-color: #2A3646;
  --md-typeset-kbd-border-color: #1E2733;
  --md-code-fg-color: #CDD6E0;
  --md-code-bg-color: #0B1016;
  --md-code-bg-color--light: rgba(11, 16, 22, .9);
  --md-code-bg-color--lighter: rgba(11, 16, 22, .54);
  --md-code-hl-color: rgba(45, 212, 191, .5);
  --md-code-hl-color--light: rgba(45, 212, 191, .08);
  --md-code-hl-number-color: #F59E0B;
  --md-code-hl-special-color: #F472B6;
  --md-code-hl-function-color: #60A5FA;
  --md-code-hl-constant-color: #A78BFA;
  --md-code-hl-keyword-color: #2DD4BF;
  --md-code-hl-string-color: #A3E635;
  --md-code-hl-comment-color: #7F8C9B;
  --md-admonition-fg-color: #CDD6E0;
  --md-admonition-bg-color: #0F141B;
  --md-footer-bg-color: #0A0D12;
  --md-footer-bg-color--dark: #07090D;
  --md-shadow-z1: 0 0 0 1px #1E2733;
  --md-shadow-z2: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 1px #1E2733;
  --md-shadow-z3: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px #2A3646;
  /* modern search dialog */
  --color-foreground: 230 237 243;
  --color-background: 15 20 27;
  --color-background-subtle: 19 26 35;
  --color-backdrop: 7 9 13;
}

/* ---------- 2. base ---------- */
html { font-size: 125%; }
@media screen and (min-width: 100em) { html { font-size: 125%; } }

body {
  background-color: var(--as-bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 78% -120px, rgba(45, 212, 191, .10), transparent 70%),
    radial-gradient(ellipse 700px 400px at 0% 40%, rgba(245, 158, 11, .035), transparent 70%),
    linear-gradient(rgba(30, 39, 51, .38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 39, 51, .38) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  color: var(--as-text);
  -webkit-font-smoothing: antialiased;
}
.md-container, .md-main { background: transparent; }
::selection { background: rgba(45, 212, 191, .3); color: #fff; }

.as-wrap { max-width: var(--as-wrap); margin: 0 auto; padding: 0 var(--as-gutter); }
.mono { font-family: var(--as-f-mono); }

/* ---------- 3. atoms ---------- */
.as-panel {
  background: var(--as-panel);
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius);
}
.as-phead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--as-line);
}
.as-ptitle { font: 600 14px/1.2 var(--as-f-head); letter-spacing: .01em; color: var(--as-text); }
.as-plabel {
  font: 500 11px/1.35 var(--as-f-mono); color: var(--as-muted);
  letter-spacing: .06em; text-transform: uppercase;
}
.as-plabel--accent { color: var(--as-teal); }

.as-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 11px/1 var(--as-f-body); letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; white-space: nowrap; text-decoration: none;
  position: relative; z-index: 2;
}
.as-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.as-pill--teal  { color: var(--as-teal);  background: var(--as-teal-dim); }
.as-pill--amber { color: var(--as-amber); background: var(--as-amber-dim); }
.as-pill--blue  { color: var(--as-blue);  background: var(--as-blue-dim); }
.as-pill--blue i { border-radius: 2px; }
a.as-pill:hover { filter: brightness(1.15); }

.as-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--as-muted); }
.as-meta .mono { font-size: 12.5px; }
.as-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--as-faint); flex: none; }

.as-review {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 10.5px/1 var(--as-f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--as-amber); background: rgba(7, 9, 13, .82);
  border: 1px solid rgba(245, 158, 11, .55); border-radius: 6px; padding: 5px 7px;
}
.as-review::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--as-amber); }

.as-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 10px; font: 600 15px/1 var(--as-f-body); text-decoration: none; transition: filter .15s, border-color .15s;
}
.as-btn svg { width: 16px; height: 16px; }
.as-btn--primary { background: var(--as-teal); color: #04201C; }
.as-btn--primary:hover { filter: brightness(1.08); color: #04201C; }
.as-btn--ghost { border: 1px solid var(--as-line-2); color: var(--as-text); background: rgba(15, 20, 27, .7); }
.as-btn--ghost:hover { border-color: var(--as-muted); color: var(--as-text); }

.as-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.as-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 1px solid var(--as-line); background: var(--as-panel); border-radius: 9px;
  font: 400 14px/1 var(--as-f-body); color: var(--as-body); cursor: pointer; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.as-chip:hover { border-color: var(--as-line-2); color: var(--as-text); }
.as-chip .mono { font-size: 12px; color: var(--as-muted); }
.as-chip.on { border-color: rgba(45, 212, 191, .55); background: var(--as-teal-dim); color: var(--as-text); }
.as-chip.on .mono { color: var(--as-teal); }
.as-chip i { width: 7px; height: 7px; border-radius: 50%; }
.as-chip--teal i { background: var(--as-teal); }
.as-chip--amber i { background: var(--as-amber); }
.as-chip--blue i { background: var(--as-blue); border-radius: 2px; }
.as-chip--amber.on { border-color: rgba(245, 158, 11, .55); background: var(--as-amber-dim); }
.as-chip--blue.on { border-color: rgba(96, 165, 250, .55); background: var(--as-blue-dim); }

.as-evidence { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.as-ev {
  display: inline-flex; align-items: center; gap: 5px; margin: 0;
  font: 500 11.5px/1.2 var(--as-f-body); color: var(--as-muted);
  padding: 4px 8px 4px 6px; border: 1px solid var(--as-line); border-radius: 6px; background: rgba(19, 26, 35, .6);
}
.as-ev svg { width: 13px; height: 13px; flex: none; color: var(--as-teal); }
.as-ev--ai svg { color: var(--as-amber); }

.as-link { color: var(--as-teal); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.as-link:hover { color: #5EEAD4; }
.as-lead { font-size: 19px; line-height: 1.6; color: var(--as-body); max-width: 34em; margin: 0; }

/* ---------- 4. header ---------- */
.md-header.as-top {
  position: sticky; top: 0; z-index: 6; height: auto;
  background: rgba(7, 9, 13, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--as-line);
  box-shadow: none; color: var(--as-text);
}
.as-top__inner { display: flex; align-items: center; gap: 32px; height: var(--as-header); }
.as-brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  font: 600 19px/1 var(--as-f-head); letter-spacing: -.01em; color: var(--as-text); white-space: nowrap; text-decoration: none;
}
.as-brand:hover { color: var(--as-text); }
.as-glyph { width: 28px; height: 28px; flex: none; }
.as-nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.as-nav a {
  font: 400 14px/1 var(--as-f-body); color: var(--as-muted); padding: 9px 11px; border-radius: 8px;
  white-space: nowrap; text-decoration: none; transition: color .15s, background-color .15s;
}
.as-nav a:hover { color: var(--as-text); background: var(--as-panel); }
.as-nav a.on { color: var(--as-text); background: var(--as-panel); box-shadow: inset 0 -2px 0 var(--as-teal); }
.as-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.as-iconbtn {
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--as-line); border-radius: 9px; background: var(--as-panel); color: var(--as-muted);
}
.as-iconbtn svg { width: 18px; height: 18px; }
.as-iconbtn:hover { color: var(--as-text); border-color: var(--as-line-2); }
.as-menu { display: none; }

/* search button (stock component, restyled) */
.as-top .md-search { position: static; display: block; padding: 0; }
.as-top .md-search__button {
  display: flex; align-items: center; width: 210px; height: 36px; padding: 0 44px 0 36px;
  border: 1px solid var(--as-line); border-radius: 9px; background: var(--as-panel);
  color: var(--as-muted); font: 400 13px/1 var(--as-f-body); text-align: left; transition: border-color .15s, color .15s;
}
.as-top .md-search__button:hover, .as-top .md-search__button:focus { background: var(--as-panel); color: var(--as-text); border-color: var(--as-line-2); }
.as-top .md-search__button::before { top: 50%; left: 11px; width: 16px; height: 16px; transform: translateY(-50%); background-color: var(--as-muted); }
.as-top .md-search__button::after {
  top: 50%; right: 8px; transform: translateY(-50%); padding: 3px 6px;
  font: 500 11px/1 var(--as-f-mono); color: var(--as-muted);
  background: transparent; border: 1px solid var(--as-line-2); border-radius: 4px;
}

/* ---------- 5. layout ---------- */
.md-main__inner.md-grid { max-width: var(--as-wrap); padding: 0 var(--as-gutter); margin-top: 0; }
.md-content { min-width: 0; }

/* right column (TOC, key numbers) */
.md-sidebar--secondary.as-side { width: 330px; padding: 36px 0 24px; margin-left: 64px; order: 2; top: var(--as-header); }
.as-side .md-sidebar__scrollwrap { margin: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--as-line-2) transparent; }
.as-side .md-sidebar__inner { display: flex; flex-direction: column; gap: 16px; padding: 0 1px 1px 0; }
.as-side .md-sidebar-button__wrapper { display: none; }

/* stock page (About, How we write, Start, 404) */
.md-content > .md-content__inner.md-typeset { margin: 0; padding: 48px 0 24px; max-width: 760px; font-size: 17px; line-height: 1.7; }
.md-content > .md-content__inner.md-typeset::before { display: none; }

/* ---------- 6. home ---------- */
.as-home { padding-bottom: 8px; }
.as-hero { padding: 64px 0 0; }
.as-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; align-items: center; }
.as-status {
  display: inline-flex; align-items: center; gap: 0; padding: 7px 13px 7px 11px;
  border: 1px solid var(--as-line); border-radius: 999px; background: rgba(15, 20, 27, .8);
  font: 500 12px/1 var(--as-f-mono); color: var(--as-muted); white-space: nowrap;
}
.as-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--as-teal); box-shadow: 0 0 0 4px var(--as-teal-dim); margin-right: 10px; }
.as-status b { color: var(--as-text); font-weight: 500; }
.as-h1 { font: 700 62px/1.02 var(--as-f-head); letter-spacing: -.035em; margin: 22px 0 20px; color: var(--as-text); }
.as-h1 em { font-style: normal; color: var(--as-teal); }
.as-hero .as-lead { margin: 0 0 30px; }
.as-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* featured article (right hero panel) */
.as-feature { overflow: hidden; display: flex; flex-direction: column; }
.as-feature .as-phead { padding: 12px 18px; }
.as-feature__media { position: relative; display: block; padding: 12px 12px 0; }
.as-feature__media img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--as-line); filter: brightness(.96); }
.as-feature__media .as-review { position: absolute; top: 24px; left: 24px; }
.as-feature__body { padding: 18px 22px 20px; display: flex; flex-direction: column; }
.as-tagrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.as-tagrow__sports { font-size: 13px; color: var(--as-muted); }
.as-feature__title { font: 600 25px/1.2 var(--as-f-head); letter-spacing: -.02em; margin: 14px 0 10px; }
.as-feature__title a { color: var(--as-text); text-decoration: none; }
.as-feature__title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--as-teal); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.as-feature__sub {
  color: var(--as-body); font-size: 15px; line-height: 1.6; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.as-readout {
  display: flex; align-items: baseline; gap: 14px; padding: 12px 16px;
  border: 1px solid var(--as-line); border-radius: 10px; background: var(--as-panel-2);
}
.as-readout b { font: 500 28px/1 var(--as-f-mono); letter-spacing: -.03em; color: var(--as-text); }
.as-readout span { font-size: 13.5px; color: var(--as-muted); }
.as-feature__foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* number strip */
.as-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.as-kpis { display: grid; grid-template-columns: repeat(var(--as-kpis, 6), minmax(0, 1fr)); margin-top: 48px; overflow: hidden; }
.as-kpi { position: relative; display: flex; flex-direction: column; padding: 20px 20px 18px; color: inherit; text-decoration: none; transition: background-color .15s; }
.as-kpi + .as-kpi { border-left: 1px solid var(--as-line); }
.as-kpi:hover { background: var(--as-panel-2); color: inherit; }
.as-kpi::after { content: ""; position: absolute; left: 20px; top: 0; width: 28px; height: 2px; background: var(--as-teal); }
.as-kpi--art::after { background: var(--as-amber); }
.as-kpi .as-plabel {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em; margin-bottom: 10px;
}
.as-kpi b { display: block; font: 500 34px/1 var(--as-f-mono); letter-spacing: -.04em; color: var(--as-text); white-space: nowrap; }
.as-kpi p {
  margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--as-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.as-kpi__ref { color: var(--as-teal); font-family: var(--as-f-mono); }

/* sections */
.as-section { padding: 64px 0 0; }
.as-shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.as-shead h2 { font: 600 26px/1.1 var(--as-f-head); letter-spacing: -.02em; margin: 6px 0 0; color: var(--as-text); }
.as-shead > a { font-size: 14px; color: var(--as-muted); text-decoration: none; }
.as-shead > a:hover { color: var(--as-teal); }
.as-filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.as-empty { color: var(--as-muted); font-size: 15px; margin: 8px 0 0; }
.as-empty a { color: var(--as-teal); }

/* pillars */
.as-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.as-pillar { padding: 24px; display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; transition: border-color .15s; }
.as-pillar:hover { border-color: var(--as-line-2); color: inherit; }
.as-pillar__ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--as-line-2); background: var(--as-panel-2); }
.as-pillar__ico svg { width: 22px; height: 22px; }
.as-pillar h3 { font: 600 21px/1.2 var(--as-f-head); margin: 0; color: var(--as-text); }
.as-pillar p { margin: 0; color: var(--as-body); font-size: 15px; line-height: 1.55; }
.as-pillar__cnt { display: flex; justify-content: space-between; margin-top: auto; padding-top: 6px; font: 500 12px/1 var(--as-f-mono); color: var(--as-muted); }
.as-pillar__bar { height: 4px; border-radius: 2px; background: var(--as-line); overflow: hidden; }
.as-pillar__bar i { display: block; height: 100%; border-radius: 2px; background: currentColor; }
.as-pillar--teal  .as-pillar__ico, .as-pillar--teal  .as-pillar__bar { color: var(--as-teal); }
.as-pillar--amber .as-pillar__ico, .as-pillar--amber .as-pillar__bar { color: var(--as-amber); }
.as-pillar--blue  .as-pillar__ico, .as-pillar--blue  .as-pillar__bar { color: var(--as-blue); }
.as-pillar:hover .as-pillar__cnt span:last-child { color: var(--as-teal); }

/* ---------- 7. cards ---------- */
.as-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.as-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s; }
.as-card:hover { border-color: var(--as-line-2); }
.as-card[hidden] { display: none; }
.as-card__cover { position: relative; border-bottom: 1px solid var(--as-line); background: var(--as-panel-2); }
.as-card__cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: brightness(.95); transition: filter .2s; }
.as-card:hover .as-card__cover img { filter: none; }
.as-id {
  position: absolute; top: 10px; right: 10px;
  font: 500 11px/1 var(--as-f-mono); color: var(--as-text);
  background: rgba(7, 9, 13, .78); border: 1px solid var(--as-line-2); padding: 5px 7px; border-radius: 6px;
}
.as-card__cover .as-review { position: absolute; top: 10px; left: 10px; }
.as-card__in { padding: 16px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.as-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.as-card__sports { font-size: 12.5px; color: var(--as-muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-card__title { font: 600 18px/1.32 var(--as-f-head); letter-spacing: -.01em; margin: 12px 0 16px; }
.as-card__title a { color: var(--as-text); text-decoration: none; }
.as-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.as-card:hover .as-card__title a { color: #fff; }
.as-card__title a:focus-visible { outline: none; }
.as-card:has(.as-card__title a:focus-visible) { outline: 2px solid var(--as-teal); outline-offset: 2px; }
.as-signal {
  display: flex; align-items: baseline; gap: 12px; padding: 11px 0;
  border-top: 1px dashed var(--as-line-2); border-bottom: 1px dashed var(--as-line-2);
}
.as-signal b { font: 500 22px/1 var(--as-f-mono); letter-spacing: -.02em; color: var(--as-text); white-space: nowrap; }
.as-signal span { font-size: 12.5px; line-height: 1.35; color: var(--as-muted); }
.as-card__foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.as-card .as-meta { font-size: 12.5px; }

/* ---------- 8. blog index and categories ---------- */
.as-blog { padding: 48px 0 8px; }
.as-blog__head { margin-bottom: 28px; }
.as-blog__intro.md-typeset { font-size: 17px; }
.as-blog__intro.md-typeset h1 { font: 700 48px/1.05 var(--as-f-head); letter-spacing: -.03em; margin: 10px 0 12px; color: var(--as-text); }
.as-blog__intro.md-typeset h1 .headerlink { display: none; }
.as-blog__intro.md-typeset > p { color: var(--as-body); max-width: 40em; }
.as-blog__head .as-lead { margin-bottom: 6px; }
.as-blog__head .as-chips { margin-top: 24px; }

.md-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 0; font: 500 13px/1 var(--as-f-mono); }
.md-pagination > * { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; }
.md-pagination__link { border: 1px solid var(--as-line); background: var(--as-panel); color: var(--as-body); }
.md-pagination__link:hover { border-color: var(--as-line-2); color: var(--as-text); }
.md-pagination__link svg { width: 16px; height: 16px; fill: currentColor; }
.md-pagination__current { border: 1px solid rgba(45, 212, 191, .55); background: var(--as-teal-dim); color: var(--as-text); }

/* ---------- 9. article page ---------- */
.as-post > .md-content__inner { margin: 0; padding: 36px 0 0; }
.as-post > .md-content__inner::before { display: none; }
.as-post-head { max-width: 760px; }
.as-post-head .as-tagrow .as-plabel { color: var(--as-muted); }
.as-post-head h1 { font: 700 48px/1.08 var(--as-f-head); letter-spacing: -.03em; margin: 18px 0 16px; color: var(--as-text); max-width: 18em; }
.as-subtitle { font: italic 400 20px/1.55 var(--as-f-body); color: var(--as-body); margin: 0 0 22px; max-width: 38em; }
.as-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.as-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid var(--as-line); border-radius: 7px; background: var(--as-panel);
  font-size: 13px; color: var(--as-body);
}
.as-tag.mono { font-size: 12.5px; }
.as-tag--review { color: var(--as-amber); border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .08); font: 600 11px/1 var(--as-f-mono); letter-spacing: .06em; text-transform: uppercase; }
.as-tag--review::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--as-amber); }
.as-post-head .as-evidence { margin-top: 10px; }
.as-post-head .as-ev { font-size: 12px; padding: 5px 9px 5px 7px; }
.as-kn-inline { display: none; }
.as-post .as-author { margin: 48px 0 8px; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.as-post .as-author .as-ig { grid-column: 2; justify-self: start; }

/* ---------- 10. typeset (article body and pages) ---------- */
.md-typeset { color: var(--as-body); }
.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4, .md-typeset h5, .md-typeset h6 { font-family: var(--as-f-head); color: var(--as-text); letter-spacing: -.02em; }
.md-typeset h1 { font-weight: 700; font-size: 2.6em; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 .6em; }
.md-typeset h2 { font-weight: 600; font-size: 1.62em; line-height: 1.2; margin: 2.1em 0 .75em; }
.md-typeset h3 { font-weight: 600; font-size: 1.22em; line-height: 1.3; margin: 1.8em 0 .6em; }
.md-typeset h4 { font-weight: 600; font-size: 1.05em; margin: 1.6em 0 .5em; }
.md-typeset [id] { scroll-margin-top: calc(var(--as-header) + 24px); }
.md-typeset .headerlink { color: var(--as-faint); text-decoration: none; margin-left: .35em; }
.md-typeset .headerlink:hover, .md-typeset [id]:target .headerlink { color: var(--as-teal); }
.md-typeset a { color: var(--as-teal); text-decoration: underline; text-decoration-color: rgba(45, 212, 191, .35); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.md-typeset a:hover, .md-typeset a:focus { color: #5EEAD4; text-decoration-color: currentColor; }
.md-typeset strong { color: var(--as-text); font-weight: 600; }
.md-typeset ul li::marker { color: var(--as-teal); }
.md-typeset ol li::marker { color: var(--as-teal); font-family: var(--as-f-mono); font-size: .9em; }
.md-typeset hr { border-bottom: 1px solid var(--as-line); margin: 2.2em 0 1.6em; }
.md-typeset :not(pre) > code {
  font: 500 .84em var(--as-f-mono); color: var(--as-amber); background: var(--as-amber-dim);
  padding: .12em .4em; border-radius: 4px; word-break: break-word; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.md-typeset a > code { color: inherit; }
.md-typeset pre > code { font-family: var(--as-f-mono); font-size: .8em; line-height: 1.6; padding: 1em 1.2em; border-radius: 10px; }
.md-typeset .highlight, .md-typeset pre { border-radius: 10px; }
.md-typeset pre { border: 1px solid var(--as-line); }
.md-typeset .md-code__content, .md-typeset pre > code { background: var(--md-code-bg-color); }
[dir] .md-typeset blockquote {
  margin: 1.6em 0; padding: .7em 1.1em; border-left: 3px solid var(--as-teal);
  background: rgba(45, 212, 191, .05); border-radius: 0 10px 10px 0; color: var(--as-body);
}
.md-typeset blockquote > :first-child { margin-top: 0; }
.md-typeset blockquote > :last-child { margin-bottom: 0; }
.md-typeset table:not([class]) {
  font-size: .82em; border: 1px solid var(--as-line); border-radius: 10px; background: var(--as-panel); box-shadow: none;
}
.md-typeset table:not([class]) th { background: var(--as-panel-2); color: var(--as-text); font: 600 .9em/1.3 var(--as-f-body); border-bottom: 1px solid var(--as-line-2); }
.md-typeset table:not([class]) td { border-top: 1px solid var(--as-line); }
.md-typeset table:not([class]) td, .md-typeset table:not([class]) th { padding: .75em 1em; }
.md-typeset table:not([class]) tbody tr:hover { background: rgba(45, 212, 191, .04); box-shadow: none; }
.md-typeset kbd { font-family: var(--as-f-mono); }
.md-typeset mark { color: var(--as-text); }

/* images: framed panel, the italic line right after an image is its caption */
.md-typeset p:has(> img) {
  margin: 2em 0 1.9em; padding: 12px;
  background: var(--as-panel); border: 1px solid var(--as-line); border-radius: var(--as-radius);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
}
.md-typeset p:has(> img) > img { display: block; width: 100%; height: auto; border-radius: 9px; filter: brightness(.93) contrast(1.02); }
.md-typeset p:has(> img) > em {
  display: block; padding: 12px 6px 2px;
  font: italic 400 14px/1.55 var(--as-f-body); color: var(--as-muted);
}
.md-typeset p:has(> img) > em code { font-style: normal; font-size: .9em; }
.md-typeset p:has(> img:only-child) + p > em:only-child { display: block; margin-top: -1.4em; padding: 0 18px; font-size: 14px; color: var(--as-muted); }

/* article prose */
.as-prose.md-typeset { font-size: 18px; line-height: 1.75; margin-top: 30px; counter-reset: as-sec; }
.as-prose > * { max-width: 700px; }
.as-prose > p:has(> img), .as-prose > .highlight, .as-prose > pre, .as-prose > .md-typeset__scrollwrap, .as-prose > table { max-width: none; }
.as-prose p { margin: 0 0 1.2em; }
.as-prose h2 { counter-increment: as-sec; font-size: 30px; }
.as-prose h2::before { content: "§" counter(as-sec, decimal-leading-zero); display: inline-block; margin-right: 14px; font: 500 13px/1 var(--as-f-mono); color: var(--as-teal); letter-spacing: 0; }
.as-prose h2 .headerlink { font-size: .7em; }
.as-prose h3 { font-size: 22px; }
.as-prose li { margin-bottom: .45em; }
.as-prose > hr ~ p { font-size: 15px; line-height: 1.65; color: var(--as-muted); margin-bottom: .8em; }
.as-prose > hr ~ p a { word-break: break-word; }

/* sources list */
.as-prose :is(h2#sources, h2#references) + :is(ul, ol),
.as-prose :is(h2#sources, h2#references) + p + :is(ul, ol) {
  list-style: none; margin: 1em 0 1.6em; padding: 6px 0; counter-reset: as-src;
  background: var(--as-panel); border: 1px solid var(--as-line); border-radius: var(--as-radius);
}
.as-prose :is(h2#sources, h2#references) + :is(ul, ol) > li,
.as-prose :is(h2#sources, h2#references) + p + :is(ul, ol) > li {
  counter-increment: as-src; position: relative;
  margin: 0; padding: 11px 20px 11px 62px; font-size: 15px; line-height: 1.55; color: var(--as-body);
}
.as-prose :is(h2#sources, h2#references) + :is(ul, ol) > li + li,
.as-prose :is(h2#sources, h2#references) + p + :is(ul, ol) > li + li { border-top: 1px solid var(--as-line); }
.as-prose :is(h2#sources, h2#references) + :is(ul, ol) > li::before,
.as-prose :is(h2#sources, h2#references) + p + :is(ul, ol) > li::before {
  content: "[" counter(as-src) "]"; position: absolute; left: 18px; top: 11px;
  font: 500 13px/1.75 var(--as-f-mono); color: var(--as-teal);
}
.as-prose :is(h2#sources, h2#references) + p { font-size: 15px; color: var(--as-muted); margin-bottom: .6em; }

/* admonitions: "Status: review" (note) and "Author input needed" (warning) stay amber and loud */
.md-typeset .admonition, .md-typeset details {
  font-size: 15px; line-height: 1.6; padding: 0 18px; margin: 1.6em 0;
  background: var(--as-panel); border: 1px solid var(--as-line-2); border-left-width: 3px; border-radius: 10px; box-shadow: none;
}
.md-typeset .admonition-title, .md-typeset summary {
  margin: 12px 0 .6em; padding-left: 26px; background: none; border: 0;
  font: 600 12px/1.4 var(--as-f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--as-text);
}
.md-typeset .admonition-title::before, .md-typeset summary::before { left: 0; top: .5px; width: 17px; height: 17px; }
.md-typeset .admonition > :last-child, .md-typeset details > :last-child { margin-bottom: 14px; }
.md-typeset :is(.admonition, details):is(.note, .warning, .attention, .caution) {
  background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .45); border-left-color: var(--as-amber);
}
.md-typeset :is(.note, .warning, .attention, .caution) > :is(.admonition-title, summary) { color: var(--as-amber); }
.md-typeset :is(.note, .warning, .attention, .caution) > :is(.admonition-title, summary)::before { background-color: var(--as-amber); }
.md-typeset .warning { box-shadow: 0 0 0 3px rgba(245, 158, 11, .08); }
.md-typeset :is(.admonition, details):is(.tip, .hint, .important, .success, .check, .done, .info, .todo, .abstract, .summary, .tldr, .question, .help, .faq, .example) {
  border-left-color: var(--as-teal);
}
.md-typeset :is(.tip, .hint, .important, .success, .check, .done, .info, .todo, .abstract, .summary, .tldr, .question, .help, .faq, .example) > :is(.admonition-title, summary) { color: var(--as-teal); }
.md-typeset :is(.tip, .hint, .important, .success, .check, .done, .info, .todo, .abstract, .summary, .tldr, .question, .help, .faq, .example) > :is(.admonition-title, summary)::before { background-color: var(--as-teal); }
.md-typeset :is(.admonition, details):is(.danger, .error, .failure, .fail, .missing, .bug) { background: rgba(244, 63, 94, .07); border-color: rgba(244, 63, 94, .4); border-left-color: var(--as-red); }
.md-typeset :is(.danger, .error, .failure, .fail, .missing, .bug) > :is(.admonition-title, summary) { color: #FF8FA3; }
.md-typeset :is(.danger, .error, .failure, .fail, .missing, .bug) > :is(.admonition-title, summary)::before { background-color: var(--as-red); }

/* footnotes */
.md-typeset .footnote { font-size: 14px; color: var(--as-muted); }
.md-typeset .footnote-ref { font-family: var(--as-f-mono); }

/* ---------- 11. side panels ---------- */
.as-kn { overflow: hidden; }
.as-kn__list { margin: 0; padding: 4px 0; }
.as-kn__r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 18px; }
.as-kn__r + .as-kn__r { border-top: 1px solid var(--as-line); }
.as-kn dt { font-size: 13.5px; color: var(--as-muted); }
.as-kn dd { margin: 0; font: 500 17px/1 var(--as-f-mono); color: var(--as-text); white-space: nowrap; }
.as-kn__one { padding: 18px 18px 20px; }
.as-kn__one b { display: block; font: 500 40px/1 var(--as-f-mono); letter-spacing: -.04em; color: var(--as-text); }
.as-kn__one span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--as-muted); }

.as-toc.md-nav--secondary { margin: 0; overflow: hidden; }
.as-toc .md-nav__list { list-style: none; margin: 0; padding: 8px 0; counter-reset: as-toc; }
.as-toc .md-nav__item { padding: 0; margin: 0; }
.as-toc > .md-nav__list > .md-nav__item { counter-increment: as-toc; }
.as-toc .md-nav__link {
  display: flex; gap: 10px; align-items: baseline; margin: 0; padding: 7px 18px;
  font: 400 13.5px/1.4 var(--as-f-body); color: var(--as-muted);
  border-left: 2px solid transparent; text-decoration: none; transition: color .15s, background-color .15s;
}
.as-toc > .md-nav__list > .md-nav__item > .md-nav__link::before {
  content: counter(as-toc, decimal-leading-zero); flex: none;
  font: 500 11.5px/1.4 var(--as-f-mono); color: #7F8C9B;
}
.as-toc .md-nav__link .md-ellipsis { white-space: normal; overflow: visible; }
.as-toc .md-nav__link:hover, .as-toc .md-nav__link:focus { color: var(--as-text); background: rgba(255, 255, 255, .02); }
.as-toc .md-nav__link--passed { color: var(--as-muted); }
.as-toc .md-nav__link--active, .as-toc .md-nav__item .md-nav__link--active {
  color: var(--as-text); font-weight: 400; border-left-color: var(--as-teal); background: rgba(45, 212, 191, .06);
}
.as-toc .md-nav__link--active::before { color: var(--as-teal) !important; }
.as-toc .md-nav .md-nav { margin: 0; }
.as-toc .md-nav .md-nav__list { padding: 0; }
.as-toc .md-nav .md-nav .md-nav__link { padding: 5px 18px 5px 48px; font-size: 12.5px; }
.as-toc .md-nav__link code { font-size: .9em; color: inherit; background: none; padding: 0; }
.as-progress { padding: 12px 18px 16px; border-top: 1px solid var(--as-line); }
.as-progress__track { height: 4px; border-radius: 2px; background: var(--as-line); overflow: hidden; }
.as-progress__track i { display: block; width: 0; height: 100%; background: var(--as-teal); transition: width .1s linear; }
.as-progress__row { display: flex; justify-content: space-between; margin-top: 8px; font: 500 11.5px/1 var(--as-f-mono); color: var(--as-muted); }

/* ---------- 12. author box ---------- */
.as-author { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 28px; position: relative; overflow: hidden; }
.as-author::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--as-teal), var(--as-amber)); }
.as-author__mark { width: 92px; height: 92px; border-radius: 18px; border: 1px solid var(--as-line-2); background: #0A0E14; display: block; position: relative; overflow: hidden; }
.as-author__mark img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 124px; max-width: none; height: auto; }   /* the mark's drawing sits in the middle of a 2:1 canvas */
.as-author .as-plabel { display: block; margin-bottom: 8px; }
.as-author h3 { margin: 0; font: 600 24px/1.1 var(--as-f-head); color: var(--as-text); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; letter-spacing: -.01em; }
.as-author h3 .mono { font-size: 14px; font-weight: 500; color: var(--as-teal); letter-spacing: 0; }
.as-author p { margin: 8px 0 0; color: var(--as-body); font-size: 15.5px; line-height: 1.55; }
.as-ig {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 11px;
  background: var(--as-text); color: #0B0F15; font: 600 14.5px/1 var(--as-f-body); white-space: nowrap; text-decoration: none;
  transition: background-color .15s;
}
.as-ig:hover { background: #fff; color: #0B0F15; }
.as-ig svg { width: 20px; height: 20px; flex: none; }

/* ---------- 13. footer ---------- */
.md-footer.as-footer { margin-top: 72px; border-top: 1px solid var(--as-line); background: rgba(10, 13, 18, .92); color: var(--as-body); }
.as-footer__cols { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 40px; padding: 40px 0 28px; }
.as-footer h4 { margin: 0 0 12px; font: 500 11px/1 var(--as-f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--as-muted); }
.as-footer p { margin: 0; color: var(--as-body); font-size: 14px; line-height: 1.6; }
.as-footer .as-footer__tag { margin-top: 12px; }
.as-footer__more { color: var(--as-teal); text-decoration: none; white-space: nowrap; }
.as-footer__more:hover { color: #5EEAD4; }
.as-footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.as-footer__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--as-body); text-decoration: none; }
.as-footer__links a:hover { color: var(--as-teal); }
.as-footer__links svg { width: 15px; height: 15px; color: var(--as-amber); }
.as-footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0 26px;
  border-top: 1px solid var(--as-line); font: 500 12px/1.5 var(--as-f-mono); color: var(--as-muted);
}
.as-warn { color: var(--as-amber); }

/* ---------- 14. stock components ---------- */
.md-top {
  background: var(--as-panel); color: var(--as-body); border: 1px solid var(--as-line-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5); font-size: 13px; top: calc(var(--as-header) + 12px);
}
.md-top:hover, .md-top:focus { background: var(--as-panel-2); color: var(--as-teal); }
.md-clipboard { color: var(--as-faint); }
.md-clipboard:hover, .md-clipboard:focus { color: var(--as-teal); }
.md-dialog { background: var(--as-panel-2); border: 1px solid var(--as-line-2); color: var(--as-text); }
.md-typeset .md-annotation__index { background: var(--as-teal); }
.md-overlay { background-color: rgba(7, 9, 13, .6); }
.md-sidebar--primary { display: none; }

/* ---------- 15. responsive ---------- */
@media (max-width: 1240px) {
  .as-top__inner { gap: 20px; }
  .as-nav a { padding: 9px 8px; font-size: 13.5px; }
  .as-top .md-search__button { width: 40px; padding: 0; color: transparent; }
  .as-top .md-search__button .as-search__label { display: none; }
  .as-top .md-search__button::before { left: 50%; transform: translate(-50%, -50%); }
  .as-top .md-search__button::after { display: none; }
  .as-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .as-kpi:nth-child(3n + 1) { border-left: 0; }
  .as-kpi:nth-child(n + 4) { border-top: 1px solid var(--as-line); }
  .as-h1 { font-size: 54px; }
  .md-sidebar--secondary.as-side { width: 300px; margin-left: 48px; }
}

@media (max-width: 1060px) {
  .as-nav a { padding: 9px 6px; font-size: 13px; }
}

@media (max-width: 960px) {
  :root { --as-gutter: 16px; --as-header: 58px; }
  .as-top__inner { justify-content: space-between; gap: 12px; }
  .as-menu { display: grid; }
  /* the menu opens as a panel under the header, toggled by the stock drawer checkbox */
  .as-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 10px var(--as-gutter) 16px;
    background: rgba(9, 12, 17, .98); border-bottom: 1px solid var(--as-line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .55);
  }
  .as-nav a { padding: 12px 12px; font-size: 15px; }
  .as-nav a.on { box-shadow: inset 2px 0 0 var(--as-teal); }
  [data-md-toggle="drawer"]:checked ~ .as-top .as-nav { display: flex; }
  [data-md-toggle="drawer"]:checked ~ .as-top .as-menu { color: var(--as-teal); border-color: rgba(45, 212, 191, .5); }

  .as-hero { padding-top: 36px; }
  .as-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .as-h1 { font-size: 44px; }
  .as-lead { font-size: 17px; }
  .as-kpis { margin-top: 32px; }
  .as-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .as-pillars { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .as-section { padding-top: 48px; }

  .md-sidebar--secondary.as-side { display: none; }
  .as-kn-inline { display: block; margin-top: 24px; }
  .as-post-head h1 { font-size: 36px; }
  .as-subtitle { font-size: 18px; }
  .as-blog__intro.md-typeset h1 { font-size: 38px; }
  .md-content > .md-content__inner.md-typeset { padding-top: 32px; }

  .as-author { grid-template-columns: auto minmax(0, 1fr); }
  .as-author .as-ig { grid-column: 1 / -1; justify-self: start; }
  .as-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
  .as-brand { font-size: 17px; }
  .as-h1 { font-size: 36px; }
  .as-status { font-size: 11px; }
  .as-hide-s { display: none; }
  .as-feature__title { font-size: 21px; }
  .as-feature__body { padding: 16px 16px 18px; }
  .as-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-kpi { border-left: 0 !important; border-top: 1px solid var(--as-line); padding: 18px 16px 16px; }
  .as-kpi::after { left: 16px; }
  .as-kpi:nth-child(-n + 2) { border-top: 0; }
  .as-kpi:nth-child(even) { border-left: 1px solid var(--as-line) !important; }
  .as-kpi b { font-size: 27px; }
  .as-cards { grid-template-columns: minmax(0, 1fr); }
  .as-shead > a { display: none; }
  .as-post-head h1 { font-size: 30px; }
  .as-prose.md-typeset { font-size: 17px; }
  .as-prose h2 { font-size: 24px; }
  .md-typeset p:has(> img) { padding: 8px; margin-left: -4px; margin-right: -4px; }
  .as-prose :is(h2#sources, h2#references) + :is(ul, ol) > li,
  .as-prose :is(h2#sources, h2#references) + p + :is(ul, ol) > li { padding: 10px 14px 10px 50px; }
  .as-prose :is(h2#sources, h2#references) + :is(ul, ol) > li::before,
  .as-prose :is(h2#sources, h2#references) + p + :is(ul, ol) > li::before { left: 12px; top: 10px; }
  .as-author { padding: 20px; gap: 16px; }
  .as-author__mark { width: 64px; height: 64px; border-radius: 14px; }
  .as-author__mark img { width: 88px; }
  .as-ig { white-space: normal; height: auto; padding: 12px 16px; line-height: 1.3; }
  .as-blog__intro.md-typeset h1 { font-size: 32px; }
}
