@charset "UTF-8";

/* Mr.Docs brand faces: Bangers (display, uppercase) + Special Elite (body).
 *
 * Both are preloaded from index.html.hbs, so the fetch starts at HTML-parse
 * time rather than after this sheet is parsed; measured cold they finish at
 * 772ms against a 1172ms first paint, i.e. before anything is drawn.
 *
 * Bangers is optional rather than block. Both avoid the swap, but block buys
 * that with an up-to-3s invisible headline if the preload loses the race,
 * whereas optional falls back instantly and silently. The fallback is safe now
 * that "Bangers Fallback" (design-system.css) scales Impact's metrics onto
 * Bangers': un-adjusted, Impact is 22.3% wider, which re-wrapped the hero from
 * three lines to four and moved the copy below it down 173px.
 *
 * Special Elite stays on swap -- a page of body copy stuck in the stand-in for
 * the visit is worse than a repaint, and "Special Elite Fallback" removes the
 * reflow that made the swap noticeable. */
@font-face {
    font-family: "Bangers";
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url("assets/fonts/bangers-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Bangers";
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url("assets/fonts/bangers-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Special Elite";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/special-elite-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Special Elite";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/special-elite-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =====================================================================
 * Design-system tokens. docs/shared/design-system.css is the source and is
 * loaded ahead of this file (see the <link> in index.html.hbs); the Antora
 * theme imports the same file. What remains below is only what this page
 * needs beyond it -- anything shared already defines identically was removed.
 * ===================================================================== */

/* =====================================================================
 * LAYER 0 — PRIMITIVES  (theme-agnostic)
 * ===================================================================== */
:root {
  /* --- Palette: brand blue ------------------------------------------ */
  --ds-blue-350: #3d8bff; /* Figma exact: dark headline, icon box, CTA panel */
  --ds-blue-450: #1e78ff; /* Figma exact: CTA "Read the Docs" button fill */

  /* --- Palette: brand gold (comic CTA ramp) ------------------------- */
  --ds-gold-250: #f1d874; /* Figma exact: navbar GitHub button fill */
  --ds-gold-450: #facc15; /* Figma exact: dark title alt */

  /* --- Palette: accent label (eyebrow pills, card titles) ---------- */
  /* Theme-swapped rather than a ramp: the mockups use magenta on the
     cream/light surfaces and the warmer red on the dark ones. */

  /* --- Palette: ink & paper (light surfaces) ----------------------- */
  /* The mockups' page cream. Currently used only as the code panel's plain
     text colour; re-pointing the page background to it is a follow-up. */

  /* --- Palette: navy (dark surfaces) ------------------------------- */
  --ds-navy-550: #272e3f; /* Figma exact: dark page surface / doc panel */
  --ds-navy-650: #171c26; /* footer bar */
  --ds-navy-750: #141720; /* dark code body / table header band */

  /* --- Typography: families ---------------------------------------- */
  /* Display face: Bangers, vendored as woff2 in assets/fonts (see @font-face above). */
  /* Fallbacks are heavy/condensed faces, not Special Elite: falling a comic
     display headline through a typewriter face looks broken, and it is what
     showed during the load flash. */

  /* --- Typography: weights ----------------------------------------- */

  /* --- Typography: responsive base size ---------------------------- */

  /* --- Typography: type scale (desktop peak; see fluid overrides) --- */

  /* --- Typography: line-heights ------------------------------------ */

  /* --- Spacing scale (base unit = 1rem) ---------------------------- */

  /* --- Radii & borders --------------------------------------------- */

  /* --- Shadows: comic signature (hard, no blur) -------------------- */
  /* Soft ambient card elevation (light). */

  /* --- Motion ------------------------------------------------------- */

  /* --- Container max-widths ---------------------------------------- */

  /* --- Z-index scale ----------------------------------------------- */
}

/* Responsive base font size (drives all rem-based tokens). */
@media (min-width: 576px) {
  :root {
  }
}
@media (min-width: 768px) {
  :root {
  }
}
@media (min-width: 992px) {
  :root {
  }
}
@media (min-width: 1200px) {
  :root {
  }
}

/* Fluid heading ramp: h1 2rem → 3rem, h2 1.75rem → 2.25rem. */
:root {
}
@media (min-width: 576px) {
  :root {
  }
}
@media (min-width: 768px) {
  :root {
  }
}
@media (min-width: 992px) {
  :root {
  }
}
@media (min-width: 1200px) {
  :root {
  }
}

/* =====================================================================
 * LAYER 1 — SEMANTIC  (role-based, themed)
 * ---------------------------------------------------------------------
 * Light is the default. Dark applies via OS preference AND via an
 * explicit [data-theme=dark] override. The gold accent is shared across
 * both themes; only surfaces, text, borders, and the primary blue shift.
 * ===================================================================== */

/* ---- Light (default + forced) -------------------------------------- */
:root:not([data-theme="dark"]),
[data-theme="light"] {
  color-scheme: light;

  /* Read from the Figma file 2026-08-20 (Homepage - Light/Dark Theme). */
  --ds-color-cta-panel: var(--ds-blue-300);
  --ds-color-footer-bg: var(--ds-white);

  /* Code / syntax (light) */
}

/* ---- Dark (OS preference, unless explicitly light) ----------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    /* Dark uses pure black for outlines, not #0F172A. */
    --ds-color-doc-surface: var(--ds-navy-550);
    --ds-color-cta-panel: var(--ds-blue-350);
    --ds-color-footer-bg: var(--ds-navy-650);
    --ds-color-icon-box: var(--ds-blue-350);
    --ds-color-title: var(--ds-blue-350); /* dark line 1 is a deeper blue than light */
    --ds-color-title-alt: var(--ds-gold-450);
    --ds-color-code-body: var(--ds-navy-750);

  }
}

/* ---- Dark (forced) ------------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;

  --ds-color-doc-surface: var(--ds-navy-550);
  --ds-color-cta-panel: var(--ds-blue-350);
  --ds-color-footer-bg: var(--ds-navy-650);
  --ds-color-icon-box: var(--ds-blue-350);
  --ds-color-title: var(--ds-blue-350);
  --ds-color-title-alt: var(--ds-gold-450);
  --ds-color-code-body: var(--ds-navy-750);

}

/* =====================================================================
 * LAYER 2 — COMPONENT  (reference the semantic layer only)
 * ===================================================================== */
:root {
  /* ---- Halftone dot field (comic print texture) ------------------- */
  /* Measured off the mockups 2026-08-20: the dot grid runs on a 6.75px
     pitch (deltas alternate 6/7 on both axes). The previous 14px was a
     guess made before the design file was readable. */
  /* How far down the section the field stays visible before fading out. */

  /* ---- CTA panel decoration (its own artwork, not the field above) --- *
   * Mobile values; the desktop frame regrades both layers at 992. Figma
   * fills the dots and the burst wedges with BLACK at 10% in both themes
   * -- unlike --ds-color-halftone, which flips to white on dark -- so the
   * colour is stated here rather than inherited. See the block at
   * "CTA decoration" for where each of these lands. */
  --ds-cta-halftone-dot: rgba(0, 0, 0, 0.1);
  /* .fig mobile frame: 6.6px pitch, dot diameter an even ~1.6 across the
     whole panel, so mobile needs no size grading at all. */
  --ds-cta-halftone-gap: 6.6px;
  --ds-cta-dot-small: 0.75px;
  --ds-cta-dot-large: 1.3px;
  /* Mobile grades ACROSS, not down: heavy at both side edges, thinnest down
     the middle where the copy sits. Measured off the 402 background export --
     dot diameter 2.4-2.6 at the edges against 0.7-0.9 mid-column, on the same
     6.6px pitch throughout.
     NOTE: at that pitch Chromium rasterises every radius below ~1.5px to the
     same dot, so on mobile the two radii above do not actually differ -- the
     grading is carried entirely by these two masks, which vary the field's
     DENSITY instead. The radii are kept so the layer means the same thing it
     does at 992, where they do resolve. */
  --ds-cta-halftone-gutter: linear-gradient(
      to right, #000 0, rgba(0, 0, 0, 0.5) 40%,
      rgba(0, 0, 0, 0.5) 60%, #000 100%
  );
  --ds-cta-halftone-grade: linear-gradient(
      to right, #000 0, transparent 20%, transparent 80%, #000 100%
  );
  /* ---- Burst: Figma's artwork, at both breakpoints ------------------ *
   * The 84 rays (an even 4.286deg pitch -- both exports' angular spectra
   * peak at exactly 84 cycles/360deg) are tapered triangles of individually
   * varying length, weight and start radius, and they are not spread evenly
   * around the circle: ink per 10deg sector runs from 0 to 1054 in the
   * desktop export, near-empty up-and-left and heaviest below. A
   * repeating-conic-gradient carries none of that -- it paints every angle
   * identically at every radius -- so both breakpoints mask the export
   * itself rather than approximating it.
   *
   * Each file is a lossless WebP with its RGB flattened to black before
   * encoding: the ink is black to within 3/255 alpha-weighted, so what
   * ships is the alpha channel and nothing else, and every ray's weight
   * lives in it. Masking rather than painting the image keeps the ink a
   * token, so the whole burst scales from one declaration.
   *
   *   mobile   assets/mrdocs-cta-rays-mobile.webp    804x1734, 9.7KB
   *
   * Mobile only: desktop has no burst. The file is a 1:1 export of the
   * Figma frame (402x867 at 2x), so PAINTING IT AT ITS FRAME WIDTH, top
   * left of the container, is the entire placement. That alone lands the
   * burst's origin on the mascot's chest; the mascot is laid out against
   * the same container with a fixed offset, so the two track each other
   * without an origin coordinate on either side. */
  --ds-cta-burst-art: url("./assets/mrdocs-cta-rays-mobile.webp");
  --ds-cta-burst-art-width: 402px;
  --ds-cta-burst-art-color: var(--ds-black);
  /* ---- Code panel (hero + example rows) --------------------------- *
   * Dark in BOTH themes per the mockups, so these are deliberately
   * theme-invariant: the themed --hl-* vars would go invisible here in
   * light mode. Syntax colours reuse the brand palette. */

  /* ---- Hero cityscape ---------------------------------------------- *
   * Skyline band anchored to the bottom of the hero. Height is width-
   * relative so the art keeps its 3.07 aspect: on desktop it spans the
   * viewport exactly (100vw / 3.07 = 32.5vw); on mobile the mockup zooms
   * it well past the viewport and crops, hence the much larger 92vw. */

  /* ---- Feature card ----------------------------------------------- *
   * The card's outer surface is the page colour, so it reads as a ring
   * around the tinted inner panel -- the same wrapper pattern Figma uses
   * on the hero buttons. The tint is the one value that does not change
   * between themes. */

  /* ---- Label pill (row badges, hero eyebrow) — Figma exact -------- */
  /* Figma specifies #0F172A for the edge, not pure black. */

  /* ---- Comic card (feature grid) ---------------------------------- */
  /* Icon sits in its own bordered tile in the mockups. */

  /* ---- Code / reference row panels (comic) ------------------------ */

  /* ---- Button / CTA (comic) --------------------------------------- */

  /* Primary CTA = gold */

  /* Secondary CTA = blue */

  /* ---- Card -------------------------------------------------------- */

  /* ---- Comic decorative box --------------------------------------- */

  /* ---- Navigation bar --------------------------------------------- */

  /* ---- Code block ------------------------------------------------- */

  /* ---- Hero title (comic "Main Title" — Figma spec) --------------- */
  /* Mobile floor read off the mobile mockup: 60px gives the measured 45px
     cap height. Desktop peak still to be confirmed against Home-desktop. */
  /* px, not rem: Pico scales the root font-size up at wide breakpoints,
     which made the rem ceiling resolve to 120px instead of the intended
     96px. Desktop mockup cap height is 70px -> ~93px font. */
  /* Read off the Home mockups 2026-08-19: the two "nearest" approximations
     below were placeholders and are now the exact design values. The hero
     headline alternates line colours -- line 1 blue, the rest gold. */
  /* Figma's strokes are strokeAlign: OUTSIDE, so the full width paints
     BEYOND the glyph. -webkit-text-stroke centres its stroke instead, and
     with paint-order: stroke fill the inner half is covered by the fill --
     measured, a 2px CSS stroke shows only 1.25px outside. So every width
     below is DOUBLE the Figma number, quoted in the comment.

     The shadow is a filter, not a text-shadow, for the same reason: Figma
     offsets the whole composited node, stroke included, whereas
     text-shadow offsets only the glyph fill -- which a stroke this thick
     hides completely. filter: drop-shadow rasterises the stroke too.
     These are the mobile values; the 992px block carries the desktop set. */
  /* Card titles, symbol names and section headings run at half the weight. */
  --ds-title-outline-width-sm: 3px; /* Figma 1.5px OUTSIDE */
  --ds-title-drop-sm: drop-shadow(1.5px 1.5px 0 var(--ds-title-ink));
  --ds-title-leading-sm: 1.2;

  /* ---- CTA button — Figma exact ----------------------------------- *
   * Square, and the hard shadow takes the themed outline colour rather
   * than --ds-black, so it goes #0F172A on light and #000 on dark. */
  --ds-cta-btn-radius: 0;
  --ds-cta-btn-shadow: 2px 2px 0 var(--ds-color-outline);
  --ds-cta-btn-shadow-hover: 4px 4px 0 var(--ds-color-outline);
  --ds-cta-btn-shadow-active: 1px 1px 0 var(--ds-color-outline);
  --ds-footer-tracking: 1.4px;
}

/* Desktop stroke weights. This has to sit AFTER the :root above: a media
   query adds no specificity, so a later base declaration would win. */
@media (min-width: 992px) {
  :root {
    /* Figma 4px / 2px OUTSIDE, doubled -- see the note above. */
    --ds-title-outline-width-sm: 4px;
    --ds-title-drop-sm: drop-shadow(2px 2px 0 var(--ds-title-ink));
  }
}

:root {
    --font-family: var(--ds-font-body);
    --display-font: var(--ds-font-display);
    --line-height: var(--ds-leading-normal);
    --font-weight: var(--ds-weight-regular);
    --font-weight-bold: var(--ds-weight-bold);
    --font-size: var(--ds-font-size);
    --rem-base: 18;
    --border-radius: var(--ds-radius);
    --border-width: var(--ds-border-width);
    --outline-width: var(--ds-outline-width);
    --spacing: var(--ds-space);
    --typography-spacing-vertical: var(--ds-space-lg);
    --block-spacing-vertical: calc(var(--spacing) * 2);
    --block-spacing-horizontal: var(--spacing);
    --grid-spacing-vertical: 0;
    --grid-spacing-horizontal: var(--spacing);
    --form-element-spacing-vertical: var(--ds-space-sm);
    --form-element-spacing-horizontal: var(--ds-space-md);
    --nav-element-spacing-vertical: var(--ds-space-md);
    --nav-element-spacing-horizontal: var(--ds-space-xs);
    --nav-link-spacing-vertical: var(--ds-space-xs);
    --nav-link-spacing-horizontal: var(--ds-space-xs);
    --form-label-font-weight: var(--font-weight);
    --transition: var(--ds-transition);
    /* brand yellow accent (function names, hero highlight) */
    --function-name-color: #facc15;
    --function-name-color-hover: #3d8bff;
    /* brand blue accent */
    --primary-color: #3d8bff;
    --primary-color-hover: #2563eb;
    /* Midnight canvas (dark, the default theme) */
    --body-background: var(--ds-navy-550); /* Figma: dark page surface */
}

/* Responsive base font size is provided by --ds-font-size (see
 * design-system.css), which --font-size consumes above. */

a {
    --text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Ensure inline SVGs follow link color (incl. iOS Safari) */

a.contrast, a.secondary {
    --text-decoration: underline
}

small {
    --font-size: 0.875em
}

h1, h2, h3, h4, h5, h6 {
    --font-weight: 700
}

h1 {
    --font-size: 2rem;
    --typography-spacing-vertical: 3rem
}

h2 {
    --font-size: 1.75rem;
    --typography-spacing-vertical: 2.625rem
}

h3 {
    --font-size: 1.5rem;
    --typography-spacing-vertical: 2.25rem
}

h4 {
    --font-size: 1.25rem;
    --typography-spacing-vertical: 1.874rem
}

h5 {
    --font-size: 1.125rem;
    --typography-spacing-vertical: 1.6875rem
}

[type=checkbox], [type=radio] {
    --border-width: 2px
}

[type=checkbox][role=switch] {
    --border-width: 3px
}

tfoot td, tfoot th, thead td, thead th {
    --border-width: 3px
}

:not(thead):not(tfoot) > * > td {
    --font-size: 0.875em
}

code, kbd, pre, samp {
    --font-family: "Menlo", "Consolas", "Roboto Mono", "Ubuntu Monospace", "Noto Mono", "Oxygen Mono", "Liberation Mono", monospace, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
}

kbd {
    --font-weight: bolder
}

:root:not([data-theme=dark]), [data-theme=light] {
    color-scheme: light;
    --background-color: #fdfaf5;
    --body-background: #fdfaf5;
    /* code + panel surfaces (light) */
    --hl-bg: #f6f8fa;
    --hl-fg: #1f2328;
    --hl-comment: #6e7781;
    --hl-keyword: #cf222e;
    --hl-string: #0a3069;
    --hl-const: #0550ae;
    --hl-entity: #953800;
    --hl-title: #8250df;
    --hl-tag: #116329;
    --hl-doc: #43711f;
    --hl-doc-strong: #4d7c0f;
    --panel-surface: #ffffff;
    --panel-border: #d0d7de;
    --panel-fg: #24303f;
    --panel-link: #2563eb;
    --logo-fill: transparent;
    /* Literal, not var(--color): Pico reassigns --color to the blue link
       colour on every <a>, and the wordmark lives inside the logo link. */
    --logo-text-color: rgba(0, 0, 0, 0.8);
    --box-outline: drop-shadow(0 0 2px rgba(15, 23, 42, 0.3));
    --panel-title: #2563eb;
    --color: var(--ds-color-text);
    --h1-color: var(--ds-color-heading);
    --h2-color: rgba(0, 0, 0, 0.9);
    --h3-color: rgba(0, 0, 0, 0.85);
    --h4-color: rgba(0, 0, 0, 0.8);
    --h5-color: rgba(0, 0, 0, 0.75);
    --h6-color: rgba(0, 0, 0, 0.7);
    --muted-color: var(--ds-color-muted);
    --muted-border-color: var(--ds-color-border);
    --primary: #2563eb;
    --primary-hover: #3d8bff;
    --primary-focus: rgba(37, 99, 235, 0.125);
    --primary-inverse: var(--ds-color-on-primary);
    --secondary: rgba(0, 0, 0, 0.4);
    --secondary-hover: rgba(0, 0, 0, 0.6);
    --secondary-focus: rgba(0, 0, 0, 0.125);
    --secondary-inverse: #fff;
    --contrast: rgba(0, 0, 0, 0.9);
    --contrast-hover: rgba(0, 0, 0, 1);
    --contrast-focus: rgba(0, 0, 0, 0.125);
    --contrast-inverse: #fff;
    --mark-background-color: var(--ds-color-mark-bg);
    --mark-color: var(--ds-color-mark-text);
    --ins-color: #388e3c;
    --del-color: #c62828;
    --blockquote-border-color: var(--muted-border-color);
    --blockquote-footer-color: var(--muted-color);
    --button-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    --button-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    --form-element-background-color: transparent;
    --form-element-border-color: hsl(205deg, 14%, 68%);
    --form-element-color: var(--color);
    --form-element-placeholder-color: var(--muted-color);
    --form-element-active-background-color: transparent;
    --form-element-active-border-color: var(--primary);
    --form-element-focus-color: var(--primary-focus);
    --form-element-disabled-background-color: hsl(205deg, 18%, 86%);
    --form-element-disabled-border-color: hsl(205deg, 14%, 68%);
    --form-element-disabled-opacity: 0.5;
    --form-element-invalid-border-color: #c62828;
    --form-element-invalid-active-border-color: #d32f2f;
    --form-element-invalid-focus-color: rgba(211, 47, 47, 0.125);
    --form-element-valid-border-color: #388e3c;
    --form-element-valid-active-border-color: #43a047;
    --form-element-valid-focus-color: rgba(67, 160, 71, 0.125);
    --switch-background-color: hsl(205deg, 16%, 77%);
    --switch-color: var(--primary-inverse);
    --switch-checked-background-color: var(--primary);
    --range-border-color: hsl(205deg, 18%, 86%);
    --range-active-border-color: hsl(205deg, 16%, 77%);
    --range-thumb-border-color: var(--background-color);
    --range-thumb-color: var(--secondary);
    --range-thumb-hover-color: var(--secondary-hover);
    --range-thumb-active-color: var(--primary);
    --table-border-color: var(--muted-border-color);
    --table-row-stripped-background-color: #f6f8f9;
    --code-background-color: var(--ds-code-bg);
    --code-color: var(--muted-color);
    --code-kbd-background-color: var(--contrast);
    --code-kbd-color: var(--contrast-inverse);
    --code-tag-color: var(--ds-code-tag);
    --code-property-color: var(--ds-code-property);
    --code-value-color: var(--ds-code-value);
    --code-comment-color: var(--ds-code-comment);
    --accordion-border-color: var(--muted-border-color);
    --accordion-close-summary-color: var(--color);
    --accordion-open-summary-color: var(--muted-color);
    --card-background-color: var(--background-color);
    --card-border-color: var(--muted-border-color);
    --card-box-shadow: var(--ds-shadow-card);
    --card-sectionning-background-color: var(--ds-paper-raised);
    --dropdown-background-color: var(--ds-paper-raised);
    --dropdown-border-color: #e1e6eb;
    --dropdown-box-shadow: var(--card-box-shadow);
    --dropdown-color: var(--color);
    --dropdown-hover-background-color: hsl(205deg, 20%, 94%);
    --modal-overlay-background-color: rgba(213, 220, 226, 0.8);
    --progress-background-color: hsl(205deg, 18%, 86%);
    --progress-color: var(--primary);
    --loading-spinner-opacity: 0.5;
    --tooltip-background-color: var(--contrast);
    --tooltip-color: var(--contrast-inverse);
    --icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(65, 84, 98, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-chevron-button: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-chevron-button-inverse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(115, 130, 140, 0.999)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    --icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(65, 84, 98, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    --icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(198, 40, 40, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
    --icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(65, 84, 98, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    --icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(65, 84, 98, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(56, 142, 60, 0.999)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E")
}

[data-theme=dark] {
    color-scheme: dark;
    --background-color: rgba(0, 0, 0, 0.3);
    --body-background: var(--ds-navy-550); /* Figma: dark page surface */
    /* code + panel surfaces (dark) */
    --hl-bg: #0f172a;
    --hl-fg: #adbac7;
    --hl-comment: #768390;
    --hl-keyword: #f47067;
    --hl-string: #96d0ff;
    --hl-const: #6cb6ff;
    --hl-entity: #f69d50;
    --hl-title: #dcbdfb;
    --hl-tag: #8ddb8c;
    --hl-doc: rgb(94, 135, 79);
    --hl-doc-strong: rgb(164, 181, 67);
    --panel-surface: #131c2e;
    --panel-border: rgba(148, 163, 184, 0.18);
    --panel-fg: rgba(237, 242, 249, 0.92);
    --panel-link: #93c5fd;
    --logo-fill: #fff;
    --logo-text-color: rgba(255, 255, 255, 0.9);
    --box-outline: drop-shadow(0 0 0 transparent);
    --panel-title: #facc15;
    --color: var(--ds-color-text);
    --h1-color: var(--ds-color-heading);
    --h2-color: rgba(255, 255, 255, 0.95);
    --h3-color: rgba(255, 255, 255, 0.92);
    --h4-color: rgba(255, 255, 255, 0.88);
    --h5-color: rgba(255, 255, 255, 0.85);
    --h6-color: rgba(255, 255, 255, 0.82);
    --muted-color: var(--ds-color-muted);
    --muted-border-color: var(--ds-color-border);
    --primary: #3d8bff;
    --primary-hover: #93c5fd;
    --primary-focus: rgba(61, 139, 255, 0.2);
    --primary-inverse: var(--ds-color-on-primary);
    --secondary: rgba(255, 255, 255, 0.4);
    --secondary-hover: rgba(255, 255, 255, 0.6);
    --secondary-focus: rgba(255, 255, 255, 0.2);
    --secondary-inverse: rgba(0, 0, 0, 0.9);
    --contrast: rgba(255, 255, 255, 0.95);
    --contrast-hover: rgba(255, 255, 255, 1);
    --contrast-focus: rgba(255, 255, 255, 0.2);
    --contrast-inverse: rgba(0, 0, 0, 0.9);
    --mark-background-color: #d1c284;
    --mark-color: #0f172a;
    --ins-color: #388e3c;
    --del-color: #c62828;
    --blockquote-border-color: var(--muted-border-color);
    --blockquote-footer-color: var(--muted-color);
    --button-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    --button-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    --form-element-background-color: #0f172a;
    --form-element-border-color: var(--ds-navy-400);
    --form-element-color: var(--color);
    --form-element-placeholder-color: var(--muted-color);
    --form-element-active-background-color: var(--form-element-background-color);
    --form-element-active-border-color: var(--primary);
    --form-element-focus-color: var(--primary-focus);
    --form-element-disabled-background-color: hsl(205deg, 25%, 23%);
    --form-element-disabled-border-color: hsl(205deg, 20%, 32%);
    --form-element-disabled-opacity: 0.5;
    --form-element-invalid-border-color: #b71c1c;
    --form-element-invalid-active-border-color: #c62828;
    --form-element-invalid-focus-color: rgba(198, 40, 40, 0.25);
    --form-element-valid-border-color: #2e7d32;
    --form-element-valid-active-border-color: #388e3c;
    --form-element-valid-focus-color: rgba(56, 142, 60, 0.25);
    --switch-background-color: var(--ds-navy-400);
    --switch-color: var(--primary-inverse);
    --switch-checked-background-color: var(--primary);
    --range-border-color: var(--ds-navy-500);
    --range-active-border-color: hsl(205deg, 25%, 23%);
    --range-thumb-border-color: var(--background-color);
    --range-thumb-color: var(--secondary);
    --range-thumb-hover-color: var(--secondary-hover);
    --range-thumb-active-color: var(--primary);
    --table-border-color: var(--muted-border-color);
    --table-row-stripped-background-color: rgba(115, 130, 140, 0.05);
    --code-background-color: var(--ds-code-bg);
    --code-color: var(--muted-color);
    --code-kbd-background-color: var(--contrast);
    --code-kbd-color: var(--contrast-inverse);
    --code-tag-color: var(--ds-code-tag);
    --code-property-color: var(--ds-code-property);
    --code-value-color: var(--ds-code-value);
    --code-comment-color: var(--ds-code-comment);
    --accordion-border-color: var(--muted-border-color);
    --accordion-active-summary-color: var(--primary);
    --accordion-close-summary-color: var(--color);
    --accordion-open-summary-color: var(--muted-color);
    --card-background-color: var(--ds-navy-700);
    --card-border-color: var(--card-background-color);
    --card-box-shadow: var(--ds-shadow-card);
    --card-sectionning-background-color: var(--ds-navy-600);
    --dropdown-background-color: hsl(205deg, 30%, 15%);
    --dropdown-border-color: var(--ds-navy-500);
    --dropdown-box-shadow: var(--card-box-shadow);
    --dropdown-color: var(--color);
    --dropdown-hover-background-color: rgba(36, 51, 62, 0.75);
    --modal-overlay-background-color: rgba(36, 51, 62, 0.9);
    --progress-background-color: var(--ds-navy-500);
    --progress-color: var(--primary);
    --loading-spinner-opacity: 0.5;
    --tooltip-background-color: var(--contrast);
    --tooltip-color: var(--contrast-inverse);
    --icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(162, 175, 185, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-chevron-button: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-chevron-button-inverse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(0, 0, 0, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(115, 130, 140, 0.999)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    --icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(162, 175, 185, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    --icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(183, 28, 28, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
    --icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(162, 175, 185, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    --icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(162, 175, 185, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(46, 125, 50, 0.999)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E")
}

*, ::after, ::before {
    box-sizing: border-box;
    background-repeat: no-repeat
}

::after, ::before {
    text-decoration: inherit;
    vertical-align: inherit
}

:where(:root) {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    background-color: var(--background-color);
    color: var(--color);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
    font-family: var(--font-family);
    overflow-wrap: break-word;
    cursor: default;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4
}

.container, .container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 576px) {
    .container {
        max-width: 510px;
        padding-right: 0;
        padding-left: 0
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 700px
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 920px
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1130px
    }
}

/** * Grid * Minimal grid system with auto-layout columns */ 

.grid {
	grid-column-gap: var(--pico-grid-column-gap);
	grid-row-gap: var(--pico-grid-row-gap);
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.grid {
		grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
	}
}

.grid>* {
	min-width: 0;
}

b, strong {
    font-weight: bolder
}

sub, sup {
    position: relative;
    font-size: .75em;
    line-height: 0;
    vertical-align: baseline
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

address, blockquote, dl, figure, form, ol, p, pre, table, ul {
    margin-top: 0;
    margin-bottom: var(--typography-spacing-vertical);
    color: var(--color);
    font-style: normal;
    font-weight: var(--font-weight);
    font-size: var(--font-size)
}

[role=link], a {
    --color: var(--primary);
    --background-color: transparent;
    outline: 0;
    background-color: var(--background-color);
    color: var(--color);
    -webkit-text-decoration: var(--text-decoration);
    text-decoration: var(--text-decoration);
    transition: background-color var(--transition), color var(--transition), box-shadow var(--transition), -webkit-text-decoration var(--transition);
    transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition);
    transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition), -webkit-text-decoration var(--transition)
}

[role=link]:is([aria-current],:hover,:active,:focus), a:is([aria-current],:hover,:active,:focus) {
    --color: var(--primary-hover);
    --text-decoration: underline
}

[role=link]:focus, a:focus {
    --background-color: var(--primary-focus)
}

[role=link].secondary, a.secondary {
    --color: var(--secondary)
}

[role=link].secondary:is([aria-current],:hover,:active,:focus), a.secondary:is([aria-current],:hover,:active,:focus) {
    --color: var(--secondary-hover)
}

[role=link].secondary:focus, a.secondary:focus {
    --background-color: var(--secondary-focus)
}

[role=link].contrast, a.contrast {
    --color: var(--contrast)
}

[role=link].contrast:is([aria-current],:hover,:active,:focus), a.contrast:is([aria-current],:hover,:active,:focus) {
    --color: var(--contrast-hover)
}

[role=link].contrast:focus, a.contrast:focus {
    --background-color: var(--contrast-focus)
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: var(--typography-spacing-vertical);
    color: var(--color);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    font-family: var(--font-family)
}

h1 {
    --color: var(--h1-color)
}

h2 {
    --color: var(--h2-color)
}

h3 {
    --color: var(--h3-color)
}

h4 {
    --color: var(--h4-color)
}

h5 {
    --color: var(--h5-color)
}

h6 {
    --color: var(--h6-color)
}

:where(address,blockquote,dl,figure,form,ol,p,pre,table,ul) ~ :is(h1,h2,h3,h4,h5,h6) {
    margin-top: var(--typography-spacing-vertical)
}

.headings {
    margin-bottom: var(--typography-spacing-vertical)
}

.headings > *, hgroup > * {
    margin-bottom: 0
}

.headings > :last-child, hgroup > :last-child {
    --color: var(--muted-color);
    --font-weight: unset;
    font-size: 1rem;
    font-family: unset
}

p {
    margin-bottom: var(--typography-spacing-vertical)
}

small {
    font-size: var(--font-size)
}

:where(dl,ol,ul) {
    padding-right: 0;
    padding-left: var(--spacing);
    -webkit-padding-start: var(--spacing);
    padding-inline-start: var(--spacing);
    -webkit-padding-end: 0;
    padding-inline-end: 0
}

:where(dl,ol,ul) li {
    margin-bottom: calc(var(--typography-spacing-vertical) * .25)
}

:where(dl,ol,ul) :is(dl,ol,ul) {
    margin: 0;
    margin-top: calc(var(--typography-spacing-vertical) * .25)
}

ul li {
    list-style: square
}

mark {
    padding: .125rem .25rem;
    background-color: var(--mark-background-color);
    color: var(--mark-color);
    vertical-align: baseline
}

blockquote {
    display: block;
    margin: var(--typography-spacing-vertical) 0;
    padding: var(--spacing);
    border-right: none;
    border-left: .25rem solid var(--blockquote-border-color);
    -webkit-border-start: .25rem solid var(--blockquote-border-color);
    border-inline-start: .25rem solid var(--blockquote-border-color);
    -webkit-border-end: none;
    border-inline-end: none
}

blockquote footer {
    margin-top: calc(var(--typography-spacing-vertical) * .5);
    color: var(--blockquote-footer-color)
}

abbr[title] {
    border-bottom: 1px dotted;
    text-decoration: none;
    cursor: help
}

ins {
    color: var(--ins-color);
    text-decoration: none
}

del {
    color: var(--del-color)
}

::-moz-selection {
    background-color: var(--primary-focus)
}

::selection {
    background-color: var(--primary-focus)
}

button {
    margin: 0;
    overflow: visible;
    font-family: inherit;
    text-transform: none
}

[type=button], [type=reset], [type=submit], button {
    -webkit-appearance: button
}

button {
    display: block;
    width: 100%;
    margin-bottom: var(--spacing)
}

[role=button] {
    display: inline-block;
    text-decoration: none
}

[role=button], button, input[type=button], input[type=reset], input[type=submit] {
    --background-color: var(--primary);
    --border-color: var(--primary);
    --color: var(--primary-inverse);
    --box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    padding: var(--form-element-spacing-vertical) var(--form-element-spacing-horizontal);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    outline: 0;
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    color: var(--color);
    font-weight: var(--font-weight);
    font-size: 1rem;
    line-height: var(--line-height);
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition)
}

[role=button]:is([aria-current],:hover,:active,:focus), button:is([aria-current],:hover,:active,:focus), input[type=button]:is([aria-current],:hover,:active,:focus), input[type=reset]:is([aria-current],:hover,:active,:focus), input[type=submit]:is([aria-current],:hover,:active,:focus) {
    --background-color: var(--primary-hover);
    --border-color: var(--primary-hover);
    --box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    --color: var(--primary-inverse)
}

[role=button]:focus, button:focus, input[type=button]:focus, input[type=reset]:focus, input[type=submit]:focus {
    --box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 var(--outline-width) var(--primary-focus)
}

:is(button,input[type=submit],input[type=button],[role=button]).secondary, input[type=reset] {
    --background-color: var(--secondary);
    --border-color: var(--secondary);
    --color: var(--secondary-inverse);
    cursor: pointer
}

:is(button,input[type=submit],input[type=button],[role=button]).secondary:is([aria-current],:hover,:active,:focus), input[type=reset]:is([aria-current],:hover,:active,:focus) {
    --background-color: var(--secondary-hover);
    --border-color: var(--secondary-hover);
    --color: var(--secondary-inverse)
}

:is(button,input[type=submit],input[type=button],[role=button]).secondary:focus, input[type=reset]:focus {
    --box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 var(--outline-width) var(--secondary-focus)
}

:is(button,input[type=submit],input[type=button],[role=button]).contrast {
    --background-color: var(--contrast);
    --border-color: var(--contrast);
    --color: var(--contrast-inverse)
}

:is(button,input[type=submit],input[type=button],[role=button]).contrast:is([aria-current],:hover,:active,:focus) {
    --background-color: var(--contrast-hover);
    --border-color: var(--contrast-hover);
    --color: var(--contrast-inverse)
}

:is(button,input[type=submit],input[type=button],[role=button]).contrast:focus {
    --box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 var(--outline-width) var(--contrast-focus)
}

:is(button,input[type=submit],input[type=button],[role=button]).outline, input[type=reset].outline {
    --background-color: transparent;
    --color: var(--primary)
}

:is(button,input[type=submit],input[type=button],[role=button]).outline:is([aria-current],:hover,:active,:focus), input[type=reset].outline:is([aria-current],:hover,:active,:focus) {
    --background-color: transparent;
    --color: var(--primary-hover)
}

:is(button,input[type=submit],input[type=button],[role=button]).outline.secondary, input[type=reset].outline {
    --color: var(--secondary)
}

:is(button,input[type=submit],input[type=button],[role=button]).outline.secondary:is([aria-current],:hover,:active,:focus), input[type=reset].outline:is([aria-current],:hover,:active,:focus) {
    --color: var(--secondary-hover)
}

:is(button,input[type=submit],input[type=button],[role=button]).outline.contrast {
    --color: var(--contrast)
}

:is(button,input[type=submit],input[type=button],[role=button]).outline.contrast:is([aria-current],:hover,:active,:focus) {
    --color: var(--contrast-hover)
}

:where(button,[type=submit],[type=button],[type=reset],[role=button])[disabled], :where(fieldset[disabled]) :is(button,[type=submit],[type=button],[type=reset],[role=button]), a[role=button]:not([href]) {
    opacity: .5;
    pointer-events: none
}

input, optgroup, select, textarea {
    margin: 0;
    font-size: 1rem;
    line-height: var(--line-height);
    font-family: inherit;
    letter-spacing: inherit
}

input {
    overflow: visible
}

select {
    text-transform: none
}

legend {
    max-width: 100%;
    padding: 0;
    color: inherit;
    white-space: normal
}

textarea {
    overflow: auto
}

[type=checkbox], [type=radio] {
    padding: 0
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px
}

[type=search]::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

::-moz-focus-inner {
    padding: 0;
    border-style: none
}

:-moz-focusring {
    outline: 0
}

:-moz-ui-invalid {
    box-shadow: none
}

::-ms-expand {
    display: none
}

[type=file], [type=range] {
    padding: 0;
    border-width: 0
}

input:not([type=checkbox]):not([type=radio]):not([type=range]) {
    height: calc(1rem * var(--line-height) + var(--form-element-spacing-vertical) * 2 + var(--border-width) * 2)
}

fieldset {
    margin: 0;
    margin-bottom: var(--spacing);
    padding: 0;
    border: 0
}

fieldset legend, label {
    display: block;
    margin-bottom: calc(var(--spacing) * .25);
    font-weight: var(--form-label-font-weight, var(--font-weight))
}

input:not([type=checkbox]):not([type=radio]), select, textarea {
    width: 100%
}

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: var(--form-element-spacing-vertical) var(--form-element-spacing-horizontal)
}

input, select, textarea {
    --background-color: var(--form-element-background-color);
    --border-color: var(--form-element-border-color);
    --color: var(--form-element-color);
    --box-shadow: none;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    outline: 0;
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    color: var(--color);
    font-weight: var(--font-weight);
    font-size: 1rem;
    line-height: var(--line-height);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition)
}

:where(select,textarea):is(:active,:focus), input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):is(:active,:focus) {
    --background-color: var(--form-element-active-background-color)
}

:where(select,textarea):is(:active,:focus), input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):is(:active,:focus) {
    --border-color: var(--form-element-active-border-color)
}

input:not([type=submit]):not([type=button]):not([type=reset]):not([type=range]):not([type=file]):not([readonly]):focus, select:focus, textarea:focus {
    --box-shadow: 0 0 0 var(--outline-width) var(--form-element-focus-color)
}

:where(fieldset[disabled]) :is(input:not([type=submit]):not([type=button]):not([type=reset]),select,textarea), input:not([type=submit]):not([type=button]):not([type=reset])[disabled], select[disabled], textarea[disabled] {
    --background-color: var(--form-element-disabled-background-color);
    --border-color: var(--form-element-disabled-border-color);
    opacity: var(--form-element-disabled-opacity);
    pointer-events: none
}

:where(input,select,textarea):not([type=checkbox]):not([type=radio])[aria-invalid] {
    padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
    padding-left: var(--form-element-spacing-horizontal);
    -webkit-padding-start: var(--form-element-spacing-horizontal) !important;
    padding-inline-start: var(--form-element-spacing-horizontal) !important;
    -webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
    padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
    background-position: center right .75rem;
    background-size: 1rem auto;
    background-repeat: no-repeat
}

:where(input,select,textarea):not([type=checkbox]):not([type=radio])[aria-invalid=false] {
    background-image: var(--icon-valid)
}

:where(input,select,textarea):not([type=checkbox]):not([type=radio])[aria-invalid=true] {
    background-image: var(--icon-invalid)
}

:where(input,select,textarea)[aria-invalid=false] {
    --border-color: var(--form-element-valid-border-color)
}

:where(input,select,textarea)[aria-invalid=false]:is(:active,:focus) {
    --border-color: var(--form-element-valid-active-border-color) !important;
    --box-shadow: 0 0 0 var(--outline-width) var(--form-element-valid-focus-color) !important
}

:where(input,select,textarea)[aria-invalid=true] {
    --border-color: var(--form-element-invalid-border-color)
}

:where(input,select,textarea)[aria-invalid=true]:is(:active,:focus) {
    --border-color: var(--form-element-invalid-active-border-color) !important;
    --box-shadow: 0 0 0 var(--outline-width) var(--form-element-invalid-focus-color) !important
}

[dir=rtl] :where(input,select,textarea):not([type=checkbox]):not([type=radio])[aria-invalid=false], [dir=rtl] :where(input,select,textarea):not([type=checkbox]):not([type=radio])[aria-invalid=true], [dir=rtl] :where(input,select,textarea):not([type=checkbox]):not([type=radio])[aria-invalid] {
    background-position: center left .75rem
}

input::-webkit-input-placeholder, input::placeholder, select:invalid, textarea::-webkit-input-placeholder, textarea::placeholder {
    color: var(--form-element-placeholder-color);
    opacity: 1
}

input:not([type=checkbox]):not([type=radio]), select, textarea {
    margin-bottom: var(--spacing)
}

select::-ms-expand {
    border: 0;
    background-color: transparent
}

select:not([multiple]):not([size]) {
    padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem);
    padding-left: var(--form-element-spacing-horizontal);
    -webkit-padding-start: var(--form-element-spacing-horizontal);
    padding-inline-start: var(--form-element-spacing-horizontal);
    -webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
    padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
    background-image: var(--icon-chevron);
    background-position: center right .75rem;
    background-size: 1rem auto;
    background-repeat: no-repeat
}

[dir=rtl] select:not([multiple]):not([size]) {
    background-position: center left .75rem
}

:where(input,select,textarea) + small {
    display: block;
    width: 100%;
    margin-top: calc(var(--spacing) * -.75);
    margin-bottom: var(--spacing);
    color: var(--muted-color)
}

label > :where(input,select,textarea) {
    margin-top: calc(var(--spacing) * .25)
}

[type=checkbox], [type=radio] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1.25em;
    height: 1.25em;
    margin-top: -.125em;
    margin-right: .375em;
    margin-left: 0;
    -webkit-margin-start: 0;
    margin-inline-start: 0;
    -webkit-margin-end: .375em;
    margin-inline-end: .375em;
    border-width: var(--border-width);
    font-size: inherit;
    vertical-align: middle;
    cursor: pointer
}

[type=checkbox]::-ms-check, [type=radio]::-ms-check {
    display: none
}

[type=checkbox]:checked, [type=checkbox]:checked:active, [type=checkbox]:checked:focus, [type=radio]:checked, [type=radio]:checked:active, [type=radio]:checked:focus {
    --background-color: var(--primary);
    --border-color: var(--primary);
    background-image: var(--icon-checkbox);
    background-position: center;
    background-size: .75em auto;
    background-repeat: no-repeat
}

[type=checkbox] ~ label, [type=radio] ~ label {
    display: inline-block;
    margin-right: .375em;
    margin-bottom: 0;
    cursor: pointer
}

[type=checkbox]:indeterminate {
    --background-color: var(--primary);
    --border-color: var(--primary);
    background-image: var(--icon-minus);
    background-position: center;
    background-size: .75em auto;
    background-repeat: no-repeat
}

[type=radio] {
    border-radius: 50%
}

[type=radio]:checked, [type=radio]:checked:active, [type=radio]:checked:focus {
    --background-color: var(--primary-inverse);
    border-width: .35em;
    background-image: none
}

[type=checkbox][role=switch] {
    --background-color: var(--switch-background-color);
    --border-color: var(--switch-background-color);
    --color: var(--switch-color);
    width: 2.25em;
    height: 1.25em;
    border: var(--border-width) solid var(--border-color);
    border-radius: 1.25em;
    background-color: var(--background-color);
    line-height: 1.25em
}

[type=checkbox][role=switch]:focus {
    --background-color: var(--switch-background-color);
    --border-color: var(--switch-background-color)
}

[type=checkbox][role=switch]:checked {
    --background-color: var(--switch-checked-background-color);
    --border-color: var(--switch-checked-background-color)
}

[type=checkbox][role=switch]:before {
    display: block;
    width: calc(1.25em - (var(--border-width) * 2));
    height: 100%;
    border-radius: 50%;
    background-color: var(--color);
    content: "";
    transition: margin .1s ease-in-out
}

[type=checkbox][role=switch]:checked {
    background-image: none
}

[type=checkbox][role=switch]:checked::before {
    margin-left: calc(1.125em - var(--border-width));
    -webkit-margin-start: calc(1.125em - var(--border-width));
    margin-inline-start: calc(1.125em - var(--border-width))
}

[type=checkbox]:checked[aria-invalid=false], [type=checkbox][aria-invalid=false], [type=checkbox][role=switch]:checked[aria-invalid=false], [type=checkbox][role=switch][aria-invalid=false], [type=radio]:checked[aria-invalid=false], [type=radio][aria-invalid=false] {
    --border-color: var(--form-element-valid-border-color)
}

[type=checkbox]:checked[aria-invalid=true], [type=checkbox][aria-invalid=true], [type=checkbox][role=switch]:checked[aria-invalid=true], [type=checkbox][role=switch][aria-invalid=true], [type=radio]:checked[aria-invalid=true], [type=radio][aria-invalid=true] {
    --border-color: var(--form-element-invalid-border-color)
}

[type=color]::-webkit-color-swatch-wrapper {
    padding: 0
}

[type=color]::-moz-focus-inner {
    padding: 0
}

[type=color]::-webkit-color-swatch {
    border: 0;
    border-radius: calc(var(--border-radius) * .5)
}

[type=color]::-moz-color-swatch {
    border: 0;
    border-radius: calc(var(--border-radius) * .5)
}

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=date], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=datetime-local], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=month], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=time], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=week] {
    --icon-position: 0.75rem;
    --icon-width: 1rem;
    padding-right: calc(var(--icon-width) + var(--icon-position));
    background-image: var(--icon-date);
    background-position: center right var(--icon-position);
    background-size: var(--icon-width) auto;
    background-repeat: no-repeat
}

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=time] {
    background-image: var(--icon-time)
}

[type=date]::-webkit-calendar-picker-indicator, [type=datetime-local]::-webkit-calendar-picker-indicator, [type=month]::-webkit-calendar-picker-indicator, [type=time]::-webkit-calendar-picker-indicator, [type=week]::-webkit-calendar-picker-indicator {
    width: var(--icon-width);
    margin-right: calc(var(--icon-width) * -1);
    margin-left: var(--icon-position);
    opacity: 0
}

[dir=rtl] :is([type=date],[type=datetime-local],[type=month],[type=time],[type=week]) {
    text-align: right
}

[type=file] {
    --color: var(--muted-color);
    padding: calc(var(--form-element-spacing-vertical) * .5) 0;
    border: 0;
    border-radius: 0;
    background: 0 0
}

[type=file]::-webkit-file-upload-button {
    --background-color: var(--secondary);
    --border-color: var(--secondary);
    --color: var(--secondary-inverse);
    margin-right: calc(var(--spacing) / 2);
    margin-left: 0;
    -webkit-margin-start: 0;
    margin-inline-start: 0;
    -webkit-margin-end: calc(var(--spacing) / 2);
    margin-inline-end: calc(var(--spacing) / 2);
    padding: calc(var(--form-element-spacing-vertical) * .5) calc(var(--form-element-spacing-horizontal) * .5);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    outline: 0;
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    color: var(--color);
    font-weight: var(--font-weight);
    font-size: 1rem;
    line-height: var(--line-height);
    text-align: center;
    cursor: pointer;
    -webkit-transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition)
}

[type=file]::file-selector-button {
    --background-color: var(--secondary);
    --border-color: var(--secondary);
    --color: var(--secondary-inverse);
    margin-right: calc(var(--spacing) / 2);
    margin-left: 0;
    -webkit-margin-start: 0;
    margin-inline-start: 0;
    -webkit-margin-end: calc(var(--spacing) / 2);
    margin-inline-end: calc(var(--spacing) / 2);
    padding: calc(var(--form-element-spacing-vertical) * .5) calc(var(--form-element-spacing-horizontal) * .5);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    outline: 0;
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    color: var(--color);
    font-weight: var(--font-weight);
    font-size: 1rem;
    line-height: var(--line-height);
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition)
}

[type=file]::-webkit-file-upload-button:is(:hover,:active,:focus) {
    --background-color: var(--secondary-hover);
    --border-color: var(--secondary-hover)
}

[type=file]::file-selector-button:is(:hover,:active,:focus) {
    --background-color: var(--secondary-hover);
    --border-color: var(--secondary-hover)
}

[type=file]::-webkit-file-upload-button {
    --background-color: var(--secondary);
    --border-color: var(--secondary);
    --color: var(--secondary-inverse);
    margin-right: calc(var(--spacing) / 2);
    margin-left: 0;
    -webkit-margin-start: 0;
    margin-inline-start: 0;
    -webkit-margin-end: calc(var(--spacing) / 2);
    margin-inline-end: calc(var(--spacing) / 2);
    padding: calc(var(--form-element-spacing-vertical) * .5) calc(var(--form-element-spacing-horizontal) * .5);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    outline: 0;
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    color: var(--color);
    font-weight: var(--font-weight);
    font-size: 1rem;
    line-height: var(--line-height);
    text-align: center;
    cursor: pointer;
    -webkit-transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition)
}

[type=file]::-webkit-file-upload-button:is(:hover,:active,:focus) {
    --background-color: var(--secondary-hover);
    --border-color: var(--secondary-hover)
}

[type=file]::-ms-browse {
    --background-color: var(--secondary);
    --border-color: var(--secondary);
    --color: var(--secondary-inverse);
    margin-right: calc(var(--spacing) / 2);
    margin-left: 0;
    margin-inline-start: 0;
    margin-inline-end: calc(var(--spacing) / 2);
    padding: calc(var(--form-element-spacing-vertical) * .5) calc(var(--form-element-spacing-horizontal) * .5);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    outline: 0;
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    color: var(--color);
    font-weight: var(--font-weight);
    font-size: 1rem;
    line-height: var(--line-height);
    text-align: center;
    cursor: pointer;
    -ms-transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition)
}

[type=file]::-ms-browse:is(:hover,:active,:focus) {
    --background-color: var(--secondary-hover);
    --border-color: var(--secondary-hover)
}

[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 1.25rem;
    background: 0 0
}

[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: .25rem;
    border-radius: var(--border-radius);
    background-color: var(--range-border-color);
    -webkit-transition: background-color var(--transition), box-shadow var(--transition);
    transition: background-color var(--transition), box-shadow var(--transition)
}

[type=range]::-moz-range-track {
    width: 100%;
    height: .25rem;
    border-radius: var(--border-radius);
    background-color: var(--range-border-color);
    -moz-transition: background-color var(--transition), box-shadow var(--transition);
    transition: background-color var(--transition), box-shadow var(--transition)
}

[type=range]::-ms-track {
    width: 100%;
    height: .25rem;
    border-radius: var(--border-radius);
    background-color: var(--range-border-color);
    -ms-transition: background-color var(--transition), box-shadow var(--transition);
    transition: background-color var(--transition), box-shadow var(--transition)
}

[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: -.5rem;
    border: 2px solid var(--range-thumb-border-color);
    border-radius: 50%;
    background-color: var(--range-thumb-color);
    cursor: pointer;
    -webkit-transition: background-color var(--transition), transform var(--transition);
    transition: background-color var(--transition), transform var(--transition)
}

[type=range]::-moz-range-thumb {
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: -.5rem;
    border: 2px solid var(--range-thumb-border-color);
    border-radius: 50%;
    background-color: var(--range-thumb-color);
    cursor: pointer;
    -moz-transition: background-color var(--transition), transform var(--transition);
    transition: background-color var(--transition), transform var(--transition)
}

[type=range]::-ms-thumb {
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: -.5rem;
    border: 2px solid var(--range-thumb-border-color);
    border-radius: 50%;
    background-color: var(--range-thumb-color);
    cursor: pointer;
    -ms-transition: background-color var(--transition), transform var(--transition);
    transition: background-color var(--transition), transform var(--transition)
}

[type=range]:focus, [type=range]:hover {
    --range-border-color: var(--range-active-border-color);
    --range-thumb-color: var(--range-thumb-hover-color)
}

[type=range]:active {
    --range-thumb-color: var(--range-thumb-active-color)
}

[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.25)
}

[type=range]:active::-moz-range-thumb {
    transform: scale(1.25)
}

[type=range]:active::-ms-thumb {
    transform: scale(1.25)
}

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=search] {
    -webkit-padding-start: calc(var(--form-element-spacing-horizontal) + 1.75rem);
    padding-inline-start: calc(var(--form-element-spacing-horizontal) + 1.75rem);
    border-radius: 5rem;
    background-image: var(--icon-search);
    background-position: center left 1.125rem;
    background-size: 1rem auto;
    background-repeat: no-repeat
}

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=search][aria-invalid] {
    -webkit-padding-start: calc(var(--form-element-spacing-horizontal) + 1.75rem) !important;
    padding-inline-start: calc(var(--form-element-spacing-horizontal) + 1.75rem) !important;
    background-position: center left 1.125rem, center right .75rem
}

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=search][aria-invalid=false] {
    background-image: var(--icon-search), var(--icon-valid)
}

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=search][aria-invalid=true] {
    background-image: var(--icon-search), var(--icon-invalid)
}

[type=search]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none
}

[dir=rtl] :where(input):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=search] {
    background-position: center right 1.125rem
}

[dir=rtl] :where(input):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=search][aria-invalid] {
    background-position: center right 1.125rem, center left .75rem
}

code, kbd, pre, samp {
    font-size: .875em;
    font-family: var(--font-family)
}

pre {
    -ms-overflow-style: scrollbar;
    overflow: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

code, kbd, pre {
    border-radius: var(--border-radius);
    color: var(--code-color);
    font-weight: var(--font-weight);
    line-height: initial
}

code, kbd {
    display: inline-block;
    padding: .375rem .5rem
}

pre {
    display: block;
    margin-bottom: var(--spacing);
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

pre > code {
    display: block;
    padding: var(--spacing);
    background-color: var(--hl-bg);
    color: var(--hl-fg);
    font-size: 14px;
    line-height: var(--line-height);
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: pre-wrap;
}

code b {
    color: var(--code-tag-color);
    font-weight: var(--font-weight)
}

code i {
    color: var(--code-property-color);
    font-style: normal
}

code u {
    color: var(--code-value-color);
    text-decoration: none
}

code em {
    color: var(--code-comment-color);
    font-style: normal
}

kbd {
    background-color: var(--code-kbd-background-color);
    color: var(--code-kbd-color);
    vertical-align: baseline
}

hr {
    height: 0;
    border: 0;
    border-top: 1px solid var(--muted-border-color);
    color: inherit
}

[hidden], template {
    display: none !important
}

canvas {
    display: inline-block
}

:where(navli)::before {
    float: left;
    content: "​"
}

nav, nav ul {
    display: flex
}

nav {
    justify-content: space-between;
    font-size: calc(17 / var(--rem-base, 18) * 1rem);
    line-height: 1.35;
}

@media screen and (min-width: 1024px) {
    nav {
        font-size: calc(15.5 / var(--rem-base, 18) * 1rem);
    }
}

nav ol, nav ul {
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    list-style: none
}

nav li {
    display: inline-block;
    margin: 0;
    padding: var(--nav-element-spacing-vertical) var(--nav-element-spacing-horizontal)
}

nav a {
    font-weight: 400;
    text-decoration: none;
    font-size: 16px;
}

nav li > * {
    --spacing: 0
}

nav :where(a,[role=link]):is([aria-current],:hover,:active,:focus) {
    text-decoration: none
}

nav [role=button] {
    margin-right: inherit;
    margin-left: inherit;
    padding: var(--nav-link-spacing-vertical) var(--nav-link-spacing-horizontal)
}

aside li, aside nav, aside ol, aside ul {
    display: block
}

aside li {
    padding: calc(var(--nav-element-spacing-vertical) * .5) var(--nav-element-spacing-horizontal)
}

aside li a {
    display: block
}

aside li [role=button] {
    margin: inherit
}

progress {
    display: inline-block;
    vertical-align: baseline
}

progress {
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline-block;
    appearance: none;
    width: 100%;
    height: .5rem;
    margin-bottom: calc(var(--spacing) * .5);
    overflow: hidden;
    border: 0;
    border-radius: var(--border-radius);
    background-color: var(--progress-background-color);
    color: var(--progress-color)
}

progress::-webkit-progress-bar {
    border-radius: var(--border-radius);
    background: 0 0
}

progress[value]::-webkit-progress-value {
    background-color: var(--progress-color)
}

progress::-moz-progress-bar {
    background-color: var(--progress-color)
}

@media (prefers-reduced-motion: no-preference) {
    progress:indeterminate {
        background: var(--progress-background-color) linear-gradient(to right, var(--progress-color) 30%, var(--progress-background-color) 30%) top left/150% 150% no-repeat;
        -webkit-animation: progressIndeterminate 1s linear infinite;
        animation: progressIndeterminate 1s linear infinite
    }

    progress:indeterminate[value]::-webkit-progress-value {
        background-color: transparent
    }

    progress:indeterminate::-moz-progress-bar {
        background-color: transparent
    }
}

@media (prefers-reduced-motion: no-preference) {
    [dir=rtl] progress:indeterminate {
        animation-direction: reverse
    }
}

@-webkit-keyframes progressIndeterminate {
    0% {
        background-position: 200% 0
    }
    100% {
        background-position: -200% 0
    }
}

@keyframes progressIndeterminate {
    0% {
        background-position: 200% 0
    }
    100% {
        background-position: -200% 0
    }
}

[aria-busy=true] {
    cursor: progress
}

[aria-busy=true]:not(input):not(select):not(textarea)::before {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: .1875em solid currentColor;
    border-radius: 1em;
    border-right-color: transparent;
    content: "";
    vertical-align: text-bottom;
    vertical-align: -.125em;
    -webkit-animation: spinner .75s linear infinite;
    animation: spinner .75s linear infinite;
    opacity: var(--loading-spinner-opacity)
}

[aria-busy=true]:not(input):not(select):not(textarea):not(:empty)::before {
    margin-right: calc(var(--spacing) * .5);
    margin-left: 0;
    -webkit-margin-start: 0;
    margin-inline-start: 0;
    -webkit-margin-end: calc(var(--spacing) * .5);
    margin-inline-end: calc(var(--spacing) * .5)
}

[aria-busy=true]:not(input):not(select):not(textarea):empty {
    text-align: center
}

a[aria-busy=true], button[aria-busy=true], input[type=button][aria-busy=true], input[type=reset][aria-busy=true], input[type=submit][aria-busy=true] {
    pointer-events: none
}

@-webkit-keyframes spinner {
    to {
        transform: rotate(360deg)
    }
}

@keyframes spinner {
    to {
        transform: rotate(360deg)
    }
}

[data-tooltip] {
    position: relative
}

[data-tooltip]:not(a):not(button):not(input) {
    border-bottom: 1px dotted;
    text-decoration: none;
    cursor: help
}

[data-tooltip]::after, [data-tooltip]::before {
    display: block;
    z-index: 99;
    position: absolute;
    bottom: 100%;
    left: 50%;
    padding: .25rem .5rem;
    overflow: hidden;
    transform: translate(-50%, -.25rem);
    border-radius: var(--border-radius);
    background: var(--tooltip-background-color);
    content: attr(data-tooltip);
    color: var(--tooltip-color);
    font-style: normal;
    font-weight: var(--font-weight);
    font-size: .875rem;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none
}

[data-tooltip]::after {
    padding: 0;
    transform: translate(-50%, 0);
    border-top: .3rem solid;
    border-right: .3rem solid transparent;
    border-left: .3rem solid transparent;
    border-radius: 0;
    background-color: transparent;
    content: "";
    color: var(--tooltip-background-color)
}

[data-tooltip]:focus::after, [data-tooltip]:focus::before, [data-tooltip]:hover::after, [data-tooltip]:hover::before {
    opacity: 1
}

@media (hover: hover) and (pointer: fine) {
    [data-tooltip]:focus::after, [data-tooltip]:focus::before, [data-tooltip]:hover::after, [data-tooltip]:hover::before {
        -webkit-animation-duration: .2s;
        animation-duration: .2s;
        -webkit-animation-name: slide;
        animation-name: slide
    }

    [data-tooltip]:focus::after, [data-tooltip]:hover::after {
        -webkit-animation-name: slideCaret;
        animation-name: slideCaret
    }
}

@-webkit-keyframes slide {
    from {
        transform: translate(-50%, .75rem);
        opacity: 0
    }
    to {
        transform: translate(-50%, -.25rem);
        opacity: 1
    }
}

@keyframes slide {
    from {
        transform: translate(-50%, .75rem);
        opacity: 0
    }
    to {
        transform: translate(-50%, -.25rem);
        opacity: 1
    }
}

@-webkit-keyframes slideCaret {
    from {
        opacity: 0
    }
    50% {
        transform: translate(-50%, -.25rem);
        opacity: 0
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1
    }
}

@keyframes slideCaret {
    from {
        opacity: 0
    }
    50% {
        transform: translate(-50%, -.25rem);
        opacity: 0
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1
    }
}

[aria-controls] {
    cursor: pointer
}

[aria-disabled=true], [disabled] {
    cursor: not-allowed
}

[aria-hidden=false][hidden] {
    display: initial
}

[aria-hidden=false][hidden]:not(:focus) {
    clip: rect(0, 0, 0, 0);
    position: absolute
}

[tabindex], a, area, button, input, label, select, summary, textarea {
    -ms-touch-action: manipulation
}

[dir=rtl] {
    direction: rtl
}

:root {
    --icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(115, 130, 140, 0.999)' opacity='0.66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-check-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(0, 0, 0, 0.75)' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

:root {
    /* These roles are tri-state in the design system, so reference the
     * semantic token once instead of redeclaring per theme. */
    --invalid-color: var(--ds-color-invalid);
    --valid-color: var(--ds-color-valid);
    --nav-background-color: var(--ds-color-nav-bg);
    --nav-border-color: var(--ds-color-nav-border);
}

:root:not([data-theme=dark]), [data-theme=light] {
    --nav-logo-color: var(--ds-white);
    --article-code-background-color: var(--ds-paper-code)
}

@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme=light]) {
        --nav-logo-color: var(--ds-navy-900);
        --article-code-background-color: var(--code-background-color)
    }
}

[data-theme=dark] {
    --nav-logo-color: var(--ds-navy-900);
    --article-code-background-color: var(--code-background-color)
}

/* Pico ships `html { scroll-behavior: smooth }` here. Removed: the page has
   one working in-page anchor (#features) and two `href="#"` placeholders, and
   the rule made the browser ANIMATE scroll restoration on every reload --
   drawn out by MathJax and the lazy CTA mascot reflowing after first paint.
   It also carried no prefers-reduced-motion guard, so it overrode that
   preference for everyone. */

.switcher {
    position: fixed;
    right: calc(var(--spacing) / 2 + 0px);
    bottom: var(--spacing);
    width: auto;
    margin-bottom: 0;
    padding: .75rem;
    border-radius: 2rem;
    box-shadow: var(--card-box-shadow);
    line-height: 1;
    text-align: right
}

.switcher::after {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: .15rem solid currentColor;
    border-radius: 50%;
    background: linear-gradient(to right, currentColor 0, currentColor 50%, transparent 50%);
    content: "";
    vertical-align: bottom;
    transition: transform var(--transition)
}

.switcher i {
    display: inline-block;
    max-width: 0;
    padding: 0;
    overflow: hidden;
    font-style: normal;
    font-size: .875rem;
    white-space: nowrap
}

.switcher:focus, .switcher:hover {
    max-width: 100%;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition)
}

.switcher:hover::after {
    transform: rotate(180deg)
}

.switcher:hover i {
    max-width: 100%;
    padding: 0 calc(var(--spacing) / 2) 0 calc(var(--spacing) / 4);
    transition: max-width var(--transition), padding var(--transition)
}

.switcher:focus {
    box-shadow: var(--card-box-shadow), 0 0 0 .2rem var(--secondary-focus)
}

@media (min-width: 576px) {
    .switcher {
        right: calc(var(--spacing) + 0px)
    }
}

:root:not([data-theme=dark]), [data-theme=light] {
    --demo-background: linear-gradient(
            180deg,
            #fff 0%,
            rgba(188, 235, 251, 0.25) 33%,
            rgba(188, 235, 251, 0.25) 66%,
            #fff 100%
    )
}

@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme=light]) {
        --demo-background: linear-gradient(180deg, #0f172a 0%,
        rgba(10, 53, 67, 0.5) 33%,
        rgba(10, 53, 67, 0.5) 66%,
        #0f172a 100%)
    }
}

[data-theme=dark] {
    --demo-background: linear-gradient(180deg, #0f172a 0%,
    rgba(10, 53, 67, 0.5) 33%,
    rgba(10, 53, 67, 0.5) 66%,
    #0f172a 100%)
}

header h1, header h2, main h1, main h2,
.principles-features h4 {
    --font-weight: 400;
    font-family: var(--display-font);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.05
}

/* The embedded reference-doc panels carry C++ symbol names as headings;
   keep them in the body face and normal case so they stay readable. */
.documentation-panel h1, .documentation-panel h2, .documentation-panel h3,
.documentation-panel h4, .documentation-panel h5, .documentation-panel h6,
.snippet-documentation-panel h1, .snippet-documentation-panel h2,
.snippet-documentation-panel h3, .snippet-documentation-panel h4,
.snippet-documentation-panel h5, .snippet-documentation-panel h6 {
    font-family: var(--font-family);
    font-style: normal;
    text-transform: none;
    letter-spacing: normal
}

/* h1/h2 sizes consume the design system's fluid type ramp. */
h1 {
    --font-size: var(--ds-text-h1);
    line-height: var(--ds-leading-tight)
}

h2 {
    --font-size: var(--ds-text-h2);
    line-height: var(--ds-leading-snug)
}

ul.check {
    padding: 0
}

ul.check li {
    margin-left: 1.5rem;
    list-style: none
}

ul.check li::before {
    display: block;
    position: absolute;
    width: 1rem;
    height: 1rem;
    margin-top: .25rem;
    margin-left: -1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(229, 190, 51, 1)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 100%;
    content: ""
}

body {
    width: 100%;
    margin: 0;
    transition: padding-top 0.3s ease-in-out;
}

body.nav-visible {
    padding-top: 60px; /* Adjust based on nav height */
}

footer, header, main > section {
    --block-spacing-vertical: 3rem;
    --demo-height: calc(4.5rem + 352px);
    width: 100%;
    margin: 0;
    padding: var(--block-spacing-vertical) 0
}

@media (min-width: 576px) {
    footer, header, main > section {
        --block-spacing-vertical: 4rem;
        --demo-height: calc(6rem + 392px)
    }
}

@media (min-width: 768px) {
    footer, header, main > section {
        --block-spacing-vertical: 5rem;
        --demo-height: calc(7.5rem + 440px)
    }
}

@media (min-width: 992px) {
    footer, header, main > section {
        --block-spacing-vertical: 6rem;
        --demo-height: calc(9rem + 488px)
    }
}

@media (min-width: 1200px) {
    footer, header, main > section {
        --block-spacing-vertical: 4rem;
        --demo-height: calc(10.5rem + 540px)
    }
}

header {
    padding-bottom: 0
}

#demo {
    display: flex;
    align-items: center
}

#examples, #star {
    background-color: rgba(255, 255, 255, 0.55);
}

#principles {
    padding-top: 0
}

#star {
    padding: calc(var(--block-spacing-vertical) / 2) 0;
    text-align: center
}

body > nav {
    --nav-link-spacing-vertical: 1rem;
    box-shadow: 0 1px 0 var(--nav-border-color)
}

body > nav a {
    border-radius: 0
}

body > nav a svg {
    vertical-align: text-bottom;
    height: 1rem;
		color: inherit;
}

body > nav ul:first-of-type li {
    padding: 0;
}

header h1, header p {
    text-align: center
}

header h1 {
    margin-bottom: var(--spacing)
}

/* Comic "Main Title" treatment (Figma): oversized Bangers with a navy
   letter outline and hard offset shadow. Hero only. */
header .header-content h1 {
    font-size: var(--ds-title-size);
    line-height: var(--ds-title-leading);
    text-transform: uppercase;
    color: var(--ds-title-color);
    -webkit-text-stroke: var(--ds-title-outline-width) var(--ds-title-ink);
    paint-order: stroke fill;
    filter: var(--ds-title-drop);
}

header h1 ~ p {
    color: var(--muted-color)
}

header a:not(:last-of-type) {
    margin-right: calc(var(--spacing) * .5)
}

header p:last-of-type {
    margin-bottom: 0
}

article {
    margin: var(--block-spacing-vertical) 0;
    padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--card-background-color);
    box-shadow: var(--card-box-shadow)
}

article > footer, article > header, article > pre {
    margin-right: calc(var(--block-spacing-horizontal) * -1);
    margin-left: calc(var(--block-spacing-horizontal) * -1);
    padding: calc(var(--block-spacing-vertical) * .66) var(--block-spacing-horizontal);
    background-color: var(--card-sectionning-background-color)
}

article > header {
    margin-top: calc(var(--block-spacing-vertical) * -1);
    margin-bottom: var(--block-spacing-vertical);
    border-bottom: var(--border-width) solid var(--card-border-color)
}

article > footer, article > pre {
    margin-top: var(--block-spacing-vertical);
    margin-bottom: calc(var(--block-spacing-vertical) * -1);
    border-top: var(--border-width) solid var(--card-border-color)
}

#demo {
    height: var(--demo-height);
    background: var(--demo-background)
}

#demo article {
    --block-spacing-vertical: 2rem;
    max-width: 510px;
    height: auto;
    min-height: calc(var(--block-spacing-vertical) * 2);
    max-height: calc(var(--block-spacing-vertical) * 2);
    margin: 0;
    margin-right: auto;
    margin-left: auto;
    pointer-events: none;
    transition: min-height var(--transition), max-height var(--transition);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

@media (min-width: 576px) {
    #demo article {
        --block-spacing-vertical: 2.5rem
    }
}

@media (min-width: 768px) {
    #demo article {
        --block-spacing-vertical: 3rem
    }
}

@media (min-width: 992px) {
    #demo article {
        --block-spacing-vertical: 3.5rem
    }
}

@media (min-width: 1200px) {
    #demo article {
        --block-spacing-vertical: 4rem
    }
}

#demo article pre > code {
    padding: 0
}

#demo article label {
    color: var(--color)
}

#demo article .demo-last-child, #demo article form {
    margin-bottom: 0 !important
}

#demo article input[type=text] {
    height: inherit
}

#demo article .ti-cursor {
    margin: 0 -.5ch !important
}

#demo article .fadeIn, #demo article .fadeOut {
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
    -webkit-animation-duration: .4s;
    animation-duration: .4s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both
}

#demo article .fadeOut {
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@-webkit-keyframes fadeOut {
    from {
        opacity: 1
    }
    to {
        opacity: 0
    }
}

@keyframes fadeOut {
    from {
        opacity: 1
    }
    to {
        opacity: 0
    }
}

a[role=button].active, button.active, input[type=button].active, input[type=reset].active, input[type=submit].active {
    --background-color: var(--primary-hover);
    --border-color: var(--primary-hover);
    --box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 var(--outline-width) var(--primary-focus)
}

input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]).active, select.active, textarea.active {
    --background-color: var(--form-element-active-background-color)
}

input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]).active, select.active, textarea.active {
    --border-color: var(--form-element-active-border-color)
}

input:not([type=submit]):not([type=button]):not([type=reset]):not([type=range]):not([type=file]):not([readonly]).active, select.active, textarea.active {
    --box-shadow: 0 0 0 var(--outline-width) var(--form-element-focus-color)
}

[type=checkbox]:checked, [type=checkbox]:checked.active, [type=radio]:checked, [type=radio]:checked.active {
    --background-color: var(--primary);
    --border-color: var(--primary)
}

[type=checkbox][role=switch].active {
    --background-color: var(--switch-background-color);
    --border-color: var(--switch-background-color)
}

[type=checkbox][role=switch]:checked {
    --background-color: var(--switch-checked-background-color);
    --border-color: var(--switch-checked-background-color)
}

[type=range].active {
    --range-thumb-color: var(--range-thumb-active-color);
    --range-border-color: var(--range-active-border-color)
}

[type=range].active::-webkit-slider-thumb {
    transform: scale(1.25)
}

[type=range].active::-moz-range-thumb {
    transform: scale(1.25)
}

[type=range].active::-ms-thumb {
    transform: scale(1.25)
}

hgroup {
    text-align: center
}

hgroup:after {
    display: none
}

svg {
    color: var(--primary);
    width: auto;
    height: 1.25rem
}

/* Re-assert link-driven SVG color after global svg rule (cascade) */
a svg {
    color: inherit;
    fill: currentColor;
}
a svg path { fill: currentColor; }

 h4 {
    --font-size: 1rem;
    --font-weight: 400;
    margin-bottom: .5rem
}

p {
    --color: var(--muted-color)
}

#examples .grid {
    grid-gap: 2rem;
    display: grid;
    grid-template-columns:1fr;
    margin: 0
}

@media (min-width: 576px) {
    #examples .grid {
        grid-template-columns:1fr 1fr
    }
}

@media (min-width: 992px) {
    #examples .grid {
        grid-template-columns:1fr 1fr 1fr
    }
}

#examples .grid > div > a {
    text-transform: uppercase;
    font-weight: 500
}

.example {
    position: relative;
    width: 100%;
    margin-top: calc(var(--spacing) * .5);
    margin-bottom: var(--spacing);
    padding-top: 56.25%
}

.example .desktop, .example .mobile {
    position: absolute;
    transform: scale(1.001);
    background-color: var(--card-background-color);
    background-repeat: no-repeat;
    background-size: 200% auto;
    box-shadow: var(--card-box-shadow);
    transition: background-position .15s ease-in-out, transform .3s ease-in-out
}

.example .desktop::before, .example .mobile::before {
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    border: 1px solid rgba(138, 153, 163, .25);
    content: "";
    transition: box-shadow .3s ease-in-out
}

.example .desktop {
    top: 0;
    left: 0;
    width: calc(100% - var(--spacing));
    padding-top: calc(56.25% - var(--spacing))
}

.example .mobile {
    right: 0;
    bottom: 0;
    width: 19.53125%;
    padding-top: calc(42.2916666667% - var(--spacing));
    border-radius: var(--border-radius);
    transition-delay: 75ms
}

.example .mobile::before {
    border-radius: var(--border-radius);
    transition-delay: 75ms
}

a:active .desktop, a:focus .desktop, a:hover .desktop {
    transform: scale(1.03125)
}

a:active .mobile, a:focus .mobile, a:hover .mobile {
    transform: scale(1.0625)
}

a:active .desktop::before, a:active .mobile::before, a:focus .desktop::before, a:focus .mobile::before, a:hover .desktop::before, a:hover .mobile::before {
    box-shadow: 0 0 1rem .1rem
}

:root:not([data-theme=dark]) .example .desktop, :root:not([data-theme=dark]) .example .mobile, [data-theme=light] .example .desktop, [data-theme=light] .example .mobile {
    background-position: 100% 0;
    background-position: calc(100% - 1px) 0
}

:root:not([data-theme=dark]) .example:hover .desktop, :root:not([data-theme=dark]) .example:hover .mobile, [data-theme=light] .example:hover .desktop, [data-theme=light] .example:hover .mobile {
    background-position: 0 0
}

@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme=light]) .example .desktop, :root:not([data-theme=light]) .example .mobile {
        background-position: 0 0
    }

    :root:not([data-theme=light]) .example:hover .desktop, :root:not([data-theme=light]) .example:hover .mobile {
        background-position: 100% 0;
        background-position: calc(100% - 1px) 0
    }
}

[data-theme=dark] .example .desktop, [data-theme=dark] .example .mobile {
    background-position: 0 0
}

[data-theme=dark] .example:hover .desktop, [data-theme=dark] .example:hover .mobile {
    background-position: 100% 0;
    background-position: calc(100% - 1px) 0
}

#why [data-theme]:first-of-type pre, #why ul {
    margin-bottom: var(--block-spacing-vertical)
}

[data-theme=invalid], [data-theme=valid] {
    position: relative;
    margin-bottom: 0 !important
}

[data-theme=invalid]:before, [data-theme=valid]:before {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    padding: .375rem .75rem;
    border-radius: 0;
    color: var(--primary-inverse);
    font-size: 14px;
    line-height: 1
}

@media (min-width: 992px) {
    [data-theme=invalid]:before, [data-theme=valid]:before {
        top: var(--spacing);
        right: var(--spacing)
    }
}

[data-theme=invalid] pre, [data-theme=valid] pre {
    padding: var(--spacing)
}

[data-theme=invalid] pre code, [data-theme=valid] pre code {
    padding: calc(var(--spacing) * 1.625) 0
}

[data-theme=invalid]:before {
    background: var(--invalid-color);
    content: "Bulky"
}

[data-theme=valid] pre {
    margin-bottom: 0
}

[data-theme=valid]:before {
    background: var(--valid-color);
    content: "Great"
}

#star p {
    margin-bottom: 0;
    line-height: 1
}

#star iframe {
    display: block;
    margin-top: calc(var(--spacing) * .5);
    margin-right: auto;
    margin-left: auto
}

@media (min-width: 576px) {
    #star iframe {
        display: inline-block;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: .125rem;
        margin-left: calc(var(--spacing) * .25);
        vertical-align: middle
    }
}

body > footer ul, body > footer ul li {
    margin-bottom: 0;
    padding: 0;
    color: var(--muted-color);
    list-style: none
}

body > footer li {
    display: inline-block
} 

body > footer ul:first-of-type {
    margin-bottom: calc(var(--spacing) * .5)
}

@media (max-width: 767px) {
    body > footer ul:last-of-type li {
        display: list-item
    }

    body > footer ul:last-of-type li::before {
        display: none
    }
}

header {
    padding-bottom: var(--block-spacing-vertical)
}

section#demo {
    display: none
}

[data-typeit-id]:before {
    content: '.';
    display: inline-block;
    width: 0;
    visibility: hidden;
}

@keyframes blink-9870177 {
    0% {
        opacity: 0
    }
    49% {
        opacity: 0
    }
    50% {
        opacity: 1
    }
}

[data-typeit-id='9870177'] .ti-cursor {
    animation: blink-9870177 1s infinite;
}

[data-typeit-id='9870177'] .ti-cursor.with-delay {
    animation-delay: 500ms;
}

[data-typeit-id='9870177'] .ti-cursor.disabled {
    animation: none;
}

.panel-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .panel-container {
        flex-direction: row;
    }
}

.snippet-panel {
    flex: 1;
}

@media (min-width: 768px) {
    .snippet-panel {
        width: 50%;
    }
}

.snippet-documentation-panel {
    margin: var(--block-spacing-vertical) 0;
}

.snippet-documentation-panel h2 {
    font-size: 2.0rem;
}

.documentation-panel {
    background-color: rgba(255, 255, 255, 0.10);
    border-radius: var(--border-radius);
    flex: 1;
    height: 100%;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.documentation-panel > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.documentation-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--function-name-color);
    font-weight: 700;
    line-height: 1.25;
}

.documentation-panel h2 a {
    color: var(--function-name-color);
}

.documentation-panel h3 {
    font-size: 1rem;
    color: var(--muted-color);
    margin: 0 0 0.375rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.documentation-panel h4 {
    font-size: 0.8125rem;
    color: var(--panel-fg);
    margin: 0 0 0.375rem 0;
    font-weight: 600;
}

.documentation-panel p,
.documentation-panel span:not([class^="hljs-"]),
.documentation-panel div {
    font-size: 0.875rem;
    color: var(--panel-fg);
}

.documentation-panel p {
    margin-bottom: 0.75em;
    line-height: 1.6;
}

.documentation-panel table {
    font-size: 0.875rem;
}

.documentation-panel table thead th,
.documentation-panel table thead td {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--panel-fg);
    font-size: 0.8rem;
}

.documentation-panel table th {
    font-weight: 600;
}

.documentation-panel code,
.documentation-panel pre {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.documentation-panel div pre {
    margin-bottom: 0;
}

.documentation-panel .admonition {
    background: rgba(126, 224, 255, 0.10);
    border: 2px solid rgba(126, 224, 255, 0.10);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    backdrop-filter: blur(10px);
}

.documentation-panel .admonition h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--panel-link);
    margin-bottom: 0.2em;
    letter-spacing: 0.01em;
}

.halign-left {
    text-align: left;
}

.grid-all th, .grid-all td {
    border: 1px solid #dfe2e5;
    border-collapse: collapse;
}

/*
 * Syntax highlighting for the landing page code blocks, ported from the doc
 * site's theme (docs/ui/src/css/highlight.css, GitHub Primer dark dimmed) so
 * the raw snippet and the mrdocs-rendered synopsis are coloured identically
 * to the documentation. The markup comes from the shared richCpp language
 * definition consumed by both the UI bundle and docs/website/render.js.
 */
.hljs-comment,
.hljs-quote {
    color: var(--hl-comment);
    font-style: italic;
}

.hljs-keyword,
.hljs-formula {
    color: var(--hl-keyword);
}

.hljs-string,
.hljs-regexp {
    color: var(--hl-string);
}

.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-attr,
.hljs-attribute,
.hljs-template-variable,
.hljs-meta {
    color: var(--hl-const);
}

.hljs-built_in,
.hljs-type,
.hljs-class .hljs-title,
.hljs-title.class_,
.hljs-name,
.hljs-variable {
    color: var(--hl-entity);
}

.hljs-title,
.hljs-function .hljs-title,
.hljs-title.function_ {
    color: var(--hl-title);
}

.hljs-tag,
.hljs-doctag,
.hljs-selector-tag,
.hljs-section {
    color: var(--hl-tag);
}

/*
 * Doxygen-style doc-block comments use a green pair: the prose is a darker
 * green, and the `@tag` keywords, the identifier after `@param`/`@tparam`/
 * `@throws`, and backtick code spans share a lighter green so the parts that
 * feed the rendered documentation stand out.
 */
.hljs-doc-comment {
    color: var(--hl-doc);
    font-style: italic;
}

.hljs-doc-comment .hljs-doctag {
    color: var(--hl-doc-strong);
    font-style: normal;
    font-weight: 700;
}

.hljs-doc-comment .hljs-name,
.hljs-doc-comment .hljs-string {
    color: var(--hl-doc-strong);
    font-style: italic;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: var(--body-background);
}

/* =========================== 
   Shared Logo Styles
=========================== */

/* Logo Styles */
.nav .logo-link, .navbar-brand .navbar-item:first-child {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    padding-left: 18px;
}

.nav .logo-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.nav .logo-link svg, .navbar-brand .navbar-item:first-child svg {
    height: 48px;
    width: auto;
    flex-shrink: 0;
    /* Only the head silhouette follows this colour; the line-work is black in
       the SVG. Transparent on light gives a black line drawing on the cream
       chrome, white on dark fills the head under the black features. */
    color: var(--logo-fill);
}

.nav .logo-text, .navbar-brand .navbar-item:first-child .logo-text {
    font-family: var(--display-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--logo-text-color);
    white-space: nowrap;
}

@media (max-width: 576px) {
    .nav .logo-link svg {
        height: 28px;
    }
    
    .nav .logo-link {
        gap: 0.5rem;
    }
}

nav {
  backdrop-filter: blur(10px);
}

.header-cta {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 0 0;
}

.banner-snippet {
  display: flex;
  justify-content: center;
  border-radius: 0.25rem;
  margin: 0.5em 0 0 0;
}

.banner-snippet code {
  color: #fff;
  margin-top: 0.5rem;
  background-color:rgba(255, 255, 255, 0.10);
}

ul a:hover,
ol a:hover,
ul a:focus,
ol a:focus {
    color: var(--primary-hover);
    transition: color var(--transition);
}

/* ===========================
   Navigation Styles
=========================== */

.nav {
    background-color: var(--nav-background-color);
    font-size: 16px;
    font-weight: bold;
    height: 3.5rem;
    max-height: 63px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.nav a,
footer a {
    color: var(--muted-color);
    display: inline-flex;
    -webkit-text-decoration: none;
    text-decoration: none;
    --text-decoration: none;
    transition: transform var(--transition), color var(--transition);
}

.nav a:visited,
footer a:visited {
    color: var(--muted-color);
}

.nav a:hover,
.nav a:focus,
footer a:hover,
footer a:focus {
    /* Highlight toward the high-contrast colour, which flips per theme:
       darker than the muted rest colour on the cream page, brighter on the
       midnight one. A flat #fff highlighted correctly on dark but made links
       vanish on light. */
    color: var(--contrast);
    -webkit-text-decoration: none;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav ul {
    gap: 1rem;
}

.nav-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
}

.nav-section>div {
    margin-right: .5rem;
}

.nav-section:last-child {
    padding-right: 18px;
    color: #ffffff99;
}

.nav-section:last-child div:hover {
    color: #ffffffff;
}

.nav-section:last-child div {
    margin-right: 1.5rem;
}

.nav-link svg {
    color: inherit;
}

.nav ul li {
    list-style: none;
}

.nav .nav-section:last-child a[role="menuitem"] {
    /* font-size: 1rem; */
}

/* ===========================
   Comic navbar — Figma "Navbar" 316:331942 (landing) / 316:334626 (docs).
   Both frames are drawn light and are identical apart from padding and menu
   contents, so these values are shared with the docs theme. Dark is derived,
   since no dark frame exists and the page loads data-theme="dark".
=========================== */
:root {
    /* default = dark. 316:256650, the dark Home frame's Navbar. */
    --navc-bg: #171c26;
    --navc-ink: #e9edf2;
    /* The frame strokes the dark bar, its buttons and their shadows in pure
       #000000, not the slate edge the docs side never uses. */
    --navc-border: #000000;
    --navc-gold: var(--ds-gold-450);
    --navc-shadow: #000000;

    /* Theme toggle, Figma "Secondary/Default" 38x38: #1E78FF at 10% with a
       2px #0F172A edge. The icon keeps its own token because it is the one
       part that has to invert for the dark ground. */
    --navc-toggle-bg: rgba(30, 120, 255, 0.1);
    --navc-toggle-edge: #000000;
    --navc-toggle-icon: #ffffff;

    /* The dark Menu Container is pure #FFFFFF, not the bar's
       blue-grey `--navc-ink`. Light is #0F172A. */
    --navc-menu-icon: #ffffff;

    /* In both themes the open panel is the page ground under a 10%
       blue wash, in both themes, so one mix off `--body-background` covers
       them. The bar above it stays `--navc-bg`. */
    --navc-menu-bg: color-mix(in srgb, var(--ds-blue-450) 10%, var(--body-background));
}
:root[data-theme="light"] {
    --navc-bg: #ffffff;
    --navc-ink: #0f172a;
    --navc-border: #0f172a;
    --navc-gold: var(--ds-gold-250);
    --navc-shadow: #0f172a;

    --navc-toggle-bg: rgba(30, 120, 255, 0.1);
    --navc-toggle-edge: #0f172a;
    --navc-toggle-icon: #0f172a;
    --navc-menu-icon: #0f172a;
}

.nav {
    background: var(--navc-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid var(--navc-border);
    /* The frame's only edge is that 1px rule; this inherited a second
       translucent hairline from the pre-refresh bar. */
    box-shadow: none;
    height: auto;
    min-height: 79px;
    max-height: none;
    overflow: visible;
    padding: 0 30px;
}
.nav .logo-link { padding-left: 0; }
/* Real two-tone vector lockup (skull + MR.DOCS wordmark, from Figma). Theme by
   recoloring the black parts (skull outline/features + wordmark) and the white
   detail overlay. Light: ink skull/word + white details. Dark: invert — white
   skull/word + nav-colored details (so the details read as cut-outs). */
.nav .logo-link .brand-lockup { height: 47px; width: auto; display: none; }
:root[data-theme="light"] .nav .logo-link .mark-light { display: block; }
:root[data-theme="dark"]  .nav .logo-link .mark-dark  { display: block; }
.nav .logo-link .mark-light path[fill="black"] { fill: #0f172a; }
.nav .logo-link .mark-light path[fill="white"] { fill: #ffffff; }
.nav .logo-link .mark-dark  path[fill="black"] { fill: #141e26; }
.nav .logo-link .mark-dark  path[fill="white"] { fill: #e9edf2; }

.nav .nav-section:last-child {
    gap: 22px;
    padding-right: 0;
    color: var(--navc-ink);
}
.nav ul.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.nav ul.nav-menu > li { list-style: none; margin: 0; }
.nav ul.nav-menu > li.nav-link > a {
    font-family: var(--ds-font-body);
    font-size: 14px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    /* 316:331967 lh 100%: inheriting the body's 1.35 made each link box 18.9
       tall instead of 14 and shifted the row off the docs bar's baseline. */
    line-height: 1;
    color: var(--navc-ink);
}
.nav ul.nav-menu > li.nav-link > a:hover,
.nav ul.nav-menu > li.nav-link > a:focus { color: var(--navc-ink); transform: translateY(-1px); }

/* comic buttons (GitHub + theme toggle) */
.nav .nav-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--navc-border);
    box-shadow: 2px 2px 0 var(--navc-shadow);
    background: var(--navc-bg);
    color: var(--navc-ink);
    font-family: var(--ds-font-body);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    /* 316:331970 is 38 tall. Vertical padding plus the 18.9 line box plus two
       2px edges came to 38.9, so the height is set and the padding is
       horizontal only, matching the docs button. */
    height: 38px;
    padding: 0 14px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .06s ease, box-shadow .06s ease;
}
.nav .nav-btn:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--navc-shadow); color: var(--navc-ink); }
.nav .nav-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--navc-shadow); }
.nav .nav-btn--gh { background: var(--navc-gold); color: #0f172a; }
.nav .nav-btn--gh svg { width: 18px; height: 18px; color: #0f172a; }
/* gold button label stays ink in both themes (beats the nav-link color) */
.nav ul.nav-menu > li.nav-link > a.nav-btn--gh,
.nav ul.nav-menu > li.nav-link > a.nav-btn--gh:hover,
.nav ul.nav-menu > li.nav-link > a.nav-btn--gh:focus { color: #0f172a; }
/* The .nav-btn--toggle rules that used to sit here carried this same Figma
   spec but targeted markup that no longer exists (the shipped toggle is
   .theme-toggle-btn). Their spec now lives on that rule instead. */
.nav .nav-cta-li { display: flex; align-items: center; }

/* Hamburger — shown only on mobile */
.nav { position: relative; }
/* The frame's "Menu Container" is a bare 24x24 with no fill and no stroke, so
   the glyph stands on its own -- the neighbouring 38x38 toggle already owns
   that weight. */
.nav .nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    /* zero the global button margin */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    box-shadow: none;
    background: none;
    color: var(--navc-ink);
    cursor: pointer;
}
/* Both icons carry the bar's ink explicitly: `currentColor` alone resolves to
   a blue further up the cascade and paints the glyph as though it were a
   link. */
.nav .nav-hamburger .burger-icon,
.nav .nav-hamburger .close-icon {
    display: none;
    width: 24px;
    height: 24px;
    color: var(--navc-menu-icon);
}
.nav .nav-hamburger .burger-icon path { fill: currentColor; }
.nav .nav-hamburger .close-icon path { stroke: currentColor; }

/* Per "Close remove - Iconly Pro": the open menu swaps the bars for
   a cross, so the control says how to dismiss what it opened. */
.nav .nav-hamburger .burger-icon { display: block; }
.nav.nav-open .nav-hamburger .burger-icon { display: none; }
.nav.nav-open .nav-hamburger .close-icon { display: block; }

@media (max-width: 767px) {
    /* The frame makes the mobile bar 59.4 (a 35.4 logo inside 12/20 padding),
       not the 79 the desktop bar carries -- the docs bar beside it is 57. */
    .nav {
        min-height: 59px;
        padding: 0 20px;
    }
    .nav .logo-link .brand-lockup { height: 35px; }
    .nav .nav-hamburger { display: inline-flex; }
    /* Per "Navbar Menu [Open]": 30px padding, the links stacked left on
       a 32 gap, the toggle at the top right. No rules between items -- the 32
       gap is what separates them. */
    .nav ul.nav-menu {
        display: none;
        /* Fixed and run to the bottom, like the docs drawer: the mock's panel
           is a full screen, and an absolute one scrolls away with the page.
           `--nav-h` is published by the toggle script. */
        position: fixed;
        top: var(--nav-h, 79px); left: 0; right: 0; bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        margin: 0;
        padding: 30px;
        background: var(--navc-menu-bg);
        border-bottom: 0;
        overflow-y: auto;
        z-index: 60;
    }
    .nav.nav-open ul.nav-menu { display: flex; }
    .nav ul.nav-menu > li { width: auto; margin: 0; }
    /* `:not(.nav-btn)` -- the reset is for the plain menu links. Without it
       the gh button lost its bottom border and rendered a three-sided box. */
    .nav ul.nav-menu > li.nav-link > a:not(.nav-btn) {
        display: block;
        padding: 0;
        font-size: 14px;
        border-bottom: 0;
    }
    /* 157x38 in the mock, left-aligned, not stretched to the panel. The
       padding is restated because the link reset above is (0,3,3) and would
       otherwise zero it. */
    .nav ul.nav-menu > li.nav-link > a.nav-btn--gh {
        width: auto;
        justify-content: center;
        margin-top: 0;
        padding: 10px 14px;
    }
    .nav .nav-btn--gh span { display: inline; }
    /* Frame 234 sits at 334,30 in a 402 panel: top right, inside the padding,
       on the same row as the links rather than stacked under them. */
    .nav .nav-toggle-li { position: absolute; top: 30px; right: 30px; margin: 0; }
}

/* ===========================
   Cutout Styles
=========================== */

.boxicon {
    width: 50px;
    height: 50px;
}

.boxicon .inner-box {
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 126%;
}

/***** cutout box sizing *****/

.box1 {
    width: min(300px, 80vw);
    height: min(300px, 80vw);
}

.box2 {
    width: min(150px, 40vw);
    height: min(150px, 40vw);
}

.box3 {
    width: min(450px, 90vw);
    height: min(450px, 90vw);
}

/***** cutout box shapes *****/

.box-shape1 {
    background-image: url("./assets/image-box.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.box-shape2 {
    background-image: url("./assets/image-box2.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.box-shape3 {
    background-image: url("./assets/image-box3.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

/***** cutout box rotations *****/
.box0 {
    position: relative;
    filter: var(--ds-drop-comic) var(--box-outline);
}

.box90 {
    transform: rotate(90deg);
    filter: drop-shadow(7px -10px 0px rgba(0, 0, 0, .7)) var(--box-outline);
}

.box90 .inner-box {
    --inner-box-rotation: 270deg;
}

.box180 {
    transform: rotate(180deg);
    filter: drop-shadow(-7px -10px 0px rgba(0, 0, 0, .7)) var(--box-outline);
}

.box180 .inner-box {
    --inner-box-rotation: -180deg;
}

.box270 {
    transform: rotate(270deg);
    filter: drop-shadow(-7px 10px 0px rgba(0, 0, 0, .7)) var(--box-outline);
}

.box270 .inner-box {
    --inner-box-rotation: 90deg;
}

/* Tablet scaling adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .inner-box {
        --inner-box-scale: 0.85;
    }
}

/***** cutout box inner content and images *****/
:root {
    --inner-box-rotation: 0deg;
    --inner-box-scale: 0.85;
}

.inner-box {
    height: 70%;
    width: 70%;
    position: absolute;
    top: 15%;
    left: 15%;
    color: black;
    overflow: hidden;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    transform: rotate(var(--inner-box-rotation)) scale(var(--inner-box-scale));
}

.investigate {
    background-image: url("./assets/investigate.png");
}

.shouting {
    background-image: url("./assets/shout.png");
}

.thinking {
    background-image: url("./assets/thinking.png");
}

.mrdocs {
    background-image: url("./assets/mrdocs.png");
}

.logo {
    background-image: url("./assets/mrdocs-logo.svg");
}

.pointing {
    background-image: url("./assets/pointing.png");
}

.glasses {
    background-image: url("./assets/glasses.png");
}

.writing {
    background-image: url("./assets/writing.png");
}

/* ===========================
   Header Styles
=========================== */

.header-banner {
	align-items: center;
	justify-items: center;
}

.header-image {
	max-width: 100%;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

@media (min-width: 768px) {
	.header-banner {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		justify-items: center;
	}
}

.header-content {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.header-cta a {
    display: inline-flex;
    align-items: center;
    height: var(--ds-btn-height);
    font-family: var(--ds-font-display);
    font-style: italic;
    /* Bangers ships only 400. A heavier weight is a synthetic bold, which
       WebKit also widens by a pixel a glyph; Chromium only thickens it. */
    font-weight: var(--ds-weight-regular);
    text-transform: uppercase;
    padding: 0 var(--ds-btn-padding-x);
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border: var(--ds-border-width-bold) solid transparent;
}

.header-cta a:active {
    transform: var(--ds-press);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.header-cta a.secondary {
    background: var(--primary-color);
    color: var(--ds-ink-900);
    box-shadow: var(--ds-shadow-comic-soft);
    border-color: var(--primary-color);
}

.header-cta a.secondary:hover {
    background: var(--primary-color-hover);
    color: var(--ds-white);
    transform: var(--ds-lift);
    box-shadow: var(--ds-shadow-comic-soft);
    border-color: var(--ds-blue-400);
}

.header-cta a.secondary:active {
    background: var(--ds-blue-700);
    color: var(--ds-white);
    border-color: var(--ds-blue-700);
    box-shadow: var(--ds-shadow-comic-pressed-soft);
}

.header-cta a:focus {
    outline: 2px solid var(--primary-focus);
    outline-offset: 3px;
}

/* ===========================
   Principles Styles
=========================== */

.principles-banner {
	align-items: center;
	justify-items: center;
}

.principles-content {
	text-align: center;
	order: 1
}

.principles-image {
	order: 2;
	max-width: 100%;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

@media (min-width: 768px) {
  .principles-image {
    justify-self: end;
    align-self: center;
		order: 1;
  }
}

@media (min-width: 768px) {
	.principles .container {
		display: flex;
		flex-direction: column;
		gap: 2.5rem;
	}

	.principles-features {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--ds-space-lg);
		row-gap: var(--ds-space-lg);
	}
}

/* Comic feature cards: filled panel, hard outline, hard offset shadow.
   Styled off the bare divs the template emits, so no markup change is
   needed (index.html is generated and cannot be re-rendered here). */
.principles-features > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ds-space-xs);
    padding: var(--ds-feature-padding);
    background: var(--ds-feature-bg);
    border: var(--ds-feature-border-width) solid var(--ds-feature-border-color);
    border-radius: var(--ds-feature-radius);
    box-shadow: var(--ds-feature-shadow);
}

.principles-features svg {
    box-sizing: content-box;
    width: var(--ds-feature-icon-size);
    height: var(--ds-feature-icon-size);
    padding: var(--ds-space-2xs);
    color: var(--function-name-color);
    background: var(--ds-feature-icon-bg);
    border: var(--ds-feature-border-width) solid var(--ds-feature-border-color);
    border-radius: var(--ds-feature-radius);
}

/* Card titles take the accent label colour and the underline from the
   mockups; the display face and italic come from the shared heading rule. */
.principles-features h4 {
    margin-bottom: 0;
    color: var(--ds-feature-title-color);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.principles-features p {
    margin-bottom: 0;
}

.features hgroup {
    margin-bottom: var(--block-spacing-vertical);
}

.snippet-image {
	display: flex;
}

table {
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

table > * > tr > * {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-width: 1px;
    border-style: solid;
    padding: 0;
}

table td, table th  {
    padding: .5rem;
}

table th {
    text-align: left;
}

table code {
    padding: 0;
}

/* ===========================
   Github Star Styles
=========================== */

#star {
    background-color: rgba(255, 255, 255, 0.4);
}

 /* ===========================
   Footer Styles
=========================== */
 
footer ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

footer a {
    color: var(--muted-color);
    display: inline-flex;
    -webkit-text-decoration: none;
    text-decoration: none;
    --text-decoration: none;
    transition: transform var(--transition), color var(--transition);
}

/* Mobile groundwork (North #1624 — conference QR-code path). The landing grids
   are already mobile-first; this keeps the embedded reference-doc panels and
   their wide code/tables from forcing a horizontal page scroll on phones. */
@media screen and (max-width: 767px) {
    body {
        overflow-x: hidden
    }

    .documentation-panel,
    .snippet-documentation-panel {
        overflow-x: auto
    }

    .documentation-panel table,
    .snippet-documentation-panel table {
        display: block;
        max-width: 100%;
        overflow-x: auto
    }

    .banner-snippet pre,
    .snippet-panel pre,
    .documentation-panel pre {
        max-width: 100%;
        overflow-x: auto
    }
}

/* -------------------------------------------------------------------------
   Theme-aware code + reference surfaces. In light mode these use a light code
   / card surface with dark syntax; in dark mode they keep the Midnight card.
   Colours come from the --hl-* / --panel-* tokens in the theme blocks above.
   ------------------------------------------------------------------------- */

/* Reference (generated-docs) card. */
.documentation-panel {
    background-color: var(--panel-surface);
    border: 1px solid var(--panel-border);
    color: var(--panel-fg);
    backdrop-filter: none;
}

.documentation-panel a {
    color: var(--panel-link);
}

/* Hero chip under the buttons: a subtle bordered pill in both themes. */
.banner-snippet code {
    color: var(--color);
    background-color: var(--code-background-color);
    border: 1px solid var(--muted-border-color);
}

/* All highlighted code sits on the theme code surface. */
.hljs {
    background-color: var(--hl-bg);
    color: var(--hl-fg);
}

/* Reference-panel section labels use the card foreground. */
.documentation-panel h1,
.documentation-panel h2,
.documentation-panel h3,
.documentation-panel h4,
.documentation-panel h5,
.documentation-panel h6,
.documentation-panel small,
.documentation-panel dt,
.documentation-panel .paragraph {
    color: var(--panel-fg);
}

/* Left raw-source snippet: a code-surface card matching the docs card beside
   it (its <code> carries no .hljs class, only inner token spans). */
.snippet-panel > pre {
    background-color: var(--hl-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
}

.snippet-panel > pre,
.snippet-panel > pre > code {
    color: var(--hl-fg);
}

.snippet-panel > pre > code {
    background-color: transparent;
}

/* Mobile overflow fixes (North #1624): let the nav and the hero code chip
   wrap instead of forcing the page wider than the viewport, and cap the
   mascot art so nothing pushes past a phone screen. */
@media screen and (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .nav,
    .nav ul[role="menubar"],
    .nav-section {
        flex-wrap: wrap;
    }

    .banner-snippet,
    .banner-snippet small,
    .banner-snippet code {
        white-space: normal;
        word-break: break-word;
        max-width: 100%;
    }

    .box3 {
        width: min(320px, 84vw);
        height: min(320px, 84vw);
    }

    .principles-features {
        gap: 1.5rem;
    }
}

/* Landing light/dark toggle button in the nav. */
/* Figma "Secondary/Default": 38x38, 5px padding, 2px edge, 2px 2px 0 shadow,
   22px icon. No border-radius in the spec, so the corners stay square. */
.theme-toggle-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 38px;
    height: 38px;
    padding: 5px;
    margin: 0;
    background: var(--navc-toggle-bg);
    border: var(--ds-border-width-bold) solid var(--navc-toggle-edge);
    border-radius: 0;
    /* Edge and shadow are separate: the shadow is cast in --navc-shadow, the
       same ink as the GitHub button beside it, which otherwise sat a shade
       lighter than its neighbour on dark. */
    box-shadow: 2px 2px 0 var(--navc-shadow);
    color: var(--navc-toggle-icon);
    cursor: pointer;
    line-height: 1;
    transition: transform var(--transition), box-shadow var(--transition);
}

/* No hover/active in the spec; follow the comic pattern the other nav
   buttons already use so the control still reads as pressable. */
.theme-toggle-btn:hover {
    background: var(--navc-toggle-bg);
    color: var(--navc-toggle-icon);
    transform: var(--ds-lift);
    box-shadow: 4px 4px 0 var(--navc-shadow);
}

.theme-toggle-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--navc-shadow);
}

/* Icons are stroked outlines (Figma "Iconly Pro"), not filled glyphs. A
   CSS `fill` here would beat the markup's fill="none" and turn them into
   solid blobs, so it is deliberately not set. */
.theme-toggle-btn svg {
    width: 22px;
    height: 22px;
}

.theme-toggle-btn .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle-btn .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle-btn .icon-moon {
    display: none;
}

@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle-btn .icon-sun {
        display: block;
    }

    :root:not([data-theme="light"]) .theme-toggle-btn .icon-moon {
        display: none;
    }
}

/* Snippet cards follow the same logic as the documentation: the descriptive
   body text (descriptions, parameter tables, "declared in") switches to a
   sans face for legibility. Card titles and section headings keep the
   typewriter face, and source code / synopsis blocks keep the clean Menlo
   monospace (set on code/pre elsewhere). */
.documentation-panel,
.snippet-documentation-panel {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* -------------------------------------------------------------------------
   More light-mode fixes.
   ------------------------------------------------------------------------- */

/* The "Star us on GitHub" band is forced light; give it a surface distinct
   from the cream page so it reads as a separate strip in both page themes. */
#star {
    background-color: #eef1f5;
    border-top: 1px solid #d7dde5;
    border-bottom: 1px solid #d7dde5;
}

/* Symbol-name title keeps a brand accent that reads in both themes. */
.documentation-panel h2,
.documentation-panel h2 a {
    color: var(--panel-title);
}

/* =====================================================================
 * B3 — comic treatment for the code / reference rows.
 * Appended last on purpose: the theme-aware surface block above sets the
 * 1px borders and forces panel headings to --panel-fg, so these rules
 * have to come after it to win the cascade at equal specificity.
 * ===================================================================== */

/* Both halves of the row become comic surfaces. The fills stay on the
   existing theme tokens (--hl-bg / --panel-surface); only the outline
   and the shadow change. */
.snippet-panel > pre,
.documentation-panel {
    border: var(--ds-panel-border-width) solid var(--ds-panel-border-color);
    border-radius: var(--ds-panel-radius);
    box-shadow: var(--ds-panel-shadow);
    backdrop-filter: none;
}

.panel-container {
    gap: var(--ds-panel-gap);
}

/* Reference-panel labels take the gold accent, uppercase and italic, as
   the mockups show them. This deliberately overrides the earlier
   exemption that kept them in the body face: on the landing page the
   symbols are short curated names (terminate, distance, is_prime, sort),
   not the arbitrary template signatures that rule exists to protect on
   the docs site. The exemption still stands there. */
.documentation-panel h2,
.documentation-panel h2 a,
.documentation-panel h3 {
    color: var(--ds-panel-heading);
    font-family: var(--ds-font-display);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Body copy, tables and code inside the panel stay in the reading face —
   only the labels take the display treatment. */
.documentation-panel h4,
.documentation-panel h5,
.documentation-panel h6 {
    font-family: var(--font-family);
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
}

/* =====================================================================
 * Label pills — the magenta badges above each code/reference row and
 * over the hero title. Figma "Background" + "Header Text": Bangers at
 * 16px/16px, 0.1em tracking, white on #EC4899, 2px #0F172A edge with a
 * 2px 2px 0 shadow, square corners.
 * ===================================================================== */
.row-label {
    display: inline-flex;
    align-items: center;
    margin: 0 0 var(--ds-space-sm);
    padding: var(--ds-badge-padding);
    background: var(--ds-badge-bg);
    color: var(--ds-badge-text);
    border: var(--ds-badge-border-width) solid var(--ds-badge-border-color);
    border-radius: var(--ds-badge-radius);
    box-shadow: var(--ds-badge-shadow);
    font-family: var(--ds-badge-font);
    font-size: var(--ds-badge-size);
    /* Bangers has no italic cut, so this stays upright rather than being
       synthesised into an oblique. */
    font-style: normal;
    font-weight: var(--ds-weight-regular);
    line-height: var(--ds-badge-leading);
    text-transform: uppercase;
    letter-spacing: var(--ds-badge-tracking);
    /* Hugs its text; the shared paragraph width/margin would stretch it. */
    width: auto;
}

/* The hero pill sits above the oversized title, which carries its own
   tight leading; give it a little more breathing room underneath. */
.hero-eyebrow {
    margin-bottom: var(--ds-space-md);
}

/* =====================================================================
 * Halftone dot field — the comic print texture behind the hero and the
 * examples band. Drawn as a pseudo-element rather than a background on
 * the section itself, so it layers over whatever surface colour the
 * current theme supplies without replacing it. No image asset: a single
 * repeated radial-gradient, which stays crisp at any zoom.
 * ===================================================================== */
header,
#features,
.principles {
    position: relative;
    isolation: isolate;
}

header::before,
#features::before,
.principles::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(
        var(--ds-halftone-dot) var(--ds-halftone-dot-size),
        transparent var(--ds-halftone-dot-size)
    );
    background-size: var(--ds-halftone-gap) var(--ds-halftone-gap);
    /* Pico resets `background-repeat: no-repeat` on every ::before (styles.css:822),
       which would render this tile exactly once. Restore the tiling. */
    background-repeat: repeat;
    /* Fade out down the band so the dots frame the heading rather than
       sitting behind the body copy and code panels. */
    -webkit-mask-image: linear-gradient(
        to bottom, #000 0%, transparent var(--ds-halftone-extent)
    );
    mask-image: linear-gradient(
        to bottom, #000 0%, transparent var(--ds-halftone-extent)
    );
}

/* The dots are decorative; drop them when the reader has asked for more
   contrast. */
@media (prefers-contrast: more) {
    header::before,
    #features::before,
    .principles::before,
    .cta-panel::before,
    .cta-panel::after,
    .cta-panel-inner::before {
        display: none;
    }
}

/* =====================================================================
 * HERO — built to the Home mockups (mobile 402, desktop 1440), 2026-08-19.
 * Mobile first; the desktop three-column arrangement is a later slice.
 * Geometry below was measured off the mobile mockup, so the values are
 * literal px rather than spacing tokens where the design is specific.
 * ===================================================================== */

/* The mockup hero is left-aligned; the previous treatment centred it. */
.header-content {
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

/* Headline: three lines, line 1 blue and the rest gold. */
header .header-content h1 .title-line {
    display: block;
    /* Bangers ships no italic cut, so the oblique is synthesised. WebKit does
       not grow the ink overflow rect to cover that skew, and this span's box
       ends exactly at the text advance, so it clipped the last glyph: the Y of
       "Full-fidelity" lost 15px of its arm on iOS while Chromium drew it whole.
       The padding gives the glyph room and the negative margin takes the space
       back, leaving layout identical. */
    padding-right: 0.45em;
    margin-right: -0.45em;
}

header .header-content h1 .title-line--alt {
    color: var(--ds-title-color-alt);
}

header .header-content h1 {
    /* An earlier rule centres the hero h1 directly, so inheriting
       text-align from .header-content is not enough. */
    text-align: left;
    /* Bangers carries a lot of internal leading above its caps, so the
       optical gap the mockup shows (28px from the pill) needs a negative
       margin here -- 30px of real space minus 43px of leading. */
    margin-block: -13px 0;
}

header .header-content > p:not(.row-label) {
    /* Figma: 14px / line-height 1.6 on mobile, 16px / 1.6 on desktop. */
    font-size: 14px;
    line-height: 1.6;
    margin-block: 24px 29px;
    max-width: none;
}

.header-cta {
    display: flex;
    /* Figma Button Container: stackSpacing 24 mobile, 32 desktop. */
    gap: 24px;
    /* Zeroed: a generic rule contributes 24px here, which would push the
       row past the measured position. */
    margin-top: 0;
    margin-bottom: 91px;
}

/* Mockup: DOWNLOAD is the light-blue fill, GET STARTED the navy one.
   Both carry the ink border and hard offset shadow. */
.header-cta a.primary {
    background: var(--ds-blue-300);
    color: var(--ds-ink-950);
}

.header-cta a.primary:hover {
    background: var(--ds-blue-300);
    border-color: var(--ds-color-outline);
}

.header-cta a.contrast.outline {
    background: var(--ds-ink-950);
    color: var(--ds-paper-50);
    backdrop-filter: none;
}

.header-cta a.contrast.outline:hover {
    background: var(--ds-ink-950);
    color: var(--ds-paper-50);
    border-color: var(--ds-color-outline);
}

/* ---- Code panel ---------------------------------------------------- */
.code-panel {
    background: var(--ds-color-code-shell);
    border: var(--ds-border-width-bold) solid var(--ds-code-panel-border);
    /* Figma: the shell carries 2px of padding, so it reads as a thin ring
       between the ink border and the code surface, plus a hard offset. */
    padding: 2px;
    box-shadow: 2px 2px 0 var(--ds-code-panel-border);
    border-radius: 0;
    width: 100%;
    overflow: hidden;
    /* Figma fixes the panel height and lets the code surface flex-grow into
       it, rather than padding the body out to size. */
    display: flex;
    flex-direction: column;
    height: 386px;
}

.code-panel-chrome {
    background: var(--ds-code-panel-chrome);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    padding: 5px;
    gap: 10px;
}

/* Figma fills the space either side of the language tag with five 0.5px
   rules at a 5px pitch. Drawn as a repeating gradient rather than five
   elements, since they are purely decorative. */
.code-panel-chrome::before,
.code-panel-chrome::after {
    content: "";
    flex: 1;
    align-self: stretch;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2) 0 0.5px,
        transparent 0.5px 5.5px
    );
    background-repeat: repeat;
}

.code-panel-tab {
    font-family: var(--ds-font-mono);
    font-size: 10.5px;
    line-height: 1;
    color: var(--ds-code-panel-tab);
}

.code-panel-body {
    margin: 0;
    /* Pico gives `pre` a border-radius; the panel must stay square. */
    border-radius: 0;
    padding: 20px;
    background: var(--ds-code-panel-bg);
    border: 0;
    counter-reset: codeline;
    overflow-x: auto;
    flex: 1;
    /* Digits in the widest line number; the gutter grows by 1ch per digit. */
    --cl-digits: 1;
}

.code-panel-body:has(.cl:nth-child(10)) {
    --cl-digits: 2;
}

.code-panel-body:has(.cl:nth-child(100)) {
    --cl-digits: 3;
}

.code-panel-body code {
    background: none;
    padding: 0;
    /* Figma: 13px mobile, 14px desktop. Line height follows the docs code
       blocks (docs/ui doc.css), not Figma's 2.2, so the two read alike. */
    font-size: 13px;
    line-height: var(--ds-leading-code);
    color: var(--ds-code-panel-fg);
}

.code-panel-body .cl {
    display: block;
    position: relative;
    counter-increment: codeline;
    /* Figma: 9px number column + 30px gap. The column widens to fit
       multi-digit numbers; resolved here so `ch` is the code face. */
    --cl-gutter: max(9px, calc(var(--cl-digits) * 1ch));
    padding-left: calc(var(--cl-gutter) + 30px);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    /* A blank source line has no text to give it a line box. */
    min-height: calc(var(--ds-leading-code) * 1em);
}

.code-panel-body .cl::before {
    content: counter(codeline);
    position: absolute;
    left: 0;
    width: var(--cl-gutter);
    text-align: right;
    /* .cl wraps anywhere; the number must not. */
    white-space: nowrap;
    overflow-wrap: normal;
    color: var(--ds-code-panel-linenum);
}

/* The panels are dark in both themes, so they take the docs' dark syntax
   palette rather than the themed --hl-* set, which flips to light-surface
   values in light mode. Same tokens as docs/ui vars.css, so the landing
   page code reads exactly like the documentation's. */
.code-panel,
.side-by-side {
    --hl-fg: var(--ds-code-panel-fg);
    --hl-comment: var(--ds-code-panel-comment);
    --hl-keyword: var(--ds-code-panel-hl-keyword);
    --hl-string: var(--ds-code-panel-hl-string);
    --hl-const: var(--ds-code-panel-hl-const);
    --hl-entity: var(--ds-code-panel-hl-entity);
    --hl-title: var(--ds-code-panel-hl-title);
    --hl-tag: var(--ds-code-panel-hl-tag);
    --hl-doc: var(--ds-code-panel-hl-doc);
    --hl-doc-strong: var(--ds-code-panel-hl-doc-strong);
}

/* ---- Hero structure (mobile) --------------------------------------- *
 * Side gutter from --ds-gutter, which steps with the viewport: the 402
 * mockup's 28px left too little measure on phones, so it holds from 768.
 * Mobile stacking order is content -> code panel -> mascot, which is
 * NOT DOM order, so the two visual columns are re-ordered here and
 * placed properly at the desktop breakpoint later. */
header .container,
.principles .container,
#features .container,
.cta-panel-inner,
.footer-bar {
    padding-left: var(--ds-gutter);
    padding-right: var(--ds-gutter);
}

.header-banner {
    grid-template-columns: 1fr;
    justify-items: stretch;
}

.header-content { order: 1; }
.hero-code { order: 2; }
.header-image { order: 3; }

/* A grid item will not shrink below its min-content width, and this
   one's min-content is the longest line of code. Kept as a guard so the
   panel can never widen the hero row; the code scrolls inside instead. */
.hero-code,
.code-panel,
.code-panel-body {
    min-width: 0;
}

.header-image {
    max-width: 100%;
}

/* Mockup puts 93px between the nav rule and the eyebrow pill. */
header .container {
    padding-top: 39px;
}

/* ---- Hero body copy + button corrections --------------------------- *
 * The paragraph is centred and muted by an earlier `header p` rule; the
 * mockup has it left-aligned in full ink. */
header .header-content > p:not(.row-label) {
    text-align: left;
    color: var(--ds-color-hero-text);
}

/* Pico drives link colour through its own --color custom property, which
   wins over a plain `color` declaration here, so set both. */
.header-cta a.contrast.outline,
.header-cta a.contrast.outline:hover {
    --color: var(--ds-paper-50);
    color: var(--ds-paper-50);
}

/* Figma has these as a DROP_SHADOW effect: offset 2,2, radius 0, pure
   black -- not the 6px used elsewhere, and black rather than the outline
   colour, so it does not follow the theme. */
.header-cta a.primary,
.header-cta a.contrast.outline {
    /* Figma nests the button in a 2px-padded wrapper whose fill is the page
       colour, with the stroke set to OUTSIDE. That reads as a light ring
       between the black edge and the fill, so: border = the ring, first
       shadow = the black edge outside it, second = the offset drop. */
    border-color: var(--body-background);
    box-shadow:
        0 0 0 var(--ds-cta-shadow) var(--ds-black),
        calc(var(--ds-cta-shadow) * 2) calc(var(--ds-cta-shadow) * 2) 0 var(--ds-black);
}

/* ---- Hero vertical rhythm ------------------------------------------ *
 * Set explicitly rather than inherited, so each step is one number that
 * maps to a measured gap in the mockup. Offsets are glyph-to-glyph, so
 * the constants absorb each face's internal leading. */
.header-content > .row-label.hero-eyebrow {
    margin-block: 0;
}

header .header-content h1 {
    margin-block: 14px 0;
}

header .header-content > p:not(.row-label) {
    margin-block: 30px 22px;
}

/* ---- Hero mascot --------------------------------------------------- *
 * On mobile the figure is centred at 81vw, the width measured off the
 * mockup. It also rides up over the panel's lower edge. */
.header-image {
    justify-self: center;
    margin-inline: auto;
    margin-top: -24px;
    width: 81vw;
    max-width: none;
}

/* Both mascots are cropped at the thigh, so each ends on a hard horizontal
   edge. One shared fade takes that edge out rather than letting it sit on
   the ground as a cut. Each mascot sets only where the fade starts, so the
   fade spans the same share of the figure: 0.26 of crown-to-belt (measured
   in the source art), running to the crop. */
.hero-mascot,
.cta-mascot {
    -webkit-mask-image: linear-gradient(
        to bottom, var(--ds-black) var(--mascot-fade-start), transparent 99%
    );
    mask-image: linear-gradient(
        to bottom, var(--ds-black) var(--mascot-fade-start), transparent 99%
    );
}

.hero-mascot {
    display: block;
    width: 100%;
    height: auto;
    /* Belt top at 82% of the art's height; 21% of the art is the fade. */
    --mascot-fade-start: 78%;
}

/* =====================================================================
 * HERO — desktop. Three columns: copy | mascot | code panel, measured
 * off the Figma layout export (2000px wide, ~0.655 to page px at 1440):
 * 78px gutters, columns ~430 / ~381 / ~473.
 * ===================================================================== */
@media (min-width: 992px) {
    /* Pico caps .container at 1130px, narrower than the mockup's 1284px
       content box, so the hero sets its own. The cap is deliberately the
       design's content box: 1440 minus the two 78px gutters, which makes
       this a no-op at the design width and symmetric whitespace beyond it.
       Without a cap the columns and the code panel grew without limit
       while the headline, body measure and mascot stayed fixed -- at
       2560 the panel reached 881px around eight short lines of code.
       The full-bleed decorative layers (halftone, cityscape) are on the
       header itself, so they keep spanning the viewport. */
    header .container,
    .principles .container,
    #features .container,
    .cta-panel-inner,
    .footer-bar {
        max-width: calc(1284px + 2 * var(--ds-gutter));
        padding-inline: var(--ds-gutter);
        margin-inline: auto;
    }

    .header-banner {
        /* minmax(0,...) so the oversized mascot overflows its track
           instead of widening it and squeezing the panel column. */
        grid-template-columns: minmax(0, 34fr) minmax(0, 30fr) minmax(0, 37fr);
        column-gap: 0;
        align-items: center;
    }

    /* Explicit placement, so the mobile source order (copy, panel,
       mascot) can put the mascot in the middle here. */
    .header-content {
        grid-column: 1;
        grid-row: 1;
    }

    .header-image {
        grid-column: 2;
        grid-row: 1;
        margin-inline: 0;
        width: 100%;
    }

    .hero-code {
        grid-column: 3;
        grid-row: 1;
    }

    header .header-content > p:not(.row-label) {
        font-size: 16px;
        line-height: 1.6;
        /* Mockup wraps this to 4 lines across a 339px measure. */
        max-width: 339px;
    }
}

@media (min-width: 992px) {
    /* Mockup tops the panel and mascot 65px below the eyebrow, rather
       than centring them against the copy column. */
    .header-banner {
        align-items: start;
    }

    .hero-code {
        /* Figma tops the painted panel at y256, 67px below the eyebrow (its
           2px OUTSIDE stroke puts the box 2px above the y258 node). */
        margin-top: 67px;
    }

    /* Desktop panel: 14px code as in the docs blocks, and a deep bottom
       well as in the mockup. */
    .code-panel-body code {
        font-size: 14px;
    }

    .code-panel {
        height: 400px;
    }
}

@media (min-width: 992px) {
    /* Figma opens the hero 110px below the navbar (eyebrow pill painted at
       y189 against a 79px navbar). The mascot and code panel offsets below are
       derived from that y189. */
    header .container {
        padding-top: 30px;
    }

    /* Holds the band's bottom edge at Figma's y1025: the mascot bottoms out at
       y932 and the frame leaves ~93px of city below it. Explicit so the
       section height does not track `padding-top`. */
    header {
        padding-bottom: 93px;
    }

    /* Hero vertical rhythm at desktop; the base rules above are tuned for the
       402 frame and must stay untouched. Figma's Text Container stacks at a
       uniform gap32: pill (bottom y221) -> title y251 -> description y541 ->
       buttons y677. */
    header .header-content h1 {
        margin-block: 30px 0;
    }

    header .header-content > p:not(.row-label) {
        margin-block: 30px 32px;
    }

    /* The mascot is wider than its own column in the mockup -- it reads as
       an overlay that the copy and panel columns sit either side of, so it
       is sized absolutely and allowed to spill over the column edges. */
    /* 486 wide against a 382 gap at 1440, so the figure has to cross one of
       its neighbours. It spills right, over the code panel, and never over
       the copy: the panel is a flat slab that reads fine behind a figure,
       where the headline does not. Anchored to the column start so the left
       edge tracks the copy rather than the centre of a gap that changes
       width. The caped art was biased the other way, which is what drove the
       book through the headline once the wider lab coat replaced it. */
    .header-image {
        justify-self: start;
        width: 486px;
        max-width: none;
        /* Figma tops the mascot at y285, i.e. 96px below the eyebrow. */
        margin-top: 96px;
        /* Over the panel, not under it. */
        position: relative;
        z-index: 2;
        /* Nudged left of the column start, into the art's transparent
           margin, without reaching the headline. */
        left: -12px;
    }
}

/* ---- Hero cityscape ------------------------------------------------ *
 * Second decorative layer, painted above the halftone (::after follows
 * ::before in paint order at the same z-index) and below the content.
 * The art is pre-faded in the asset itself -- its alpha peaks at 77/255
 * -- so no opacity is applied here. */
header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--ds-city-height);
    z-index: -1;
    pointer-events: none;
    background-image: url("./assets/mrdocs-hero-city.webp");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: auto 100%;
    opacity: var(--ds-city-opacity);
}

@media (min-width: 992px) {
    :root {
        --ds-city-height: 32.5vw;
    }
}

@media (prefers-contrast: more) {
    header::after {
        display: none;
    }
}

/* ---- Hero bottom edge ---------------------------------------------- *
 * Figma gives the cityscape layer a 2px #0F172A bottom rule; it is the
 * hero's own bottom edge, so it lives on the header. */
header {
    border-bottom: var(--ds-border-width-bold) solid var(--ds-color-outline);
}

/* Hero eyebrow: Figma sizes it 14px/12px on mobile and 16px/16px on desktop,
   unlike the shared row-label pill used in the panel rows. */
.hero-eyebrow {
    font-size: 14px;
    line-height: 12px;
}

@media (min-width: 992px) {
    .hero-eyebrow {
        font-size: var(--ds-badge-size);
        line-height: var(--ds-badge-leading);
    }

    .code-panel-tab {
        font-size: 14px;
    }
}

/* ---- Hero button interaction --------------------------------------- *
 * The Figma file has no hover/pressed variants for these -- only
 * "Secondary/Default" exists -- so this follows the comic behaviour used
 * elsewhere on the page: the button lifts and its hard shadow grows by
 * the same amount, then sinks and the shadow shrinks on press, so the
 * offset always tracks how far the button sits off the page. Colours do
 * not change, since the design does not specify hover colours.
 *
 * Rest offset is --ds-cta-shadow (1.5px mobile, 2px desktop), doubled
 * on hover and halved on press.
 * The colour-pinning in the :hover rules above is deliberate: without it
 * Pico repaints these on hover. */
.header-cta a.primary:hover,
.header-cta a.contrast.outline:hover {
    transform: var(--ds-lift);
    box-shadow:
        0 0 0 var(--ds-cta-shadow) var(--ds-black),
        calc(var(--ds-cta-shadow) * 3) calc(var(--ds-cta-shadow) * 3) 0 var(--ds-black);
}

.header-cta a.primary:active,
.header-cta a.contrast.outline:active {
    transform: var(--ds-press);
    box-shadow:
        0 0 0 var(--ds-cta-shadow) var(--ds-black),
        var(--ds-cta-shadow) var(--ds-cta-shadow) 0 var(--ds-black);
}

/* Transition only what actually moves, rather than `all`. */
.header-cta a {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

@media (prefers-reduced-motion: reduce) {
    .header-cta a {
        transition: none;
    }

    .header-cta a.primary:hover,
    .header-cta a.contrast.outline:hover,
    .header-cta a.primary:active,
    .header-cta a.contrast.outline:active {
        transform: none;
    }
}

/* Hero button box, from Figma's Button Container. Mobile and desktop
   differ: 101/116 x 38 with a 24px gap and a 1.5px shadow, against
   123/140 x 48 with a 32px gap and 2px. Heights are px, not the shared
   2.5rem token -- Pico scales the root font-size at wide breakpoints, so
   rem resolved to 50px here.
   The margin reset needs :not(:last-of-type) to outrank the generic
   `header a:not(:last-of-type)` rule, which was adding 10px on top of
   the flex gap. */
:root {
    --ds-cta-shadow: 1.5px;
}

.header-cta a {
    height: 38px;
    /* Figma's inner Frame 2 has 16px of horizontal padding; the 2px border
       here stands in for the symbol's 2px ring. Label is Bangers with 10%
       tracking, which is most of why the untracked version measured narrow. */
    padding-inline: 12px;
    font-size: 16px;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.header-cta a:not(:last-of-type) {
    margin-right: 0;
}

@media (min-width: 992px) {
    :root {
        --ds-cta-shadow: 2px;
    }

    .header-cta a {
        height: 48px;
        padding-inline: 16px;
        font-size: 20px;
    }
}

@media (min-width: 992px) {
    .header-cta {
        gap: 32px;
    }
}

/* =====================================================================
 * FEATURE SECTION — "Keep the code simple" heading + the four cards.
 * Built from the Figma file 2026-08-20, mobile first.
 *   heading   52px / 82px, 3px / 4px stroke and offset
 *   card      1.5px / 2px ring and offset, inner pad 20 / 40, gap 12 / 16
 *   icon      38 / 50 box, 6 / 8 inset
 *   title     27px / 36px, 1.5px / 2px stroke and offset
 *   body      15/21 / 18/28
 * ===================================================================== */

/* ---- Section heading ----------------------------------------------- *
 * Same comic treatment as the hero headline with the line colours
 * swapped: gold first, blue second. */
.section-title {
    font-family: var(--ds-font-display);
    font-style: italic;
    font-size: clamp(52px, 5.7vw, 82px);
    line-height: 0.9;
    text-transform: uppercase;
    text-align: left;
    color: var(--ds-title-color);
    -webkit-text-stroke: var(--ds-title-outline-width) var(--ds-title-ink);
    paint-order: stroke fill;
    filter: var(--ds-title-drop);
    margin-block: 0 24px;
}

.section-title .title-line {
    display: block;
}

.section-title .title-line--alt {
    color: var(--ds-title-color-alt);
}

.section-heading {
    /* Below 768 the container is a normal block, so this margin sets the gap
       to the cards. At 768+ the container becomes a flex column with its own
       row gap, which is used instead -- see below. */
    margin-bottom: 56px;
}

.section-heading h3 {
    font-family: var(--ds-font-body);
    font-size: 16px;
    line-height: 21px;
    /* An earlier rule centres this; the mockup is left-aligned. */
    text-align: left;
    color: var(--ds-color-hero-text);
    margin: 0;
}

/* ---- Card grid ----------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Equal card heights: Figma has all four at the same height, but the
       rows are content-sized by default and the copy lengths differ. */
    grid-auto-rows: 1fr;
    gap: 24px;
    margin-top: 0;
}

.feature-card {
    /* These are <article> elements, which Pico gives its own margin,
       padding, radius and shadow -- all of which have to go. */
    margin: 0;
    /* Outer surface is the page colour, so the 2px padding reads as a ring
       between the ink border and the tinted panel. */
    background: var(--body-background);
    border: var(--ds-border-width-bold) solid var(--ds-color-outline);
    border-radius: 0;
    padding: 1.5px;
    box-shadow: 1.5px 1.5px 0 var(--ds-color-outline);
    /* Flex column so the inner panel can fill the stretched row. A
       `height: 100%` on the inner does not do it: the card's own height
       comes from the grid's `1fr` track, which WebKit does not count as a
       definite height for percentage resolution -- Safari fell back to
       content height and left the card background showing below the
       panel. Flex growth needs no percentage, so both engines agree. */
    display: flex;
    flex-direction: column;
}

.feature-card-inner {
    position: relative;
    overflow: hidden;
    background: var(--ds-color-card-tint);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

/* ---- Card corner halftone ------------------------------------------ *
 * Figma puts two 290px (218px on mobile) dot fields per card, poking in
 * from the top-right and bottom-left and clipped by the card. They are
 * 1019 individual vectors there; here it is one repeating gradient with a
 * radial mask for the density falloff. The dot colour matches the icon
 * box in both themes (#93C5FD / #3D8BFF).
 * background-repeat is explicit because Pico resets every ::before and
 * ::after to no-repeat. */
.feature-card-inner::before,
.feature-card-inner::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 218px;
    height: 218px;
    pointer-events: none;
    background-image: radial-gradient(
        var(--ds-color-icon-box) 1.5px,
        transparent 1.6px
    );
    background-size: 6px 6px;
    background-repeat: repeat;
    -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 78%);
    mask-image: radial-gradient(closest-side, #000 25%, transparent 78%);
}

.feature-card-inner::before {
    top: -134px;
    right: -134px;
}

.feature-card-inner::after {
    bottom: -135px;
    left: -134px;
}

/* Keep the copy above the dots. */
.feature-card-inner > * {
    position: relative;
    z-index: 1;
}

/* ---- Icon ---------------------------------------------------------- *
 * The glyph is a mask rather than an <img> so it can take a themed
 * colour: Figma has it #0F172A on light and #FFFFFF on dark. */
.feature-icon {
    position: relative;
    display: block;
    flex: none;
    width: 38px;
    height: 38px;
    background: var(--ds-color-icon-box);
    border: var(--ds-border-width-bold) solid var(--ds-color-outline);
    box-shadow: 1.5px 1.5px 0 var(--ds-color-outline);
}

.feature-icon::before {
    content: "";
    position: absolute;
    inset: 6px;
    background: var(--ds-color-icon-ink);
    -webkit-mask: var(--ds-icon) center / contain no-repeat;
    mask: var(--ds-icon) center / contain no-repeat;
}

.feature-icon--website-code { --ds-icon: url("./assets/icons/website-code.svg"); }
.feature-icon--terminal     { --ds-icon: url("./assets/icons/terminal.svg"); }
.feature-icon--git-fork     { --ds-icon: url("./assets/icons/git-fork.svg"); }
.feature-icon--github       { --ds-icon: url("./assets/icons/github.svg"); }

/* ---- Card text ----------------------------------------------------- */
.feature-card h4 {
    font-family: var(--ds-font-display);
    font-style: italic;
    font-size: 27px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--ds-title-color-alt);
    -webkit-text-stroke: var(--ds-title-outline-width-sm) var(--ds-title-ink);
    paint-order: stroke fill;
    filter: var(--ds-title-drop-sm);
    margin: 0;
}

.feature-card p {
    font-family: var(--ds-font-body);
    font-size: 15px;
    line-height: 21px;
    color: var(--ds-color-card-text);
    margin: 0;
}

@media (min-width: 992px) {
    .section-heading h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .feature-card {
        padding: 2px;
        box-shadow: 2px 2px 0 var(--ds-color-outline);
    }

    .feature-card-inner {
        padding: 40px;
        gap: 16px;
    }

    .feature-card-inner::before,
    .feature-card-inner::after {
        width: 290px;
        height: 290px;
    }

    .feature-card-inner::before {
        top: -178px;
        right: -178px;
    }

    .feature-card-inner::after {
        bottom: -179px;
        left: -178px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        box-shadow: 2px 2px 0 var(--ds-color-outline);
    }

    .feature-icon::before {
        inset: 8px;
    }

    .feature-card h4 {
        font-size: 36px;
    }

    .feature-card p {
        font-size: 18px;
        line-height: 28px;
    }
}

@media (min-width: 768px) {
    /* `.principles .container` is a flex column with `gap: 2.5rem` (50px at
       the desktop root size), which a margin here would only add to. Drive
       the 57px mockup gap from the gap itself. */
    .principles .container {
        gap: 57px;
    }

    .section-heading {
        margin-bottom: 0;
    }
}

/* The page halftone is a single uniform pattern fill on Figma's Home frame.
   The hero fades it out downward so it frames the headline; in the feature
   section it stays even, so the mask is effectively removed here. */
.principles::before {
    -webkit-mask-image: none;
    mask-image: none;
}

/* =====================================================================
 * PANELS SECTION — "More Code, Fewer Workarounds".
 * Figma 2026-08-24. Section heading is the same comic treatment as the
 * feature section, but centred here. Row headers are a 20/14px label pill
 * and a 32/24px subtitle.
 * ===================================================================== */
.section-heading--center {
    text-align: center;
}

.section-heading--center .section-title {
    text-align: center;
}

.section-heading--center h3 {
    text-align: center;
    margin-inline: auto;
}

/* Row header: the label pill is larger here than the hero eyebrow, and the
   subtitle is a paragraph rather than the old checklist. */
.snippet-documentation-panel .row-label {
    font-size: 14px;
    line-height: 12px;
    padding: 4.5px 9px;
}

.panel-row-subtitle {
    font-family: var(--ds-font-body);
    font-size: 24px;
    line-height: 1.6;
    /* Figma has this in full ink; the muted reading was the text node's
       default, with character overrides for the inline code spans. */
    color: var(--ds-color-hero-text);
    /* Mobile row rhythm: Figma's "Container" stacks the Header and the
       Content Container 40.5px apart at 402, and the side-by-side box
       strokes 1.5px OUTSIDE its measured box -- so the painted gap is
       39px, which is what the CSS border-box has to reproduce. It was 0
       here, leaving the subtitle sitting flush on the panel below it;
       only the >=992px override had any bottom margin at all. */
    margin-block: 12px 39px;
}

@media (min-width: 992px) {
    .snippet-documentation-panel .row-label {
        font-size: 20px;
        line-height: 16px;
        padding: 8px 16px;
    }

    .panel-row-subtitle {
        font-size: 32px;
        /* Figma measures this at 816px. */
        max-width: 816px;
    }
}

/* This section's subheading runs at line-height 1.6, unlike the feature
   section's 28px, and Figma measures it at 553px so it breaks after
   "maintainable." */
#features .section-heading h3 {
    line-height: 1.6;
    max-width: 553px;
}

/* ---- Side-by-side code + documentation ----------------------------- *
 * Figma: one bordered box, 1280 wide with a 2px page-coloured ring and a
 * 2px ink border, halves flush at 638 each (exactly 50/50, no gap). The
 * old markup had them as two separate panels with a 1rem gap, and the
 * documentation half carried a translucent fill, blur and radius that the
 * design does not have. */
.side-by-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--body-background);
    border: var(--ds-border-width-bold) solid var(--ds-color-outline);
    border-radius: 0;
    padding: 1.5px;
    overflow: hidden;
}

.side-by-side > .snippet-panel,
.side-by-side > .documentation-panel {
    flex: 1 1 50%;
    width: auto;
    min-width: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
}

.side-by-side > .snippet-panel {
    display: flex;
    flex-direction: column;
    background: var(--ds-code-panel-bg);
}

.side-by-side > .snippet-panel > .code-panel-body {
    flex: 1;
    padding: 20px;
    background: var(--ds-code-panel-bg);
    border-radius: 0;
}

.side-by-side > .documentation-panel {
    background: var(--ds-color-doc-surface);
    padding: var(--ds-space-sm);
    height: auto;
}

@media (min-width: 992px) {
    .side-by-side {
        flex-direction: row;
        padding: 2px;
    }

    .side-by-side > .documentation-panel {
        padding: 40px;
    }
}

/* ---- Documentation half: heading and code colours ------------------ *
 * Figma splits the two heading levels, which the earlier B3 rule did not:
 * the symbol title is gold at 36px, the section titles (Synopsis,
 * Description) are blue at 24px. Both carry a 2px ink outline, both carry
 * the hard comic shadow, and both run at 120% -- 43px on the symbol name,
 * 29px on the section headings, where Pico's leading left them 2px tall. */
.side-by-side > .documentation-panel h2,
.side-by-side > .documentation-panel h2 a {
    color: var(--ds-title-color-alt);
    font-size: 36px;
    line-height: var(--ds-title-leading-sm);
    -webkit-text-stroke: var(--ds-title-outline-width-sm) var(--ds-title-ink);
    paint-order: stroke fill;
    filter: var(--ds-title-drop-sm);
}

.side-by-side > .documentation-panel h3 {
    color: var(--ds-title-color);
    font-size: 24px;
    line-height: var(--ds-title-leading-sm);
    -webkit-text-stroke: var(--ds-title-outline-width-sm) var(--ds-title-ink);
    paint-order: stroke fill;
    filter: var(--ds-title-drop-sm);
}

/* The code half is highlight.js output, coloured by the shared hljs rules
   through the panel palette above. */
.side-by-side .code-panel-body code {
    color: var(--ds-code-panel-fg);
}

/* ---- Documentation half: body, inline code, synopsis block ---------- *
 * The generated markup is .symbol > .header/.synopsis/.description, with
 * the declaration in `pre > code.source-code`. Figma: body copy #6E727B,
 * inline code pink, and the declaration block on the dark code surface --
 * the render had it on a pale tint. */
.side-by-side > .documentation-panel p,
.side-by-side > .documentation-panel li,
.side-by-side > .documentation-panel dd {
    color: var(--ds-color-card-text);
}

.side-by-side > .documentation-panel p code,
.side-by-side > .documentation-panel li code {
    background: none;
    padding: 0;
    color: var(--ds-code-panel-keyword);
    font-family: var(--ds-font-mono);
}

.side-by-side > .documentation-panel pre {
    background: var(--ds-code-panel-bg);
    border: 0;
    border-radius: 0;
    padding: 20px;
    margin-block: 12px 0;
}

.side-by-side > .documentation-panel pre code {
    background: none;
    padding: 0;
    color: var(--ds-code-panel-fg);
}

/* NOTE admonition: Figma has the title in full ink and the body muted. */
.side-by-side > .documentation-panel .admonition h4 {
    color: var(--ds-color-hero-text);
}

/* Figma sets the documentation copy in Special Elite; it was inheriting a
   sans stack. */
.side-by-side > .documentation-panel p,
.side-by-side > .documentation-panel li,
.side-by-side > .documentation-panel dt,
.side-by-side > .documentation-panel dd,
.side-by-side > .documentation-panel .admonition h4 {
    font-family: var(--ds-font-body);
}

/* ---- Section transition band --------------------------------------- *
 * Figma floats a decorative layer over the boundary into this section:
 * a cloud bank in the top corners and comic speed lines converging behind
 * the heading (its `Group 6`, 1440x468 at page y2287, with the heading at
 * y2620 -- so 333px down from the band's top). Exported flattened, since
 * the rays are thirteen overlapping vector shapes.
 *
 * The band straddles the section boundary, hence the negative offset. It
 * sits above the halftone (::before) and below the content. */
/* Desktop only. Mobile arranges these differently -- Figma puts the rays
   above the heading but the cloud bank BELOW it (Rectangle 43 at y3539
   against the heading at y3310) -- which a single flattened export cannot
   reproduce. That needs the rays and clouds exported separately. */
@media (min-width: 992px) {
    /* Figma leaves 164px between the hero band's bottom edge (y1025) and this
       heading (`Frame 15` at y1189); the default section padding gives 80.
       Bottom padding is deliberately left at that default 80: `#features`
       below derives its own 237 from it. */
    .principles {
        padding-top: 164px;
    }

    /* Figma puts 317px between the cards' bottom and this heading; the
       default section padding gives only 160, which is what pulled the
       decorative band up over the cards. */
    #features {
        padding-top: 237px;
        /* Figma leaves 184px between the last panel row and the CTA panel;
           the row itself contributes an 80px bottom margin. */
        padding-bottom: 104px;
    }

    #features::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        /* Band sits 156px BELOW the cards' bottom in Figma -- entirely
           inside this section, never overlapping the previous one. */
        top: 76px;
        height: 32.5vw;
        z-index: -1;
        pointer-events: none;
        background-image: url("./assets/mrdocs-section-band.webp");
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100% auto;
        /* Figma: 0.70 on light, 0.30 on dark. Dark also sets LINEAR_BURN,
           which has no CSS equivalent, so the opacity carries it -- the
           same call made for the hero cityscape. */
        opacity: var(--ds-band-opacity);
        /* The art is light-mode (cream clouds, grey shading). Figma sets
           LINEAR_BURN on dark so the band darkens; CSS has no such blend
           and mix-blend-mode cannot reach past this section's isolation,
           so invert the art instead -- cream becomes near-black and the
           band reads as shadow rather than fog. */
        filter: var(--ds-band-filter);
    }
}

:root {
    --ds-band-filter: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ds-band-filter: invert(1);
    }
}

[data-theme="dark"] {
    --ds-band-filter: invert(1);
}

@media (prefers-contrast: more) {
    #features::after {
        display: none;
    }
}

/* =====================================================================
 * PANELS SECTION — row detail to Figma spec (2026-08-25).
 * Measured off the "Attributes & Specifiers" / terminate.cpp row. The
 * first pass got the frame right (638+638 halves, 2px ring, split
 * heading colours); this pass is the interior: the line-number gutter,
 * the 46/12px rhythm, the body type scale, and the NOTE admonition,
 * which was still on the old cyan treatment.
 * ===================================================================== */

/* ---- Row rhythm ---------------------------------------------------- *
 * Figma: Container gap 54px between the header and the box, Header gap
 * 12px between the pill and the subtitle. */
.snippet-documentation-panel .row-label {
    margin-bottom: 0;
}

.snippet-documentation-panel > .panel-container {
    margin-top: 0;
}

/* ---- Code half: line numbers ------------------------------------- *
 * render.js wraps each source line in a `.cl`, like the hero, so the
 * shared counter numbers them and a long line wraps under its own number
 * rather than scrolling. */

/* The hero panel's border and drop shadow are inherited here, where they
   sit *inside* the bordered box and have nothing to cast onto. */
.side-by-side > .snippet-panel > .code-panel-body,
.side-by-side > .documentation-panel {
    border: 0;
    box-shadow: none;
}

/* ---- Documentation half: vertical rhythm --------------------------- *
 * Figma: Documentation Details gap 46px between the header, Synopsis and
 * Description blocks; 12px inside each block. The header itself has no
 * gap -- its 69px is exactly the 43px title plus the 26px subtitle. */
.side-by-side > .documentation-panel > .symbol {
    display: flex;
    flex-direction: column;
    gap: 46px;
}

.side-by-side > .documentation-panel .synopsis,
.side-by-side > .documentation-panel .description,
.side-by-side > .documentation-panel .return-value,
.side-by-side > .documentation-panel .parameters,
.side-by-side > .documentation-panel .template-parameters,
.side-by-side > .documentation-panel .exceptions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-by-side > .documentation-panel .header {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.side-by-side > .documentation-panel .header h2,
.side-by-side > .documentation-panel .brief p,
.side-by-side > .documentation-panel .synopsis > p,
.side-by-side > .documentation-panel .description > p,
.side-by-side > .documentation-panel .synopsis > pre {
    margin: 0;
}

/* ---- Documentation half: type scale -------------------------------- *
 * Figma runs three sizes here, where the render had one: the brief at
 * 16px, the body copy and table cells at 14px, and the note at 16px. */
.side-by-side > .documentation-panel .brief p {
    font-size: 16px;
    line-height: 1.6;
}

/* Figma sets every body paragraph and every table cell at 14px/1.6 --
   only the brief and the note run at 16px. The return value and the three
   tables had never been sized, so they were inheriting the page's 17.5px
   (headers 16px) and read a size and a half too big beside their siblings. */
.side-by-side > .documentation-panel .synopsis > p,
.side-by-side > .documentation-panel .description > p,
.side-by-side > .documentation-panel .return-value > p,
.side-by-side > .documentation-panel table th,
.side-by-side > .documentation-panel table td {
    font-size: 14px;
    line-height: 1.6;
}

.side-by-side > .documentation-panel pre code {
    font-size: 14px;
    line-height: 1.6;
}

/* ---- Parameter / exception tables ---------------------------------- *
 * These were never restyled, so they still carried Pico's defaults:
 * 50/50 columns, a pale grey header, 10px cells and the system sans.
 * Figma builds them from a dark header band in the code surface's own
 * colour, a fixed 140px name column, 8px cells, and a rule under every
 * row -- `borderStrokeWeightsIndependent` with only borderBottomWeight
 * set, so it is the bottom edge alone at 2px, not a box. */
.side-by-side > .documentation-panel table {
    width: 100%;
    border-collapse: collapse;
    /* The global table rule boxes it in white; Figma has no outer box. */
    border: 0;
    margin: 0;
}

.side-by-side > .documentation-panel table thead tr {
    background: var(--ds-color-code-body);
}

.side-by-side > .documentation-panel table th {
    font-family: var(--ds-font-body);
    font-weight: var(--ds-weight-regular);
    text-align: left;
    color: var(--ds-white);
    background: none;
    border: 0;
    padding: 8px;
}

.side-by-side > .documentation-panel table td {
    font-family: var(--ds-font-body);
    color: var(--ds-color-card-text);
    background: none;
    border: 0;
    /* Figma's row is 38 tall with 8px under the text and the 2px rule
       drawn INSIDE that edge, so the padding carries 6 and the border 2. */
    border-bottom: var(--ds-border-width-bold) solid var(--ds-color-code-body);
    padding: 8px 8px 6px;
}

/* Figma sizes the name column PER TABLE, and mrdocs sets
   `table-layout: fixed` inline, so a single width here is not safe: the
   parameters and template-parameters tables hold short names (132px of
   content + 8px padding = 140), but the exceptions table holds fully
   qualified type names and gets 265 + 8 = 273. Applying 140 to all three
   clipped `std::invalid_argument` straight across the second column. */
.side-by-side > .documentation-panel .parameters table th:first-child,
.side-by-side > .documentation-panel .parameters table td:first-child,
.side-by-side > .documentation-panel .template-parameters table th:first-child,
.side-by-side > .documentation-panel .template-parameters table td:first-child {
    width: 140px;
}

.side-by-side > .documentation-panel .exceptions table th:first-child,
.side-by-side > .documentation-panel .exceptions table td:first-child {
    width: 273px;
}

/* The cell contents are generated, so a symbol can always be longer than
   the design allowed for. Under fixed layout that would spill over the
   next column rather than being clipped, so let it break instead. */
.side-by-side > .documentation-panel table td:first-child {
    overflow-wrap: anywhere;
}

/* The name cell is the parameter itself, set in the same pink/red mono
   the snippets use for keywords. mrdocs emits it as bare text in the
   cell, so there is no <code> element to hook -- hence the positional
   selector. */
.side-by-side > .documentation-panel table td:first-child {
    font-family: var(--ds-font-mono);
    color: var(--ds-color-label);
}

/* The exceptions table wraps its name in <code>, where parameters emits
   bare text. Pico styles that <code> with its own 16.25px and a muted
   colour, which overrode the cell -- so the one table that needed the
   mono/label treatment was the one not getting it. */
/* mrdocs marks the parameter name up as <strong> and the exception name
   as <code>. Figma sets both in Menlo REGULAR, so the <strong> has to give
   up its weight -- it was rendering at 700. */
.side-by-side > .documentation-panel table td strong {
    font-weight: var(--ds-weight-regular);
}

.side-by-side > .documentation-panel table th code,
.side-by-side > .documentation-panel table td code {
    font-family: var(--ds-font-mono);
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Both header and body inset the second column 12px, not 8. */
.side-by-side > .documentation-panel table th:nth-child(2),
.side-by-side > .documentation-panel table td:nth-child(2) {
    padding-left: 12px;
}

/* ---- NOTE admonition ------------------------------------------------ *
 * Was still on the old cyan fill with a 2px box on all four sides.
 * Figma: a #1E78FF 10% tint with a single 2px blue rule down the left,
 * 10/20px padding, and the title nudged -0.85deg -- the same hand-lettered
 * tilt the section labels carry. */
.side-by-side > .documentation-panel .admonition {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(30, 120, 255, 0.1);
    border: 0;
    border-left: var(--ds-border-width-bold) solid var(--ds-color-icon-box);
    border-radius: 0;
    padding: 10px 20px;
    backdrop-filter: none;
}

.side-by-side > .documentation-panel .admonition h4 {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: uppercase;
    color: var(--ds-color-hero-text);
    margin: 0;
    transform: rotate(-0.85deg);
    transform-origin: left center;
}

.side-by-side > .documentation-panel .admonition p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.side-by-side > .documentation-panel .admonition > div {
    display: contents;
}

/* ---- Row subtitle: inline code -------------------------------------- *
 * Figma sets the attribute names in pink monospace inside the sentence;
 * they were rendering as plain body text. */
.panel-row-subtitle code {
    font-family: var(--ds-font-mono);
    font-size: 0.85em;
    color: var(--ds-code-panel-keyword);
    background: none;
    padding: 0;
}

@media (min-width: 992px) {
    .panel-row-subtitle {
        /* Figma's Container gap is 54px, but it is measured to the
           side-by-side box's own edge and that box strokes 2px OUTSIDE
           it, so the painted gap -- the one the CSS border-box spans --
           is 52px. */
        margin-block: 12px 52px;
    }
}

/* =====================================================================
 * Final CTA + footer  (Figma "Frame 134" / "Frame 133")
 * ---------------------------------------------------------------------
 * Figma coordinates below are measured from the frame's OUTER edge, and
 * the panel carries a 2px border, so every inset here is the Figma value
 * minus 2 -- the same convention the hero and feature sections use for
 * their 80px gutter (78px of container padding).
 * ===================================================================== */

.cta-section {
    /* The panel is the section's own full-bleed surface, so the generic
       `main > section` block padding would show as page colour above and
       below the border. */
    padding: 0;
}

.cta-panel {
    position: relative;
    /* Figma: #93C5FD light / #3D8BFF dark, 2px outline all round. */
    background: var(--ds-color-cta-panel);
    border: var(--ds-border-width-bold) solid var(--ds-color-outline);
    /* The mascot bleeds past the top and right edges by design. */
    overflow: hidden;
    isolation: isolate;
}

/* ---- CTA decoration: halftone burst --------------------------------- *
 * NOT the shared page halftone. Figma draws two artwork layers inside the
 * panel, measured out of the .fig (frame "Frame 134" 1440x846, node
 * 316:316779) rather than off the mockup, because both are bespoke:
 *
 *   Layer_1  15053 vector dots, black at 10%, on a 9.2px grid, with the
 *            dot DIAMETER graded 0.06 -> 9.36px. Mean diameter by region:
 *
 *                     x0-240  240-480  480-720  720-960  960-1200 1200-1440
 *            y   0-192  1.83    1.84     2.90     2.94     2.54     1.65
 *            y 192-384  0.56    1.54     1.65     1.07     1.38     1.32
 *            y 384-576  0.86    1.97     3.63     2.62     3.90     3.31
 *            y 576-768  1.23    5.84     5.50     5.78     6.98     5.72
 *
 *            i.e. near-empty behind the copy column, heaviest along the
 *            bottom. Two layers approximate the size grading: ::before is
 *            the small dot everywhere, ::after the large dot faded in over
 *            the bottom. Same pitch and phase on both, so the big dots land
 *            on the small ones and read as growth rather than a second grid.
 *
 *   Union    84 wedges on an even 4.286deg pitch (360/84) radiating from
 *            panel (1068.5, 292.5) -- the mascot's chest -- black at 10%,
 *            under a radial gradient that clears well inside the panel.
 *            Even pitch is where the resemblance ends: the rays taper, run
 *            to different lengths, start at different radii and cluster
 *            hard by direction. This layer is therefore not drawn at all
 *            but masked from Figma's own export, on mobile only --
 *            see --ds-cta-burst-art.
 *
 * The dot masks were then swept against the mockup and scored on mean ink
 * per 160x128 cell: 3.41 before, 1.53 after, over a range of 0.8-14.7. What
 * is left is the one thing CSS still cannot do here -- grading dot SIZE
 * continuously across the field.
 *
 * The burst is anchored to the mascot, which is placed off the CENTRED
 * container, so its origin has to track that rather than the full-bleed
 * panel -- hence the max() below. The dots are panel-wide and do not.
 * ===================================================================== */
.cta-panel::before,
.cta-panel::after,
.cta-panel-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Above the panel's own blue fill (the panel isolates), below the copy
       and the mascot. The panel's overflow:hidden keeps all three inside
       the 2px outline. */
    z-index: -1;
    pointer-events: none;
    /* Pico resets background-repeat on every ::before (styles.css:822). */
    background-repeat: repeat;
}

/* Base grid: the small dot, present everywhere except the copy gutter. */
.cta-panel::before {
    background-image: radial-gradient(
        var(--ds-cta-halftone-dot) var(--ds-cta-dot-small),
        transparent var(--ds-cta-dot-small)
    );
    background-size: var(--ds-cta-halftone-gap) var(--ds-cta-halftone-gap);
    -webkit-mask-image: var(--ds-cta-halftone-gutter);
    mask-image: var(--ds-cta-halftone-gutter);
}

/* The large dot, faded in over the bottom of the panel. Where it is opaque
   it covers the small dot exactly; where it is clear only the small dot
   shows; in between the pair reads as an intermediate size. */
.cta-panel::after {
    background-image: radial-gradient(
        var(--ds-cta-halftone-dot) var(--ds-cta-dot-large),
        transparent var(--ds-cta-dot-large)
    );
    background-size: var(--ds-cta-halftone-gap) var(--ds-cta-halftone-gap);
    -webkit-mask-image: var(--ds-cta-halftone-grade), var(--ds-cta-halftone-gutter);
    mask-image: var(--ds-cta-halftone-grade), var(--ds-cta-halftone-gutter);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

/* Speed lines. On .cta-panel-inner so the burst is measured from the same
   container the mascot is positioned against -- centred and capped at 1440
   on desktop, full width on mobile -- and later in tree order than the two
   dot layers, so at the same z-index it paints over them.

   The pseudo-element is inset:0 on that container, so anchoring the mask
   top-left is all the placement there is; --ds-cta-burst-art-width picks the
   frame the export was drawn at, and @media 992 drops the layer. The
   artwork is about as tall as the panel (867 against ~870 of content), so
   any excess runs under the panel's overflow:hidden. The .fig clips it at
   the same frame. */
.cta-panel-inner::before {
    background-color: var(--ds-cta-burst-art-color);
    -webkit-mask-image: var(--ds-cta-burst-art);
    mask-image: var(--ds-cta-burst-art);
    -webkit-mask-size: var(--ds-cta-burst-art-width) auto;
    mask-size: var(--ds-cta-burst-art-width) auto;
    /* The rays converge at (192, 199) in this box, which was the mascot's
       chest at Figma's placement: 64% across and 44% down the figure. The
       mascot is now centred and 400 tall (325 wide), which puts the chest at
       (50% of the box + 46px, 181px). A percentage mask-position offsets by
       that share of (box - 402), hence 50% plus 46 + 201 - 192. */
    -webkit-mask-position: calc(50% + 55px) -18px;
    mask-position: calc(50% + 55px) -18px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.cta-panel-inner {
    position: relative;
    /* Figma mobile frame: 867 tall, less the 40px the mascot was scaled
       down by. */
    min-height: 827px;
}

/* ---- Mascot --------------------------------------------------------- *
 * Mobile stacks it above the copy (Figma x=-35 y=9, 564x440); desktop
 * moves it to the right of the copy and lets it bleed off both the top
 * and the right edge. */
.cta-mascot {
    display: block;
    position: absolute;
    /* Shared fade (see .hero-mascot). Belt top at 84% of the art's height,
       so the same share of the figure is 21.5% of the art. */
    --mascot-fade-start: 77.5%;
    /* Figma y=9 from the frame's outer edge. `top` resolves against the
       container's padding box, which the panel's 2px border has already
       pushed in by 2. Centred rather than at Figma's x=-35: an absolutely
       placed replaced element with both insets at 0 and auto margins
       centres in its containing block. */
    top: 7px;
    left: 0;
    right: 0;
    margin-inline: auto;
    /* Figma's 440, scaled down. Width from the art's own ratio (0.813). */
    width: auto;
    height: 400px;
    max-width: none;
    pointer-events: none;
}

.cta-content {
    /* Figma puts the mobile copy block's pill at y=470; its 2px stroke is
       outside that box, so the painted pill starts at 468. Less the 40px the
       mascot was scaled down by, so the pill keeps its distance from it. */
    padding-top: 426px;
}

.cta-label {
    /* Figma's 24px gap, less the 2px of stroke it paints below the box.
       NOTE: the shared .row-label renders 32px tall at every width, where
       Figma scales it to 25px on mobile -- so everything below this sits
       ~7px low at 402. That drift is in the shared component, not here. */
    margin: 0 0 22px;
}

.cta-title {
    margin: 0 0 24px;
    font-family: var(--ds-font-display);
    /* Figma mobile 62px, desktop 96px, both at 0.9 leading. Bangers sets
       "Document Your" at 5.58x the font size, so 62px needs 346px where
       the 402 frame leaves 342 -- it wraps to a third line. Track the
       column width instead, which also keeps it to two lines below 402. */
    font-size: min(62px, calc((100vw - 60px) / 5.6));
    line-height: var(--ds-title-leading);
    font-weight: var(--ds-weight-regular);
    text-transform: uppercase;
    /* Every character is overridden in Figma -- line 1 white, line 2 gold
       -- so the element colour only ever shows on the line separator. */
    color: var(--ds-white);
    -webkit-text-stroke: var(--ds-title-outline-width) var(--ds-title-ink);
    paint-order: stroke fill;
    filter: var(--ds-title-drop);
}

.cta-title .title-line {
    display: block;
    /* Same WebKit clip as the hero h1 (see there): the synthesised oblique
       ran the R of "Your" past the span box and lost its right edge. */
    padding-right: 0.45em;
    margin-right: -0.45em;
}

.cta-title .title-line--alt {
    color: var(--ds-color-title-alt);
}

.cta-description {
    margin: 0 0 24px;
    max-width: 317px;
    font-family: var(--ds-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ds-color-hero-text);
}

/* ---- Buttons -------------------------------------------------------- *
 * Both are the same Figma symbol with only the fill, label colour and
 * width overridden, so they share everything but their two colours. */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 76px;
}

.cta-btn {
    display: inline-flex;
    /* Figma overrides the shared button symbol's width on each instance
       (205/160 desktop, 171/132 mobile). min-width rather than width so a
       fallback font that sets wider text can still grow the button. */
    min-width: 171px;
    align-items: center;
    justify-content: center;
    height: 38px;
    /* Figma sets the label box, not the padding: mobile 171 wide around a
       144 label, desktop 205 around 169. --ds-btn-padding-x is 1.5em, which
       at this font size would push both buttons well past that. A hair under
       Figma's own 11.5/16 a side, so min-width lands the box on the Figma
       number instead of the trailing letter-space carrying it 1px over. */
    padding: 0 11px;
    border: var(--ds-border-width-bold) solid var(--ds-color-outline);
    border-radius: var(--ds-cta-btn-radius);
    box-shadow: var(--ds-cta-btn-shadow);
    /* .fig "Primary" symbol (316:8): Bangers Regular, 17 mobile / 20 desktop,
       10% tracking, uppercase. Bangers carries its own slant -- the italic
       this used to set was a synthetic oblique on top of it. Regular for the
       same reason: 600 was a synthetic bold, and WebKit widens that, which
       wrapped the mobile pair onto two rows on iOS Safari. */
    font-family: var(--ds-font-display);
    font-weight: var(--ds-weight-regular);
    font-size: 17px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--ds-transition), box-shadow var(--ds-transition);
}

.cta-btn:hover {
    transform: var(--ds-lift);
    box-shadow: var(--ds-cta-btn-shadow-hover);
}

.cta-btn:active {
    transform: var(--ds-press);
    box-shadow: var(--ds-cta-btn-shadow-active);
}

.cta-btn:focus-visible {
    outline: var(--ds-border-width-bold) solid var(--ds-color-outline);
    outline-offset: 3px;
}

/* Pico colours links through its own --color property, which beats a
   plain `color` declaration -- the same trap the hero buttons hit. */
/* Gold, not the panel blue. The .fig as exported 2026-08-20 fills both CTA
   buttons from the blue ramp (#93C5FD / #1E78FF, which is what
   --ds-blue-300 and --ds-blue-450 still record) but the desktop mockup
   supplied 2026-09-04 supersedes it: gold here, ink on the secondary. The
   blue fill also matched the panel EXACTLY, so the primary CTA was painting
   as an empty outline. */
.cta-btn--download,
.cta-btn--download:visited,
.cta-btn--download:hover,
.cta-btn--download:focus {
    background: var(--ds-gold-300);
    --color: var(--ds-black);
    color: var(--ds-black);
}

.cta-btn--read {
    min-width: 132px;
}

/* --ds-ink-950 rather than --ds-color-outline: they are the same #0F172A on
   light, but the outline token goes pure black on dark, which would have
   swallowed this button's own border. */
.cta-btn--read,
.cta-btn--read:visited,
.cta-btn--read:hover,
.cta-btn--read:focus {
    background: var(--ds-ink-950);
    --color: var(--ds-paper-50);
    color: var(--ds-paper-50);
}

/* ---- Footer bar ----------------------------------------------------- *
 * Figma "Frame 133": a plain bar under the panel, white on light and
 * #171C26 on dark -- not the page colour in either theme. */
footer {
    padding: 0;
    background: var(--ds-color-footer-bg);
}

.footer-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Figma mobile: 24px above, 44px of content, 24px below = 92. */
    gap: 17.5px;
    padding-top: 24px;
    padding-bottom: 24px;
    /* Inherited by the slogan and the links, which Figma tracks alike. */
    letter-spacing: var(--ds-footer-tracking);
}

.footer-slogan {
    margin: 0;
    /* Only bites below ~350, where the slogan wraps: the block is centred
       by the bar but its lines would still set left. A no-op at every width
       that fits on one line, since the element is then its own width. */
    text-align: center;
    font-family: var(--ds-font-body);
    font-size: 13px;
    line-height: 1;
    color: var(--ds-color-hero-text);
}

.footer-bar .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    /* Set here so the li boxes are 13px tall too: sized on the anchor
       alone, each li keeps the 16px body font and the bar comes out 3px
       over Figma's 92. */
    font-size: 13px;
    line-height: 1;
}

.footer-bar .footer-link {
    margin: 0;
    padding: 0;
}

.footer-bar .footer-link::before {
    /* Pico decorates the last footer list with bullets. */
    content: none;
}

.footer-bar .footer-link > a,
.footer-bar .footer-link > a:visited {
    font-family: var(--ds-font-body);
    text-transform: uppercase;
    text-decoration: none;
    --color: var(--ds-color-hero-text);
    color: var(--ds-color-hero-text);
}

.footer-bar .footer-link > a:hover,
.footer-bar .footer-link > a:focus {
    text-decoration: underline;
}

/* 992px is where the page as a whole switches to the 78px desktop
   gutter, so the CTA has to change arrangement at the same width or the
   mascot's offset would be measured against the wrong padding. */
@media (min-width: 992px) {
    /* The desktop frame regrades the dot field -- see the table in the CTA
       decoration block for the diameters these approximate. The burst is not
       regraded but replaced; its rule follows. */
    .cta-panel {
        --ds-cta-halftone-gap: 9.2px;
        --ds-cta-dot-small: 0.7px;
        --ds-cta-dot-large: 2.8px;
        /* Copy column: Figma drops the mean diameter to 0.56-0.86 behind it
           against 3.4 out in the open. */
        --ds-cta-halftone-gutter: linear-gradient(
            to right, transparent 0, #000 400px
        );
        /* Down the panel Figma runs 2.63 at the top edge, 1.19 through the
           middle, then 5.25 along the bottom -- so the large dot fades in
           twice, weakly at the very top and fully below the copy. */
        --ds-cta-halftone-grade: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.1) 0, transparent 25%,
            transparent 45%, #000 80%
        );
    }

    /* No speed lines on desktop. */
    .cta-panel-inner::before {
        content: none;
    }

    .cta-panel-inner {
        /* Figma desktop frame: 768 tall. */
        min-height: 768px;
    }

    .cta-mascot {
        /* Height-driven, width from the art's own ratio. The 964x753 box
           here framed the old landscape cutout (1928x1506); this pose is
           portrait (1247x1533), so a fixed box of those dimensions scaled it
           up until the head and right shoulder left the panel. Anchored to
           the right edge rather than a left offset measured for wider art. */
        top: auto;
        bottom: 0;
        left: auto;
        right: 40px;
        width: auto;
        /* Inside the 768 panel, not bleeding past it. At 820 the crown left
           the top edge and the right shoulder met the panel's right border.
           Standing on the panel floor keeps the whole figure in frame.

           Height follows the space left beside the copy, which is a fixed
           560 column ending at 640, so the gap shrinks with the viewport
           while a fixed height did not: at 1024 the figure ran 227 into the
           headline. The art is 0.813 wide per unit of height, so trading
           height for width keeps it clear down to 992. */
        height: min(700px, calc((100vw - 700px) * 1.22));
    }

    .cta-content {
        /* Figma puts the pill's box at y=180, but its 2px stroke is
           OUTSIDE that box, so the painted pill starts at 178 -- and our
           border-box pill has to start there to line up. */
        padding-top: 176px;
        /* The copy column is 560 wide and must not run under the mascot. */
        max-width: 560px;
    }

    .cta-title,
    .cta-description {
        margin-bottom: 32px;
    }

    /* Same 32px gap, less the 2px of stroke Figma paints below the box. */
    .cta-label {
        margin-bottom: 30px;
    }

    .cta-title {
        font-size: 96px;
    }

    .cta-description {
        max-width: 423px;
        font-size: 20px;
    }

    .cta-buttons {
        gap: 32px;
        padding-bottom: 180px;
    }

    .cta-btn {
        height: 48px;
        min-width: 205px;
        padding-inline: 15px;
        font-size: 20px;
    }

    .cta-btn--read {
        min-width: 160px;
    }

    /* Figma desktop footer: 78 tall, one row, slogan left / links right.
       Frame 133 has no stroke, so its gutter is the full 80px -- unlike
       every bordered section, where 80 minus the border gives 78. */
    .footer-bar {
        padding-inline: 80px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .footer-bar .footer-links {
        gap: 32px;
    }

    .footer-slogan,
    .footer-bar .footer-links {
        font-size: 14px;
    }
}

/* =====================================================================
 * Mobile pass (below the 992 desktop layout). Figma defines the 402 frame
 * off desktop decisions that do not survive a single column: fixed box
 * heights sized for unwrapped code, equal-height rows for a 2x2 grid that
 * is now a stack, and a desktop exceptions column wider than the phone.
 * ===================================================================== */
@media (max-width: 991px) {
    /* Figma fixes the hero panel at 386 for unwrapped code. Wrapped, the
       eight lines end well short of that and leave an empty well. */
    .code-panel {
        height: auto;
    }

    /* The hero mascot rides 24px up over the panel, and its book reaches
       higher still; this keeps that overlap in empty well, off the code. */
    .hero-code .code-panel-body {
        padding-bottom: var(--ds-space-2xl);
    }

    /* One inset for every code and doc surface, so the stacked halves of
       a row line their text up on the same edge. */
    .code-panel-body,
    .side-by-side > .snippet-panel > .code-panel-body,
    .side-by-side > .documentation-panel pre {
        padding: var(--ds-space-sm);
    }

    .side-by-side > .documentation-panel .admonition {
        padding-inline: var(--ds-space-md);
    }

    /* Figma's 46px block gap is the desktop rhythm; at phone width the
       sections read as disconnected. */
    .side-by-side > .documentation-panel > .symbol {
        gap: var(--ds-space-xl);
    }

    /* Pre/postconditions were never given the 12px block rhythm, so they
       spaced out on Pico's list margins instead; the return value kept a
       paragraph margin under its last line. */
    .side-by-side > .documentation-panel .preconditions,
    .side-by-side > .documentation-panel .postconditions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .side-by-side > .documentation-panel .preconditions ul,
    .side-by-side > .documentation-panel .postconditions ul,
    .side-by-side > .documentation-panel .return-value > p {
        margin: 0;
    }

    .side-by-side > .documentation-panel .preconditions li:last-child,
    .side-by-side > .documentation-panel .postconditions li:last-child {
        margin-bottom: 0;
    }

    /* Every heading sits the same 12px above the next box, but text starts
       half a leading below its box top, so a heading over a paragraph or
       list read ~4px further off than one over a table or note. Pull the
       text up by exactly its half-leading. */
    .side-by-side > .documentation-panel .symbol h3 + p,
    .side-by-side > .documentation-panel .symbol h3 + ul {
        margin-top: calc((1em - 1lh) / 2);
    }

    /* The phone-wide `display: block` (for scrolling wide tables) makes
       the table shrink to its content instead of spanning the panel. These
       tables break long names instead, so they can stay tables. */
    .side-by-side > .documentation-panel table {
        display: table;
    }
}

/* The desktop 273px name column left "Thrown on" 74px wide on a phone, one
   word a line. 60% still fits `std::invalid_argument` unbroken at 390;
   from 576 the desktop width fits again. (min() here is ignored by WebKit
   on a fixed-layout cell, so the switch is a breakpoint.) */
@media (max-width: 575px) {
    .side-by-side > .documentation-panel .exceptions table th:first-child,
    .side-by-side > .documentation-panel .exceptions table td:first-child {
        width: 60%;
    }
}
