/* poa-web site stylesheet, generated by scripts/build-site.mjs. Soft Pop files vendored from igor53627/2d-explorer@5e1d5a647077af74324182540643d8f5a2ec5dc3. */
/* ---- vendor/softpop/css/softpop-tokens.css ---- */
/* Soft Pop (Direction A) design tokens: colour, shape, spacing, layout,
 * elevation and type (the self-hosted faces, families and type roles;
 * see "Type" below). Values come from the approved artboards
 * (docs/design/soft-pop/) via the tables in #113.
 *
 * This is the only stylesheet that may hold colour literals
 * (scripts/check-colour-literals.mjs). Everything else uses var(--sp-*)
 * or one of the legacy aliases at the end of this file.
 *
 * Theme. Light is the default. Dark applies when the OS prefers dark and
 * no Light choice is stored, or when Dark is stored:
 *   :root                                         light
 *   @media (prefers-color-scheme:dark)
 *     :root:not([data-theme="light"])             dark (follows the OS)
 *   :root[data-theme="dark"]                      dark (stored choice)
 * The head script in fast_layouts/classic.html.eex sets data-theme only
 * for a stored choice (localStorage "ff-theme"); System removes it. The
 * server HTML never varies by scheme, so the edge cache does not either.
 * The two dark blocks must stay identical (test/js/tokens-contrast.test.mjs).
 *
 * Contrast. Every text pair is at least 4.5:1 and every non-text pair
 * (field borders, focus ring, tile icons) at least 3:1 in both themes;
 * tokens-contrast.test.mjs lists the pairs. Decorative only, never text
 * or meaning: --sp-accent and the --sp-line* hairlines.
 *
 * Dark rules (A-Tx-Dark, A-Home-Mobile-Dark; checked on every page in
 * #130): cards are --sp-surface #1E1B28 with a 1px #2A2637 border and no
 * shadow; inset rows #2A2637 and copy buttons #34304A; the header border
 * and the footer top border #2A2637 on a #0E0C14 footer; the active nav
 * item and tab are #F5F2FA on #14121B; tiles are flat (no gradient in
 * dark: confidential #7FE3CF with #0F2E2A icons, sent #5B4DF0); avatars
 * keep their hues on #2A2637; the logo dot is #FF9C80.
 *
 * Dark tints not drawn in any artboard are marked "proposed": failed,
 * post-quantum checkpoint, bridge and the primary hover. They pass the
 * contrast test and wait for the operator's or designer's sign-off
 * (#130, R-19; recorded in docs/design/soft-pop/README.md).
 */

:root{
  color-scheme:light;

  /* ---- Neutrals ---- */
  --sp-ground:#FBF6EF;          /* page and header */
  --sp-surface:#FFFFFF;         /* cards */
  --sp-inset:#FBF6EF;           /* panels and rows inside a card */
  --sp-sunken:#F4EEE5;          /* tab track, tonal buttons, empty state */
  --sp-sunken-border:transparent;
  --sp-control:#F4EEE5;         /* copy buttons */
  --sp-line:#EFE7DC;            /* header border, card hairline */
  --sp-line-soft:#F3ECE2;       /* list dividers */
  --sp-line-strong:#E3D9CB;     /* outline buttons and chips */
  --sp-line-dashed:#D9CFC1;     /* future steps, unselected filter chips */
  --sp-field-border:#8C8496;    /* input borders: 3:1 */
  --sp-ink:#17151F;             /* text */
  --sp-ink-2:#3D3946;           /* leads, inactive tabs */
  --sp-ink-3:#57525F;           /* meta, labels, captions */
  --sp-ink-4:#57525F;           /* dashed outlines, empty step numbers */
  --sp-link:#4B3BDB;
  --sp-link-hover:#3B2DBF;
  --sp-focus:#4B3BDB;           /* focus ring: 3:1 on ground and surface */
  --sp-primary:#4B3BDB;         /* primary buttons */
  --sp-primary-hover:#3B2DBF;
  --sp-on-primary:#FFFFFF;
  --sp-inverse:#17151F;         /* active nav, inverse CTA */
  --sp-on-inverse:#FFFFFF;
  --sp-footer:#17151F;
  --sp-footer-line:#17151F;
  --sp-on-footer:#F5F2FA;
  --sp-on-footer-2:#C9C2D6;
  --sp-accent:#FF7A59;          /* logo dot and identicon only: decorative */

  /* ---- Tints: background / foreground ---- */
  --sp-lilac-bg:#EEEBFF;        /* hero, Final, signature card, bridge timeline */
  --sp-lilac-fg:#3B2DBF;
  --sp-mint-bg:#DDF5EF;         /* confidential */
  --sp-mint-strong-bg:#C9F0E4;
  --sp-mint-fg:#115E59;
  --sp-teal-bg:#0F766E;         /* current step */
  --sp-teal-fg:#FFFFFF;
  --sp-tile-teal:linear-gradient(135deg,#14A394,#0F766E); /* confidential tiles */
  --sp-on-tile-teal:#FFFFFF;    /* icons only: 3.14:1 at the light stop */
  --sp-success-bg:#E4F7EA;
  --sp-success-fg:#166534;
  --sp-success-ring:#D6F0DE;    /* 3px ring around the status dot */
  --sp-peach-bg:#FFD9C9;        /* wallet, block hero */
  --sp-peach-fg:#9A3412;
  --sp-coral-bg:#FFE9E0;        /* block tiles, refund panel */
  --sp-coral-fg:#9A3412;
  --sp-violet-bg:#F1E9FF;       /* bridge */
  --sp-violet-fg:#6D28D9;
  --sp-blue-bg:#E3EEFF;         /* post-quantum checkpoint */
  --sp-blue-fg:#1D4ED8;
  --sp-amber-bg:#FFF2D9;        /* pending, paused */
  --sp-amber-fg:#92400E;
  --sp-danger-bg:#FEE4E2;       /* failed */
  --sp-danger-fg:#B91C1C;
  --sp-genesis-bg:#2B2550;      /* Genesis pill: the same in both themes */
  --sp-genesis-fg:#C9BFFF;
  --sp-tile-sent:linear-gradient(135deg,#6A5CFF,#4B3BDB);
  --sp-on-tile-sent:#FFFFFF;

  /* ---- Component states (#115, softpop-components.css) ---- */
  --sp-tonal:#F4EEE5;           /* tonal buttons, disclosure icon tiles */
  --sp-tonal-hover:#E3D9CB;
  --sp-inverse-hover:#3D3946;
  --sp-on-tint:#FFFFFF;         /* quick-action buttons on a tinted hero */
  --sp-tab-active-bg:#FFFFFF;   /* active segmented tab */
  --sp-tab-active-fg:#17151F;
  --sp-tab-active-border:#8C8496; /* 1.5px: 3.11:1 on the track (pending design QA) */
  --sp-row-raised:#FFFFFF;      /* address rows on an inset panel ("Who paid whom") */

  /* Identicon palette (same hues in both themes; dark draws them on
     --sp-id-ground). */
  --sp-id-1:#FFD9C9;
  --sp-id-2:#FFE7A8;
  --sp-id-3:#C9F0E4;
  --sp-id-4:#EEEBFF;
  --sp-id-5:#4B3BDB;
  --sp-id-6:#FF7A59;
  --sp-id-ground:transparent;

  /* ---- Elevation (light only; dark swaps shadows for a border) ---- */
  --sp-card-border:1px solid transparent;
  --sp-sh-hairline:0 1px 0 #EFE7DC;
  --sp-sh-card:0 1px 0 #EFE7DC,0 24px 48px -30px rgba(23,21,31,.3);
  --sp-sh-card-sm:0 1px 0 #EFE7DC,0 18px 40px -28px rgba(23,21,31,.25);
  --sp-sh-card-mobile:0 1px 0 #EFE7DC,0 20px 40px -28px rgba(23,21,31,.3);
  --sp-sh-pill:0 2px 8px -2px rgba(23,21,31,.18);
  --sp-sh-search:0 10px 30px -12px rgba(75,59,219,.35);
  --sp-sh-step:0 16px 30px -18px rgba(15,118,110,.8);
  --sp-sh-menu:0 24px 48px -24px rgba(23,21,31,.35);

  /* ---- Shape (scheme-independent) ---- */
  --sp-r-pill:999px;
  --sp-r-4xl:32px;              /* desktop hero cards */
  --sp-r-3xl:28px;              /* section cards, mobile heroes */
  --sp-r-2xl:24px;              /* stat tiles, inset panels, disclosure rows, receipt tile */
  --sp-r-tile-mobile:22px;      /* mobile stat tiles */
  --sp-r-xl:20px;               /* callouts, stepper cards, form fields */
  --sp-r-lg:18px;               /* list rows, address rows, metric tiles */
  --sp-r-md:14px;               /* 44px icon tiles, 40px logo */
  --sp-r-sm:12px;               /* 36-40px tiles, copy buttons */
  --sp-r-xs:10px;               /* 36px copy buttons */

  /* ---- Spacing ---- */
  --sp-space-4:4px;
  --sp-space-6:6px;
  --sp-space-8:8px;
  --sp-space-10:10px;
  --sp-space-12:12px;
  --sp-space-14:14px;
  --sp-space-16:16px;
  --sp-space-18:18px;
  --sp-space-20:20px;
  --sp-space-24:24px;
  --sp-space-28:28px;
  --sp-space-32:32px;
  --sp-space-40:40px;
  --sp-space-48:48px;
  --sp-space-64:64px;

  /* ---- Breakpoints (#129) ----
   * Three tiers, written as media queries (a custom property cannot be
   * used inside @media); these tokens name the edges for scripts
   * (matchMedia) and documentation:
   *   phone    (max-width:640px)                  A-*-Mobile artboards
   *   tablet   (min-width:641px) and (max-width:1023.98px)
   *            two-column grids collapse to one; stat tiles go 2 x 2
   *   desktop  (min-width:1024px)                 A-* artboards (1440)
   * Refinements stay inside a tier: small phones (max-width:400px or
   * less) and the narrow desktop (min-width:1024px) and
   * (max-width:1279.98px). Touch screens of any width get 44px targets
   * and 16px fields through (pointer:coarse), not through a width.
   * contrast_mobile_render_test.exs rejects any other width. */
  --sp-bp-phone-max:640px;
  --sp-bp-tablet-min:641px;
  --sp-bp-desktop-min:1024px;

  /* ---- Layout (mobile first; wide values below) ---- */
  --sp-container:1280px;
  --sp-gutter:16px;
  --sp-header-h:68px;
  --sp-main-pt-overview:32px;   /* home, address, bridge */
  --sp-main-pt-detail:24px;     /* tx, block */
  --sp-gap-overview:16px;
  --sp-gap-detail:16px;
}

@media (min-width:641px){
  :root{
    --sp-gap-overview:32px;
    --sp-gap-detail:24px;
  }
}

@media (min-width:1024px){
  :root{
    --sp-gutter:32px;
    --sp-header-h:76px;
  }
}

/* ---- Type (#114) ----
 * Self-hosted faces (OFL-1.1; sources, hashes and the Bricolage build
 * command are in FrontendExWeb.Fonts). URLs are relative to the bundled
 * app.css at <base>/assets/, so the /77 base path keeps working. Each name
 * carries the file's content hash; the layout preloads Inter and Bricolage
 * with the same URLs. Error pages inline the same rules
 * (FrontendExWeb.Fonts.font_face_css/1); keep the two in step
 * (self_hosted_font_test.exs). */
@font-face{
  font-family:"Inter";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url("/assets/fonts/inter/InterVariable-693b77d4f32e.woff2") format("woff2");
}
@font-face{
  font-family:"Bricolage Grotesque";
  font-style:normal;
  font-weight:500 800;
  font-display:swap;
  src:url("/assets/fonts/bricolage-grotesque/BricolageGrotesque-b2447a4a60ca.woff2") format("woff2");
}
@font-face{
  font-family:"JetBrains Mono";
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url("/assets/fonts/jetbrains-mono/JetBrainsMono-Medium-086c48dfbea9.woff2") format("woff2");
}

/* Metric-adjusted fallbacks: shown while a web font swaps in, scaled to
 * its average glyph width, ascent and descent so the swap barely moves
 * the layout (CLS). Values are measured in FrontendExWeb.Fonts. Where the
 * local font is missing (most Linux), the stack moves on to system-ui. */
@font-face{
  font-family:"Inter Fallback";
  src:local("Arial"),local("ArialMT");
  size-adjust:107.34%;
  ascent-override:90.25%;
  descent-override:22.47%;
  line-gap-override:0%;
}
@font-face{
  font-family:"Bricolage Grotesque Fallback";
  font-weight:500 800;
  src:local("Arial Bold"),local("Arial-BoldMT");
  size-adjust:100.13%;
  ascent-override:92.88%;
  descent-override:26.97%;
  line-gap-override:0%;
}
@font-face{
  font-family:"JetBrains Mono Fallback";
  src:local("Courier New"),local("CourierNewPSMT");
  size-adjust:100%;
  ascent-override:102.02%;
  descent-override:30%;
  line-gap-override:0%;
}

/* Families and type roles (desktop; <=640px below). Each role is a
 * size, a `font` shorthand and a tracking token:
 *   font:var(--sp-type-h2); letter-spacing:var(--sp-ls-h2);
 * or the matching .sp-type-* class at the end of this file. The shorthand
 * resets font-variant-numeric, so amounts, counts and block numbers add
 * font-variant-numeric:tabular-nums after it (the stat, metric and
 * amount classes do). Use only these roles in new component CSS.
 *
 *   role          family     weight  desktop        <=640px   used for
 *   display       display    800     52/1.02        34/1.05   home and bridge H1
 *   amount-xl     display    800     56/1.05        40/1.05   address balance
 *   amount-unit   display    700     32             26        its unit / "Hidden"
 *   h1            display    800     48/1.05        34/1.05   "Block 31", tx amount
 *   h1-compact    display    800     40/1.05        28/1.08   "Confidential transfer"
 *   h1-mono       mono       500     36             26        address H1
 *   h2            display    700     28             24        section titles
 *   h3            display    700     22             20        card titles
 *   h4            display    700     20             20        list titles, chain names
 *   page-title    = h2                                        H1 of a page without a hero
 *   stat          display    700     40/1           30/1      home stat tiles
 *   metric        display    700     28             24        <dl> metric tiles
 *   lead          body       400     18/1.55        16/1.55   hero subtitle
 *   body          body       400     16/1.5                   default
 *   body-sm       body       400     15/1.5                   definition rows, footer
 *   meta          body       400     14/1.45                  secondary lines
 *   meta-label    body       600     14/1.45                  field labels
 *   caption       body       400     13/1.4                   pills, mobile meta
 *   micro         body       700     12/1.3                   "Sent" / "Received" chips
 *   mono-list     mono       500     13                       hashes in lists
 *   mono-detail   mono       500     14                       hashes in details
 *   mono-row      mono       500     15                       address rows
 *   mono-inline   mono       500     16                       identifiers in sentences
 *   input         body       400     14             16        form fields (16px at <=640px and
 *                                                             on any touch screen, so iOS
 *                                                             does not zoom on focus)
 *
 * These sizes are the whole scale (#102): font-size, font and
 * font-family values outside this file must use a token
 * (scripts/check-colour-literals.mjs, allowlist in
 * scripts/colour-literal-allowlist.json under "fonts"). Identifiers
 * (hashes, addresses) always use --sp-font-mono. */
:root{
  --sp-font-display:"Bricolage Grotesque","Bricolage Grotesque Fallback",Inter,system-ui,sans-serif;
  --sp-font-body:Inter,"Inter Fallback",system-ui,-apple-system,"Segoe UI",sans-serif;
  --sp-font-mono:"JetBrains Mono","JetBrains Mono Fallback",ui-monospace,SFMono-Regular,Menlo,monospace;

  --sp-fs-display:52px;     --sp-lh-display:1.02;     --sp-ls-display:-0.035em;
  --sp-fs-amount-xl:56px;   --sp-lh-amount-xl:1.05;   --sp-ls-amount-xl:-0.04em;
  --sp-fs-amount-unit:32px; --sp-lh-amount-unit:1.1;  --sp-ls-amount-unit:-0.02em;
  --sp-fs-h1:48px;          --sp-lh-h1:1.05;          --sp-ls-h1:-0.035em;
  --sp-fs-h1-compact:40px;  --sp-lh-h1-compact:1.05;  --sp-ls-h1-compact:-0.035em;
  --sp-fs-h1-mono:36px;     --sp-lh-h1-mono:1.15;     --sp-ls-h1-mono:-0.02em;
  --sp-fs-h2:28px;          --sp-lh-h2:1.2;           --sp-ls-h2:-0.025em;
  --sp-fs-h3:22px;          --sp-lh-h3:1.25;          --sp-ls-h3:-0.02em;
  --sp-fs-h4:20px;          --sp-lh-h4:1.25;          --sp-ls-h4:-0.02em;
  --sp-fs-stat:40px;        --sp-lh-stat:1;           --sp-ls-stat:-0.03em;
  --sp-fs-metric:28px;      --sp-lh-metric:1.15;      --sp-ls-metric:normal;
  --sp-fs-lead:18px;        --sp-lh-lead:1.55;        --sp-ls-lead:normal;
  --sp-fs-body:16px;        --sp-lh-body:1.5;         --sp-ls-body:normal;
  --sp-fs-body-sm:15px;     --sp-lh-body-sm:1.5;      --sp-ls-body-sm:normal;
  --sp-fs-meta:14px;        --sp-lh-meta:1.45;        --sp-ls-meta:normal;
  --sp-fs-caption:13px;     --sp-lh-caption:1.4;      --sp-ls-caption:normal;
  --sp-fs-micro:12px;       --sp-lh-micro:1.3;        --sp-ls-micro:normal;
  --sp-fs-mono-list:13px;
  --sp-fs-mono-detail:14px;
  --sp-fs-mono-row:15px;
  --sp-fs-mono-inline:16px;
  --sp-lh-mono:1.45;        --sp-ls-mono:normal;
  --sp-fs-input:14px;
  /* The page title is the h2 role until a page gets its M2b hero. */
  --sp-fs-page-title:var(--sp-fs-h2); --sp-ls-page-title:var(--sp-ls-h2);

  --sp-type-display:800 var(--sp-fs-display)/var(--sp-lh-display) var(--sp-font-display);
  --sp-type-amount-xl:800 var(--sp-fs-amount-xl)/var(--sp-lh-amount-xl) var(--sp-font-display);
  --sp-type-amount-unit:700 var(--sp-fs-amount-unit)/var(--sp-lh-amount-unit) var(--sp-font-display);
  --sp-type-h1:800 var(--sp-fs-h1)/var(--sp-lh-h1) var(--sp-font-display);
  --sp-type-h1-compact:800 var(--sp-fs-h1-compact)/var(--sp-lh-h1-compact) var(--sp-font-display);
  --sp-type-h1-mono:500 var(--sp-fs-h1-mono)/var(--sp-lh-h1-mono) var(--sp-font-mono);
  --sp-type-h2:700 var(--sp-fs-h2)/var(--sp-lh-h2) var(--sp-font-display);
  --sp-type-h3:700 var(--sp-fs-h3)/var(--sp-lh-h3) var(--sp-font-display);
  --sp-type-h4:700 var(--sp-fs-h4)/var(--sp-lh-h4) var(--sp-font-display);
  --sp-type-stat:700 var(--sp-fs-stat)/var(--sp-lh-stat) var(--sp-font-display);
  --sp-type-metric:700 var(--sp-fs-metric)/var(--sp-lh-metric) var(--sp-font-display);
  --sp-type-lead:400 var(--sp-fs-lead)/var(--sp-lh-lead) var(--sp-font-body);
  --sp-type-body:400 var(--sp-fs-body)/var(--sp-lh-body) var(--sp-font-body);
  --sp-type-body-sm:400 var(--sp-fs-body-sm)/var(--sp-lh-body-sm) var(--sp-font-body);
  --sp-type-meta:400 var(--sp-fs-meta)/var(--sp-lh-meta) var(--sp-font-body);
  --sp-type-meta-label:600 var(--sp-fs-meta)/var(--sp-lh-meta) var(--sp-font-body);
  --sp-type-caption:400 var(--sp-fs-caption)/var(--sp-lh-caption) var(--sp-font-body);
  --sp-type-micro:700 var(--sp-fs-micro)/var(--sp-lh-micro) var(--sp-font-body);
  --sp-type-mono-list:500 var(--sp-fs-mono-list)/var(--sp-lh-mono) var(--sp-font-mono);
  --sp-type-mono-detail:500 var(--sp-fs-mono-detail)/var(--sp-lh-mono) var(--sp-font-mono);
  --sp-type-mono-row:500 var(--sp-fs-mono-row)/var(--sp-lh-mono) var(--sp-font-mono);
  --sp-type-mono-inline:500 var(--sp-fs-mono-inline)/var(--sp-lh-mono) var(--sp-font-mono);
  --sp-type-page-title:var(--sp-type-h2);
}

@media (max-width:640px){
  :root{
    --sp-fs-display:34px;     --sp-lh-display:1.05;     --sp-ls-display:-0.025em;
    --sp-fs-amount-xl:40px;                             --sp-ls-amount-xl:-0.03em;
    --sp-fs-amount-unit:26px;
    --sp-fs-h1:34px;                                    --sp-ls-h1:-0.025em;
    --sp-fs-h1-compact:28px;  --sp-lh-h1-compact:1.08;  --sp-ls-h1-compact:-0.025em;
    --sp-fs-h1-mono:26px;
    --sp-fs-h2:24px;                                    --sp-ls-h2:-0.02em;
    --sp-fs-h3:20px;
    --sp-fs-stat:30px;
    --sp-fs-metric:24px;
    --sp-fs-lead:16px;
    --sp-fs-input:16px;
  }
}

/* Touch screens wider than 640px (a phone in landscape, a tablet) keep
 * 16px form fields too: iOS Safari zooms on focus below 16px. */
@media (pointer:coarse){
  :root{--sp-fs-input:16px}
}

/* ---- Dark: OS preference (no Light choice stored) ----
 * Keep identical to the [data-theme="dark"] block below. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --sp-ground:#14121B;
    --sp-surface:#1E1B28;
    --sp-inset:#2A2637;
    --sp-sunken:#1E1B28;
    --sp-sunken-border:#2A2637;
    --sp-control:#34304A;
    --sp-line:#2A2637;
    --sp-line-soft:#2A2637;
    --sp-line-strong:#34304A;
    --sp-line-dashed:#34304A;
    --sp-field-border:#6E6680;
    --sp-ink:#F5F2FA;
    --sp-ink-2:#C9C2D6;
    --sp-ink-3:#C9C2D6;
    --sp-ink-4:#ADA5BD;
    --sp-link:#B4AAFF;
    --sp-link-hover:#D3CCFF;
    --sp-focus:#B4AAFF;
    --sp-primary:#5B4DF0;
    --sp-primary-hover:#6A5CFF;     /* proposed: white 4.58:1 */
    --sp-on-primary:#FFFFFF;
    --sp-inverse:#F5F2FA;
    --sp-on-inverse:#14121B;
    --sp-footer:#0E0C14;
    --sp-footer-line:#2A2637;
    --sp-on-footer:#F5F2FA;
    --sp-on-footer-2:#C9C2D6;
    --sp-accent:#FF9C80;
    --sp-lilac-bg:#2B2550;
    --sp-lilac-fg:#C9BFFF;
    --sp-mint-bg:#123D38;
    --sp-mint-strong-bg:#123D38;
    --sp-mint-fg:#7FE3CF;
    --sp-teal-bg:#7FE3CF;
    --sp-teal-fg:#0F2E2A;
    --sp-tile-teal:#7FE3CF;
    --sp-on-tile-teal:#0F2E2A;
    --sp-success-bg:#173A26;
    --sp-success-fg:#86EFAC;
    --sp-success-ring:#173A26;
    --sp-peach-bg:#3A2219;
    --sp-peach-fg:#FFB599;
    --sp-coral-bg:#3A2219;
    --sp-coral-fg:#FFB599;
    --sp-violet-bg:#2E1F4D;         /* proposed: bridge, 8.37:1 */
    --sp-violet-fg:#D8B4FE;
    --sp-blue-bg:#172554;           /* proposed: PQ checkpoint, 8.15:1 */
    --sp-blue-fg:#93C5FD;
    --sp-amber-bg:#3A2A12;
    --sp-amber-fg:#FBBF77;
    --sp-danger-bg:#3A1A1C;         /* proposed: failed, 8.23:1 */
    --sp-danger-fg:#FCA5A5;
    --sp-genesis-bg:#2B2550;
    --sp-genesis-fg:#C9BFFF;
    --sp-tile-sent:#5B4DF0;
    --sp-on-tile-sent:#FFFFFF;
    --sp-tonal:#2A2637;
    --sp-tonal-hover:#34304A;
    --sp-inverse-hover:#C9C2D6;
    --sp-on-tint:#14121B;
    --sp-tab-active-bg:#F5F2FA;
    --sp-tab-active-fg:#14121B;
    --sp-tab-active-border:#F5F2FA;
    --sp-row-raised:#2A2637;
    --sp-id-ground:#2A2637;
    --sp-card-border:1px solid #2A2637;
    --sp-sh-hairline:none;
    --sp-sh-card:none;
    --sp-sh-card-sm:none;
    --sp-sh-card-mobile:none;
    --sp-sh-pill:none;
    --sp-sh-search:none;
    --sp-sh-step:none;
    --sp-sh-menu:none;
  }
}

/* ---- Dark: stored choice ---- */
:root[data-theme="dark"]{
  color-scheme:dark;
  --sp-ground:#14121B;
  --sp-surface:#1E1B28;
  --sp-inset:#2A2637;
  --sp-sunken:#1E1B28;
  --sp-sunken-border:#2A2637;
  --sp-control:#34304A;
  --sp-line:#2A2637;
  --sp-line-soft:#2A2637;
  --sp-line-strong:#34304A;
  --sp-line-dashed:#34304A;
  --sp-field-border:#6E6680;
  --sp-ink:#F5F2FA;
  --sp-ink-2:#C9C2D6;
  --sp-ink-3:#C9C2D6;
  --sp-ink-4:#ADA5BD;
  --sp-link:#B4AAFF;
  --sp-link-hover:#D3CCFF;
  --sp-focus:#B4AAFF;
  --sp-primary:#5B4DF0;
  --sp-primary-hover:#6A5CFF;     /* proposed: white 4.58:1 */
  --sp-on-primary:#FFFFFF;
  --sp-inverse:#F5F2FA;
  --sp-on-inverse:#14121B;
  --sp-footer:#0E0C14;
  --sp-footer-line:#2A2637;
  --sp-on-footer:#F5F2FA;
  --sp-on-footer-2:#C9C2D6;
  --sp-accent:#FF9C80;
  --sp-lilac-bg:#2B2550;
  --sp-lilac-fg:#C9BFFF;
  --sp-mint-bg:#123D38;
  --sp-mint-strong-bg:#123D38;
  --sp-mint-fg:#7FE3CF;
  --sp-teal-bg:#7FE3CF;
  --sp-teal-fg:#0F2E2A;
  --sp-tile-teal:#7FE3CF;
  --sp-on-tile-teal:#0F2E2A;
  --sp-success-bg:#173A26;
  --sp-success-fg:#86EFAC;
  --sp-success-ring:#173A26;
  --sp-peach-bg:#3A2219;
  --sp-peach-fg:#FFB599;
  --sp-coral-bg:#3A2219;
  --sp-coral-fg:#FFB599;
  --sp-violet-bg:#2E1F4D;         /* proposed: bridge, 8.37:1 */
  --sp-violet-fg:#D8B4FE;
  --sp-blue-bg:#172554;           /* proposed: PQ checkpoint, 8.15:1 */
  --sp-blue-fg:#93C5FD;
  --sp-amber-bg:#3A2A12;
  --sp-amber-fg:#FBBF77;
  --sp-danger-bg:#3A1A1C;         /* proposed: failed, 8.23:1 */
  --sp-danger-fg:#FCA5A5;
  --sp-genesis-bg:#2B2550;
  --sp-genesis-fg:#C9BFFF;
  --sp-tile-sent:#5B4DF0;
  --sp-on-tile-sent:#FFFFFF;
  --sp-tonal:#2A2637;
  --sp-tonal-hover:#34304A;
  --sp-inverse-hover:#C9C2D6;
  --sp-on-tint:#14121B;
  --sp-tab-active-bg:#F5F2FA;
  --sp-tab-active-fg:#14121B;
  --sp-tab-active-border:#F5F2FA;
  --sp-row-raised:#2A2637;
  --sp-id-ground:#2A2637;
  --sp-card-border:1px solid #2A2637;
  --sp-sh-hairline:none;
  --sp-sh-card:none;
  --sp-sh-card-sm:none;
  --sp-sh-card-mobile:none;
  --sp-sh-pill:none;
  --sp-sh-search:none;
  --sp-sh-step:none;
  --sp-sh-menu:none;
}

/* ---- Type role classes ----
 * One class per role in the table under "Type". Prefer these (or the
 * tokens) over new font-size literals. */
.sp-type-display{font:var(--sp-type-display);letter-spacing:var(--sp-ls-display)}
.sp-type-amount-xl{font:var(--sp-type-amount-xl);letter-spacing:var(--sp-ls-amount-xl)}
.sp-type-amount-unit{font:var(--sp-type-amount-unit);letter-spacing:var(--sp-ls-amount-unit)}
.sp-type-h1{font:var(--sp-type-h1);letter-spacing:var(--sp-ls-h1)}
.sp-type-h1-compact{font:var(--sp-type-h1-compact);letter-spacing:var(--sp-ls-h1-compact)}
.sp-type-h1-mono{font:var(--sp-type-h1-mono);letter-spacing:var(--sp-ls-h1-mono)}
.sp-type-h2{font:var(--sp-type-h2);letter-spacing:var(--sp-ls-h2)}
.sp-type-h3{font:var(--sp-type-h3);letter-spacing:var(--sp-ls-h3)}
.sp-type-h4{font:var(--sp-type-h4);letter-spacing:var(--sp-ls-h4)}
.sp-type-stat{font:var(--sp-type-stat);letter-spacing:var(--sp-ls-stat)}
.sp-type-metric{font:var(--sp-type-metric);letter-spacing:var(--sp-ls-metric)}
.sp-type-lead{font:var(--sp-type-lead);letter-spacing:var(--sp-ls-lead)}
.sp-type-body{font:var(--sp-type-body);letter-spacing:var(--sp-ls-body)}
.sp-type-body-sm{font:var(--sp-type-body-sm);letter-spacing:var(--sp-ls-body-sm)}
.sp-type-meta{font:var(--sp-type-meta);letter-spacing:var(--sp-ls-meta)}
.sp-type-meta-label{font:var(--sp-type-meta-label);letter-spacing:var(--sp-ls-meta)}
.sp-type-caption{font:var(--sp-type-caption);letter-spacing:var(--sp-ls-caption)}
.sp-type-micro{font:var(--sp-type-micro);letter-spacing:var(--sp-ls-micro)}
.sp-type-mono-list{font:var(--sp-type-mono-list);letter-spacing:var(--sp-ls-mono)}
.sp-type-mono-detail{font:var(--sp-type-mono-detail);letter-spacing:var(--sp-ls-mono)}
.sp-type-mono-row{font:var(--sp-type-mono-row);letter-spacing:var(--sp-ls-mono)}
.sp-type-mono-inline{font:var(--sp-type-mono-inline);letter-spacing:var(--sp-ls-mono)}
.sp-type-page-title{font:var(--sp-type-page-title);letter-spacing:var(--sp-ls-page-title)}
.sp-type-amount-xl,
.sp-type-amount-unit,
.sp-type-h1,
.sp-type-stat,
.sp-type-metric{font-variant-numeric:tabular-nums}

/* ---- Legacy aliases ----
 * The old variable names (--text, --border, --surface-3, ...) that page
 * partials, style2-overrides.css, the vendor style2.css and the embedded
 * bridge dApp's stylesheet (2d-bridge-dapp) still read. Each one points
 * at a Soft Pop token, so it follows the theme switch above; none holds
 * a colour of its own. They replace the retired style2-theme-poa.css
 * overlay (#130). Do not add new ones: new CSS uses var(--sp-*) directly.
 * Bundled after style2.css, so these win over its light :root defaults. */
:root{
  --bg:var(--sp-ground);
  --bg-card:var(--sp-surface);
  --border:var(--sp-line);
  --border-strong:var(--sp-line-strong);
  /* Text-field and select borders: at least 3:1 on the page, card and
     control backgrounds (WCAG 1.4.11). */
  --input-border:var(--sp-field-border);
  --text:var(--sp-ink);
  --text-secondary:var(--sp-ink-3);
  --text-muted:var(--sp-ink-3);
  --link:var(--sp-link);
  --link-hover:var(--sp-link-hover);
  --primary:var(--sp-primary);
  --on-primary:var(--sp-on-primary);
  --primary-bg:var(--sp-lilac-bg);
  --success:var(--sp-success-fg);
  --success-bg:var(--sp-success-bg);
  --success-border:color-mix(in srgb,var(--sp-success-fg) 30%,var(--sp-success-bg));
  --danger:var(--sp-danger-fg);
  --danger-bg:var(--sp-danger-bg);
  --danger-border:color-mix(in srgb,var(--sp-danger-fg) 30%,var(--sp-danger-bg));
  --warning:var(--sp-amber-fg);
  --warning-bg:var(--sp-amber-bg);
  --warning-border:color-mix(in srgb,var(--sp-amber-fg) 30%,var(--sp-amber-bg));
  /* Translucent ink over whatever sits below: darker in light, lighter
     in dark. */
  --surface-faint:color-mix(in srgb,var(--sp-ink) 2%,transparent);
  --surface-1:color-mix(in srgb,var(--sp-ink) 3%,transparent);
  --surface-2:color-mix(in srgb,var(--sp-ink) 4%,transparent);
  --surface-3:color-mix(in srgb,var(--sp-ink) 6%,transparent);
  --surface-4:color-mix(in srgb,var(--sp-ink) 8%,transparent);
  --surface-hover:color-mix(in srgb,var(--sp-ink) 10%,transparent);
  --switch-off:var(--sp-field-border);
  --slider-knob:var(--sp-surface);
  --focus:var(--sp-focus);
  --focus-ring:color-mix(in srgb,var(--sp-focus) 30%,transparent);
  --accent-bg:var(--sp-lilac-bg);
  --topbar-bg:var(--sp-ground);
  --control-bg:var(--sp-surface);
  --icon-primary:var(--sp-ink-3);
  --shadow-card:var(--sp-sh-card-sm);
  --search-btn-hover:var(--sp-primary-hover);
}

/* ---- vendor/softpop/css/softpop-components.css ---- */
/* Soft Pop (Direction A) core components (#115): cards, buttons, fields,
 * segmented tabs, disclosures, callouts, definition rows, breadcrumbs,
 * filter chips, status pills (#116), the address avatar and address rows
 * (#117) and the global focus ring.
 *
 * Markup comes from the EEx partials in
 * lib/frontend_ex_web/controllers/sp_html/ (FrontendExWeb.SpHTML, whose
 * moduledoc lists every partial's assigns). /dev/sp renders every variant
 * (dev and test only). Page templates adopt these classes in their own
 * issues (#118 for /txs and /blocks, M2b for the page heroes); until then
 * nothing outside the gallery uses them, except the address avatar
 * (.sp-avatar), which FrontendEx.Identicon already draws wherever a page
 * showed the old identicon.
 *
 * Rules for this file:
 * - Tokens only. Colours, shadows, radii and type come from
 *   softpop-tokens.css (bundled just before this file). No colour or
 *   font-size literal (scripts/check-colour-literals.mjs).
 * - No opacity on controls: hover and disabled states change fill,
 *   border or text, never transparency (#115: a 60-70% fade fell to
 *   1.63:1).
 * - Disabled is aria-disabled="true" with a dashed --sp-field-border
 *   outline and --sp-ink-3 text, so it reads as unavailable without colour
 *   alone and stays focusable and announced.
 * - Every control is at least 24 x 24 px, and 44 x 44 px at <=640px or on
 *   a touch screen (WCAG 2.5.8, and the 44px touch target of the brief).
 * - All selectors start with .sp- so nothing here restyles a page that has
 *   not migrated. The site header and footer are in softpop-shell.css.
 */

/* ---- Focus (WCAG 2.4.7, 2.4.11) ----
 * One ring for every control in both themes: 2px --sp-focus (the link
 * colour: 6.63:1 light, 8.95:1 dark on the page) 2px outside the control.
 * tokens-contrast.test.mjs checks it at 3:1 or more on the ground, cards,
 * the tab track, tonal fills and the lilac, mint, peach and coral tints.
 * The skip link (style2-overrides.css) shows on :focus as before. */
:focus-visible{
  outline:2px solid var(--sp-focus);
  outline-offset:2px;
}

/* ---- Links in prose (WCAG 1.4.1) ----
 * Underlined, so they do not rely on colour. Nav, rows and buttons are
 * not underlined: inside .sp-prose only class-less links count, so a
 * component (.sp-btn, .sp-tab, .sp-chip) placed in prose keeps its look. */
.sp-prose a:not([class]),
a.sp-link{
  color:var(--sp-link);
  text-decoration:underline;
  text-underline-offset:2px;
}
.sp-prose a:not([class]):hover,
a.sp-link:hover{
  color:var(--sp-link-hover);
}
/* A line that holds nothing but a link ("How refunds work →" under a
   callout, a footnote link): the link is a 44px target on phones and
   touch screens (#129). A link inside a sentence keeps the WCAG 2.5.8
   inline exception and is never enlarged. */
.sp-link-row > a{
  display:inline-flex;
  align-items:center;
  min-height:24px;
}
@media (max-width:640px), (pointer:coarse){
  .sp-link-row > a{min-height:44px}
}

/* ---- Long values (#129) ----
 * Only mono values (hashes, addresses, code) may break between any two
 * characters; prose, labels and amounts wrap between words, and break a
 * word only when it would otherwise overflow (F-91: no "sha / 25 / 6"). */
.sp-mono-value,
.sp-dl dd.sp-dl-mono,
.sp-breadcrumbs .sp-breadcrumbs-hash[aria-current],
.sp-wallet-mono,
.sp-addr-row-value.sp-addr-row-value--mono,
.sp-row-mono{
  overflow-wrap:anywhere;
}

/* ---- Cards ---- */
.sp-card{
  box-sizing:border-box;
  background:var(--sp-surface);
  color:var(--sp-ink);
  border:var(--sp-card-border);
  border-radius:var(--sp-r-3xl);
  box-shadow:var(--sp-sh-card-sm);
  /* List cards: rows run to the edge, so the sides and bottom are tight. */
  padding:var(--sp-space-24) var(--sp-space-16) var(--sp-space-16);
}
.sp-card--content{
  padding:var(--sp-space-32);
}
.sp-card--hero{
  border-radius:var(--sp-r-4xl);
  padding:var(--sp-space-40);
  box-shadow:var(--sp-sh-card);
}
/* Tinted cards: flat (no shadow, no dark border), on their tint. */
.sp-card--tint-lilac,
.sp-card--tint-mint,
.sp-card--tint-peach{
  border:0;
  box-shadow:none;
  border-radius:var(--sp-r-3xl);
  padding:var(--sp-space-32);
}
.sp-card--tint-lilac{background:var(--sp-lilac-bg)}
.sp-card--tint-mint{background:var(--sp-mint-bg)}
.sp-card--tint-peach{background:var(--sp-peach-bg)}
.sp-card-title{
  margin:0 0 var(--sp-space-16);
  font:var(--sp-type-h3);
  letter-spacing:var(--sp-ls-h3);
  color:var(--sp-ink);
}
.sp-card--hero > .sp-card-title{
  font:var(--sp-type-h2);
  letter-spacing:var(--sp-ls-h2);
}
/* Inset panel inside a card ("Who paid whom"). */
.sp-inset{
  box-sizing:border-box;
  background:var(--sp-inset);
  border-radius:var(--sp-r-2xl);
  padding:var(--sp-space-24);
}
/* Stat tile: label, value, caption. */
.sp-tile{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  gap:var(--sp-space-10);
  background:var(--sp-surface);
  color:var(--sp-ink);
  border:var(--sp-card-border);
  border-radius:var(--sp-r-2xl);
  box-shadow:var(--sp-sh-card-sm);
  padding:var(--sp-space-24);
}
.sp-tile-label{
  font:var(--sp-type-meta-label);
  color:var(--sp-ink-3);
}
.sp-tile-value{
  font:var(--sp-type-stat);
  letter-spacing:var(--sp-ls-stat);
  font-variant-numeric:tabular-nums;
}
.sp-tile-caption{
  font:var(--sp-type-meta);
  color:var(--sp-ink-3);
}
@media (max-width:640px){
  .sp-card--content,
  .sp-card--tint-lilac,
  .sp-card--tint-mint,
  .sp-card--tint-peach{
    padding:var(--sp-space-20) var(--sp-space-18);
  }
  .sp-card--hero{
    border-radius:var(--sp-r-3xl);
    padding:22px var(--sp-space-18);
    box-shadow:var(--sp-sh-card-mobile);
  }
  .sp-tile{
    gap:var(--sp-space-6);
    border-radius:var(--sp-r-tile-mobile);
    padding:var(--sp-space-16);
  }
}

/* ---- Buttons ----
 * Pill, Inter 600, 44px by default. Variants set fill and text; sizes set
 * the height. Icons inside are FrontendExWeb.Icon markup. */
.sp-btn{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--sp-space-8);
  min-width:44px;
  min-height:44px;
  margin:0;
  padding:0 var(--sp-space-20);
  border:1px solid transparent;
  border-radius:var(--sp-r-pill);
  font:var(--sp-type-body);
  font-weight:600;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.sp-btn:hover{
  text-decoration:none;
}
.sp-btn .icon{
  width:18px;
  height:18px;
  flex:none;
}
.sp-btn--primary,
.sp-btn--primary:visited{
  background:var(--sp-primary);
  color:var(--sp-on-primary);
}
.sp-btn--primary:hover{
  background:var(--sp-primary-hover);
  color:var(--sp-on-primary);
}
.sp-btn--inverse,
.sp-btn--inverse:visited{
  background:var(--sp-inverse);
  color:var(--sp-on-inverse);
}
.sp-btn--inverse:hover{
  background:var(--sp-inverse-hover);
  color:var(--sp-on-inverse);
}
.sp-btn--tonal,
.sp-btn--tonal:visited{
  background:var(--sp-tonal);
  color:var(--sp-ink);
}
.sp-btn--tonal:hover{
  background:var(--sp-tonal-hover);
  color:var(--sp-ink);
}
/* Quick actions on a tinted hero: white in light, the ground in dark. */
.sp-btn--on-tint,
.sp-btn--on-tint:visited{
  background:var(--sp-on-tint);
  color:var(--sp-ink);
  padding:0 var(--sp-space-18) 0 var(--sp-space-14);
  font:var(--sp-type-body-sm);
  font-weight:600;
}
.sp-btn--on-tint .icon{
  width:20px;
  height:20px;
}
.sp-btn--on-tint:hover{
  background:var(--sp-on-tint);
  color:var(--sp-ink);
  border-color:var(--sp-field-border);
}
.sp-btn--outline,
.sp-btn--outline:visited{
  background:var(--sp-surface);
  color:var(--sp-ink);
  border-color:var(--sp-line-strong);
}
.sp-btn--outline:hover{
  background:var(--sp-surface);
  color:var(--sp-ink);
  border-color:var(--sp-field-border);
}
/* Heights. 36px and 40px are desktop sizes: at <=640px every button is
 * 44px or more (below). */
.sp-btn--sm{
  min-height:36px;
  padding:0 var(--sp-space-12);
  gap:var(--sp-space-6);
  font:var(--sp-type-caption);
  font-weight:600;
}
.sp-btn--sm .icon{
  width:14px;
  height:14px;
}
.sp-btn--md{min-height:48px}
.sp-btn--lg{min-height:52px;padding:0 var(--sp-space-24)}
.sp-btn--xl{min-height:56px;padding:0 var(--sp-space-28)}
.sp-btn--block{
  display:flex;
  width:100%;
}
/* Icon-only: a 44px circle (theme, menu), the 48px search submit, and the
 * copy square (36-40px radius 10-12 on desktop, 44px radius 14 on phones).
 * The accessible name is the button's aria-label. */
.sp-btn--icon{
  width:44px;
  min-width:44px;
  padding:0;
  border-radius:var(--sp-r-pill);
}
.sp-btn--icon .icon{
  width:20px;
  height:20px;
}
.sp-btn--icon.sp-btn--md{
  width:48px;
}
.sp-btn--copy{
  width:40px;
  min-width:40px;
  min-height:40px;
  padding:0;
  border-radius:var(--sp-r-sm);
}
.sp-btn--copy.sp-btn--sm{
  width:36px;
  min-width:36px;
  min-height:36px;
  border-radius:var(--sp-r-xs);
}
/* Disabled: aria-disabled="true", never opacity. The dashed field border
 * (3:1) and the --sp-ink-3 text (4.5:1) carry the state; no hover. */
.sp-btn[aria-disabled="true"],
.sp-btn[aria-disabled="true"]:hover{
  background:transparent;
  color:var(--sp-ink-3);
  border:1.5px dashed var(--sp-field-border);
  cursor:not-allowed;
}
@media (max-width:640px){
  .sp-btn,
  .sp-btn--sm,
  .sp-btn--copy,
  .sp-btn--copy.sp-btn--sm{
    min-height:44px;
    min-width:44px;
  }
  .sp-btn--copy,
  .sp-btn--copy.sp-btn--sm{
    width:44px;
    border-radius:var(--sp-r-md);
  }
}
@media (pointer:coarse){
  .sp-btn,
  .sp-btn--sm,
  .sp-btn--copy,
  .sp-btn--copy.sp-btn--sm{
    min-height:44px;
    min-width:44px;
  }
  .sp-btn--copy,
  .sp-btn--copy.sp-btn--sm{
    width:44px;
  }
}

/* ---- Fields (WCAG 1.4.11: borders 3:1) ----
 * Form fields: 56px, radius 18, a 1.5px --sp-field-border and the ground
 * as fill (never --sp-inset: the dark border is 2.71:1 on it). A visible
 * 14/600 label and 14px help text tied with aria-describedby. */
.sp-field{
  display:flex;
  flex-direction:column;
  gap:var(--sp-space-6);
  min-width:0;
}
.sp-field-label{
  font:var(--sp-type-meta-label);
  color:var(--sp-ink);
}
.sp-field-help{
  margin:0;
  font:var(--sp-type-meta);
  color:var(--sp-ink-3);
}
.sp-input{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:56px;
  margin:0;
  padding:0 var(--sp-space-18);
  background:var(--sp-ground);
  color:var(--sp-ink);
  border:1.5px solid var(--sp-field-border);
  border-radius:var(--sp-r-lg);
  font:var(--sp-type-body);
  font-size:var(--sp-fs-input);
}
.sp-input--mono{
  font-family:var(--sp-font-mono);
}
.sp-input::placeholder{
  color:var(--sp-ink-3);
  opacity:1;
}
.sp-input:disabled,
.sp-input[aria-disabled="true"]{
  border-style:dashed;
  color:var(--sp-ink-3);
  cursor:not-allowed;
}
.sp-input[aria-invalid="true"]{
  border-color:var(--sp-danger-fg);
  border-width:2px;
}
/* A field with a trailing unit ("USDC"): 60px, radius 20. The group draws
 * the border; the input inside has none. */
.sp-input-group{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:var(--sp-space-8);
  min-height:60px;
  padding:0 var(--sp-space-18);
  background:var(--sp-ground);
  color:var(--sp-ink);
  border:1.5px solid var(--sp-field-border);
  border-radius:var(--sp-r-xl);
}
.sp-input-group .sp-input{
  flex:1;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
/* The group carries the input's state, since the input has no border. */
.sp-input-group--disabled{
  border-style:dashed;
  color:var(--sp-ink-3);
}
.sp-input-group--invalid{
  border-color:var(--sp-danger-fg);
  border-width:2px;
}
.sp-input-group-unit{
  flex:none;
  font:var(--sp-type-body);
  font-weight:700;
}
/* The field is the focus target: the ring goes round the whole group. */
@supports selector(:has(*)){
  .sp-input-group .sp-input:focus-visible{
    outline:none;
  }
  .sp-input-group:has(.sp-input:focus-visible){
    outline:2px solid var(--sp-focus);
    outline-offset:2px;
  }
}

/* Search: a pill with a 1.5px --sp-field-border on the card colour.
 * Header 44px; hero 52px inside 6px of padding, so the submit button's
 * 2px-offset ring stays inside the pill. The ring for the text input goes
 * round the whole pill. */
.sp-search{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:var(--sp-space-8);
  min-height:44px;
  padding:0 var(--sp-space-6) 0 var(--sp-space-16);
  background:var(--sp-surface);
  color:var(--sp-ink);
  border:1.5px solid var(--sp-field-border);
  border-radius:var(--sp-r-pill);
}
.sp-search > .icon{
  flex:none;
  width:18px;
  height:18px;
  color:var(--sp-ink-3);
}
.sp-search-input{
  flex:1;
  min-width:0;
  min-height:32px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:var(--sp-ink);
  font:var(--sp-type-body);
  font-size:var(--sp-fs-input);
}
.sp-search-input::placeholder{
  color:var(--sp-ink-3);
  opacity:1;
}
.sp-search .sp-btn{
  flex:none;
  min-height:32px;
}
.sp-search--hero{
  padding:var(--sp-space-6) var(--sp-space-6) var(--sp-space-6) 22px;
  box-shadow:var(--sp-sh-search);
}
.sp-search--hero > .icon{
  width:22px;
  height:22px;
}
.sp-search--hero .sp-search-input{
  min-height:52px;
  font:var(--sp-type-body);
  font-size:var(--sp-fs-input);
}
.sp-search--hero .sp-btn{
  min-height:52px;
  padding:0 26px;
}
@supports selector(:has(*)){
  .sp-search .sp-search-input:focus-visible{
    outline:none;
  }
  .sp-search:has(.sp-search-input:focus-visible){
    outline:2px solid var(--sp-focus);
    outline-offset:2px;
  }
}
/* Without :has() the input keeps its own ring, 6px out into the pill. */
@supports not selector(:has(*)){
  .sp-search .sp-search-input:focus-visible{
    outline-offset:6px;
  }
}
@media (max-width:640px){
  .sp-search .sp-btn{
    min-height:44px;
  }
  .sp-search-input{
    min-height:44px;
  }
}
/* Touch screens wider than a phone: the header pill's controls grow to
 * 44px too; the hero keeps its 52px. */
@media (pointer:coarse){
  .sp-search:not(.sp-search--hero) .sp-btn,
  .sp-search:not(.sp-search--hero) .sp-search-input{
    min-height:44px;
  }
}

/* ---- Segmented tabs ----
 * Server-rendered links in a <nav>, not an ARIA tablist; the current one
 * has aria-current="page". In light the active pill is white on a
 * #F4EEE5 track (1.15:1 alone), so it also gets a 1.5px
 * --sp-tab-active-border (3.11:1 on the track) and weight 600; pending
 * designer confirmation. In dark the fill itself is the cue. Every tab
 * keeps a transparent 1.5px border so the active one does not shift. */
.sp-tabs{
  box-sizing:border-box;
  display:flex;
  gap:var(--sp-space-6);
  padding:var(--sp-space-6);
  background:var(--sp-sunken);
  border:1px solid var(--sp-sunken-border);
  border-radius:var(--sp-r-pill);
  max-width:100%;
  overflow-x:auto;
  scrollbar-width:none;
}
.sp-tabs::-webkit-scrollbar{
  display:none;
}
.sp-tab,
.sp-tab:visited{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  min-height:44px;
  padding:0 22px;
  border:1.5px solid transparent;
  border-radius:var(--sp-r-pill);
  color:var(--sp-ink-2);
  font:var(--sp-type-body);
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
}
.sp-tab:hover{
  background:var(--sp-tonal-hover);
  color:var(--sp-ink);
  text-decoration:none;
}
.sp-tab[aria-current="page"],
.sp-tab[aria-current="page"]:hover{
  background:var(--sp-tab-active-bg);
  color:var(--sp-tab-active-fg);
  border-color:var(--sp-tab-active-border);
  box-shadow:var(--sp-sh-pill);
  font-weight:600;
}
@media (max-width:640px){
  .sp-tabs{
    gap:var(--sp-space-4);
    padding:var(--sp-space-4);
  }
  .sp-tab,
  .sp-tab:visited{
    flex:1 0 auto;
    padding:0 var(--sp-space-12);
    font:var(--sp-type-meta);
    font-weight:500;
  }
  .sp-tab[aria-current="page"]{
    font-weight:600;
  }
}
/* Forced colours drop fills and shadows: keep the current tab marked. */
@media (forced-colors:active){
  .sp-tab[aria-current="page"]{
    border-color:Highlight;
    text-decoration:underline;
  }
}

/* ---- Disclosure rows ----
 * <details>/<summary>: they open and close without JavaScript. White row,
 * radius 24, a 40px icon tile, a 16/600 title (the artboard's 17px is not
 * in the type scale), a 14px subline and a chevron that turns when open. */
.sp-disclosure{
  box-sizing:border-box;
  background:var(--sp-surface);
  color:var(--sp-ink);
  border:var(--sp-card-border);
  border-radius:var(--sp-r-2xl);
  box-shadow:var(--sp-sh-hairline);
}
.sp-disclosure-summary{
  display:flex;
  align-items:center;
  gap:var(--sp-space-16);
  min-height:44px;
  padding:22px var(--sp-space-24);
  border-radius:var(--sp-r-2xl);
  list-style:none;
  cursor:pointer;
}
.sp-disclosure-summary::-webkit-details-marker{
  display:none;
}
.sp-disclosure-summary::marker{
  content:"";
}
.sp-disclosure-tile{
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:var(--sp-r-sm);
  background:var(--sp-tonal);
  color:var(--sp-ink);
}
.sp-disclosure-tile--mint{
  background:var(--sp-mint-bg);
  color:var(--sp-mint-fg);
}
.sp-disclosure-tile .icon{
  width:20px;
  height:20px;
}
.sp-disclosure-text{
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
}
.sp-disclosure-title{
  font:var(--sp-type-body);
  font-weight:600;
}
.sp-disclosure-sub{
  font:var(--sp-type-meta);
  color:var(--sp-ink-3);
}
.sp-disclosure-chevron{
  flex:none;
  width:22px;
  height:22px;
  transform:rotate(90deg);
}
.sp-disclosure[open] > .sp-disclosure-summary .sp-disclosure-chevron{
  transform:rotate(-90deg);
}
.sp-disclosure-body{
  padding:0 var(--sp-space-24) var(--sp-space-24);
}
@media (max-width:640px){
  .sp-disclosure,
  .sp-disclosure-summary{
    border-radius:var(--sp-r-tile-mobile);
  }
  .sp-disclosure-summary{
    gap:var(--sp-space-12);
    min-height:64px;
    padding:var(--sp-space-16);
  }
  .sp-disclosure-body{
    padding:0 var(--sp-space-16) var(--sp-space-16);
  }
}

/* ---- Filter chips ----
 * Links in a role="group"; the selected one is the inverse fill with
 * aria-current="true". 40px, 44px at <=640px or on touch. */
.sp-chips{
  display:flex;
  flex-wrap:wrap;
  gap:var(--sp-space-8);
  align-items:center;
}
.sp-chip,
.sp-chip:visited{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  gap:var(--sp-space-6);
  min-height:40px;
  padding:0 var(--sp-space-14);
  background:var(--sp-surface);
  color:var(--sp-ink);
  border:1.5px solid var(--sp-line-dashed);
  border-radius:var(--sp-r-pill);
  font:var(--sp-type-meta);
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
}
.sp-chip .icon{
  width:14px;
  height:14px;
}
.sp-chip:hover{
  color:var(--sp-ink);
  border-color:var(--sp-field-border);
  text-decoration:none;
}
.sp-chip[aria-current="true"],
.sp-chip[aria-current="true"]:hover{
  background:var(--sp-inverse);
  color:var(--sp-on-inverse);
  border-color:var(--sp-inverse);
  font-weight:600;
}
@media (max-width:640px){
  .sp-chip{min-height:44px}
}
@media (pointer:coarse){
  .sp-chip{min-height:44px}
}

/* ---- Callouts ----
 * Mint (confidential, success), coral (refunds, warnings) or neutral; a
 * leading icon and ink text. The tint is decoration: the text says what
 * the callout is about. */
.sp-callout{
  box-sizing:border-box;
  display:flex;
  align-items:flex-start;
  gap:var(--sp-space-12);
  padding:var(--sp-space-18) var(--sp-space-20);
  border-radius:var(--sp-r-xl);
  background:var(--sp-inset);
  color:var(--sp-ink);
  font:var(--sp-type-body-sm);
}
.sp-callout > .icon{
  flex:none;
  width:20px;
  height:20px;
  margin-top:2px;
  color:var(--sp-ink-2);
}
.sp-callout--mint{background:var(--sp-mint-bg)}
.sp-callout--mint > .icon{color:var(--sp-mint-fg)}
.sp-callout--coral{background:var(--sp-coral-bg)}
.sp-callout--coral > .icon{color:var(--sp-coral-fg)}
.sp-callout-body{
  display:flex;
  flex-direction:column;
  gap:var(--sp-space-4);
  min-width:0;
}
.sp-callout-title{
  font:var(--sp-type-body);
  font-weight:600;
}
.sp-callout-body p{
  margin:0;
}

/* ---- Definition rows ----
 * <dl> as an auto/1fr grid; each pair sits in a <div class="sp-dl-row">
 * (display:contents on wide screens). At <=640px the rows stack, split by
 * --sp-line-soft, with the value on the right. */
.sp-dl{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:var(--sp-space-12) var(--sp-space-20);
  margin:0;
  font:var(--sp-type-body-sm);
  color:var(--sp-ink);
}
.sp-dl-row{
  display:contents;
}
.sp-dl dt{
  color:var(--sp-ink-3);
}
.sp-dl dd{
  margin:0;
  min-width:0;
  overflow-wrap:break-word;
}
/* A link alone in a value ("Block 1", "Block 9824086 · Final") is a 44px
   target on phones and touch screens (A-*-Mobile). */
@media (max-width:640px), (pointer:coarse){
  .sp-dl dd > a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
  }
}
.sp-dl-mono{
  font:var(--sp-type-mono-detail);
}
/* Metric tiles: each pair is a tile on the inset colour. */
.sp-dl--tiles{
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:var(--sp-space-12);
}
.sp-dl--tiles .sp-dl-row{
  display:flex;
  flex-direction:column;
  gap:var(--sp-space-4);
  padding:var(--sp-space-14) var(--sp-space-16);
  background:var(--sp-inset);
  border-radius:var(--sp-r-lg);
}
.sp-dl--tiles dt{
  font:var(--sp-type-meta);
}
.sp-dl--tiles dd{
  font:var(--sp-type-metric);
  letter-spacing:var(--sp-ls-metric);
  font-variant-numeric:tabular-nums;
}
@media (max-width:640px){
  .sp-dl:not(.sp-dl--tiles){
    display:flex;
    flex-direction:column;
    gap:0;
    border-top:1px solid var(--sp-line-soft);
  }
  .sp-dl:not(.sp-dl--tiles) .sp-dl-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:var(--sp-space-12);
    padding:var(--sp-space-12) 0;
    border-bottom:1px solid var(--sp-line-soft);
  }
  .sp-dl:not(.sp-dl--tiles) dd{
    text-align:right;
  }
}

/* ---- Breadcrumbs ----
 * 14px --sp-ink-3, underlined links, the current item in ink with
 * aria-current="page" (mono 13 when it is a hash). Separators are
 * aria-hidden. */
.sp-breadcrumbs ol{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:var(--sp-space-8);
  margin:0;
  padding:0;
  list-style:none;
  font:var(--sp-type-meta);
  color:var(--sp-ink-3);
}
.sp-breadcrumbs li{
  display:flex;
  align-items:center;
  gap:var(--sp-space-8);
  min-width:0;
}
.sp-breadcrumbs a,
.sp-breadcrumbs a:visited{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  color:var(--sp-ink-3);
  text-decoration:underline;
  text-underline-offset:2px;
}
.sp-breadcrumbs a:hover{
  color:var(--sp-ink);
}
.sp-breadcrumbs [aria-current="page"]{
  color:var(--sp-ink);
  overflow-wrap:break-word;
}
.sp-breadcrumbs-hash{
  font:var(--sp-type-mono-list);
}
@media (max-width:640px), (pointer:coarse){
  .sp-breadcrumbs a{
    min-height:44px;
    min-width:44px;
  }
}

/* ---- Status pills (#116) ----
 * One pill for every state: FrontendExWeb.StatusPill.status_pill/2 (the
 * closed list of kinds, labels and icons) renders sp_html/pill.html.eex;
 * the live feed builds the same markup (assets/js/tx-status.js).
 * The label is always visible text and no pill has a title, so meaning
 * never rests on the colour or a tooltip. Each tone is one tint pair;
 * tokens-contrast.test.mjs reads the .sp-pill--<tone> rules below and
 * checks every pair at 4.5:1 or more in both themes.
 *   md (default)  30px, padding 0 10, 13/600, 14px icon  variants, phones
 *   lg            32px, padding 0 12, 14/600, 16px icon  page heroes
 *   sm            padding 1 8, 12/700, 12px icon         inside list rows */
.sp-pill{
  display:inline-flex;
  align-items:center;
  gap:var(--sp-space-6);
  box-sizing:border-box;
  min-height:30px;
  padding:0 var(--sp-space-10);
  border-radius:var(--sp-r-pill);
  font:var(--sp-type-caption);
  font-weight:600;
  letter-spacing:var(--sp-ls-caption);
  white-space:nowrap;
  vertical-align:middle;
}
.sp-pill--lg{
  min-height:32px;
  padding:0 var(--sp-space-12);
  font:var(--sp-type-meta-label);
  letter-spacing:var(--sp-ls-meta);
}
.sp-pill--sm{
  min-height:0;
  gap:var(--sp-space-4);
  padding:1px var(--sp-space-8);
  font:var(--sp-type-micro);
  letter-spacing:var(--sp-ls-micro);
}
.sp-pill svg.icon{
  width:14px;
  height:14px;
  stroke-width:2;
}
.sp-pill--lg svg.icon{
  width:16px;
  height:16px;
}
.sp-pill--sm svg.icon{
  width:12px;
  height:12px;
  stroke-width:2.2;
}
/* Live, Latest block, Operational: an 8px dot with a 3px ring. */
.sp-pill-dot{
  flex:none;
  width:8px;
  height:8px;
  border-radius:var(--sp-r-pill);
  background:currentColor;
  box-shadow:0 0 0 3px var(--sp-success-ring);
}
.sp-pill--success{background:var(--sp-success-bg);color:var(--sp-success-fg)}
.sp-pill--lilac{background:var(--sp-lilac-bg);color:var(--sp-lilac-fg)}
.sp-pill--mint{background:var(--sp-mint-bg);color:var(--sp-mint-fg)}
.sp-pill--amber{background:var(--sp-amber-bg);color:var(--sp-amber-fg)}
.sp-pill--danger{background:var(--sp-danger-bg);color:var(--sp-danger-fg)}
.sp-pill--blue{background:var(--sp-blue-bg);color:var(--sp-blue-fg)}
.sp-pill--neutral{background:var(--sp-tonal);color:var(--sp-ink-2)}
.sp-pill--coral{background:var(--sp-coral-bg);color:var(--sp-coral-fg)}
.sp-pill--genesis{background:var(--sp-genesis-bg);color:var(--sp-genesis-fg)}
.sp-pill--system{background:var(--sp-inverse);color:var(--sp-on-inverse)}
/* Forced colours (Windows High Contrast) drop the fills: a border keeps
 * each pill a visible shape, and the dot takes the text colour. */
@media (forced-colors:active){
  .sp-pill{
    border:1px solid CanvasText;
  }
  .sp-pill-dot{
    background:CanvasText;
    box-shadow:none;
  }
}

/* ---- Network chip and wallet card (#120) ----
 * The header chip (fast_layouts/network_chip.html.eex): a 44px pill on
 * the card colour naming the network health in words, with a 10px dot in
 * the state colour on a 3px ring. Home shows "POA network · Operational",
 * inner pages the state alone. Delayed and Halted fill the chip with the
 * amber and danger tint pairs; every text colour here is a pair that
 * tokens-contrast.test.mjs checks (state colours on the card, and the
 * pill tints). It is a link without JavaScript and a disclosure button
 * with it (assets/js/network-chip.mjs); the popover is the wallet card.
 * Where the chip sits in the header is in softpop-shell.css. */
.sp-netchip{
  position:relative;
  flex:none;
}
.sp-netchip-toggle,
.sp-netchip-toggle:visited{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  gap:var(--sp-space-8);
  min-height:44px;
  margin:0;
  padding:0 var(--sp-space-16) 0 var(--sp-space-12);
  border:1px solid var(--sp-line-strong);
  border-radius:var(--sp-r-pill);
  background:var(--sp-surface);
  color:var(--sp-ink);
  font:var(--sp-type-meta);
  font-weight:600;
  white-space:nowrap;
  text-decoration:none;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.sp-netchip-toggle:hover{
  border-color:var(--sp-field-border);
  color:var(--sp-ink);
  text-decoration:none;
}
.sp-netchip-toggle[aria-expanded="true"]{
  border-color:var(--sp-field-border);
}
.sp-netchip-state{
  color:var(--sp-netchip-fg, var(--sp-ink));
}
.sp-netchip-name + .sp-netchip-state{
  font-weight:500;
}
/* Decorative: the words beside it say the state. */
.sp-netchip-dot{
  flex:none;
  width:10px;
  height:10px;
  border-radius:var(--sp-r-pill);
  background:var(--sp-netchip-fg, var(--sp-ink-3));
  box-shadow:0 0 0 3px var(--sp-netchip-ring, var(--sp-tonal));
}
.sp-netchip--ok,
.sp-wallet-health--ok{
  --sp-netchip-fg:var(--sp-success-fg);
  --sp-netchip-ring:var(--sp-success-ring);
}
.sp-netchip--stalled,
.sp-wallet-health--stalled{
  --sp-netchip-fg:var(--sp-amber-fg);
  --sp-netchip-ring:var(--sp-amber-bg);
}
.sp-netchip--halted,
.sp-wallet-health--halted{
  --sp-netchip-fg:var(--sp-danger-fg);
  --sp-netchip-ring:var(--sp-danger-bg);
}
.sp-netchip-toggle.sp-netchip--stalled,
.sp-netchip-toggle.sp-netchip--stalled:hover{
  background:var(--sp-amber-bg);
  color:var(--sp-amber-fg);
}
.sp-netchip-toggle.sp-netchip--halted,
.sp-netchip-toggle.sp-netchip--halted:hover{
  background:var(--sp-danger-bg);
  color:var(--sp-danger-fg);
}
.sp-netchip--stalled .sp-netchip-dot,
.sp-netchip--halted .sp-netchip-dot{
  box-shadow:0 0 0 3px var(--sp-surface);
}
/* The popover: non-modal, under the chip, its right edge on the chip's. */
.sp-netchip-pop{
  position:absolute;
  top:calc(100% + var(--sp-space-8));
  right:0;
  z-index:40;
  box-sizing:border-box;
  width:340px;
  max-width:calc(100vw - 2 * var(--sp-gutter));
  padding:var(--sp-space-20);
  border:var(--sp-card-border);
  border-radius:var(--sp-r-2xl);
  background:var(--sp-surface);
  color:var(--sp-ink);
  box-shadow:var(--sp-sh-menu);
}
.sp-netchip-pop[hidden]{
  display:none;
}

/* The wallet card (fast_layouts/wallet_card.html.eex): the popover's
 * content, and Home's card in a section of its own. */
.sp-wallet-card{
  display:flex;
  flex-direction:column;
  gap:var(--sp-space-16);
  font-family:var(--sp-font-body);
  color:var(--sp-ink);
}
.sp-wallet-card--card{
  box-sizing:border-box;
  gap:var(--sp-space-18);
  padding:var(--sp-space-28);
  border:var(--sp-card-border);
  border-radius:var(--sp-r-3xl);
  background:var(--sp-surface);
  box-shadow:var(--sp-sh-card);
}
.sp-wallet-head{
  display:flex;
  align-items:center;
  gap:var(--sp-space-12);
}
.sp-wallet-tile{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:44px;
  height:44px;
  border-radius:var(--sp-r-md);
  background:var(--sp-peach-bg);
  color:var(--sp-peach-fg);
}
.sp-wallet-tile .icon{
  width:22px;
  height:22px;
}
.sp-wallet-title{
  margin:0;
  font:var(--sp-type-h4);
  letter-spacing:var(--sp-ls-h4);
}
.sp-wallet-card--card .sp-wallet-title{
  font:var(--sp-type-h3);
  letter-spacing:var(--sp-ls-h3);
}
.sp-wallet-sub,
.sp-wallet-note{
  margin:0;
  font:var(--sp-type-meta);
  color:var(--sp-ink-2);
}
.sp-wallet-health{
  display:flex;
  align-items:center;
  gap:var(--sp-space-8);
  margin:0;
  font:var(--sp-type-meta);
  font-weight:600;
  color:var(--sp-netchip-fg, var(--sp-ink));
}
.sp-wallet-dl{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:var(--sp-space-10) var(--sp-space-16);
  margin:0;
  font:var(--sp-type-body-sm);
}
.sp-wallet-dl dt{
  color:var(--sp-ink-2);
}
.sp-wallet-dl dd{
  margin:0;
  font-weight:600;
  overflow-wrap:break-word;
}
.sp-wallet-num{
  font-variant-numeric:tabular-nums;
}
.sp-wallet-dl .sp-wallet-rpc{
  display:flex;
  align-items:center;
  gap:var(--sp-space-6);
  font-weight:400;
}
.sp-wallet-mono{
  min-width:0;
  font-family:var(--sp-font-mono);
  font-size:var(--sp-fs-mono-detail);
}
.sp-wallet-rpc .sp-btn--copy{
  flex:none;
}
/* In the 340px popover the RPC URL takes the full width under its label,
 * so it never breaks inside the host name. */
.sp-wallet-card--popover .sp-wallet-dl .sp-wallet-rpc{
  grid-column:1 / -1;
  margin-top:calc(-1 * var(--sp-space-6));
}
.sp-wallet-actions{
  display:flex;
  flex-direction:column;
  gap:var(--sp-space-8);
}
.sp-wallet-choices{
  display:flex;
  flex-direction:column;
  gap:var(--sp-space-8);
}
.sp-wallet-choices[hidden]{
  display:none;
}
/* The result in words (role="status"; never display:none while empty,
 * or a screen reader may not announce the first result). A failure or a missing wallet is
 * in the danger colour; a cancellation is the user's own choice and stays
 * in the normal text colour, like the other results. */
.sp-wallet-status{
  margin:0;
  font:var(--sp-type-meta);
  color:var(--sp-ink-2);
}
.sp-wallet-status[data-wallet-status="ok"],
.sp-wallet-status[data-wallet-status="switched"]{
  color:var(--sp-success-fg);
}
.sp-wallet-status[data-wallet-status="error"],
.sp-wallet-status[data-wallet-status="missing"]{
  color:var(--sp-danger-fg);
}
/* Without JavaScript the button could not do anything: the card keeps
 * the details and the setup guide link (only Home shows it then; the
 * popover needs JavaScript to open). */
:root:not([data-theme-next]) .sp-wallet-actions{
  display:none;
}

/* ---- Address avatar (#117) ----
 * FrontendEx.Identicon / assets/js/avatar.mjs: an inline SVG in a 40 x 40
 * viewBox, clipped to a circle here. Each shape's sp-av-N class paints it
 * from --sp-id-(N+1); its fill attribute is the same colour, for contexts
 * without this stylesheet. Dark keeps the hues and draws the avatar on
 * --sp-id-ground (a 2px ring). Always aria-hidden. */
.sp-avatar{
  display:inline-block;
  flex:none;
  border-radius:var(--sp-r-pill);
  overflow:hidden;
  vertical-align:middle;
  box-shadow:0 0 0 2px var(--sp-id-ground);
}
.sp-av-0{fill:var(--sp-id-1)}
.sp-av-1{fill:var(--sp-id-2)}
.sp-av-2{fill:var(--sp-id-3)}
.sp-av-3{fill:var(--sp-id-4)}
.sp-av-4{fill:var(--sp-id-5)}
.sp-av-5{fill:var(--sp-id-6)}

/* ---- Address rows (#117) ----
 * FrontendExWeb.SpHTML.address_row/1 and address_via/1, stacked in an
 * .sp-addr-rows column. Desktop (A-Tx): a raised row, radius 18, padding
 * 12 12 12 14, gap 12, a 40px avatar, a 13px label above the 15px mono
 * address and a 40px radius-12 copy square. Mobile (A-Tx-Mobile, at
 * <=640px or with .sp-addr-row--mobile): an inset row, padding 6 6 6 12,
 * a 52px link with the address underlined, a 36px avatar and a 44px
 * radius-14 copy square on the card colour. The link covers the avatar,
 * label and address, so the whole left part is the target. */
.sp-addr-rows{
  display:flex;
  flex-direction:column;
  gap:var(--sp-space-8);
}
.sp-addr-row{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:var(--sp-space-12);
  min-width:0;
  background:var(--sp-row-raised);
  border-radius:var(--sp-r-lg);
  padding:var(--sp-space-12) var(--sp-space-12) var(--sp-space-12) var(--sp-space-14);
}
.sp-addr-row-link,
.sp-addr-row-link:visited{
  display:flex;
  flex:1 1 auto;
  align-items:center;
  gap:var(--sp-space-12);
  min-width:0;
  min-height:44px;
  color:var(--sp-ink);
  text-decoration:none;
  border-radius:var(--sp-r-sm);
}
.sp-addr-row-link .sp-avatar{
  width:40px;
  height:40px;
}
.sp-addr-row-text{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.sp-addr-row-label{
  font:var(--sp-type-caption);
  color:var(--sp-ink-3);
}
.sp-addr-row-value{
  font:var(--sp-type-body-sm);
  font-weight:600;
  color:var(--sp-ink);
  overflow-wrap:break-word;
}
.sp-addr-row-value--mono{
  font:var(--sp-type-mono-row);
  letter-spacing:var(--sp-ls-mono);
}
.sp-addr-row-kind{
  font:var(--sp-type-caption);
  color:var(--sp-ink-3);
}
.sp-addr-row-link:hover .sp-addr-row-value{
  color:var(--sp-link);
  text-decoration:underline;
  text-underline-offset:2px;
}
.sp-btn.sp-addr-row-copy,
.sp-btn.sp-addr-row-copy:hover{
  flex:none;
  background:var(--sp-control);
  color:var(--sp-ink);
}
.sp-btn.sp-addr-row-copy:hover{
  background:var(--sp-tonal-hover);
}
.sp-addr-row-copy .icon{
  width:18px;
  height:18px;
}
/* ---- Address chip, inline (#117) ----
 * FrontendExWeb.SpHTML.address_chip/1: an address inside a sentence. The
 * short EIP-55 value in the mono-inline role (16px, A-Tx), underlined
 * when it links, never wrapped inside the chip. The optional copy button
 * is a 28px tonal square on desktop. On phones and touch screens its box
 * is a 44px target with the same 28px face (the ::before), and negative
 * block margins keep the line at the sentence's own height. The target
 * grows right, up and down only: its left edge stays 2px after the value,
 * so a tap on a linked value never lands on the copy button. */
.sp-addr-chip{
  white-space:nowrap;
}
.sp-addr-chip-value{
  font:var(--sp-type-mono-inline);
  letter-spacing:var(--sp-ls-mono);
  color:var(--sp-ink);
}
a.sp-addr-chip-value,
a.sp-addr-chip-value:visited{
  color:var(--sp-link);
  text-decoration:underline;
  text-underline-offset:2px;
}
a.sp-addr-chip-value:hover{
  color:var(--sp-link-hover);
}
.sp-btn.sp-addr-chip-copy,
.sp-btn.sp-addr-chip-copy:hover{
  position:relative;
  isolation:isolate;
  width:28px;
  min-width:28px;
  height:28px;
  min-height:28px;
  margin:-4px 0 -4px var(--sp-space-6);
  border-radius:var(--sp-r-xs);
  background:transparent;
  color:var(--sp-ink);
  vertical-align:middle;
}
.sp-btn.sp-addr-chip-copy::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:var(--sp-r-xs);
  background:var(--sp-tonal);
}
.sp-btn.sp-addr-chip-copy:hover::before{
  background:var(--sp-tonal-hover);
}
.sp-addr-chip-copy .icon{
  width:16px;
  height:16px;
}
@media (max-width:640px), (pointer:coarse){
  .sp-btn.sp-addr-chip-copy,
  .sp-btn.sp-addr-chip-copy:hover{
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    margin:-10px -12px -10px 2px;
    border-radius:var(--sp-r-sm);
  }
  .sp-btn.sp-addr-chip-copy::before{
    inset:8px 12px 8px 4px;
  }
}
@media (forced-colors:active){
  .sp-btn.sp-addr-chip-copy::before{
    border:1px solid ButtonText;
  }
}
/* "via Confidential USDC (system contract)": one link; the name is
 * underlined, so the line is not told apart by colour alone. */
.sp-addr-via,
.sp-addr-via:visited{
  display:flex;
  align-items:center;
  gap:var(--sp-space-10);
  align-self:flex-start;
  min-height:24px;
  padding-left:26px;
  font:var(--sp-type-caption);
  color:var(--sp-ink-3);
  text-decoration:none;
}
/* The sprite has arrow-right; a quarter turn makes it point down. */
.sp-addr-via-arrow{
  width:18px;
  height:18px;
  flex:none;
  color:var(--sp-mint-fg);
  transform:rotate(90deg);
}
.sp-addr-via-name{
  color:var(--sp-ink);
  text-decoration:underline;
  text-underline-offset:2px;
}
.sp-addr-via:hover .sp-addr-via-name{
  color:var(--sp-link);
}
@media (max-width:640px){
  .sp-addr-rows{
    gap:var(--sp-space-6);
  }
  .sp-addr-via,
  .sp-addr-via:visited{
    gap:var(--sp-space-8);
    min-height:44px;
    padding-left:var(--sp-space-20);
    font:var(--sp-type-meta);
  }
  .sp-addr-via-arrow{
    width:16px;
    height:16px;
  }
}
/* The mobile row: the same rules at <=640px and for the forced variant. */
.sp-addr-row--mobile{
  gap:var(--sp-space-8);
  background:var(--sp-inset);
  padding:var(--sp-space-6) var(--sp-space-6) var(--sp-space-6) var(--sp-space-12);
}
.sp-addr-row--mobile .sp-addr-row-link{min-height:52px}
.sp-addr-row--mobile .sp-addr-row-link .sp-avatar{width:36px;height:36px}
.sp-addr-row--mobile .sp-addr-row-value{text-decoration:underline;text-underline-offset:2px}
.sp-addr-row--mobile .sp-btn.sp-addr-row-copy,
.sp-addr-row--mobile .sp-btn.sp-addr-row-copy:hover{
  width:44px;
  min-width:44px;
  min-height:44px;
  border-radius:var(--sp-r-md);
  background:var(--sp-surface);
}
@media (max-width:640px){
  .sp-addr-row{
    gap:var(--sp-space-8);
    background:var(--sp-inset);
    padding:var(--sp-space-6) var(--sp-space-6) var(--sp-space-6) var(--sp-space-12);
  }
  .sp-addr-row-link{min-height:52px}
  .sp-addr-row-link .sp-avatar{width:36px;height:36px}
  .sp-addr-row-value{text-decoration:underline;text-underline-offset:2px}
  .sp-btn.sp-addr-row-copy,
  .sp-btn.sp-addr-row-copy:hover{
    background:var(--sp-surface);
  }
}

/* ---- Activity rows (#118) ----
 * FrontendExWeb.SpHTML.activity_row/1 inside activity_list/1: one link
 * per <li> in a real <ul>/<ol>. Desktop (A-Home): grid 44px 1fr auto,
 * gap 16, padding 14 12, radius 18, a 1px divider between rows; a 16/600
 * title above a 14px subline with 13px mono identifiers; the amount
 * (16/600 tabular) above the age on the right. At <=640px (A-Home-Mobile):
 * grid 40px 1fr auto, gap 12, padding 12, aligned to the top; the amount
 * joins the title and the right column is the age at 13px. Nothing is
 * hidden with display:none except the aria-hidden copy of the amount,
 * which the title already holds at that width. */
.sp-activity{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
}
.sp-row-item + .sp-row-item{
  border-top:1px solid var(--sp-line-soft);
}
.sp-row,
.sp-row:visited{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:var(--sp-space-16);
  align-items:center;
  padding:var(--sp-space-14) var(--sp-space-12);
  border-radius:var(--sp-r-lg);
  color:var(--sp-ink);
  text-decoration:none;
}
.sp-row:hover{
  background:var(--sp-inset);
}
.sp-row:hover .sp-row-title{
  text-decoration:underline;
  text-underline-offset:2px;
}
.sp-row-tile{
  width:44px;
  height:44px;
  border-radius:var(--sp-r-md);
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--sp-tonal);
  color:var(--sp-ink);
}
.sp-row-tile .icon{
  width:22px;
  height:22px;
}
.sp-row-tile--sent{background:var(--sp-tile-sent);color:var(--sp-on-tile-sent)}
.sp-row-tile--teal{background:var(--sp-tile-teal);color:var(--sp-on-tile-teal)}
.sp-row-tile--mint{background:var(--sp-mint-bg);color:var(--sp-mint-fg)}
.sp-row-tile--block{background:var(--sp-peach-bg);color:var(--sp-peach-fg)}
.sp-row-tile--violet{background:var(--sp-violet-bg);color:var(--sp-violet-fg)}
.sp-row-tile--amber{background:var(--sp-amber-bg);color:var(--sp-amber-fg)}
.sp-row-main{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.sp-row-title{
  font:var(--sp-type-body);
  font-weight:600;
  overflow-wrap:break-word;
}
.sp-row-title .sp-pill{
  vertical-align:middle;
}
.sp-row-sub{
  font:var(--sp-type-meta);
  color:var(--sp-ink-3);
  overflow-wrap:break-word;
}
.sp-row-mono{
  font:var(--sp-type-mono-list);
}
.sp-row-end{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
  text-align:right;
}
.sp-row-amount{
  font:var(--sp-type-body);
  font-weight:600;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.sp-row-age{
  font:var(--sp-type-meta);
  color:var(--sp-ink-3);
  white-space:nowrap;
}
/* "Hidden": a lock and the word, in the confidential ink; "No amount" in
 * the meta ink at weight 500. Both are words, not colour alone. */
.sp-row-amt--hidden{
  display:inline-flex;
  align-items:center;
  gap:var(--sp-space-6);
  color:var(--sp-mint-fg);
}
.sp-row-lock{
  width:15px;
  height:15px;
  flex:none;
}
.sp-row-amount.sp-row-amt--none,
.sp-row-amt-inline.sp-row-amt--none{
  color:var(--sp-ink-3);
  font-weight:500;
}
/* The amount inside the title is for screen readers above 640px. */
.sp-row-amt-inline{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
}
/* Address-history variant (gallery only until the address page, M2b):
 * a direction chip and a signed amount (17/700) that stays on the right. */
.sp-row-dir{
  display:inline-block;
  padding:1px var(--sp-space-8);
  margin-right:var(--sp-space-4);
  border-radius:var(--sp-r-pill);
  font:var(--sp-type-micro);
  vertical-align:middle;
  background:var(--sp-violet-bg);
  color:var(--sp-violet-fg);
}
.sp-row-dir--received{background:var(--sp-success-bg);color:var(--sp-success-fg)}
.sp-row-amount--in,
.sp-row-amount--out{
  font:var(--sp-type-h4);
  font-family:var(--sp-font-body);
  font-variant-numeric:tabular-nums;
}
.sp-row-amount--in{color:var(--sp-success-fg)}
.sp-activity-date{
  margin:var(--sp-space-16) var(--sp-space-12) var(--sp-space-4);
  font:var(--sp-type-meta-label);
  color:var(--sp-ink-3);
}
@media (max-width:640px){
  .sp-row,
  .sp-row:visited{
    grid-template-columns:40px minmax(0,1fr) auto;
    gap:var(--sp-space-12);
    align-items:start;
    padding:var(--sp-space-12);
  }
  .sp-row-tile{
    width:40px;
    height:40px;
    border-radius:13px;
  }
  .sp-row-tile .icon{
    width:20px;
    height:20px;
  }
  .sp-row-sub{
    font:var(--sp-type-caption);
  }
  .sp-row-mono{
    font:var(--sp-type-mono-list);
  }
  .sp-row-age{
    font:var(--sp-type-caption);
  }
  /* The amount joins the title as one unbroken "· 0.05 USDC": an inline
     block, so the title may break before it and the amount moves to the
     next line whole, never split (#129). Its leading space collapses
     inside the block; the margin stands in for it. A row that moves no
     amount shows none, as in A-Home-Mobile ("Enabled confidential
     payments"), so it keeps to two lines; screen readers still hear
     "No amount". */
  .sp-row-amt-inline:not(.sp-row-amt--none){
    position:static;
    display:inline-block;
    width:auto;
    height:auto;
    margin-left:var(--sp-space-4);
    overflow:visible;
    clip:auto;
    clip-path:none;
    white-space:nowrap;
  }
  .sp-row-amt-inline.sp-row-amt--hidden{
    display:inline-block;
  }
  .sp-row-amt-inline .sp-row-lock{
    vertical-align:-2px;
    margin-right:2px;
  }
  /* aria-hidden copy: the title already shows the amount here. */
  .sp-row:not(.sp-row--history) .sp-row-amount{
    display:none;
  }
  .sp-row-amount--in,
  .sp-row-amount--out{
    font:var(--sp-type-body);
    font-weight:700;
  }
}

/* A list card (/txs, /blocks, /block/:n/txs): the title and its actions
 * on one line above the rows, wrapping on phones. */
.sp-list-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:var(--sp-space-12);
  padding:0 var(--sp-space-8) var(--sp-space-8);
}
.sp-list-head .sp-card-title{
  margin:0;
}
.sp-list-note{
  margin:0 var(--sp-space-8) var(--sp-space-8);
  font:var(--sp-type-meta);
  color:var(--sp-ink-3);
}
.sp-list-card .empty-state{
  margin:0;
}
.sp-list-card .blocks-goto{
  padding:var(--sp-space-12) var(--sp-space-8) var(--sp-space-4);
  font:var(--sp-type-meta);
}
.sp-list-card .blocks-goto-input{
  min-height:36px;
  border-radius:var(--sp-r-sm);
}
@media (pointer:coarse){
  .sp-list-card .blocks-goto-input{min-height:44px}
}

/* ---- List pagination (#118) ----
 * FrontendExWeb.SpHTML.pager/1 (A-Address): one <nav aria-label="Pages">
 * under the list: the summary, "Rows per page" pills (40px, min-width 44;
 * 44px on touch; the size in use is inverse with aria-current="true"),
 * then Newest / Older as 44px pills. At <=640px Newest and Older are two
 * full-width 48px buttons. */
.sp-pager{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:var(--sp-space-12);
  padding:var(--sp-space-12) var(--sp-space-8) 0;
  margin-top:var(--sp-space-4);
  border-top:1px solid var(--sp-line-soft);
}
.sp-pager-summary{
  margin:0;
  font:var(--sp-type-meta);
  color:var(--sp-ink-3);
}
.sp-pager-sizes{
  display:flex;
  align-items:center;
  gap:var(--sp-space-8);
  margin-left:auto;
  font:var(--sp-type-meta);
  color:var(--sp-ink-3);
}
.sp-pager-sizes ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:var(--sp-space-8);
}
.sp-pager-size,
.sp-pager-size:visited{
  min-width:44px;
  height:40px;
  padding:0 var(--sp-space-10);
  box-sizing:border-box;
  border-radius:var(--sp-r-pill);
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--sp-tonal);
  color:var(--sp-ink);
  font:var(--sp-type-meta-label);
  text-decoration:none;
}
.sp-pager-size:hover{background:var(--sp-tonal-hover)}
.sp-pager-size[aria-current="true"],
.sp-pager-size[aria-current="true"]:hover{
  background:var(--sp-inverse);
  color:var(--sp-on-inverse);
}
.sp-pager-steps{
  display:flex;
  gap:var(--sp-space-8);
}
.sp-pager-sizes + .sp-pager-steps{
  padding-left:var(--sp-space-12);
  border-left:1px solid var(--sp-line-soft);
}
.sp-pager-summary + .sp-pager-steps{
  margin-left:auto;
}
.sp-pager-arrow{
  width:18px;
  height:18px;
}
@media (pointer:coarse){
  .sp-pager-size{height:44px}
}
@media (max-width:640px){
  .sp-pager{
    padding:var(--sp-space-12) 0 0;
  }
  .sp-pager-sizes{
    margin-left:0;
    width:100%;
    flex-wrap:wrap;
  }
  .sp-pager-size{height:44px}
  .sp-pager-steps,
  .sp-pager-sizes + .sp-pager-steps{
    width:100%;
    padding-left:0;
    border-left:0;
    /* Newest, Newer and Older do not fit one row at 320px: Older wraps. */
    flex-wrap:wrap;
  }
  .sp-pager-step{
    flex:1;
    min-height:48px;
  }
}

/* ---- Gallery layout (/dev/sp only; FrontendExWeb.DevGalleryHTML) ---- */
.sp-gallery{
  display:flex;
  flex-direction:column;
  gap:var(--sp-gap-detail);
  padding-bottom:var(--sp-space-32);
}
.sp-gallery-row{
  display:flex;
  flex-wrap:wrap;
  gap:var(--sp-space-12);
  align-items:center;
  margin:0 0 var(--sp-space-20);
}
.sp-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));
  gap:var(--sp-space-16);
  margin:0 0 var(--sp-space-20);
}
.sp-gallery-stack{
  display:flex;
  flex-direction:column;
  gap:var(--sp-space-12);
}
/* The gallery's theme menu sits at the start of its row. */
.sp-gallery .sp-theme-menu{
  right:auto;
  left:0;
}
.sp-gallery h3{
  margin:var(--sp-space-8) 0 var(--sp-space-10);
}
.sp-gallery .sp-chips,
.sp-gallery .sp-breadcrumbs{
  margin:0 0 var(--sp-space-16);
}

/* ---- Forced colours (Windows High Contrast; #130) ----
 * Forced colours drop every fill and shadow, so a pill, a tab or an icon
 * tile would be text or an icon floating on the page. Each keeps a 1px
 * CanvasText border instead (the status pills, the current segmented tab
 * and the current tx step have their own rules above and in their
 * partials; the page tiles and pills are at the end of
 * style2-overrides.css). :root lifts these over the page partials inlined
 * after app.css. Only borders and an underline change, never the layout. */
@media (forced-colors:active){
  :root .sp-tile,
  :root .sp-row-tile,
  :root .sp-disclosure-tile,
  :root .sp-wallet-tile,
  :root .sp-nav-tile,
  :root .sp-logo-tile,
  :root .sp-chip,
  :root .sp-netchip,
  :root .sp-tabs{
    border:1px solid CanvasText;
  }
  :root .sp-tab:not([aria-current="page"]){
    border-color:CanvasText;
  }
  /* The active nav item is an inverse pill; without its fill it is
     marked by a thick underline as well as aria-current. */
  :root .sp-nav-link.is-active{
    text-decoration:underline;
    text-decoration-thickness:2px;
    text-underline-offset:4px;
  }
}

/* ---- vendor/softpop/css/softpop-shell.css ---- */
/* Soft Pop app shell (#119, #110): the site header, main nav, menu
 * sheet, skip link and footer of the classic layout
 * (fast_layouts/site_header.html.eex, site_footer.html.eex; the active
 * nav item comes from FrontendExWeb.Nav). Bundled after
 * softpop-components.css. Same rules as that file: tokens only (no colour
 * or font-size literal, scripts/check-colour-literals.mjs), no opacity on
 * controls, and every target at least 44 x 44 px at <=640px.
 *
 * Header and footer use the page .container, so the logo lines up with
 * the content at every width.
 *
 *   >=1024px  76px header: logo, five nav pills, header search, network
 *             chip (#120), theme menu. "Developers" opens a small
 *             panel of links. At 1024-1279px the search field gives way
 *             to the search icon link so the chip fits.
 *   <1024px   68px header: logo, search, theme menu and the menu
 *             button; the nav becomes a sheet that overlays the page
 *             (assets/js/menu.mjs). Without JavaScript (no
 *             data-theme-next on <html>) the menu button is hidden and
 *             the nav stays a row of pills under the logo. The network
 *             chip gives way to the network pill at the foot of the
 *             sheet (it stays in the header without JavaScript).
 *   <=640px   the header search gives way to a search icon link (home
 *             has its own hero search and shows neither). */
.sp-header{
  position:relative;
  z-index:30;
  background:var(--sp-ground);
  border-bottom:1px solid var(--sp-line);
  font-family:var(--sp-font-body);
}
.sp-header-inner{
  display:flex;
  align-items:center;
  gap:var(--sp-space-8);
  min-height:var(--sp-header-h);
}
.sp-logo,
.sp-logo:hover{
  display:flex;
  align-items:center;
  gap:var(--sp-space-10);
  flex:none;
  min-height:44px;
  color:var(--sp-ink);
  text-decoration:none;
}
.sp-logo-tile{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:36px;
  height:36px;
  border-radius:var(--sp-r-sm);
  background:var(--sp-primary);
  color:var(--sp-on-primary);
}
.sp-logo-glyph{
  display:block;
  width:20px;
  height:20px;
}
/* Decorative only (--sp-accent): never the only sign of anything. */
.sp-logo-dot{
  position:absolute;
  top:-3px;
  right:-3px;
  box-sizing:border-box;
  width:11px;
  height:11px;
  border:2px solid var(--sp-ground);
  border-radius:var(--sp-r-pill);
  background:var(--sp-accent);
}
.sp-logo-word{
  font-family:var(--sp-font-display);
  font-size:var(--sp-fs-h4);
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1;
  white-space:nowrap;
}

/* Round 44px header buttons: theme menu button and the search link. */
.sp-icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  box-sizing:border-box;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--sp-line-strong);
  border-radius:var(--sp-r-pill);
  background:var(--sp-surface);
  color:var(--sp-ink);
  cursor:pointer;
}
.sp-icon-btn:hover{
  background:var(--sp-tonal);
  color:var(--sp-ink);
}
.sp-icon-btn .icon{
  width:20px;
  height:20px;
}
/* Theme menu (fast_layouts/theme_menu.html.eex, assets/js/theme.mjs).
   The button shows the sun or moon of the scheme in effect
   (data-theme-scheme on <html>, set by the head script and theme.mjs);
   its name says the choice ("Theme: System"). Without JavaScript the
   menu cannot work, so it is hidden and the page follows the OS. */
.sp-theme{
  position:relative;
  display:flex;
  flex:none;
}
.theme-toggle .theme-icon{
  display:none;
}
[data-theme-scheme="light"] .theme-toggle .theme-icon-sun,
[data-theme-scheme="dark"] .theme-toggle .theme-icon-moon{
  display:block;
}
.theme-toggle[aria-expanded="true"]{
  border-color:var(--sp-field-border);
  background:var(--sp-tonal);
}
:root:not([data-theme-next]) .sp-theme{
  display:none;
}
/* The menu: the Developers panel's look, under the button, its right
   edge on the button's. Items are 44px rows: icon, label and a check on
   the current choice (aria-checked, so never the check alone). */
.sp-theme-menu{
  position:absolute;
  top:calc(100% + var(--sp-space-8));
  right:0;
  z-index:40;
  display:flex;
  flex-direction:column;
  gap:2px;
  box-sizing:border-box;
  min-width:200px;
  padding:var(--sp-space-8);
  border:var(--sp-card-border);
  border-radius:var(--sp-r-xl);
  background:var(--sp-surface);
  box-shadow:var(--sp-sh-menu);
}
.sp-theme-menu[hidden]{
  display:none;
}
.sp-theme-item{
  display:flex;
  align-items:center;
  gap:var(--sp-space-10);
  box-sizing:border-box;
  width:100%;
  min-height:44px;
  margin:0;
  padding:0 var(--sp-space-12) 0 var(--sp-space-14);
  border:0;
  border-radius:var(--sp-r-md);
  background:transparent;
  color:var(--sp-ink);
  font-family:var(--sp-font-body);
  font-size:var(--sp-fs-body-sm);
  font-weight:500;
  text-align:left;
  cursor:pointer;
}
.sp-theme-item:hover,
.sp-theme-item:focus-visible{
  background:var(--sp-tonal);
  color:var(--sp-ink);
}
.sp-theme-item .icon{
  flex:none;
  width:18px;
  height:18px;
}
.sp-theme-item-label{
  flex:1 1 auto;
}
.sp-theme-item .sp-theme-check{
  visibility:hidden;
  color:var(--sp-primary);
}
.sp-theme-item[aria-checked="true"]{
  font-weight:600;
}
.sp-theme-item[aria-checked="true"] .sp-theme-check{
  visibility:visible;
}
.sp-search-link{
  display:none;
}

/* Menu button: ink circle; the icon follows aria-expanded. */
.sp-menu-btn,
.sp-nav-sheet-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:var(--sp-r-pill);
  background:var(--sp-inverse);
  color:var(--sp-on-inverse);
  cursor:pointer;
}
.sp-menu-btn:hover,
.sp-nav-sheet-close:hover{
  background:var(--sp-inverse-hover);
}
.sp-menu-btn .icon,
.sp-nav-sheet-close .icon{
  width:20px;
  height:20px;
}
.sp-menu-btn .sp-menu-icon-close,
.sp-menu-btn[aria-expanded="true"] .sp-menu-icon-open{
  display:none;
}
.sp-menu-btn[aria-expanded="true"] .sp-menu-icon-close{
  display:block;
}

/* Main nav: pills. The active item is ink with white text and
   aria-current="page" (the summary of "Developers" has it while the group
   is closed and one of its links is the current page; menu.mjs moves it
   to that link, marked data-nav-current, while the group is open). */
.sp-nav{
  flex:none;
}
.sp-nav-list,
.sp-nav-sub{
  margin:0;
  padding:0;
  list-style:none;
}
.sp-nav-list{
  display:flex;
  align-items:center;
  gap:2px;
}
.sp-nav-link{
  display:flex;
  align-items:center;
  gap:var(--sp-space-6);
  min-height:44px;
  box-sizing:border-box;
  padding:0 var(--sp-space-16);
  border-radius:var(--sp-r-pill);
  color:var(--sp-ink);
  font-size:var(--sp-fs-body);
  font-weight:500;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}
.sp-nav-link:hover{
  background:var(--sp-tonal);
  color:var(--sp-ink);
  text-decoration:none;
}
.sp-nav-link.is-active,
.sp-nav-link.is-active:hover{
  background:var(--sp-inverse);
  color:var(--sp-on-inverse);
  font-weight:600;
}
.sp-nav-tile,
.sp-nav-sheet-bar,
.sp-nav-status{
  display:none;
}
/* Developers: a <details> disclosure, so it works without JavaScript;
   menu.mjs closes it on Esc and on a press outside. */
.sp-nav-dev{
  position:relative;
}
.sp-nav-dev > summary{
  list-style:none;
}
.sp-nav-dev > summary::-webkit-details-marker{
  display:none;
}
.sp-nav-caret{
  width:16px;
  height:16px;
  transition:transform .15s ease;
}
.sp-nav-dev[open] .sp-nav-caret{
  transform:rotate(180deg);
}
.sp-nav-sub{
  position:absolute;
  top:calc(100% + var(--sp-space-8));
  left:0;
  z-index:40;
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:200px;
  padding:var(--sp-space-8);
  border:var(--sp-card-border);
  border-radius:var(--sp-r-xl);
  background:var(--sp-surface);
  box-shadow:var(--sp-sh-menu);
}
.sp-nav-sublink{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 var(--sp-space-14);
  border-radius:var(--sp-r-md);
  color:var(--sp-ink);
  font-size:var(--sp-fs-body-sm);
  font-weight:500;
  text-decoration:none;
}
.sp-nav-sublink:hover{
  background:var(--sp-tonal);
  color:var(--sp-ink);
  text-decoration:none;
}
.sp-nav-sublink[data-nav-current],
.sp-nav-sublink[aria-current="page"]{
  background:var(--sp-inverse);
  color:var(--sp-on-inverse);
  font-weight:600;
}

/* Header search (inner pages): one 44px pill. */
.sp-header-search{
  display:flex;
  align-items:center;
  gap:var(--sp-space-6);
  flex:1 1 auto;
  order:0;
  min-width:160px;
  max-width:320px;
  height:44px;
  box-sizing:border-box;
  margin-left:auto;
  padding:0 var(--sp-space-4) 0 var(--sp-space-16);
  border:1.5px solid var(--sp-field-border);
  border-radius:var(--sp-r-pill);
  background:var(--sp-surface);
}
.sp-header-search:focus-within{
  border-color:var(--sp-field-border);
  background:var(--sp-surface);
  box-shadow:none;
}
.sp-header-search:has(.global-search-input:focus-visible){
  outline:2px solid var(--sp-focus);
  outline-offset:2px;
}
.sp-header-search .global-search-input{
  flex:1 1 auto;
  min-width:0;
  height:100%;
  padding:0;
  border:0;
  outline:none;
  background:transparent;
  color:var(--sp-ink);
  font-family:var(--sp-font-body);
  font-size:var(--sp-fs-input);
}
.sp-header-search .global-search-input::placeholder{
  color:var(--sp-ink-3);
  opacity:1;
}
.sp-header-search .global-search-submit{
  width:36px;
  height:36px;
  background:transparent;
  color:var(--sp-ink-3);
}
.sp-header-search .global-search-submit:hover{
  background:var(--sp-tonal);
  color:var(--sp-ink);
}
.sp-header-search .global-search-submit .icon{
  width:18px;
  height:18px;
}
/* No Ctrl+K key caps in the header pill (as in A-Tx and A-Block): beside
   the nav and the network chip they left the field too narrow for its
   placeholder (#129). The shortcut still works (aria-keyshortcuts), and
   home's hero search keeps the hint. */
.sp-header-search .global-search-shortcut{
  display:none;
}
/* Touch screens: the pill grows so the field itself is a 44px target. */
@media (pointer:coarse){
  .sp-header-search{
    height:48px;
  }
}
/* Home has no header search: the actions keep to the right. */
.sp-nav + .sp-theme,
.sp-nav + .sp-netchip{
  margin-left:auto;
}

@media (min-width:1024px){
  .sp-header-inner{
    gap:var(--sp-space-20);
  }
  .sp-logo,
  .sp-logo:hover{
    gap:var(--sp-space-12);
  }
  .sp-logo-tile{
    width:40px;
    height:40px;
    border-radius:var(--sp-r-md);
  }
  .sp-logo-glyph{
    width:22px;
    height:22px;
  }
  .sp-logo-dot{
    width:12px;
    height:12px;
  }
  .sp-logo-word{
    font-size:var(--sp-fs-h3);
  }
  .sp-menu-btn{
    display:none;
  }
}

/* 1024-1279px: the full nav fits beside a shorter search field. */
@media (min-width:1024px) and (max-width:1279.98px){
  .sp-header-inner{
    gap:var(--sp-space-12);
  }
  .sp-nav-link{
    padding:0 var(--sp-space-12);
  }
  /* With the network chip (#120) the search field no longer fits beside
     the nav: inner pages show the search icon link instead, as phones do,
     and Ctrl+K focuses that link (assets/js/search.mjs). */
  .sp-header .sp-header-search{
    display:none;
  }
  .sp-search-link{
    display:inline-flex;
    margin-left:auto;
  }
}

/* Below 1024px: the nav is a sheet under the header, over the page (it
   never pushes the content down). */
@media (max-width:1023.98px){
  .sp-header-search{
    order:1;
  }
  /* The menu sheet's network pill stands in for the chip. */
  :root[data-theme-next] .sp-netchip{
    display:none;
  }
  :root[data-theme-next] .sp-nav + .sp-netchip + .sp-theme{
    margin-left:auto;
  }
  .sp-netchip{
    order:1;
  }
  .sp-search-link{
    order:1;
  }
  .sp-theme{
    order:2;
  }
  .sp-menu-btn{
    order:3;
  }
  :root[data-theme-next] .sp-nav{
    display:none;
  }
  :root[data-theme-next] .sp-header.is-menu-open .sp-nav{
    display:flex;
    flex-direction:column;
    position:absolute;
    top:calc(100% + var(--sp-space-8));
    right:var(--sp-gutter);
    left:var(--sp-gutter);
    z-index:40;
    max-width:480px;
    max-height:calc(100dvh - var(--sp-header-h) - var(--sp-space-16));
    margin-left:auto;
    overflow:auto;
    overscroll-behavior:contain;
    border:var(--sp-card-border);
    border-radius:var(--sp-r-3xl);
    background:var(--sp-surface);
    box-shadow:var(--sp-sh-menu);
  }
  :root[data-theme-next] .sp-nav-sheet-bar{
    display:flex;
    align-items:center;
    height:64px;
    flex:none;
    padding:0 var(--sp-space-12) 0 var(--sp-space-20);
    border-bottom:1px solid var(--sp-line-soft);
  }
  .sp-nav-sheet-title{
    margin:0;
    font-family:var(--sp-font-display);
    font-size:var(--sp-fs-h4);
    font-weight:800;
  }
  .sp-nav-sheet-close{
    margin-left:auto;
  }
  :root[data-theme-next] .sp-nav-list{
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    padding:var(--sp-space-8);
  }
  :root[data-theme-next] .sp-nav-link{
    gap:var(--sp-space-14);
    min-height:56px;
    padding:0 var(--sp-space-12);
    border-radius:var(--sp-r-lg);
    font-weight:600;
  }
  /* Current page in the sheet: a sunken row with an outline, not colour
     alone. */
  :root[data-theme-next] .sp-nav-link.is-active,
  :root[data-theme-next] .sp-nav-link.is-active:hover{
    background:var(--sp-sunken);
    color:var(--sp-ink);
    box-shadow:inset 0 0 0 1.5px var(--sp-field-border);
  }
  :root[data-theme-next] .sp-nav-tile{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:none;
    width:36px;
    height:36px;
    border-radius:var(--sp-r-sm);
    background:var(--sp-tonal);
    color:var(--sp-ink);
  }
  :root[data-theme-next] .sp-nav-item--txs .sp-nav-tile{
    background:var(--sp-lilac-bg);
    color:var(--sp-lilac-fg);
  }
  :root[data-theme-next] .sp-nav-item--blocks .sp-nav-tile{
    background:var(--sp-coral-bg);
    color:var(--sp-coral-fg);
  }
  :root[data-theme-next] .sp-nav-item--bridge .sp-nav-tile{
    background:var(--sp-violet-bg);
    color:var(--sp-violet-fg);
  }
  :root[data-theme-next] .sp-nav-item--docs .sp-nav-tile{
    background:var(--sp-mint-bg);
    color:var(--sp-mint-fg);
  }
  .sp-nav-tile .icon{
    width:18px;
    height:18px;
  }
  :root[data-theme-next] .sp-nav-caret{
    margin-left:auto;
  }
  :root[data-theme-next] .sp-nav-sub{
    position:static;
    min-width:0;
    padding:var(--sp-space-4) 0 var(--sp-space-4) 62px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  :root[data-theme-next] .sp-nav-status{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:var(--sp-space-8);
    flex:none;
    min-height:48px;
    margin:0 var(--sp-space-16) var(--sp-space-16);
    border-radius:var(--sp-r-pill);
    background:var(--sp-sunken);
    color:var(--sp-ink);
    font-size:var(--sp-fs-body-sm);
    font-weight:600;
    text-decoration:none;
  }
  :root[data-theme-next] .sp-nav-status--ok{
    background:var(--sp-success-bg);
    color:var(--sp-success-fg);
  }
  :root[data-theme-next] .sp-nav-status--stalled{
    background:var(--sp-amber-bg);
    color:var(--sp-amber-fg);
  }
  :root[data-theme-next] .sp-nav-status--halted{
    background:var(--sp-danger-bg);
    color:var(--sp-danger-fg);
  }
  /* Without JavaScript: no menu button; the nav pills wrap onto a row of
     their own under the logo. */
  :root:not([data-theme-next]) .sp-menu-btn{
    display:none;
  }
  :root:not([data-theme-next]) .sp-header-inner{
    flex-wrap:wrap;
    padding-top:var(--sp-space-12);
    padding-bottom:var(--sp-space-12);
  }
  /* The pills wrap rather than scroll: a scroll container would clip the
     Developers panel, which opens in the flow here, under its summary. */
  :root:not([data-theme-next]) .sp-nav{
    order:10;
    flex-basis:100%;
  }
  :root:not([data-theme-next]) .sp-nav-list{
    flex-wrap:wrap;
    align-items:flex-start;
  }
  :root:not([data-theme-next]) .sp-nav-sub{
    position:static;
    margin-top:var(--sp-space-8);
  }
}

/* At 320-359px the tile, search, theme and menu buttons fill the row, so
   the wordmark is visually hidden; it stays the logo link's name. The
   link keeps a 44px target around the 36px tile. */
@media (max-width:359.98px){
  .sp-logo,
  .sp-logo:hover{
    min-width:44px;
    justify-content:center;
  }
  .sp-logo-word{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    clip-path:inset(50%);
    white-space:nowrap;
  }
}

@media (max-width:640px){
  .sp-header .sp-header-search{
    display:none;
  }
  .sp-search-link{
    display:inline-flex;
    margin-left:auto;
  }
}

/* Skip link (every page): off-screen until focused, then an ink pill. */
.skip-link{
  position:absolute;
  top:var(--sp-space-12);
  left:var(--sp-space-16);
  z-index:100;
  padding:var(--sp-space-12) var(--sp-space-16);
  border-radius:var(--sp-r-sm);
  background:var(--sp-inverse);
  color:var(--sp-on-inverse);
  font-family:var(--sp-font-body);
  font-size:var(--sp-fs-meta);
  font-weight:600;
  text-decoration:none;
  transform:translateY(-200%);
}
.skip-link:focus{
  transform:none;
  color:var(--sp-on-inverse);
}

/* Footer: ink in light, near-black with a top border in dark. */
.sp-footer{
  flex-shrink:0;
  margin-top:var(--sp-space-48);
  padding:var(--sp-space-40) 0 calc(var(--sp-space-24) + env(safe-area-inset-bottom, 0px));
  border-top:1px solid var(--sp-footer-line);
  background:var(--sp-footer);
  color:var(--sp-on-footer);
  font-family:var(--sp-font-body);
  font-size:var(--sp-fs-meta);
}
.sp-footer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--sp-space-32);
}
.sp-footer-logo,
.sp-footer-logo:hover{
  display:inline-flex;
  align-items:center;
  gap:var(--sp-space-10);
  min-height:44px;
  color:var(--sp-on-footer);
  text-decoration:none;
}
.sp-logo-tile--sm{
  width:32px;
  height:32px;
  border-radius:var(--sp-r-xs);
}
.sp-logo-tile--sm .sp-logo-glyph{
  width:18px;
  height:18px;
}
.sp-footer-word{
  font-family:var(--sp-font-display);
  font-size:var(--sp-fs-lead);
  font-weight:800;
  letter-spacing:-0.02em;
}
.sp-footer-tagline{
  max-width:40ch;
  margin:var(--sp-space-12) 0 0;
  color:var(--sp-on-footer-2);
  line-height:1.5;
}
.sp-footer-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--sp-space-24) var(--sp-space-16);
}
.sp-footer-heading{
  margin:0 0 var(--sp-space-8);
  color:var(--sp-on-footer-2);
  font-family:var(--sp-font-body);
  font-size:var(--sp-fs-caption);
  font-weight:600;
  letter-spacing:normal;
}
.sp-footer-links{
  margin:0;
  padding:0;
  list-style:none;
}
.sp-footer a{
  color:var(--sp-on-footer);
  text-decoration:none;
}
.sp-footer a:hover{
  color:var(--sp-on-footer);
  text-decoration:underline;
  text-underline-offset:2px;
}
.sp-footer-links a{
  display:flex;
  align-items:center;
  min-height:44px;
}
.sp-footer :focus-visible{
  outline-color:var(--sp-on-footer);
}
.sp-footer-bottom{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:var(--sp-space-8) var(--sp-space-24);
  margin-top:var(--sp-space-32);
}
.sp-footer-bottom::before{
  content:"";
  flex-basis:100%;
  height:1px;
  margin-bottom:var(--sp-space-16);
  background:color-mix(in srgb, var(--sp-on-footer) 18%, var(--sp-footer));
}
.sp-footer-version,
.sp-footer-disclaimer{
  max-width:72ch;
  margin:0;
  color:var(--sp-on-footer-2);
  line-height:1.5;
}
.sp-footer-disclaimer a{
  display:inline-block;
  min-height:24px;
  text-decoration:underline;
  text-underline-offset:2px;
}
/* "Terms" ends the line rather than sitting inside a sentence, so on
   phones and touch screens it is a full 44 x 44 px target (#129). */
@media (max-width:640px), (pointer:coarse){
  .sp-footer-disclaimer a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    min-height:44px;
  }
}

@media (min-width:641px){
  .sp-footer-links a{
    min-height:32px;
  }
}
@media (min-width:1024px){
  .sp-footer{
    padding-top:var(--sp-space-48);
    padding-bottom:calc(var(--sp-space-28) + env(safe-area-inset-bottom, 0px));
  }
  .sp-footer-grid{
    grid-template-columns:1.6fr 3fr;
  }
  .sp-footer-columns{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:var(--sp-space-32);
  }
}

/* ---- site/styles/brand-tokens.css ---- */
/* POA logo tokens: the hag stone (approved 2026-12-02). Only the logo is green; the UI accent
 * stays violet (--sp-primary), so never alias these to --sp-primary or --sp-accent.
 * The only other file allowed colour literals (scripts/check-colour-literals.mjs).
 *
 *   --logo-leaf       stone on light grounds, and the fixed tone of every favicon
 *   --logo-leaf-dark  stone on dark grounds (dark theme, the footer, dark cards)
 *   --logo-ink        the "POA" wordmark
 *   --logo-stone      the stone for the current theme: leaf in light, leaf-dark in dark
 *
 * Dark follows softpop-tokens.css: the OS preference unless Light is stored, or a stored Dark. */
:root {
  --logo-leaf: #429118;
  --logo-leaf-dark: #afdc86;
  --logo-ink: #17151f;
  --logo-stone: var(--logo-leaf);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --logo-ink: #f4f1fa;
    --logo-stone: var(--logo-leaf-dark);
  }
}
:root[data-theme="dark"] {
  --logo-ink: #f4f1fa;
  --logo-stone: var(--logo-leaf-dark);
}

/* The wordmark (one spec for poa.net, the explorer and docs, 2026-12-02): "POA" with the hag
 * stone as the O, sized by its cap height in CSS px of ink:
 *
 *                 "POA" cap height
 *   >=1024px            17px
 *   <1024px             15px
 *
 * Header and footer use the same wordmark; the P's ink sits on the page gutter (16px on phones).
 * Bricolage's cap height is 0.66em, so the font size is the cap / 0.66, and the stone's size,
 * baseline and spacing are in em of that size (site/styles/base.css, site/brand/README.md).
 * Every wordmark sets --logo-cap (the Open Graph card overrides it in site/og/og.css).
 *
 * The wordmark is pinned to optical size 36 (Bricolage 800), the master the docs lockup is
 * outlined from, so "POA" has the same stems everywhere. Left to font-optical-sizing: auto it
 * would follow the font size (23-30px here) and draw thinner stems than the docs outline;
 * font-optical-sizing: none would fall back to the font's default, 96. */
:root {
  --logo-cap: 15px;
}
@media (min-width: 1024px) {
  :root {
    --logo-cap: 17px;
  }
}
.sp-logo,
.sp-footer-logo,
.og-brand {
  --logo-fs-word: calc(var(--logo-cap) / 0.66);
}
.sp-logo-word,
.sp-footer-word,
.og-word {
  font-variation-settings: "opsz" 36;
}

/* ---- site/styles/base.css ---- */
/* poa-web base styles, bundled after the vendored Soft Pop tokens, components and shell
 * (vendor/softpop/). They stand in for the parts of the explorer's legacy stylesheets
 * (style2.css, style2-overrides.css) that the Soft Pop shell relies on: the reset, the page
 * container, the sr-only utility and the body colours, with the same geometry, so the header
 * and footer sit at exactly the same place on / and on /77 (audit F34).
 *
 * Tokens only: no colour, font-size or font-family literal (scripts/check-colour-literals.mjs).
 */

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

* {
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--sp-ground);
  color: var(--sp-ink);
  font: var(--sp-type-body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--sp-link);
}

a:hover {
  color: var(--sp-link-hover);
}

img,
svg {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

/* The Soft Pop container: 1280px wide with 16px gutters, 32px from 1024px. */
.container {
  width: 100%;
  max-width: var(--sp-container);
  margin: 0 auto;
  padding-left: var(--sp-gutter);
  padding-right: var(--sp-gutter);
}

/* The skip-link target is not a control: no ring around the whole page. */
#main:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Icon sprite symbols (vendor/softpop/icons). */
.icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* The POA logo: one wordmark, P, the hag stone as the O, then A, in place
 * of the explorer's violet tile. The cap is the lockup spec in site/styles/brand-tokens.css
 * (17px from 1024px, 15px below). The letters are hidden from assistive tech and an sr-only
 * "POA" names the link. All stone geometry is in em of the wordmark (cap = 0.66em) so it scales
 * with the cap:
 *   - the viewBox is the stone's ink box (x 2.87-94.88, y 3.48-93.06 of its 100-unit frame);
 *   - ink height is the cap + 3%, lifted so the narrow peak overshoots the cap by 2% and the
 *     broad, flat bottom the baseline by 1% (Bricolage's O overshoots 2.1% at both);
 *   - the margins (0.0122em left, -0.0076em right) match the white area of Bricolage's P-O and
 *     O-A pairs at opsz 36 across the cap height, so P-stone and stone-A space like P-O and O-A;
 *   - the bore is the small-size master (site/brand/README.md): 1.3x wider and 1.75x taller than
 *     the avatar stone's, so it stays open at the 15 and 17px caps on 1x screens;
 *   - the negative margin on the word puts the P's ink (0.061em right of its origin) on the
 *     gutter.
 * The stone keeps its designed tilt, is green, never violet. */
.sp-logo-word,
.sp-footer-word {
  font-size: var(--logo-fs-word);
  line-height: 1;
  white-space: nowrap;
  margin-left: -0.061em;
}

.sp-logo-mark {
  display: inline-block;
  width: 0.6982em;
  height: 0.6798em;
  margin: 0 -0.0076em 0 0.0122em;
  vertical-align: -0.0066em;
  overflow: visible;
  color: var(--logo-stone);
}

/* Softpop hides the word below 360px (it stood beside the tile); here the word is the logo, and
 * at 15px cap it is narrower than the old stone and word, so it stays. */
@media (max-width: 359.98px) {
  .sp-logo-word {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
  }
}

.sp-logo-word {
  color: var(--logo-ink);
}

/* The wordmark sits on the nav text baseline (2026-12-02). Softpop centres the logo's box in its
 * flex row, which put the bigger Bricolage letters' baseline 3px below the nav's. Here the word's
 * box copies the nav label's: a block of nav text (Inter, --sp-fs-body, line-height 1.2) centred
 * in the 44px link, so its strut has the nav label's baseline to the layout unit, and the
 * wordmark sits on that strut. The wordmark must not grow the line box (that would push the
 * baseline down), so its text has line-height 0 and the stone's box gives up the height above
 * the strut with a negative top margin; neither moves any ink. Phones show the menu button, not
 * the nav row; the baseline is kept so the wordmark sits where it does on the explorer and docs,
 * beside their descriptor. */
.sp-logo .sp-logo-word {
  display: block;
  margin-left: 0;
  font-family: var(--sp-font-body);
  font-size: var(--sp-fs-body);
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.2;
}

.sp-logo .sp-wordmark {
  margin-left: -0.061em;
  font-family: var(--sp-font-display);
  font-size: var(--logo-fs-word);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0;
}

.sp-logo .sp-logo-mark {
  margin-top: -0.4em;
}

/* The footer is dark in both themes, so its stone is always the dark-ground leaf. */
.sp-footer-logo .sp-logo-mark {
  color: var(--logo-leaf-dark);
}

/* Header nav tiles for the landing's five items (shown in the menu sheet below 1024px). The
 * explorer colours its own items (--txs, --blocks, --bridge, --docs) in softpop-shell.css. */
@media (max-width: 1023.98px) {
  :root[data-theme-next] .sp-nav-item--noevm .sp-nav-tile {
    background: var(--sp-mint-bg);
    color: var(--sp-mint-fg);
  }
  :root[data-theme-next] .sp-nav-item--privacy .sp-nav-tile {
    background: var(--sp-lilac-bg);
    color: var(--sp-lilac-fg);
  }
  :root[data-theme-next] .sp-nav-item--build .sp-nav-tile {
    background: var(--sp-coral-bg);
    color: var(--sp-coral-fg);
  }
  :root[data-theme-next] .sp-nav-item--engineering .sp-nav-tile {
    background: var(--sp-violet-bg);
    color: var(--sp-violet-fg);
  }
  :root[data-theme-next] .sp-nav-item--explorer .sp-nav-tile {
    background: var(--sp-blue-bg);
    color: var(--sp-blue-fg);
  }
}

/* Page padding under the header (home and 404). */
.main {
  padding: var(--sp-space-32) 0 var(--sp-space-48);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---- site/styles/landing.css ---- */
/* Landing-only components (audit #14 / F17) and the B1 "Proof first" home layout.
 *
 * The explorer kit has no marketing display size, kicker, feature card, code block, stepper or
 * CTA band yet. Those live here, built only from Soft Pop tokens, each marked
 * `kit-gap: upstream to igor53627/2d-explorer#256` until the shared kit takes them over. The
 * rest of this file lays out the home sections around kit components (.sp-btn, .sp-pill,
 * .sp-wallet-card, .sp-disclosure, .sp-search).
 *
 * Tokens only: no colour, font-size or font-family literal (scripts/check-colour-literals.mjs).
 */

/* Keep anchored sections and focused controls clear of the header. */
html {
  scroll-padding-top: calc(var(--sp-header-h) + var(--sp-space-16));
}

/* ---- Landing components (kit gaps) ---- */

/* kit-gap: upstream to igor53627/2d-explorer#256 */
/* Marketing display headline: the hero h1. */
.lp-display {
  max-width: 15ch;
  font: var(--sp-type-display);
  letter-spacing: var(--sp-ls-display);
  color: var(--sp-ink);
  text-wrap: balance;
}

/* kit-gap: upstream to igor53627/2d-explorer#256 */
/* Kicker: the short label above a heading or a card. */
.lp-kicker,
.lp-receipt-kicker {
  font: var(--sp-type-meta-label);
  color: var(--sp-ink-3);
}

/* kit-gap: upstream to igor53627/2d-explorer#256 */
/* Feature card on a tint: icon tile, title, copy and a link at the bottom. */
.lp-proof {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-14);
  padding: var(--sp-space-28);
  border-radius: var(--sp-r-3xl);
  color: var(--sp-ink);
}
.lp-proof h3 {
  font: var(--sp-type-h4);
  letter-spacing: var(--sp-ls-h4);
}
.lp-proof p {
  font: var(--sp-type-body-sm);
}
.lp-proof .lp-link-arrow {
  margin-top: auto;
}
.lp-proof--lilac {
  background: var(--sp-lilac-bg);
}
.lp-proof--blue {
  background: var(--sp-blue-bg);
}
.lp-proof--mint {
  background: var(--sp-mint-bg);
}
.lp-proof--lilac .lp-tile {
  color: var(--sp-lilac-fg);
}
.lp-proof--blue .lp-tile {
  color: var(--sp-blue-fg);
}
.lp-proof--mint .lp-tile {
  color: var(--sp-mint-fg);
}

/* kit-gap: upstream to igor53627/2d-explorer#256 */
/* Code block with CSS-only tabs: three radios inside a role="radiogroup" named by an sr-only
 * label, before the tab labels, so the checked radio styles its tab with a sibling selector.
 * The panels sit outside the group and are shown with :has() (no script); a browser without
 * :has() shows every panel and hides the tab strip. The radios stay in the tab order (arrow
 * keys move between them) and their focus ring is drawn on the label. Colours follow the
 * theme: --sp-inset ground, lilac keywords, mint strings. */
.lp-code {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-10);
  min-width: 0;
  margin-top: var(--sp-space-16);
}
.lp-code-radio {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.lp-code-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-6);
  align-self: flex-start;
  max-width: 100%;
  padding: var(--sp-space-4);
  border: 1px solid var(--sp-sunken-border);
  border-radius: var(--sp-r-pill);
  background: var(--sp-sunken);
}
.lp-code-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--sp-space-16);
  border: 1.5px solid transparent;
  border-radius: var(--sp-r-pill);
  font: var(--sp-type-meta);
  font-weight: 600;
  color: var(--sp-ink-2);
  cursor: pointer;
}
.lp-code-tab:hover {
  background: var(--sp-tonal-hover);
  color: var(--sp-ink);
}
.lp-code-radio--viem:checked ~ .lp-code-tab--viem,
.lp-code-radio--rest:checked ~ .lp-code-tab--rest,
.lp-code-radio--rpc:checked ~ .lp-code-tab--rpc {
  background: var(--sp-tab-active-bg);
  color: var(--sp-tab-active-fg);
  border-color: var(--sp-tab-active-border);
  box-shadow: var(--sp-sh-pill);
}
.lp-code-radio--viem:focus-visible ~ .lp-code-tab--viem,
.lp-code-radio--rest:focus-visible ~ .lp-code-tab--rest,
.lp-code-radio--rpc:focus-visible ~ .lp-code-tab--rpc {
  outline: 2px solid var(--sp-focus);
  outline-offset: 2px;
}
.lp-code-panel {
  min-width: 0;
}
@supports selector(:has(*)) {
  .lp-code-panel {
    display: none;
  }
  .lp-code:has(.lp-code-radio--viem:checked) .lp-code-panel--viem,
  .lp-code:has(.lp-code-radio--rest:checked) .lp-code-panel--rest,
  .lp-code:has(.lp-code-radio--rpc:checked) .lp-code-panel--rpc {
    display: block;
  }
}
@supports not selector(:has(*)) {
  .lp-code-tabs {
    display: none;
  }
}
.lp-code pre {
  margin: 0;
  padding: var(--sp-space-18) var(--sp-space-20);
  overflow-x: auto;
  border-radius: var(--sp-r-2xl);
  background: var(--sp-inset);
  color: var(--sp-ink);
  font: var(--sp-type-mono-list);
  line-height: 1.7;
  tab-size: 2;
}
.lp-code-k {
  color: var(--sp-lilac-fg);
}
.lp-code-s {
  color: var(--sp-mint-fg);
}
.lp-code-c {
  color: var(--sp-ink-3);
}
@media (forced-colors: active) {
  .lp-code-radio--viem:checked ~ .lp-code-tab--viem,
  .lp-code-radio--rest:checked ~ .lp-code-tab--rest,
  .lp-code-radio--rpc:checked ~ .lp-code-tab--rpc {
    border-color: Highlight;
    text-decoration: underline;
  }
}

/* kit-gap: upstream to igor53627/2d-explorer#256 */
/* Stepper: numbered steps in an ordered list; the number is a CSS counter, so screen readers
 * hear the list position once. */
.lp-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-space-20);
  list-style: none;
  padding: 0;
  counter-reset: lp-step;
}
.lp-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: var(--sp-space-12);
  padding: var(--sp-space-28);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-card-sm);
  counter-increment: lp-step;
}
.lp-step::before {
  content: counter(lp-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--sp-r-pill);
  background: var(--sp-inverse);
  color: var(--sp-on-inverse);
  font: var(--sp-type-body);
  font-weight: 700;
  font-family: var(--sp-font-display);
}
.lp-step h3 {
  align-self: center;
  font: var(--sp-type-h4);
  letter-spacing: var(--sp-ls-h4);
}
.lp-step p,
.lp-step .lp-link-arrow {
  grid-column: 1 / -1;
}
.lp-step p {
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
}
.lp-step .lp-link-arrow {
  justify-self: start;
  align-self: end;
}

/* kit-gap: upstream to igor53627/2d-explorer#256 */
/* CTA band: a closing call to action across the content width (the bridge section). */
.lp-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-space-16);
  padding: var(--sp-space-32);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-lilac-bg);
  color: var(--sp-ink);
}

/* ---- Shared landing pieces ---- */

.lp-meta {
  font: var(--sp-type-meta);
  color: var(--sp-ink-3);
}
.lp-num {
  font-variant-numeric: tabular-nums;
}
.lp-mono {
  font: var(--sp-type-mono-detail);
  overflow-wrap: anywhere;
}

/* A link whose box covers its card (position: relative on the card). The link's own text is
 * its accessible name; the rest of the card is plain text. */
.lp-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.lp-stretch:focus-visible {
  outline: none;
}
.lp-stretch:focus-visible::after {
  outline: 2px solid var(--sp-focus);
  outline-offset: 2px;
}

/* Arrow link: underlined, a 44px row on its own line. */
.lp-link-arrow,
.lp-link-arrow:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-6);
  min-height: 44px;
  color: var(--sp-link);
  font: var(--sp-type-body-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-link-arrow:hover {
  color: var(--sp-link-hover);
}
.lp-link-arrow .icon {
  width: 18px;
  height: 18px;
}
/* On tints the link takes the ink colour (the tint pairs are checked for ink, not link). */
.lp-link-arrow--ink,
.lp-link-arrow--ink:visited,
.lp-link-arrow--ink:hover {
  color: var(--sp-ink);
}
.lp-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-space-8) var(--sp-space-20);
}

/* Icon tiles. */
.lp-tile {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--sp-r-md);
}
.lp-tile .icon {
  width: 22px;
  height: 22px;
}
.lp-tile--sent {
  width: 60px;
  height: 60px;
  border-radius: var(--sp-r-xl);
  background: var(--sp-tile-sent);
  color: var(--sp-on-tile-sent);
}
.lp-tile--sent .icon {
  width: 28px;
  height: 28px;
}
.lp-tile--teal {
  background: var(--sp-tile-teal);
  color: var(--sp-on-tile-teal);
}
.lp-tile--violet {
  background: var(--sp-violet-bg);
  color: var(--sp-violet-fg);
}
.lp-tile--lilac {
  background: var(--sp-lilac-bg);
  color: var(--sp-lilac-fg);
}
.lp-tile--blue {
  background: var(--sp-blue-bg);
  color: var(--sp-blue-fg);
}
.lp-tile--mint {
  background: var(--sp-mint-bg);
  color: var(--sp-mint-fg);
}
.lp-tile--tonal {
  background: var(--sp-tonal);
  color: var(--sp-ink-2);
}
.lp-tile--on-tint {
  background: var(--sp-on-tint);
}
.lp-tile--peach {
  color: var(--sp-peach-fg);
}
.lp-icon-violet {
  color: var(--sp-violet-fg);
}

/* Plain white card (the kit .sp-card has list-card padding). */
.lp-card {
  position: relative;
  padding: var(--sp-space-28);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-card-sm);
  color: var(--sp-ink);
}
.lp-card-head {
  display: flex;
  align-items: center;
  gap: var(--sp-space-12);
}
.lp-card-head h3 {
  font: var(--sp-type-h3);
  letter-spacing: var(--sp-ls-h3);
}
.lp-card-head .lp-meta {
  margin-top: var(--sp-space-4);
}
.lp-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-space-8) var(--sp-space-16);
  margin-top: auto;
  padding-top: var(--sp-space-4);
}

/* Status dot: grey and hollow-ringed by default (no health known); the edge adds a state. */
.lp-status-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: var(--sp-r-pill);
  background: var(--sp-ink-3);
  box-shadow: 0 0 0 3px var(--sp-tonal);
}

/* ---- Page layout ---- */

.lp-main {
  padding: var(--sp-space-32) 0 var(--sp-space-64);
}
.lp-page {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-64);
}
.lp-page h2,
.lp-page h3,
.lp-page p,
.lp-page ul,
.lp-page ol,
.lp-page dl,
.lp-page dd {
  margin: 0;
}
.lp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-space-12) var(--sp-space-24);
  margin-bottom: var(--sp-space-24);
}
.lp-section-head h2 {
  font: var(--sp-type-h2);
  letter-spacing: var(--sp-ls-h2);
  color: var(--sp-ink);
}
.lp-section-head p {
  max-width: 60ch;
  margin-top: var(--sp-space-6);
  color: var(--sp-ink-3);
}
.lp-section-head p + p {
  margin-top: var(--sp-space-10);
}
.lp-hero > *,
.lp-can > *,
.lp-light-grid > *,
.lp-priv > *,
.lp-stats > *,
.lp-stepper > *,
.lp-bridge > *,
.lp-proof-grid > *,
.lp-build > *,
.lp-faq > * {
  min-width: 0;
}

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

.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--sp-space-24);
}
.lp-hero-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-24);
  overflow: hidden;
  padding: var(--sp-space-40) 44px;
  border-radius: var(--sp-r-4xl);
  background: var(--sp-lilac-bg);
  color: var(--sp-ink);
}
.lp-hero-main > :not(.lp-shape) {
  position: relative;
}
.lp-shape {
  position: absolute;
  border-radius: var(--sp-r-pill);
  pointer-events: none;
}
.lp-shape--peach {
  top: -110px;
  right: -110px;
  width: 220px;
  height: 220px;
  background: var(--sp-peach-bg);
}
.lp-shape--mint {
  right: -36px;
  bottom: -44px;
  width: 112px;
  height: 112px;
  background: var(--sp-mint-bg);
}
.lp-status,
.lp-status:visited {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--sp-space-10);
  min-height: 44px;
  padding: 0 var(--sp-space-16) 0 var(--sp-space-14);
  border-radius: var(--sp-r-pill);
  background: var(--sp-on-tint);
  color: var(--sp-ink);
  font: var(--sp-type-meta);
  text-decoration: none;
}
.lp-status:hover {
  color: var(--sp-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-status strong {
  font-weight: 700;
}
/* Live states, set only by the edge (src/edge/render-home.ts) from fresh explorer health, with
   the explorer's words; the word, not the colour, carries the state. */
.lp-status--ok strong {
  color: var(--sp-success-fg);
}
.lp-status--stalled strong {
  color: var(--sp-amber-fg);
}
.lp-status--halted strong {
  color: var(--sp-danger-fg);
}
.lp-status--ok .lp-status-dot,
.lp-bridge-status--ok .lp-status-dot {
  background: var(--sp-success-fg);
  box-shadow: 0 0 0 3px var(--sp-success-ring);
}
.lp-status--stalled .lp-status-dot {
  background: var(--sp-amber-fg);
  box-shadow: 0 0 0 3px var(--sp-amber-bg);
}
.lp-status--halted .lp-status-dot,
.lp-bridge-status--halted .lp-status-dot {
  background: var(--sp-danger-fg);
  box-shadow: 0 0 0 3px var(--sp-danger-bg);
}
.lp-lead {
  max-width: 56ch;
  font: var(--sp-type-lead);
  color: var(--sp-ink-2);
}
.lp-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-space-10);
  padding: 0;
  list-style: none;
}
.lp-fact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-8);
  padding: var(--sp-space-14) var(--sp-space-16);
  border-radius: var(--sp-r-xl);
  background: var(--sp-on-tint);
}
.lp-fact .icon {
  color: var(--sp-link);
}
.lp-fact strong {
  display: block;
  font: var(--sp-type-body-sm);
  font-weight: 700;
}
.lp-fact span {
  display: block;
  margin-top: 2px;
  font: var(--sp-type-caption);
  color: var(--sp-ink-3);
}
.lp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-space-10) var(--sp-space-12);
}
/* The wallet button, its choices and its status sit in the CTA row; the status line takes a
 * row of its own under the buttons. */
.lp-cta-wallet {
  display: contents;
}
.lp-cta-choices {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: var(--sp-space-8);
  order: 9;
}
.lp-cta-status {
  flex-basis: 100%;
  order: 10;
}
/* Shown only without JavaScript (the inline theme script marks the root). */
:root[data-theme-next] .lp-nojs-only {
  display: none;
}
.lp-cta .lp-link-arrow {
  margin-left: var(--sp-space-6);
}

/* Receipt (the explorer receipt hero, compact). */
.lp-hero-side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-20);
}
.lp-receipt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-18);
  padding: var(--sp-space-28);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-4xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-card);
  color: var(--sp-ink);
}
.lp-receipt:hover {
  box-shadow:
    var(--sp-sh-card),
    0 0 0 1.5px var(--sp-line-strong);
}
.lp-receipt-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-space-12);
}
.lp-receipt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-6);
}
.lp-receipt-amount {
  display: flex;
  align-items: center;
  gap: var(--sp-space-16);
}
.lp-receipt-label {
  display: block;
  font: var(--sp-type-meta-label);
  color: var(--sp-ink-3);
}
.lp-amount {
  display: block;
  font: var(--sp-type-h1-compact);
  letter-spacing: var(--sp-ls-h1-compact);
  font-variant-numeric: tabular-nums;
}
.lp-amount-unit {
  margin-left: var(--sp-space-6);
  font: var(--sp-type-h3);
  letter-spacing: var(--sp-ls-h3);
  color: var(--sp-ink-2);
}
.lp-who {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-6);
  padding: var(--sp-space-12);
  border-radius: var(--sp-r-2xl);
  background: var(--sp-inset);
}
.lp-who-row {
  display: flex;
  align-items: center;
  gap: var(--sp-space-12);
  padding: var(--sp-space-10) var(--sp-space-14);
  border-radius: var(--sp-r-lg);
  background: var(--sp-row-raised);
}
.lp-who-label {
  display: block;
  font: var(--sp-type-caption);
  color: var(--sp-ink-3);
}
.lp-who-via {
  display: flex;
  align-items: center;
  gap: var(--sp-space-8);
  padding-left: 22px;
  font: var(--sp-type-caption);
  color: var(--sp-ink-3);
}
.lp-who-via .icon {
  color: var(--sp-link);
}
.lp-receipt-dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: var(--sp-space-10) var(--sp-space-20);
  font: var(--sp-type-body-sm);
}
.lp-receipt-dl dt {
  color: var(--sp-ink-3);
}
.lp-receipt-dl dd {
  font-weight: 600;
}
.lp-receipt-dl .lp-meta {
  font-weight: 400;
}
.lp-receipt-cap {
  padding: var(--sp-space-12) var(--sp-space-14);
  border-radius: var(--sp-r-lg);
  background: var(--sp-inset);
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
}
.lp-receipt-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-space-12);
  margin-top: auto;
  padding-top: var(--sp-space-14);
  border-top: 1px solid var(--sp-line);
}
.lp-receipt-link,
.lp-receipt-link:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-6);
  min-height: 44px;
  color: var(--sp-link);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-private {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-space-16);
  padding: var(--sp-space-20) var(--sp-space-24);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-mint-bg);
  color: var(--sp-ink);
}
.lp-private-text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-4);
  min-width: 0;
}
.lp-private-title {
  font: var(--sp-type-h4);
  letter-spacing: var(--sp-ls-h4);
}
.lp-private-title a,
.lp-private-title a:visited,
.lp-private-title a:hover {
  color: var(--sp-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.lp-private p {
  font: var(--sp-type-meta);
}
.lp-private > .icon {
  margin-left: auto;
}

/* ---- What your wallet can do (no EVM) ---- */

.lp-can {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-space-20);
}
.lp-can-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-16);
}
.lp-ticks {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-10);
  padding: 0;
  list-style: none;
}
.lp-ticks li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-space-10);
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
}
.lp-ticks .icon {
  margin-top: 2px;
}
.lp-can-card--yes .lp-ticks .icon {
  color: var(--sp-success-fg);
}
.lp-can-card--no .lp-ticks .icon {
  color: var(--sp-ink-3);
}
.lp-can-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-space-8) var(--sp-space-24);
  margin-top: var(--sp-space-16);
}
.lp-can-foot p {
  max-width: 70ch;
  font: var(--sp-type-meta);
  color: var(--sp-ink-3);
}

/* ---- Light by design (the page's one fee line) ---- */

.lp-light-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-space-20);
}
.lp-light-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-14);
}
.lp-light-card h3 {
  font: var(--sp-type-h4);
  letter-spacing: var(--sp-ls-h4);
}
.lp-light-card p {
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
}
.lp-fee-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-space-16) var(--sp-space-20);
  margin-top: var(--sp-space-20);
  padding: var(--sp-space-24) var(--sp-space-28);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-peach-bg);
  color: var(--sp-ink);
}
.lp-fee-line p {
  font: var(--sp-type-body-sm);
}

/* ---- Amounts hidden ---- */

.lp-priv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-space-20);
}
.lp-priv-main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-16);
  padding: var(--sp-space-28);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-mint-bg);
  color: var(--sp-ink);
}
.lp-priv-main .lp-ticks li {
  color: var(--sp-ink);
}
.lp-priv-main .lp-ticks .icon {
  color: var(--sp-mint-fg);
}
.lp-priv-main .lp-link-arrow {
  margin-top: auto;
}
.lp-priv-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-16);
}
.lp-vis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--sp-space-10) var(--sp-space-20);
  font: var(--sp-type-body-sm);
}
.lp-vis dt {
  color: var(--sp-ink-3);
}
.lp-vis dd {
  font-weight: 600;
}
.lp-vis-note {
  font: var(--sp-type-meta);
  color: var(--sp-ink-2);
}
.lp-sdk-note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-space-10);
  padding: var(--sp-space-12) var(--sp-space-14);
  border-radius: var(--sp-r-lg);
  background: var(--sp-inset);
  font: var(--sp-type-meta);
  color: var(--sp-ink-2);
}
.lp-sdk-note .icon {
  margin-top: 1px;
  color: var(--sp-ink-3);
}

/* ---- Private reads (config/pir-section.mjs; only in the "on" state) ---- */

/* The h2 and its line sit in .lp-section-head like every other section, so the page keeps one
 * left text edge. The band under it is only the demo and the setup link, a tint at the weight of
 * the mint card in "Amounts hidden" above (no corner shape, no filled button), so confidential
 * payments stay the lead feature. The demo is the same balance check as the server sees it:
 * without private reads (side by side on desktop and tablet, stacked on phones) and with them.
 * One signal per card: the eye tile. The exposed tile is the solid coral pair, as loud as the
 * solid teal of the protected one, so "exposed" reads as the alarming state in both themes.
 * The cards are raised on the band: white in light, a lighter navy mixed from the band's own
 * tokens in dark (a surface card would read as a hole in the navy). */
.lp-reads {
  --lp-reads-raised: var(--sp-surface);
  --lp-reads-addr-bg: var(--sp-coral-bg);
  --lp-reads-dots-bg: var(--sp-mint-bg);
  --lp-reads-ring: color-mix(in srgb, var(--sp-mint-fg) 45%, var(--sp-mint-bg));
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-14);
  padding: var(--sp-space-28);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-blue-bg);
  color: var(--sp-ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-reads {
    --lp-reads-raised: color-mix(in srgb, var(--sp-blue-fg) 14%, var(--sp-blue-bg));
    --lp-reads-addr-bg: color-mix(in srgb, var(--sp-coral-fg) 28%, var(--sp-coral-bg));
    --lp-reads-dots-bg: color-mix(in srgb, var(--sp-mint-fg) 22%, var(--sp-mint-bg));
    --lp-reads-ring: var(--sp-mint-fg);
  }
}
:root[data-theme="dark"] .lp-reads {
  --lp-reads-raised: color-mix(in srgb, var(--sp-blue-fg) 14%, var(--sp-blue-bg));
  --lp-reads-addr-bg: color-mix(in srgb, var(--sp-coral-fg) 28%, var(--sp-coral-bg));
  --lp-reads-dots-bg: color-mix(in srgb, var(--sp-mint-fg) 22%, var(--sp-mint-bg));
  --lp-reads-ring: var(--sp-mint-fg);
}
.lp-reads .lp-kicker {
  color: var(--sp-ink-2);
}
.lp-reads-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-space-16);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* A card: which setup with the server's verdict (eye) at the right edge, then what the server
 * logs at the largest type in the card. */
.lp-reads-row {
  display: grid;
  grid-template-areas:
    "label state"
    "q q";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-space-12) var(--sp-space-16);
  min-width: 0;
  padding: var(--sp-space-18) var(--sp-space-20);
  border-radius: var(--sp-r-2xl);
  background: var(--lp-reads-raised);
  box-shadow: var(--sp-sh-card-sm);
}
/* An outline, not a second box-shadow: the dark card shadow token is "none", which would drop
 * the whole shadow list and the ring with it. */
.lp-reads-row--private {
  outline: 2px solid var(--lp-reads-ring);
  outline-offset: -2px;
}
.lp-reads-label {
  grid-area: label;
  font: var(--sp-type-meta-label);
  color: var(--sp-ink-2);
}
.lp-reads-q {
  grid-area: q;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-space-8) var(--sp-space-12);
  min-width: 0;
}
.lp-reads-method {
  font: var(--sp-type-mono-row);
  color: var(--sp-ink-3);
}
.lp-reads-addr,
.lp-reads-dots {
  padding: var(--sp-space-4) var(--sp-space-10);
  border-radius: var(--sp-r-sm);
  font-family: var(--sp-font-mono);
  font-size: var(--sp-fs-h3);
  font-weight: 500;
  line-height: var(--sp-lh-h3);
}
.lp-reads-addr {
  background: var(--lp-reads-addr-bg);
  color: var(--sp-coral-fg);
}
.lp-reads-dots {
  background: var(--lp-reads-dots-bg);
  color: var(--sp-mint-fg);
  letter-spacing: 0.12em;
}
.lp-reads-state {
  grid-area: state;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--sp-r-md);
  background: var(--sp-coral-fg);
  color: var(--sp-surface);
}
.lp-reads-row--private .lp-reads-state {
  background: var(--sp-tile-teal);
  color: var(--sp-on-tile-teal);
}
.lp-reads-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--sp-space-20);
}
.lp-reads-meta {
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
}
/* On the tint the links take the ink colour (the tint pairs are checked for ink, not link). */
.lp-reads-link,
.lp-reads-link:visited,
.lp-reads-link:hover {
  color: var(--sp-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Running today ---- */

/* A compact number (1.2K): the exact value is its title and the sr-only text next to it. Lifted
 * above a stretched link's overlay (.lp-stretch::after) so hovering it shows that title. */
.lp-compact {
  position: relative;
  z-index: 1;
  cursor: help;
}

.lp-asof {
  flex: none;
}
.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-space-20);
  margin-bottom: var(--sp-space-14);
}
.lp-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-10);
  padding: var(--sp-space-24);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-2xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-hairline);
  color: var(--sp-ink);
}
.lp-stat:has(.lp-stretch):hover {
  box-shadow: var(--sp-sh-card-sm);
}
.lp-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-space-8);
}
.lp-stat-label,
.lp-stat-label:visited {
  font: var(--sp-type-meta-label);
  color: var(--sp-ink-3);
}
a.lp-stat-label {
  color: var(--sp-ink-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a.lp-stat-label:hover {
  color: var(--sp-ink);
}
/* Fixed numeral width, so live numbers from the edge (src/edge/render-home.ts) cause no layout shift. */
.lp-stat-num {
  min-height: calc(var(--sp-fs-stat) * var(--sp-lh-stat));
  font: var(--sp-type-stat);
  letter-spacing: var(--sp-ls-stat);
  font-variant-numeric: tabular-nums;
  /* Short forms fit (config/number-format.mjs); this only guards a tiny exact USDC amount. */
  overflow-wrap: anywhere;
}
.lp-stat--mint {
  background: var(--sp-mint-bg);
  box-shadow: none;
}
.lp-stat--mint a.lp-stat-label,
.lp-stat--mint .lp-meta {
  color: var(--sp-ink);
}

/* ---- Bridge ---- */

/* B2: the lead and the action on the left, the routes board on the right. */
.lp-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--sp-space-24) var(--sp-space-48);
  align-items: center;
}
.lp-bridge-intro h2 {
  margin-top: var(--sp-space-4);
}
.lp-bridge-intro > p:not([class]) {
  max-width: 46ch;
  margin-top: var(--sp-space-12);
  color: var(--sp-ink-2);
}
.lp-bridge-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-space-12) var(--sp-space-16);
  margin-top: var(--sp-space-24);
}
.lp-bridge-intro .lp-links {
  margin-top: var(--sp-space-16);
}
/* The routes board: reference information like a timetable, with no controls in it, so it
   does not read as a working bridge form. The action stays beside the lead. */
.lp-routes {
  padding: var(--sp-space-24);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-lilac-bg);
}
.lp-routes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-space-8) var(--sp-space-16);
  margin: 0 var(--sp-space-4) var(--sp-space-8);
}
.lp-routes-head h3 {
  font: var(--sp-type-meta-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-lilac-fg);
}
.lp-routes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-route {
  display: grid;
  gap: var(--sp-space-8);
  padding: var(--sp-space-16) var(--sp-space-4);
  border-top: 1px solid color-mix(in srgb, var(--sp-lilac-fg) 18%, transparent);
}
.lp-route > p:not([class]) {
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
}
.lp-route-path {
  display: flex;
  align-items: center;
  gap: var(--sp-space-6);
  font: var(--sp-type-meta-label);
}
.lp-chain {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--sp-space-10);
  border-radius: var(--sp-r-xs);
}
.lp-chain--eth {
  background: var(--sp-blue-bg);
  color: var(--sp-blue-fg);
}
.lp-chain--poa {
  background: var(--sp-surface);
  color: var(--sp-violet-fg);
}
.lp-route-arrow {
  color: var(--sp-lilac-fg);
}
.lp-route-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-4) var(--sp-space-14);
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
}
.lp-route-facts strong {
  color: var(--sp-ink);
}
.lp-bridge-note {
  margin: var(--sp-space-14) var(--sp-space-4) 0;
}
/* Bridge status: a pill like the hero's, and the whole pill is the status link. Neutral as
   built; the edge (src/edge/render-home.ts) adds --ok or --halted and sets the words, so the
   words, not the colour, carry the state. The transparent border shows in forced colours. */
.lp-bridge-status,
.lp-bridge-status:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-10);
  min-height: 36px;
  padding: var(--sp-space-4) var(--sp-space-16) var(--sp-space-4) var(--sp-space-14);
  border: 1px solid transparent;
  border-radius: var(--sp-r-pill);
  background: var(--sp-on-tint);
  color: var(--sp-ink-2);
  font: var(--sp-type-meta);
  font-weight: 600;
  text-decoration: none;
}
.lp-bridge-status:hover {
  border-color: currentColor;
  text-decoration: none;
}
.lp-bridge-status--ok,
.lp-bridge-status--ok:visited,
.lp-bridge-status--ok:hover {
  color: var(--sp-success-fg);
}
.lp-bridge-status--halted,
.lp-bridge-status--halted:visited,
.lp-bridge-status--halted:hover {
  color: var(--sp-danger-fg);
}
@media (prefers-reduced-motion: no-preference) {
  .lp-bridge-status {
    transition: border-color 120ms ease-out;
  }
}
@media (forced-colors: active) {
  .lp-bridge-status .lp-status-dot {
    background: LinkText;
    box-shadow: none;
  }
}

/* ---- Check it yourself ---- */

.lp-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-space-20);
}

/* ---- Under the hood: a spec sheet of glossary terms ---- */

/* The head (kicker, claim, one line, how to use the terms, the docs link) in a column beside
   the spec rows on wide screens; above them on narrower ones. Each row is a label and its term
   chips; every chip opens its glossary popover. .lp-hood is the box a popover stays inside
   (--lp-hood, site/js/terms.mjs BOUNDS). */
.lp-under {
  margin-top: var(--sp-space-20);
}
.lp-hood {
  --lp-chip-h: 32px;
  display: grid;
  gap: var(--sp-space-20);
  anchor-name: --lp-hood;
}
.lp-hood-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-space-8);
}
.lp-hood-head h2 {
  font: var(--sp-type-h2);
  letter-spacing: var(--sp-ls-h2);
  color: var(--sp-ink);
  text-wrap: balance;
}
.lp-hood-lede {
  max-width: 24rem;
  text-wrap: pretty;
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
}
/* How to open a term: one muted line, worded for the pointer in use (a mouse only once
   site/js/terms.mjs has added hover, data-terms). aria-hidden: a screen reader reads each
   term's meaning with it. */
.lp-hood-hint {
  margin-top: var(--sp-space-4);
  font: var(--sp-type-caption);
  color: var(--sp-ink-3);
}
.lp-hint-click,
.lp-hint-hover {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .lp-hint-tap {
    display: none;
  }
  .lp-hint-click {
    display: inline;
  }
  .lp-hood[data-terms] .lp-hint-click {
    display: none;
  }
  .lp-hood[data-terms] .lp-hint-hover {
    display: inline;
  }
}
/* The docs link; on narrow phones also the full list of programs, which the programs row
   then leaves out (it would take a line of its own there). */
.lp-hood-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--sp-space-20);
  row-gap: var(--sp-space-8);
  margin-top: var(--sp-space-8);
}
.lp-hood-links > .lp-link-arrow {
  min-height: 0;
}
.lp-hood-links > .lp-hood-all {
  display: none;
}
/* The rows fill their column, so the dividers run out to the card's padding on both sides. */
.lp-spec {
  display: grid;
  margin: 0;
}
/* A chip's popover opens under its row's chips, never across them (no script: --lp-row on the
   chips list; site/js/terms.mjs ROW_PARTS). */
.lp-spec-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  align-items: start;
  column-gap: var(--sp-space-16);
  padding-block: var(--sp-space-12);
  border-top: 1px solid var(--sp-line-soft);
  anchor-name: --lp-line;
  anchor-scope: --lp-row, --lp-line;
}
.lp-spec-row:first-child {
  padding-top: 0;
  border-top: 0;
}
.lp-spec-row:last-child {
  padding-bottom: 0;
}
/* Every label sits on its first line of chips: as tall as a chip, its words centred, quieter
   than the section's kicker. */
.lp-spec dt {
  display: flex;
  align-items: center;
  min-height: var(--lp-chip-h);
  font: var(--sp-type-caption);
  color: var(--sp-ink-3);
}
.lp-spec dd {
  min-width: 0;
  margin: 0;
}
.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
  anchor-name: --lp-row;
}
.lp-chips > li {
  display: flex;
  max-width: 100%;
}
/* The programs row names a few programs; this link opens the full list. It reads as a link,
   not a chip: no outline or fill, the link colour, an underline and an arrow, like the
   section's other arrow links. */
.lp-spec-more a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-4);
  min-height: var(--lp-chip-h);
  margin-left: var(--sp-space-4);
  font: var(--sp-type-meta);
  font-weight: 600;
  color: var(--sp-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-spec-more a:hover {
  color: var(--sp-link-hover);
}
/* One line under the chips on wide screens (it may set the row's width): a caveat, muted
   14px, 10px clear of the chips (.lp-spec: above the page's `.lp-page p` margin reset). */
.lp-spec .lp-spec-note {
  text-wrap: pretty;
  margin-top: 10px;
  font: var(--sp-type-meta);
  color: var(--sp-ink-3);
}
/* A chip's popover opens next to its chips, over the note: the note steps aside meanwhile, so
   no half-covered line shows above the popover. */
.lp-spec-row:has(.lp-term-pop:popover-open) .lp-spec-note {
  visibility: hidden;
}
/* A chip's value beside it ("1,000 per block"), muted, on the chips' line. */
.lp-spec-value {
  align-items: center;
  column-gap: var(--sp-space-6);
  min-height: var(--lp-chip-h);
  font: var(--sp-type-meta);
  color: var(--sp-ink-3);
  font-variant-numeric: tabular-nums;
}
/* While a popover is open, what it covers in part on other rows fades out (site/js/terms.mjs
   COVERED), so no sliver of a chip or a line shows at its edges. Only its paint: a chip stays
   in place under the pointer, so moving onto where it was still opens it. */
/* A row whose chips are all hidden that way keeps its label, dimmed with the rest of the
   section's quiet parts (.lp-is-dimmed), so the open popover is the one thing that stands out
   and no label stands alone at full strength beside nothing. */
.lp-is-covered {
  opacity: 0;
}
.lp-is-dimmed {
  opacity: 0.35;
}
/* Wide screens: the head beside the rows. */
@media (min-width: 1024px) {
  .lp-hood {
    grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
    column-gap: var(--sp-space-64);
    align-items: start;
  }
}
/* Narrow phones: each label above its chips, so every row starts on the same left edge. */
@media (max-width: 479px) {
  .lp-hood {
    --lp-chip-h: 30px;
    gap: var(--sp-space-16);
  }
  .lp-spec-row {
    display: flex;
    flex-direction: column;
    gap: var(--sp-space-4);
    padding-block: var(--sp-space-6);
  }
  .lp-spec dt {
    min-height: 0;
    font-size: var(--sp-fs-micro);
    font-weight: 500;
    line-height: var(--sp-lh-micro);
  }
  .lp-chips {
    column-gap: var(--sp-space-6);
    row-gap: var(--sp-space-6);
  }
  /* Tighter chips, so a row of three fits on one line more often (390 and 375). */
  .lp-chips .lp-chip {
    padding-inline: 10px;
  }
  .lp-hood-links {
    column-gap: var(--sp-space-16);
  }
  .lp-hood-links > .lp-hood-all {
    display: inline-flex;
  }
  .lp-chips > .lp-spec-more {
    display: none;
  }
  /* The note wraps to the chips' width, never wider; 8px clear of the chips. */
  .lp-spec .lp-spec-note {
    contain: inline-size;
    margin-top: var(--sp-space-8);
  }
}

/* Glossary term popovers ({{term:slug|text|kind}}, scripts/build-site.mjs). A term is a button:
   in a sentence it keeps the sentence's font, colour and line box, with a dotted underline
   (padding gives the target its size, 24px tall and at least 44 x 44px on phones and touch
   screens, and an equal negative margin takes it back out of the line); as a chip it is a
   neutral pill with a dashed outline, the one sign that it opens something, which turns solid
   in the accent colour and lifts 1px on hover, before the popover opens. The target is
   invisible beyond that: no tap highlight.
   The popover lives in the top layer, out of flow, and appears without motion. Closed it is
   display: none even where the Popover API is missing. site/js/terms.mjs places it under the
   term (.is-anchored); without script, CSS anchor positioning does the same, flipping above
   the term when it does not fit below on screen, and a browser without anchor positioning
   shows it at the bottom of the screen. Its sides stay inside .lp-hood, so on a phone it
   lines up with the copy. It never opens over its own term. */
.lp-term-wrap {
  --lp-term-pad-y: 2px;
  --lp-term-line: var(--sp-link);
  --lp-pop-gap: var(--sp-space-8);
  /* At the bottom of the screen (no script, no anchor positioning): the page gutter plus 8px
     from the screen's edges. */
  --lp-pop-inset: calc(var(--sp-gutter) + var(--sp-space-8));
  --lp-pop-max: 360px;
  --lp-pop-width: min(var(--lp-pop-max), calc(100vw - 2 * var(--lp-pop-inset)));
  /* Raised above the card it opens over. In dark it is one surface step up from the card
     (--sp-control) with a light hairline and a short, tight shadow. */
  --lp-pop-bg: var(--sp-row-raised);
  --lp-pop-border: var(--sp-line-strong);
  --lp-pop-shadow: var(--sp-sh-menu), 0 2px 8px color-mix(in srgb, var(--sp-ink) 10%, transparent);
  /* The chip's dashed outline: in dark at 85% of --sp-ink-4, about as strong as it is in light. */
  --lp-chip-line: color-mix(in srgb, var(--sp-ink-4) 55%, transparent);
  display: inline;
  anchor-scope: --lp-term;
}
.lp-chips .lp-term-wrap {
  --lp-term-pad-y: 0px;
  display: inline-flex;
  max-width: 100%;
}
/* Dark: the dotted marker at 58% of the link colour, so a sentence with a marker does not read
   as a link; hover, focus and open bring it to full colour. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-term-wrap {
    --lp-term-line: color-mix(in srgb, var(--sp-link) 58%, transparent);
    --lp-chip-line: color-mix(in srgb, var(--sp-ink-4) 85%, transparent);
    --lp-pop-bg: var(--sp-control);
    --lp-pop-border: color-mix(in srgb, var(--sp-ink) 24%, transparent);
    --lp-pop-shadow:
      0 0 0 4px color-mix(in srgb, var(--sp-footer) 55%, transparent),
      0 18px 36px -10px color-mix(in srgb, var(--sp-footer) 90%, transparent);
  }
}
:root[data-theme="dark"] .lp-term-wrap {
  --lp-term-line: color-mix(in srgb, var(--sp-link) 58%, transparent);
  --lp-chip-line: color-mix(in srgb, var(--sp-ink-4) 85%, transparent);
  --lp-pop-bg: var(--sp-control);
  --lp-pop-border: color-mix(in srgb, var(--sp-ink) 24%, transparent);
  --lp-pop-shadow:
    0 0 0 4px color-mix(in srgb, var(--sp-footer) 55%, transparent),
    0 18px 36px -10px color-mix(in srgb, var(--sp-footer) 90%, transparent);
}
.lp-term {
  display: inline-block;
  box-sizing: content-box;
  max-width: 100%;
  margin: calc(-1 * var(--lp-term-pad-y)) 0;
  padding: var(--lp-term-pad-y) 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: inherit;
  text-decoration: underline dotted var(--lp-term-line) 2px;
  text-underline-offset: 3px;
  vertical-align: baseline;
  cursor: pointer;
  anchor-name: --lp-term;
  -webkit-tap-highlight-color: transparent;
}
.lp-term:not(.lp-chip):hover,
.lp-term:not(.lp-chip):active,
.lp-term:not(.lp-chip):focus-visible,
.lp-term-wrap:has(> .lp-term-pop:popover-open) > .lp-term:not(.lp-chip) {
  background: none;
  color: var(--sp-link);
  text-decoration: underline solid var(--sp-link) 2px;
}
.lp-term:focus {
  outline: none;
}
.lp-term:focus-visible {
  outline: 2px solid var(--sp-focus);
  outline-offset: 0;
  border-radius: var(--sp-space-4);
}
/* The words sit above the term's tap target (positioned, so they paint and hit-test above the
   in-flow padding). */
.lp-term-text {
  position: relative;
}
/* One chip for every row (programs, hidden amounts, signing, limits): the body font at
   semibold, one height, padding, radius, outline, hover and focus. */
.lp-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: var(--lp-chip-h, 32px);
  margin: 0;
  padding: 0 var(--sp-space-12);
  border: 1px dashed var(--lp-chip-line);
  border-radius: var(--sp-r-pill);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font: var(--sp-type-meta);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .lp-chip:hover {
    border-style: solid;
    border-color: var(--sp-link);
    color: var(--sp-ink);
    box-shadow: var(--sp-sh-pill);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .lp-chip:hover {
    transform: translateY(-1px);
  }
}
/* Open: a lilac fill, its outline the fill's colour, level with its row (no hover lift or
   shadow: the fill alone marks it). Keyboard focus adds only the ring, 2px off the chip, so an
   open, focused chip shows a fill and one ring. */
.lp-term-wrap:has(> .lp-term-pop:popover-open) > .lp-chip {
  border-style: solid;
  border-color: var(--sp-lilac-bg);
  background: var(--sp-lilac-bg);
  color: var(--sp-lilac-fg);
  box-shadow: none;
  transform: none;
}
.lp-chip:focus-visible {
  outline-offset: 2px;
  border-radius: var(--sp-r-pill);
}
@media (prefers-reduced-motion: no-preference) {
  .lp-chip {
    transition:
      transform 120ms ease-out,
      border-color 120ms ease-out,
      box-shadow 120ms ease-out;
  }
}
@media (max-width: 640px), (pointer: coarse) {
  .lp-term-wrap {
    --lp-term-pad-y: 12px;
    display: inline-block;
  }
  .lp-term:not(.lp-chip) {
    --lp-term-side: max(4px, calc(22px - 50%));
    margin-inline: calc(-1 * var(--lp-term-side));
    padding-inline: var(--lp-term-side);
  }
  /* A chip's target reaches 4px past it, halfway into the 8px gaps, so neighbouring targets
     meet without overlapping (38px on phones, 40px wider). */
  .lp-chips .lp-term-wrap {
    --lp-term-pad-y: 0px;
    display: inline-flex;
  }
  .lp-chip::before {
    content: "";
    position: absolute;
    inset: -4px;
  }
}
/* The popover is the positioned box and carries the look (outline, fill, radius, shadow); it
   clips (overflow: hidden), so it is never a scroll container itself. The card inside it
   (.lp-term-pop-card) holds the padding (14px above and below, 18px at the sides) at every
   width and scrolls only when site/js/terms.mjs caps its height (.is-capped) or, without
   script, when it is taller than the screen: Firefox puts every scroll container in the Tab
   order, so a card that could scroll but does not would take a Tab stop of its own. */
.lp-term-pop {
  display: none;
  position: fixed;
  inset: auto 0 var(--lp-pop-inset);
  box-sizing: border-box;
  width: var(--lp-pop-width);
  height: fit-content;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--lp-pop-border);
  border-radius: var(--sp-r-2xl);
  background: var(--lp-pop-bg);
  box-shadow: var(--lp-pop-shadow);
  overflow: hidden;
  color: var(--sp-ink);
  font: var(--sp-type-body-sm);
  letter-spacing: normal;
  text-align: left;
  white-space: normal;
}
.lp-term-pop:popover-open {
  display: block;
}
.lp-term-pop-card {
  display: block;
  box-sizing: border-box;
  padding: 14px 18px;
  overscroll-behavior: contain;
}
.lp-term-pop:not(.is-anchored) .lp-term-pop-card {
  max-height: calc(100vh - 2 * var(--sp-space-16) - 2px);
  max-height: calc(100dvh - 2 * var(--sp-space-16) - 2px);
  overflow: auto;
}
.lp-term-pop.is-capped .lp-term-pop-card {
  overflow: auto;
}
/* No script: GAP under the term (the tap target's padding taken back), its left edge on the
   term's, as wide as .lp-hood allows and kept inside its sides; above the term when it does
   not fit below on screen (flip-block). */
@supports (anchor-scope: all) and (top: anchor(bottom)) and (width: anchor-size(width)) {
  .lp-term-pop:not(.is-anchored) {
    --lp-pop-w: min(var(--lp-pop-max), anchor-size(--lp-hood width));
    position: fixed;
    position-anchor: --lp-term;
    inset: auto;
    top: calc(anchor(bottom) - var(--lp-term-pad-y) + var(--lp-pop-gap));
    left: clamp(
      anchor(--lp-hood left),
      anchor(left),
      calc(anchor(--lp-hood right) - var(--lp-pop-w))
    );
    width: var(--lp-pop-w);
    margin: 0;
    position-try-fallbacks: flip-block;
  }
  /* A chip's popover opens under its row's chips, on the same side wherever the page is
     scrolled (no flip), so the rows it reaches are known (below). */
  .lp-chips .lp-term-pop:not(.is-anchored) {
    top: calc(anchor(--lp-row bottom) + var(--lp-pop-gap));
    position-try-fallbacks: none;
  }
  /* The bottom two rows open above their chips, the same gap as below, so they never hang
     over the next section; on phones, where the label sits above the chips, above the row's
     label and divider. */
  .lp-spec-row:nth-last-child(-n + 2) .lp-chips .lp-term-pop:not(.is-anchored) {
    top: auto;
    bottom: calc(anchor(--lp-row top) + var(--lp-pop-gap));
  }
  @media (max-width: 479px) {
    .lp-spec-row:nth-last-child(-n + 2) .lp-chips .lp-term-pop:not(.is-anchored) {
      bottom: calc(anchor(--lp-line top) + var(--lp-pop-gap) + 2px);
    }
  }
  /* The two rows a popover reaches (the two under an upper row, the two above a bottom row)
     step aside meanwhile, so no sliver of a chip or a line shows at its edges; every other row
     stays as it is. Beside the rows their labels stay, dimmed, so each divider keeps its name;
     on phones, where the labels sit in the popover's column, the whole row steps aside. What
     steps aside is also hidden (visibility; a restore inherits it, so it never shows a part of a
     row that is hidden whole), and Tab never lands on a control nobody can see.
     With script, site/js/terms.mjs hides only what the popover covers, and focus on another
     term opens that term instead. */
  :is(
      .lp-spec-row:nth-last-child(n + 3):has(.lp-term-pop:popover-open:not(.is-anchored))
        + .lp-spec-row,
      .lp-spec-row:nth-last-child(n + 3):has(.lp-term-pop:popover-open:not(.is-anchored))
        + .lp-spec-row
        + .lp-spec-row,
      .lp-spec-row:has(
        + .lp-spec-row:nth-last-child(-n + 2) .lp-term-pop:popover-open:not(.is-anchored)
      ),
      .lp-spec-row:has(
        + .lp-spec-row
          + .lp-spec-row:nth-last-child(-n + 2)
          .lp-term-pop:popover-open:not(.is-anchored)
      )
    )
    > dd {
    opacity: 0;
    visibility: hidden;
  }
  :is(
      .lp-spec-row:nth-last-child(n + 3):has(.lp-term-pop:popover-open:not(.is-anchored))
        + .lp-spec-row,
      .lp-spec-row:nth-last-child(n + 3):has(.lp-term-pop:popover-open:not(.is-anchored))
        + .lp-spec-row
        + .lp-spec-row,
      .lp-spec-row:has(
        + .lp-spec-row:nth-last-child(-n + 2) .lp-term-pop:popover-open:not(.is-anchored)
      ),
      .lp-spec-row:has(
        + .lp-spec-row
          + .lp-spec-row:nth-last-child(-n + 2)
          .lp-term-pop:popover-open:not(.is-anchored)
      )
    )
    > dt {
    opacity: 0.35;
  }
  /* Phones: the reached rows step aside whole, except the row two above the last one when the
     last row's popover is open: it reaches only that row's second line of chips and its note
     (the hidden amounts' third chip always wraps under 480px), so its label and first line
     stay and no blank band opens above the popover. */
  @media (max-width: 479px) {
    :is(
      .lp-spec-row:nth-last-child(n + 3):has(.lp-term-pop:popover-open:not(.is-anchored))
        + .lp-spec-row,
      .lp-spec-row:nth-last-child(n + 3):has(.lp-term-pop:popover-open:not(.is-anchored))
        + .lp-spec-row
        + .lp-spec-row,
      .lp-spec-row:has(
        + .lp-spec-row:nth-last-child(-n + 2) .lp-term-pop:popover-open:not(.is-anchored)
      ),
      .lp-spec-row:has(
        + .lp-spec-row
          + .lp-spec-row:nth-last-child(-n + 2)
          .lp-term-pop:popover-open:not(.is-anchored)
      )
    ):not(
      .lp-spec-row:has(
        + .lp-spec-row + .lp-spec-row:last-child .lp-term-pop:popover-open:not(.is-anchored)
      )
    ) {
      opacity: 0;
      visibility: hidden;
    }
    .lp-spec-row:has(
        + .lp-spec-row + .lp-spec-row:last-child .lp-term-pop:popover-open:not(.is-anchored)
      )
      > :is(dt, dd) {
      opacity: 1;
      visibility: inherit;
    }
    .lp-spec-row:has(
        + .lp-spec-row + .lp-spec-row:last-child .lp-term-pop:popover-open:not(.is-anchored)
      )
      :is(.lp-spec-note, .lp-chips > li:nth-child(n + 3)) {
      opacity: 0;
      visibility: hidden;
    }
  }
  /* Where the two-row reach is not enough (narrow phones; the rows under the head or beside a
     popover that slides over the labels, 480 to 1199px), every other row steps aside whole,
     and under 1024px the head's links too while a row's popover opens up toward them. */
  @media (max-width: 374px), (min-width: 480px) and (max-width: 1199px) {
    .lp-spec:has(.lp-term-pop:popover-open:not(.is-anchored))
      > .lp-spec-row:not(:has(.lp-term-pop:popover-open)) {
      opacity: 0;
      visibility: hidden;
    }
  }
  @media (max-width: 374px), (min-width: 480px) and (max-width: 1023px) {
    .lp-hood:has(.lp-spec-row:nth-last-child(-n + 2) .lp-term-pop:popover-open:not(.is-anchored))
      .lp-hood-links {
      opacity: 0;
      visibility: hidden;
    }
  }
}
.lp-term-pop.is-anchored {
  position: absolute;
  inset: auto;
  margin: 0;
}
/* The title runs the card's full width (pretty, not balance, which narrows every line and
   breaks "time-locked" at its hyphen). */
.lp-term-pop-title {
  display: block;
  text-wrap: pretty;
  margin: 0 0 var(--sp-space-4);
  font: var(--sp-type-body);
  font-family: var(--sp-font-display);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--sp-ls-h4);
  color: var(--sp-ink);
}
/* A name's gloss ("hashed time-locked contract" under "HTLC"): one muted line under the title. */
.lp-term-pop-alt {
  display: block;
  margin: -2px 0 var(--sp-space-6);
  font: var(--sp-type-meta);
  color: var(--sp-ink-3);
}
.lp-term-pop-text {
  display: block;
  margin: 0 0 var(--sp-space-6);
  overflow-wrap: break-word;
  line-height: 1.42;
  color: var(--sp-ink-2);
}
/* The link's box hugs its words and arrow with a little padding (taken back by the margins,
   so the space under it matches the space above the title); a 44px target reaches past it
   (::before). Its focus ring is rounded, 2px off that padding, clear of the underline and the
   arrow, and inside the popover, which clips its content. */
.lp-term-pop-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-4);
  padding: 2px 6px;
  margin: -2px -6px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--sp-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-term-pop-link::before {
  content: "";
  position: absolute;
  inset: -10px -4px;
}
.lp-term-pop-link:focus-visible {
  outline: 2px solid var(--sp-focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.lp-term-pop-link:hover {
  color: var(--sp-link-hover);
  text-decoration-thickness: 2px;
}
/* A hyphenated word in a popover never breaks at its hyphen ("post- / quantum"). */
.lp-nobr {
  white-space: nowrap;
}
/* Wide screens: 420px, the link on the title's line (the DOM keeps title, text, link), so
   a definition is about three lines and fits under its row inside the card. */
@media (min-width: 1024px) {
  .lp-term-wrap {
    --lp-pop-max: 420px;
  }
  .lp-term-pop-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title link"
      "alt alt"
      "text text";
    column-gap: var(--sp-space-16);
    align-items: baseline;
  }
  .lp-term-pop-title {
    grid-area: title;
  }
  .lp-term-pop-alt {
    grid-area: alt;
  }
  .lp-term-pop-text {
    grid-area: text;
    margin: 0;
  }
  .lp-term-pop-link {
    grid-area: link;
    font: var(--sp-type-meta);
    font-weight: 600;
    white-space: nowrap;
  }
}

/* ---- Build on POA ---- */

/* Both cards share the row height; their last line (the wallet note, the
   docs links) sits on the same baseline at the bottom. */
.lp-build {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: var(--sp-space-20);
}
.lp-network .sp-wallet-note {
  margin-top: auto;
}
.lp-network {
  box-shadow: var(--sp-sh-card-sm);
}
.lp-network .lp-meta {
  font-weight: 400;
}
.lp-code-card {
  display: flex;
  flex-direction: column;
}
.lp-code-note {
  font: var(--sp-type-meta);
  color: var(--sp-ink-2);
}
.lp-code-card .lp-links {
  margin-top: auto;
  padding-top: var(--sp-space-12);
}
.lp-soon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-space-16);
  margin-top: var(--sp-space-20);
  padding: var(--sp-space-20) var(--sp-space-24);
  border: 1.5px dashed var(--sp-line-dashed);
  border-radius: var(--sp-r-2xl);
  background: var(--sp-surface);
}
.lp-soon p {
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
}
.lp-soon strong {
  color: var(--sp-ink);
}
.lp-soon-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-8);
  margin-top: var(--sp-space-10);
  padding: 0;
  list-style: none;
}
/* "Coming soon": a hollow dot, never the success ring. */
.lp-dot-hollow {
  flex: none;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: var(--sp-r-pill);
}
/* Live (edge only, when the switch is on and the feature's check passed): a filled dot. */
.lp-dot-solid {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--sp-r-pill);
  background: currentColor;
}

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

.lp-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--sp-space-12);
}
.lp-faq .sp-disclosure-title {
  flex: 1;
}
.lp-faq .sp-disclosure-body p {
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
}

/* ---- 404 ---- */

.lp-error {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-16);
  max-width: calc(640px + 2 * var(--sp-gutter));
  padding-top: var(--sp-space-48);
  padding-bottom: var(--sp-space-48);
}
.lp-error-code {
  align-self: flex-start;
}
.lp-error-title {
  font: var(--sp-type-h1);
  letter-spacing: var(--sp-ls-h1);
}
.lp-search {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-8);
  margin-top: var(--sp-space-8);
}
.lp-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-12);
  margin-top: var(--sp-space-8);
}

/* ---- Tablet and phone ---- */

@media (max-width: 1023.98px) {
  .lp-hero,
  .lp-can,
  .lp-priv,
  .lp-bridge,
  .lp-build,
  .lp-faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .lp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-stepper,
  .lp-light-grid,
  .lp-proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lp-fee-line {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .lp-fee-line .lp-link-arrow {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .lp-main {
    padding-top: var(--sp-space-16);
  }
  .lp-page {
    gap: var(--sp-space-40);
  }
  .lp-section-head {
    margin-bottom: var(--sp-space-16);
  }
  .lp-hero {
    gap: var(--sp-space-16);
  }
  .lp-hero-main {
    gap: var(--sp-space-18);
    padding: var(--sp-space-24) var(--sp-space-20);
    border-radius: var(--sp-r-3xl);
  }
  .lp-shape--peach {
    top: -70px;
    right: -70px;
    width: 150px;
    height: 150px;
  }
  .lp-shape--mint {
    display: none;
  }
  .lp-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: var(--sp-space-4) var(--sp-space-16);
    border-radius: var(--sp-r-xl);
    background: var(--sp-on-tint);
  }
  .lp-fact {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-space-12);
    padding: var(--sp-space-12) 0;
    border-radius: 0;
    background: transparent;
  }
  .lp-fact + .lp-fact {
    border-top: 1px solid var(--sp-line-soft);
  }
  .lp-fact span {
    margin-top: 0;
  }
  .lp-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .lp-cta .sp-btn {
    width: 100%;
  }
  .lp-cta .lp-link-arrow {
    justify-content: center;
    margin-left: 0;
  }
  .lp-receipt {
    gap: var(--sp-space-16);
    padding: var(--sp-space-20);
    border-radius: var(--sp-r-3xl);
  }
  .lp-tile--sent {
    width: 52px;
    height: 52px;
  }
  .lp-receipt-dl {
    gap: var(--sp-space-8) var(--sp-space-16);
  }
  .lp-private {
    padding: var(--sp-space-18) var(--sp-space-20);
  }
  .lp-stats {
    gap: var(--sp-space-12);
  }
  .lp-stat {
    padding: var(--sp-space-18);
    border-radius: var(--sp-r-tile-mobile);
  }
  .lp-stat-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .lp-stat-label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -12px 0;
  }
  .lp-card,
  .lp-step,
  .lp-proof {
    padding: var(--sp-space-20);
  }
  .lp-priv-main {
    padding: var(--sp-space-20);
  }
  .lp-fee-line {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--sp-space-20);
  }
  .lp-fee-line > .lp-tile {
    display: none;
  }
  .lp-vis {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }
  .lp-vis dd + dt {
    margin-top: var(--sp-space-10);
  }
  .lp-code-tab {
    min-height: 44px;
    padding: 0 var(--sp-space-14);
  }
  .lp-soon {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--sp-space-18);
  }
  .lp-soon > .lp-tile {
    display: none;
  }
  .lp-error {
    padding-top: var(--sp-space-32);
  }
  .lp-error-actions .sp-btn {
    flex: 1 1 auto;
  }
  /* Card padding on phones, so the status pill keeps one line at 320px. */
  .lp-cta-band {
    padding: var(--sp-space-24) var(--sp-space-20);
  }
  .lp-routes {
    padding: var(--sp-space-16);
  }
  .lp-bridge-cta .sp-btn {
    width: 100%;
  }
  .lp-bridge-status {
    min-height: 44px;
  }
  /* Phones: the cards stack and tighten, so the head, the demo and the link come close to one
   * screen. */
  .lp-reads {
    gap: var(--sp-space-10);
    padding: var(--sp-space-16);
    border-radius: var(--sp-r-2xl);
  }
  .lp-reads-rows {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-space-10);
  }
  .lp-reads-row {
    gap: var(--sp-space-8) var(--sp-space-12);
    padding: var(--sp-space-12) var(--sp-space-14);
    border-radius: var(--sp-r-xl);
  }
  .lp-reads-state {
    width: 32px;
    height: 32px;
  }
  .lp-reads-addr,
  .lp-reads-dots {
    padding: var(--sp-space-4) var(--sp-space-8);
    font-size: var(--sp-fs-h4);
    line-height: var(--sp-lh-h4);
  }
}

/* Narrowest phones (320px): tighten the hero search pill so the "Hash or block" placeholder
 * is not cut off by the Search button. Button and input stay 44px or taller. */
@media (max-width: 359.98px) {
  .lp-search .sp-search--hero {
    gap: var(--sp-space-6);
    padding-left: var(--sp-space-14);
  }
  .lp-search .sp-search--hero > .icon {
    width: 18px;
    height: 18px;
  }
  .lp-search .sp-search--hero .sp-btn {
    padding: 0 var(--sp-space-14);
  }
}

@media (pointer: coarse) {
  .lp-code-tab,
  .lp-bridge-status {
    min-height: 44px;
  }
}

/* ---- site/styles/engineering.css ---- */
/* POA Engineering blog styles (index, article, homepage spotlight, interactive charts).
 *
 * Tokens only: no colour, font-size or font-family literal (scripts/check-colour-literals.mjs).
 * Every chart element inherits Soft Pop light and dark themes through CSS custom properties.
 */

/* ---- Homepage Engineering spotlight ---- */

.eng-home-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: var(--sp-space-28);
  padding: var(--sp-space-32);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-card);
  align-items: center;
}

.eng-home-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-space-8) var(--sp-space-14);
  margin-bottom: var(--sp-space-14);
  font: var(--sp-type-meta);
  color: var(--sp-ink-3);
}

.eng-home-card h3 {
  font: var(--sp-type-h2);
  letter-spacing: var(--sp-ls-h2);
  color: var(--sp-ink);
  margin-bottom: var(--sp-space-12);
}

.eng-home-card p {
  font: var(--sp-type-body);
  color: var(--sp-ink-2);
}

.eng-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-space-12) var(--sp-space-20);
  margin-top: var(--sp-space-24);
}

.eng-home-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-space-12);
}

.eng-home-stat {
  padding: var(--sp-space-16) var(--sp-space-20);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r-xl);
  background: var(--sp-inset);
}

.eng-home-stat-k {
  font: var(--sp-type-micro);
  text-transform: uppercase;
  letter-spacing: var(--sp-ls-mono);
  color: var(--sp-ink-3);
}

.eng-home-stat-v {
  font: var(--sp-type-metric);
  font-variant-numeric: tabular-nums;
  color: var(--sp-ink);
  margin-top: var(--sp-space-4);
}

.eng-home-stat-v--mint {
  color: var(--sp-mint-fg);
}

.eng-home-stat-v--lilac {
  color: var(--sp-lilac-fg);
}

.eng-home-stat-v--peach {
  color: var(--sp-peach-fg);
}

.eng-home-stat-s {
  font: var(--sp-type-caption);
  color: var(--sp-ink-3);
  margin-top: var(--sp-space-4);
}

/* ---- Engineering blog index ---- */

.eng-page {
  padding: var(--sp-space-32) 0 var(--sp-space-64);
}

.eng-hero {
  padding: var(--sp-space-40);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-4xl);
  background: var(--sp-lilac-bg);
  margin-bottom: var(--sp-space-32);
}

.eng-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-8);
  padding: var(--sp-space-6) var(--sp-space-12);
  border-radius: var(--sp-r-pill);
  background: var(--sp-surface);
  font: var(--sp-type-micro);
  color: var(--sp-lilac-fg);
  margin-bottom: var(--sp-space-16);
}

.eng-hero h1 {
  font: var(--sp-type-h1);
  letter-spacing: var(--sp-ls-h1);
  color: var(--sp-ink);
  max-width: 24ch;
  text-wrap: balance;
}

.eng-hero-lead {
  font: var(--sp-type-lead);
  color: var(--sp-ink-2);
  max-width: 62ch;
  margin-top: var(--sp-space-14);
}

.eng-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-12) var(--sp-space-20);
  margin-top: var(--sp-space-24);
}

.eng-post-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-space-20);
}

.eng-post-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: var(--sp-space-28);
  padding: var(--sp-space-32);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-card);
  align-items: start;
}

.eng-post-card h2 {
  font: var(--sp-type-h2);
  letter-spacing: var(--sp-ls-h2);
  color: var(--sp-ink);
  margin-bottom: var(--sp-space-12);
}

.eng-post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.eng-post-card h2 a:hover {
  color: var(--sp-link);
}

.eng-post-card p {
  font: var(--sp-type-body);
  color: var(--sp-ink-2);
}

/* ---- Article header & blog metadata ---- */

.eng-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-6);
  font: var(--sp-type-meta-label);
  color: var(--sp-ink-3);
  text-decoration: none;
  margin-bottom: var(--sp-space-20);
}

.eng-breadcrumb:hover {
  color: var(--sp-link);
}

.eng-article-head {
  padding: var(--sp-space-40);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-4xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-card);
  margin-bottom: var(--sp-space-28);
}

.eng-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-8);
  margin-bottom: var(--sp-space-16);
}

.eng-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-space-4) var(--sp-space-12);
  border-radius: var(--sp-r-pill);
  background: var(--sp-lilac-bg);
  color: var(--sp-lilac-fg);
  font: var(--sp-type-micro);
}

.eng-tag--mint {
  background: var(--sp-mint-bg);
  color: var(--sp-mint-fg);
}

.eng-tag--peach {
  background: var(--sp-peach-bg);
  color: var(--sp-peach-fg);
}

.eng-article-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--sp-space-16) var(--sp-space-32);
  align-items: start;
}

.eng-article-head h1 {
  font: var(--sp-type-h1);
  letter-spacing: var(--sp-ls-h1);
  color: var(--sp-ink);
  max-width: 24ch;
  text-wrap: balance;
}

.eng-article-lead {
  font: var(--sp-type-lead);
  color: var(--sp-ink-2);
  max-width: none;
  margin-top: var(--sp-space-4);
}

.eng-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-space-14) var(--sp-space-24);
  margin-top: var(--sp-space-24);
  padding-top: var(--sp-space-20);
  border-top: 1px solid var(--sp-line);
}

.eng-byline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-space-12) var(--sp-space-20);
  font: var(--sp-type-meta);
  color: var(--sp-ink-3);
}

.eng-byline-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-6);
}

.eng-byline-item strong {
  color: var(--sp-ink);
}

.eng-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-space-8);
}

.eng-share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-6);
  padding: var(--sp-space-8) var(--sp-space-12);
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--sp-r-pill);
  background: var(--sp-inset);
  color: var(--sp-ink-2);
  font: var(--sp-type-caption);
  text-decoration: none;
  cursor: pointer;
}

.eng-share-btn:hover {
  border-color: var(--sp-primary);
  color: var(--sp-link);
}

.eng-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-8) var(--sp-space-20);
  margin-top: var(--sp-space-16);
  padding: var(--sp-space-12) var(--sp-space-16);
  border-radius: var(--sp-r-lg);
  background: var(--sp-inset);
  font: var(--sp-type-mono-list);
  color: var(--sp-ink-3);
}

.eng-meta-bar strong {
  color: var(--sp-ink);
}

/* ---- KPI Grid ---- */

.eng-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-space-16);
  margin-bottom: var(--sp-space-40);
}

.eng-kpi {
  padding: var(--sp-space-20);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-2xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-card-sm);
}

.eng-kpi-label {
  font: var(--sp-type-micro);
  text-transform: uppercase;
  color: var(--sp-ink-3);
}

.eng-kpi-val {
  font: var(--sp-type-stat);
  letter-spacing: var(--sp-ls-stat);
  font-variant-numeric: tabular-nums;
  margin: var(--sp-space-8) 0;
}

.eng-kpi-val--mint {
  color: var(--sp-mint-fg);
}

.eng-kpi-val--lilac {
  color: var(--sp-lilac-fg);
}

.eng-kpi-val--peach {
  color: var(--sp-peach-fg);
}

.eng-kpi-sub {
  font: var(--sp-type-caption);
  color: var(--sp-ink-3);
}

/* ---- Article body sections ---- */

.eng-section {
  margin-top: var(--sp-space-48);
  scroll-margin-top: calc(var(--sp-header-h) + var(--sp-space-16));
}

.eng-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--sp-space-12) var(--sp-space-32);
  align-items: start;
  margin-bottom: var(--sp-space-24);
}

.eng-section h2 {
  font: var(--sp-type-h2);
  letter-spacing: var(--sp-ls-h2);
  color: var(--sp-ink);
  margin-bottom: var(--sp-space-12);
  text-wrap: balance;
}

.eng-section-head h2 {
  margin-bottom: 0;
}

.eng-section h3 {
  font: var(--sp-type-h4);
  letter-spacing: var(--sp-ls-h4);
  color: var(--sp-ink);
  margin-bottom: var(--sp-space-8);
}

.eng-prose {
  max-width: 76ch;
  font: var(--sp-type-body);
  color: var(--sp-ink-2);
  margin-bottom: var(--sp-space-20);
}

.eng-section-head .eng-prose {
  max-width: none;
  margin-bottom: 0;
}

.eng-prose code,
.eng-callout code,
.eng-finding code,
.eng-kpi-sub code {
  font-family: var(--sp-font-mono);
  font-size: var(--sp-fs-mono-detail);
  padding: var(--sp-space-4);
  border-radius: var(--sp-r-xs);
  background: var(--sp-sunken);
  color: var(--sp-ink);
}

.eng-card {
  padding: var(--sp-space-28);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-card);
}

.eng-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-space-16);
  flex-wrap: wrap;
  margin-bottom: var(--sp-space-20);
}

.eng-card-head > div:first-child {
  flex: 1 1 360px;
  min-width: 0;
}

.eng-card-title {
  font: var(--sp-type-h4);
  letter-spacing: var(--sp-ls-h4);
  color: var(--sp-ink);
  margin-bottom: var(--sp-space-4);
}

.eng-card-sub {
  font: var(--sp-type-meta);
  color: var(--sp-ink-3);
}

/* ---- Segmented controls ---- */

.eng-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-space-4);
  padding: var(--sp-space-4);
  border: 1px solid var(--sp-sunken-border);
  border-radius: var(--sp-r-md);
  background: var(--sp-sunken);
}

.eng-seg button {
  padding: var(--sp-space-6) var(--sp-space-12);
  border: 1px solid transparent;
  border-radius: var(--sp-r-xs);
  background: transparent;
  color: var(--sp-ink-2);
  font: var(--sp-type-mono-list);
  cursor: pointer;
}

.eng-seg button.is-active {
  background: var(--sp-tab-active-bg);
  color: var(--sp-tab-active-fg);
  border-color: var(--sp-tab-active-border);
}

/* ---- Callouts ---- */

.eng-callout {
  margin-top: var(--sp-space-20);
  padding: var(--sp-space-16) var(--sp-space-20);
  border-radius: var(--sp-r-xl);
  background: var(--sp-peach-bg);
  color: var(--sp-ink);
  font: var(--sp-type-body-sm);
}

.eng-callout--mint {
  background: var(--sp-mint-bg);
}

.eng-callout strong {
  color: var(--sp-peach-fg);
}

.eng-callout--mint strong {
  color: var(--sp-mint-fg);
}

/* ---- Grids ---- */

.eng-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-space-20);
}

.eng-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-space-16);
}

.eng-curve-title {
  font: var(--sp-type-meta-label);
  color: var(--sp-ink);
  margin-bottom: var(--sp-space-8);
}

/* ---- Telemetry tiles ---- */

.eng-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-space-12);
  margin-top: var(--sp-space-20);
  padding-top: var(--sp-space-20);
  border-top: 1px solid var(--sp-line);
}

.eng-tele {
  padding: var(--sp-space-12) var(--sp-space-14);
  border-radius: var(--sp-r-lg);
  background: var(--sp-inset);
}

.eng-tele-k {
  font: var(--sp-type-micro);
  color: var(--sp-ink-3);
}

.eng-tele-v {
  font: var(--sp-type-mono-row);
  font-variant-numeric: tabular-nums;
  color: var(--sp-ink);
  margin-top: var(--sp-space-4);
}

.eng-tele-s {
  font: var(--sp-type-caption);
  color: var(--sp-ink-3);
  margin-top: var(--sp-space-4);
}

/* ---- Scale table ---- */

.eng-table-wrap {
  margin-top: var(--sp-space-20);
  overflow-x: auto;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r-2xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-card-sm);
}

.eng-table {
  width: 100%;
  border-collapse: collapse;
  font: var(--sp-type-caption);
  font-variant-numeric: tabular-nums;
}

.eng-table th,
.eng-table td {
  padding: var(--sp-space-10) var(--sp-space-10);
  text-align: left;
  border-bottom: 1px solid var(--sp-line-soft);
  white-space: nowrap;
}

.eng-table th {
  font: var(--sp-type-micro);
  text-transform: uppercase;
  color: var(--sp-ink-3);
  background: var(--sp-inset);
}

.eng-table tr:last-child td {
  border-bottom: 0;
}

.eng-table td.eng-num,
.eng-table th.eng-num {
  text-align: right;
  font-family: var(--sp-font-mono);
}

.eng-table td.eng-mono {
  font-family: var(--sp-font-mono);
}

.eng-table tr.is-highlighted td {
  background: var(--sp-mint-bg);
  color: var(--sp-ink);
}

/* ---- Architecture cards ---- */

.eng-arch-card {
  padding: var(--sp-space-24);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-card);
}

.eng-arch-card p {
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
  margin-top: var(--sp-space-14);
}

/* ---- Findings ---- */

.eng-finding {
  padding: var(--sp-space-24);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-2xl);
  background: var(--sp-surface);
  box-shadow: var(--sp-sh-card-sm);
}

.eng-finding-kicker {
  font: var(--sp-type-micro);
  text-transform: uppercase;
  color: var(--sp-lilac-fg);
  margin-bottom: var(--sp-space-8);
}

.eng-finding p {
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
  margin-top: var(--sp-space-8);
}

/* ---- Code blocks (Soft Pop inset, CSP-safe) ---- */

.eng-code-card {
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r-2xl);
  background: var(--sp-inset);
  overflow: hidden;
}

.eng-code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-space-12);
  padding: var(--sp-space-12) var(--sp-space-16);
  border-bottom: 1px solid var(--sp-line);
  background: var(--sp-surface);
  font: var(--sp-type-meta-label);
  color: var(--sp-ink);
}

.eng-code-card pre {
  padding: var(--sp-space-16);
  overflow-x: auto;
  font: var(--sp-type-mono-list);
  color: var(--sp-ink);
}

/* ---- References & Discussion ---- */

.eng-refs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-space-14);
  list-style: none;
}

.eng-ref-item {
  padding: var(--sp-space-16) var(--sp-space-18);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r-xl);
  background: var(--sp-surface);
}

.eng-ref-item a {
  font: var(--sp-type-meta-label);
  color: var(--sp-link);
}

.eng-ref-item p {
  font: var(--sp-type-caption);
  color: var(--sp-ink-3);
  margin-top: var(--sp-space-4);
}

.eng-discuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-space-20);
  padding: var(--sp-space-28);
  border: var(--sp-card-border);
  border-radius: var(--sp-r-3xl);
  background: var(--sp-lilac-bg);
}

.eng-discuss h3 {
  font: var(--sp-type-h3);
  letter-spacing: var(--sp-ls-h3);
  color: var(--sp-ink);
  margin-bottom: var(--sp-space-6);
}

.eng-discuss p {
  font: var(--sp-type-body-sm);
  color: var(--sp-ink-2);
  max-width: 58ch;
}

/* ---- Legend & SVG chart token classes (zero inline styles) ---- */

.eng-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-10) var(--sp-space-18);
  margin-top: var(--sp-space-14);
  font: var(--sp-type-caption);
  color: var(--sp-ink-3);
}

.eng-legend-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-space-8);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.eng-legend-item code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.eng-back,
.eng-byline-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.eng-row-btn {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.eng-row-btn:hover {
  color: var(--sp-link);
}

.eng-back:focus-visible,
.eng-byline-meta a:focus-visible,
.eng-seg button:focus-visible,
.eng-share-btn:focus-visible,
.eng-row-btn:focus-visible,
.eng-table-wrap:focus-visible,
.eng-code-card pre:focus-visible {
  outline: 2px solid var(--sp-focus);
  outline-offset: 2px;
}

.eng-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  flex: none;
}

.eng-swatch--poa {
  background: var(--sp-teal-bg);
}

.eng-swatch--eth {
  background: var(--sp-peach-fg);
}

.eng-swatch--eth-dark {
  background: var(--sp-danger-fg);
}

.eng-swatch--ohttp {
  background: var(--sp-primary);
}

.eng-swatch--plain {
  background: var(--sp-ink-3);
}

.eng-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.eng-chart text {
  font-family: var(--sp-font-body);
}

.eng-chart text.eng-svg-mono {
  font-family: var(--sp-font-mono);
  font-variant-numeric: tabular-nums;
}

.eng-svg-poa {
  fill: var(--sp-teal-bg);
}
.eng-svg-poa-stroke {
  stroke: var(--sp-teal-bg);
  fill: none;
}
.eng-svg-poa-text {
  fill: var(--sp-mint-fg);
}
.eng-svg-eth {
  fill: var(--sp-peach-fg);
}
.eng-svg-eth-stroke {
  stroke: var(--sp-peach-fg);
  fill: none;
}
.eng-svg-eth-text {
  fill: var(--sp-peach-fg);
}
.eng-svg-eth-dark {
  fill: var(--sp-danger-fg);
}
.eng-svg-ohttp {
  fill: var(--sp-primary);
}
.eng-svg-ohttp-stroke {
  stroke: var(--sp-primary);
  fill: none;
}
.eng-svg-ohttp-text {
  fill: var(--sp-lilac-fg);
}
.eng-svg-plain {
  fill: var(--sp-ink-3);
}
.eng-svg-plain-stroke {
  stroke: var(--sp-ink-3);
  fill: none;
}
.eng-svg-danger-stroke {
  stroke: var(--sp-danger-fg);
}
.eng-svg-danger-text {
  fill: var(--sp-danger-fg);
}
.eng-svg-ink {
  fill: var(--sp-ink);
}
.eng-svg-muted {
  fill: var(--sp-ink-3);
}
.eng-svg-on-bar {
  fill: var(--sp-on-inverse);
}
.eng-svg-grid {
  stroke: var(--sp-line);
}
.eng-svg-axis {
  stroke: var(--sp-line-strong);
}
.eng-svg-node-surface {
  fill: var(--sp-surface);
}
.eng-svg-box-neutral {
  fill: var(--sp-inset);
  stroke: var(--sp-line-strong);
}
.eng-svg-box-eth {
  fill: var(--sp-peach-bg);
  stroke: var(--sp-peach-fg);
}
.eng-svg-box-poa {
  fill: var(--sp-mint-bg);
  stroke: var(--sp-mint-fg);
}
.eng-svg-box-danger {
  fill: var(--sp-danger-bg);
  stroke: var(--sp-danger-fg);
}

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

@media (max-width: 1023.98px) {
  .eng-home-card,
  .eng-post-card,
  .eng-article-intro,
  .eng-section-head,
  .eng-grid-2,
  .eng-grid-3,
  .eng-refs {
    grid-template-columns: minmax(0, 1fr);
  }
  .eng-kpi-grid,
  .eng-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .eng-hero,
  .eng-article-head,
  .eng-card,
  .eng-home-card,
  .eng-post-card {
    padding: var(--sp-space-20);
  }
  .eng-kpi-grid,
  .eng-telemetry {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-contrast: more) {
  .eng-card,
  .eng-article-head,
  .eng-kpi,
  .eng-finding,
  .eng-arch-card,
  .eng-ref-item,
  .eng-table-wrap,
  .eng-code-card,
  .eng-share-btn,
  .eng-seg {
    border-color: var(--sp-field-border);
  }
}

@media (forced-colors: active) {
  .eng-seg button.is-active,
  .eng-table tbody tr.is-highlighted {
    outline: 2px solid CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eng-seg button,
  .eng-share-btn,
  .eng-back,
  .eng-row-btn {
    transition: none;
  }
}
