/* ============================================================
   SZA WEB KIT  —  sza-kit.css   (revision 2026-10-21, PAGE-STYLE 3.3)
   One design system for all SZA web properties (present & future).
   Palette: "Pine + Gold" (dark-green primary, gold secondary accent).
   Drop-in: <link rel="stylesheet" href="sza-kit.css"> OR paste into <style>.
   Fonts:  <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet">
   Controls implement BUTTONS 2.0, UI-SIZING 1.1, COLLAPSIBLE-GROUP 1.1 and BOOLEAN-OPTION 2.0 directly;
   reference/showcase.html is the rendered example of every component below.
   ============================================================ */

/* ---------- TOKENS : DARK (default) ---------- */
:root{
  /* surfaces */
  --bg:#0a0f0a;            /* page background, green-black */
  --bg-2:#0f1610;          /* elevated: header, inputs */
  --bg-3:#131c14;          /* deeper elevation */
  --card:rgba(255,255,255,.035);
  --card-hover:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.08);
  --border-hover:rgba(63,185,80,.35);
  /* text */
  --text:#f1f5ee;
  --text-2:#c3ccbc;
  --muted:#94a08c;
  /* accents */
  --acc:#3fb950;           /* primary = green */
  --acc-strong:#56d364;    /* hover / links */
  --acc-press:#34a044;     /* pressed primary */
  --acc-ink:#04130c;       /* text on green fills */
  --gold:#e3b341;          /* secondary accent = gold */
  --gold-strong:#f0c862;
  --gold-ink:#1c1403;
  /* code */
  --code-bg:#070f08;
  --code-ink:#d6e2cf; --code-accent:#7ee787; --code-output:#e6c35a;
  --code-ctl:#1a261c; --code-ctl-hover:#243326; --code-ctl-border:#3c4f3e;
  /* semantic */
  --ok:#3fb950; --warn:#e3b341; --danger:#e5534b;
  /* control roles (BUTTONS 2.0 section 3: opaque, so contrast is measurable on the actual face) */
  --ctl-face:#18221a; --ctl-face-hover:#203022; --ctl-face-press:#293b2c;
  --ctl-border:#3c4f3e; --ctl-border-hover:#5d745f; --ctl-outline:#7f9680;
  --sel-face:#1f4a29; --sel-face-hover:#265a32;
  --danger-face:#e5534b; --danger-face-hover:#ee6b63; --danger-face-press:#dc4c44; --danger-ink:#1a0504;
  --dis-ink:#78846f;
  /* group headers (COLLAPSIBLE-GROUP 1.1 section 3) */
  --grp-head:#162017; --grp-head-hover:#1d2c1f; --grp-head-press:#243627;
  /* effects */
  --shadow:0 10px 30px rgba(0,0,0,.45);
  --glow:0 0 26px rgba(63,185,80,.28);
  --blob-1:#3fb950; --blob-2:#e3b341; --blob-3:#1f7a33;
  /* type */
  --font-heading:'Outfit',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-body:'Plus Jakarta Sans',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-mono:ui-monospace,"Cascadia Code","SFMono-Regular",Consolas,Menlo,monospace;
  /* metrics */
  --wide:100%; --gutter:clamp(16px,2.5vw,40px); --radius:16px; --radius-sm:10px; --radius-pill:30px;
  --step:clamp(.9rem,2.2vw,1rem);

  /* ---- UI-SIZING 1.1: one resolver for every covered control ----
     Profile: html[data-ui-profile="pointer|touch"] (set once, before first paint); a page without the
              attribute follows @media (pointer:coarse) below. Never re-resolved after an input event.
     Size:    html[data-ui-size="compact|large|xlarge|huge"] sets --ui-scale; ordinary is the default, 1.
     Declared range .75 .. 2. Declared smallest targets: 24 (pointer) and 36 (touch) CSS px - the floors
     hold for any scale value, so an unknown value never yields a zero-size or shrinking target.
     Text enlargement is independent: font sizes are rem-based and controls grow by min-height, so the
     browser's text size grows text and layout first; glyphs follow the interface scale only. */
  --ui-scale:1;
  --ui-base:32px; --ui-floor:24px; --ui-pad-x-base:12px; --ui-glyph-base:16px; --ui-box-base:20px;
  --ui-target:max(var(--ui-floor),calc(var(--ui-base)*var(--ui-scale)));
  --ui-pad-x:calc(var(--ui-pad-x-base)*var(--ui-scale));
  --ui-glyph:calc(var(--ui-glyph-base)*var(--ui-scale));
  --ui-box:calc(var(--ui-box-base)*var(--ui-scale));
  --ui-gap:calc(8px*var(--ui-scale));
  --ui-gap-group:calc(16px*var(--ui-scale));
  --ui-inset:calc(12px*var(--ui-scale));
  --ui-radius:calc(4px*var(--ui-scale));
  --ui-font:calc(.9rem*var(--ui-scale));
}
html[data-ui-profile="touch"]{--ui-base:48px;--ui-floor:36px;--ui-pad-x-base:16px;--ui-glyph-base:20px;--ui-box-base:24px}
@media(pointer:coarse){html:not([data-ui-profile]){--ui-base:48px;--ui-floor:36px;--ui-pad-x-base:16px;--ui-glyph-base:20px;--ui-box-base:24px}}
html[data-ui-size="compact"]{--ui-scale:.75}
html[data-ui-size="large"]{--ui-scale:1.25}
html[data-ui-size="xlarge"]{--ui-scale:1.5}
html[data-ui-size="huge"]{--ui-scale:2}

/* ---------- TOKENS : LIGHT ---------- */
html[data-theme="light"]{
  --bg:#eef3ea; --bg-2:#ffffff; --bg-3:#e4ecdf;
  --card:rgba(255,255,255,.70); --card-hover:rgba(255,255,255,.92);
  --border:rgba(16,40,20,.12); --border-hover:rgba(47,143,58,.40);
  --text:#16210f; --text-2:#384534; --muted:#5f6b54;
  --acc:#267a30; --acc-strong:#206629; --acc-press:#1b5723; --acc-ink:#ffffff;
  --gold:#9a6a13; --gold-strong:#7e560f; --gold-ink:#ffffff;
  --code-bg:#0e1411; --code-ink:#d6e2cf; --code-accent:#7ee787; --code-output:#e6c35a;          /* code stays dark in light mode */
  --code-ctl:#1a261c; --code-ctl-hover:#243326; --code-ctl-border:#3c4f3e;
  --ctl-face:#ffffff; --ctl-face-hover:#f0f6ec; --ctl-face-press:#e1ebdc;
  --ctl-border:#8fa28a; --ctl-border-hover:#6a8465; --ctl-outline:#5f7a5c;
  --sel-face:#cfe6cf; --sel-face-hover:#bfdcc0;
  --danger-face:#b3261e; --danger-face-hover:#9c1f18; --danger-face-press:#861913; --danger-ink:#ffffff;
  --dis-ink:#7d8878;
  --grp-head:#dfe9da; --grp-head-hover:#d3e0cd; --grp-head-press:#c7d8c0;
  --shadow:0 6px 24px rgba(20,40,20,.10);
  --glow:0 0 26px rgba(47,143,58,.18);
}

/* ---------- RESET / BASE ---------- */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.1) transparent}
body{background:var(--bg);color:var(--text);font-family:var(--font-body);line-height:1.62;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;min-height:100vh;position:relative}
a{color:var(--acc-strong);text-decoration:none}
a:hover{color:var(--acc)}
h1,h2,h3,h4{font-family:var(--font-heading);letter-spacing:-.02em;line-height:1.2}
code,kbd,pre{font-family:var(--font-mono)}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:4px}
img{max-width:100%;height:auto}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* ---------- GLYPHS : ICON-SET meanings as CSS masks (24 x 24 catalog geometry, currentColor) ----------
   Use as <span class="gi gi-copy" aria-hidden="true"></span> beside the caption. The geometry is the
   catalog's own path data (iconography/glyphs/<id>.svg), rendered as a vector at the actual size. */
.gi{display:inline-block;flex:none;width:var(--ui-glyph);height:var(--ui-glyph);background-color:currentColor;
  -webkit-mask:var(--gi) center/contain no-repeat;mask:var(--gi) center/contain no-repeat;forced-color-adjust:none}
[dir="rtl"] .gi-mirror{transform:scaleX(-1)}
.gi-copy{--gi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16,1L4,1C2.9,1 2,1.9 2,3L2,17L4,17L4,3L16,3L16,1ZM19,5L8,5C6.9,5 6,5.9 6,7L6,21C6,22.1 6.9,23 8,23L19,23C20.1,23 21,22.1 21,21L21,7C21,5.9 20.1,5 19,5ZM19,21L8,21L8,7L19,7L19,21Z'/%3E%3C/svg%3E")}       /* action.copy */
.gi-theme{--gi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm1-17.93c3.94.49 7 3.85 7 7.93s-3.05 7.44-7 7.93V4.07z'/%3E%3C/svg%3E")}   /* app.theme */
.gi-top{--gi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8,11h3v10h2V11h3l-4,-4 -4,4zM4,3v2h16V3H4z'/%3E%3C/svg%3E")}                                                                                                                  /* nav.scroll-top */
.gi-email{--gi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V6c0,-1.1 -0.9,-2 -2,-2zM20,8l-8,5 -8,-5V6l8,5 8,-5v2z'/%3E%3C/svg%3E")}   /* action.email */
.gi-external{--gi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19,19H5V5h7V3H5c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2v-7h-2v7zM14,3v2h3.59l-9.83,9.83 1.41,1.41L19,6.41V10h2V3h-7z'/%3E%3C/svg%3E")}   /* nav.open-external */
.gi-help{--gi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11,18h2v-2h-2v2zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM12,6c-2.21,0 -4,1.79 -4,4h2c0,-1.1 0.9,-2 2,-2s2,0.9 2,2c0,2 -3,1.75 -3,5h2c0,-2.25 3,-2.5 3,-5 0,-2.21 -1.79,-4 -4,-4z'/%3E%3C/svg%3E")}   /* app.help */
.gi-menu{--gi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7,10l5,5 5,-5z'/%3E%3C/svg%3E")}                                                                                                                                                                       /* nav.dropdown: trailing menu marker */
.gi-go{--gi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10,6L8.59,7.41 13.17,12l-4.58,4.59L10,18l6,-6z'/%3E%3C/svg%3E")}                                                                                                                                       /* nav.go-to: trailing child-navigation chevron (mirrors in RTL with .gi-mirror) */
.gi-check{--gi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9,16.17L4.83,12l-1.42,1.41L9,19 21,7l-1.41,-1.41z'/%3E%3C/svg%3E")}                                                                                                                            /* action.confirm: the checkbox tick */

/* ---------- DECORATIVE BLOBS (subtle) ---------- */
.bg-blobs{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.blob{position:absolute;border-radius:50%;filter:blur(120px);opacity:.14}
.blob-1{top:-90px;left:-60px;width:420px;height:420px;background:radial-gradient(circle,var(--blob-1),transparent 70%);animation:drift 22s infinite alternate ease-in-out}
.blob-2{top:32%;right:-110px;width:460px;height:460px;background:radial-gradient(circle,var(--blob-2),transparent 70%);animation:drift 28s infinite alternate-reverse ease-in-out}
.blob-3{bottom:-120px;left:12%;width:380px;height:380px;background:radial-gradient(circle,var(--blob-3),transparent 70%)}
@keyframes drift{0%{transform:translate(0,0) scale(1)}100%{transform:translate(36px,28px) scale(1.08)}}

/* ---------- LAYOUT ----------
   Full width (PAGE-STYLE 1.3, section 5): the container spans the viewport less the side gutter at every
   width. --wide stays as a token so a page layer that reads it keeps working, and it is 100%, never a cap. */
.container{max-width:var(--wide);margin:0 auto;padding:0 var(--gutter);position:relative;z-index:1}
.section{padding:2rem 0}

/* ---------- STICKY GLASS HEADER ---------- */
.site-header{position:sticky;top:0;z-index:30;display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-gap);
  padding:calc(8px*var(--ui-scale));margin:14px var(--gutter);max-width:var(--wide);
  border:1px solid var(--border);border-radius:14px;
  background:color-mix(in srgb,var(--bg-2) 78%,transparent);backdrop-filter:saturate(140%) blur(10px)}
.brand{font-family:var(--font-heading);font-weight:800;font-size:15px;letter-spacing:.2px;margin-inline-start:calc(-1px - 8px*var(--ui-scale));margin-inline-end:auto;padding-inline-end:calc(8px*var(--ui-scale));color:var(--text)}
.brand .dot{color:var(--acc)}

/* ---------- CONTROLS : BUTTONS 2.0 + UI-SIZING 1.1 ----------
   One geometry for every command: rectangular, 4-unit corner (scaled), content-fit width, a height of at least
   the stable profile target, a whole-button wrap before a caption wraps, no pill, no permanent shadow, no
   border change between states. Spare width stays empty: a button never stretches to its container.
   Behaviour and rank are separate: .btn-primary (at most one per task surface), plain .btn (ordinary),
   .btn-ghost (secondary, transparent face), .btn-danger (destructive confirmation). .btn-sm and .btn-gold
   are retired as treatments: they keep working as class names and render the ordinary button. */
.btn,.theme-btn,.copybox .copy,.to-top,.seg button,.opt-help{
  display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-gap);
  min-height:var(--ui-target);min-width:var(--ui-target);padding:calc(4px*var(--ui-scale)) var(--ui-pad-x);
  font-family:var(--font-body);font-size:var(--ui-font);font-weight:600;line-height:1.25;letter-spacing:0;
  text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;
  color:var(--text);background:var(--ctl-face);border:1px solid var(--ctl-border);border-radius:var(--ui-radius);
  cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:background-color .15s,border-color .15s,color .15s}
.btn,.theme-btn{justify-self:start}
.btn:hover,.theme-btn:hover,.seg button:hover,.opt-help:hover,.to-top:hover{color:var(--text);background:var(--ctl-face-hover);border-color:var(--ctl-border-hover)}
.btn:active,.theme-btn:active,.seg button:active,.opt-help:active,.to-top:active{background:var(--ctl-face-press)}
.btn:focus-visible,.theme-btn:focus-visible,.copybox .copy:focus-visible,.to-top:focus-visible,.seg button:focus-visible,.opt-help:focus-visible{border-radius:var(--ui-radius)}
.btn-primary{background:var(--acc);color:var(--acc-ink);border-color:var(--acc)}
.btn-primary:hover{background:var(--acc-strong);border-color:var(--acc-strong);color:var(--acc-ink)}
.btn-primary:active{background:var(--acc-press);border-color:var(--acc-press)}
.btn-ghost{background:transparent}
.btn-ghost:hover{background:var(--ctl-face-hover)}
.btn-danger{background:var(--danger-face);color:var(--danger-ink);border-color:var(--danger-face)}
.btn-danger:hover{background:var(--danger-face-hover);border-color:var(--danger-face-hover);color:var(--danger-ink)}
.btn-danger:active{background:var(--danger-face-press);border-color:var(--danger-face-press)}
.btn[aria-pressed="true"],.btn.is-selected,.theme-btn[aria-pressed="true"]{background:var(--sel-face);color:var(--text);border-color:var(--ctl-border-hover);
  text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.2em}
.btn[aria-pressed="true"]:hover,.btn.is-selected:hover{background:var(--sel-face-hover)}
.btn:disabled,.btn[aria-disabled="true"],.theme-btn:disabled,.seg button:disabled,.opt-help:disabled{
  background:var(--ctl-face);color:var(--dis-ink);border-color:var(--ctl-border);border-style:dashed;cursor:not-allowed}
/* a command row: whole-button wrapping, equal height inside each visual row (the flex line), start-aligned */
.btn-row,.get .channels{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;gap:var(--ui-gap)}
.btn-row.group-gap{column-gap:var(--ui-gap-group)}


/* language switcher (RU · EN · UA — no flags): a semantic segmented control, equal-size parts allowed */
.seg{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:0;padding:0;background:var(--ctl-face);
  border:1px solid var(--ctl-border);border-radius:var(--ui-radius)}
.seg button{border:0;border-radius:0;background:transparent;font-family:var(--font-heading);font-weight:700;letter-spacing:.04em}
.seg button+button{border-inline-start:1px solid var(--ctl-border)}
.seg button:first-child{border-start-start-radius:calc(var(--ui-radius) - 1px);border-end-start-radius:calc(var(--ui-radius) - 1px)}
.seg button:last-child{border-start-end-radius:calc(var(--ui-radius) - 1px);border-end-end-radius:calc(var(--ui-radius) - 1px)}
.seg button:focus-visible{outline-offset:-3px}
.seg button[aria-pressed="true"],.seg button.on{background:var(--sel-face);color:var(--text);
  text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.2em}
.seg button[aria-pressed="true"]:hover,.seg button.on:hover{background:var(--sel-face-hover)}
/* PAGE-STYLE 4.3: the theme control is labelled - the app.theme glyph beside its visible word. */
.theme-btn{font-family:var(--font-heading);font-weight:700}

/* ---------- HERO ---------- */
.hero{text-align:left;padding:2rem 0 1.5rem}
.hero .kicker{font-family:var(--font-heading);text-transform:uppercase;letter-spacing:.15em;
  font-size:.72rem;font-weight:700;color:var(--acc);margin-bottom:.8rem}
.hero h1{font-size:clamp(2rem,5vw,2.9rem);font-weight:800;margin-bottom:.5rem}
.hero .lead{color:var(--muted);max-width:none;margin:0 0 1.2rem;font-size:1.02rem}

/* ---------- IDENTITY BLOCK (PAGE-STYLE 4.1b): application icon + full product name, first in the hero ---------- */
.identity{display:flex;align-items:center;gap:1rem 1.2rem;margin-bottom:1.1rem}
.product-icon{width:clamp(64px,10vw,104px);height:auto;aspect-ratio:1;border-radius:22%;flex:none}
.product-name{font-family:var(--font-heading);font-weight:800;letter-spacing:-.02em;line-height:1.1;
  font-size:clamp(1.75rem,4.2vw,2.6rem);color:var(--text);overflow-wrap:anywhere}
.identity .kicker{margin:.35rem 0 0}

/* ---------- "GET IT" / DISTRIBUTION BLOCK (required above the fold on app sites) ---------- */
.get{display:grid;gap:1rem;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  backdrop-filter:blur(16px);padding:1.4rem 1.5rem;margin:1rem 0 2rem;max-width:none}
.get .whatfor{color:var(--text-2);font-size:.98rem}
.quickstart{counter-reset:qs;display:grid;gap:.5rem;margin-top:.4rem}
.quickstart li{list-style:none;position:relative;padding-left:2rem;color:var(--text-2);font-size:.92rem}
.quickstart li::before{counter-increment:qs;content:counter(qs);position:absolute;left:0;top:0;
  width:1.35rem;height:1.35rem;border-radius:50%;background:color-mix(in srgb,var(--acc) 18%,transparent);
  color:var(--acc);font-family:var(--font-heading);font-weight:800;font-size:.72rem;display:grid;place-items:center}

/* ---------- GLASS CARDS / GRID ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,19rem),1fr));gap:1.25rem}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  backdrop-filter:blur(16px);padding:1.6rem;transition:transform .3s,border-color .3s,background .3s}
.card:hover{transform:translateY(-4px);border-color:var(--border-hover);background:var(--card-hover)}

/* ---------- COLLAPSIBLE GROUPS : COLLAPSIBLE-GROUP 1.1 (numbered TOC-as-content sections) ----------
   The whole summary toggles (native details), the body expands below it in normal flow across the content
   width, and the leading filled triangle reports the current state: right when collapsed, down when open
   (left when collapsed in RTL). Header packing is a documented per-screen choice and is not in the kit.
   A page or navigation destination with one coherent topic shows its controls directly - no wrapper. */
details.sec{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  backdrop-filter:blur(12px);padding:0;margin-bottom:var(--ui-gap);scroll-margin-top:80px;overflow:clip}
details.sec[open]{border-color:var(--border-hover)}
details.sec>summary{list-style:none;cursor:pointer;display:flex;align-items:flex-start;gap:var(--ui-gap);
  min-height:var(--ui-target);padding:calc(6px*var(--ui-scale)) var(--ui-pad-x);
  background:var(--grp-head);color:var(--text);font-family:var(--font-heading);font-weight:700;
  font-size:calc(1.02rem*var(--ui-scale));line-height:1.35;-webkit-tap-highlight-color:transparent}
details.sec>summary::-webkit-details-marker{display:none}
details.sec>summary::before{content:"";flex:none;width:var(--ui-glyph);height:var(--ui-glyph);
  margin-top:calc((1.35em - var(--ui-glyph))/2);background-color:currentColor;transition:transform .15s;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/contain no-repeat;
  forced-color-adjust:none}
details.sec[open]>summary::before{transform:rotate(90deg)}
[dir="rtl"] details.sec:not([open])>summary::before{transform:scaleX(-1)}
details.sec>summary:hover{background:var(--grp-head-hover)}
details.sec>summary:active{background:var(--grp-head-press)}
details.sec>summary:focus-visible{outline-offset:-3px;border-radius:0}
.secnum{font-family:var(--font-heading);font-weight:800;font-size:.8rem;color:var(--acc);font-variant-numeric:tabular-nums;min-width:2ch;align-self:center}
details.sec>*:not(summary){margin:0 var(--ui-inset) .9rem}
details.sec>summary+*{margin-top:var(--ui-inset)}

/* ---------- BOOLEAN OPTION : BOOLEAN-OPTION 2.0 ----------
   <div class="opt">
     <label class="opt-boxwrap"><input type="checkbox" id="x"><span class="opt-mark"></span></label>
     <div class="opt-cell">
       <div class="opt-head"><label class="opt-label" for="x">[<span class="gi gi-...">]Name</label>[<button class="opt-help">]</div>
       <p class="opt-desc" id="x-d">Explanation (omit it when the name says it all).</p>
     </div></div>
   The checkbox, the heading glyph and the heading caption toggle the option once; the explanation, the gaps and
   the help button never do. The hit area is the profile target; the visible square is --ui-box. */
.opt{display:flex;align-items:flex-start;gap:0;margin:0 0 var(--ui-gap)}
.opt-boxwrap{position:relative;flex:none;display:flex;align-items:center;justify-content:center;
  width:var(--ui-target);height:var(--ui-target);margin-inline-end:calc(var(--ui-gap) - (var(--ui-target) - var(--ui-box))/2);cursor:pointer}
.opt-boxwrap input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.opt-mark{display:grid;place-items:center;width:var(--ui-box);height:var(--ui-box);border:2px solid var(--ctl-outline);
  border-radius:calc(3px*var(--ui-scale));background:var(--bg-2);color:var(--acc-ink);pointer-events:none}
.opt-mark::after{content:"";width:100%;height:100%;background-color:currentColor;visibility:hidden;
  -webkit-mask:var(--gi) center/78% no-repeat;mask:var(--gi) center/78% no-repeat;forced-color-adjust:none}
.opt-mark{--gi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9,16.17L4.83,12l-1.42,1.41L9,19 21,7l-1.41,-1.41z'/%3E%3C/svg%3E")}
.opt-boxwrap input:checked+.opt-mark{background:var(--acc);border-color:var(--acc)}
.opt-boxwrap input:checked+.opt-mark::after{visibility:visible}
.opt-boxwrap input:focus-visible+.opt-mark{outline:2px solid var(--acc);outline-offset:2px}
.opt-boxwrap input:disabled+.opt-mark{border-style:dashed;border-color:var(--dis-ink);background:var(--bg-3)}
.opt-boxwrap input:disabled:checked+.opt-mark{background:var(--bg-3);color:var(--dis-ink)}
.opt-boxwrap:has(input:disabled),.opt-boxwrap:has(input:disabled) input{cursor:not-allowed}
.opt-cell{flex:1 1 0;min-width:0}
.opt-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-gap);min-height:var(--ui-target)}
.opt-label{display:inline-flex;align-items:center;gap:var(--ui-gap);font-size:var(--ui-font);font-weight:600;line-height:1.3;color:var(--text);cursor:pointer;overflow-wrap:anywhere}
.opt-label .gi{color:var(--text-2)}
.opt-boxwrap:has(input:disabled)~.opt-cell .opt-label{color:var(--dis-ink);cursor:not-allowed}
.opt-help{padding:0}
.opt-desc{margin-top:calc(4px*var(--ui-scale));font-size:calc(.8rem*var(--ui-scale));line-height:1.45;color:var(--text-2);overflow-wrap:anywhere}
.opt-note{margin-top:calc(4px*var(--ui-scale));font-size:calc(.8rem*var(--ui-scale));color:var(--text-2)}
.opt-pop{margin-top:var(--ui-gap);padding:var(--ui-inset);background:var(--bg-2);border:1px solid var(--ctl-border);border-radius:var(--ui-radius);font-size:calc(.85rem*var(--ui-scale));color:var(--text)}
.opt-tip{position:absolute;z-index:50;max-width:min(20rem,90vw);padding:var(--ui-gap) var(--ui-inset);background:var(--bg-2);color:var(--text);
  border:1px solid var(--ctl-border-hover);border-radius:var(--ui-radius);font-size:calc(.8rem*var(--ui-scale));line-height:1.4}

/* ---------- COPY-TO-CLIPBOARD BOX (commands; contact info on hub) ----------
   <div class="copybox"><span class="cb-text">text</span>
     <button class="copy" data-copy="text"><span class="gi gi-copy" aria-hidden="true"></span>
       <span class="cl"><span class="cl-idle">Copy</span><span class="cl-done">Copied</span></span></button></div>
   Both state words sit in one grid cell, so the button reserves the widest state (BUTTONS section 3 rule 3) and
   Copy -> Copied never moves a neighbouring target. */
.copybox{display:flex;align-items:center;gap:var(--ui-gap);background:var(--code-bg);border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:calc(4px*var(--ui-scale)) calc(4px*var(--ui-scale)) calc(4px*var(--ui-scale)) 1rem;font-family:var(--font-mono);font-size:.86rem;color:var(--code-ink)}
.copybox .cb-text{flex:1 1 0;min-width:0;overflow-x:auto;white-space:nowrap}
.copybox .tok{color:var(--code-accent)}
.copybox .copy{flex:none;background:var(--code-ctl);border-color:var(--code-ctl-border);color:var(--code-ink)}
.copybox .copy:hover{background:var(--code-ctl-hover);color:var(--code-ink);border-color:var(--code-accent)}
.copybox .copy.done{color:var(--code-accent);border-color:var(--code-accent)}
.copy .cl{display:inline-grid}
.copy .cl>*{grid-area:1/1;text-align:center}
.copy .cl>.cl-done{visibility:hidden}
.copy.done .cl>.cl-idle{visibility:hidden}
.copy.done .cl>.cl-done{visibility:visible}

/* ---------- CALLOUT / NOTE ---------- */
.note{background:var(--card);border:1px solid var(--border);border-left:3px solid var(--gold);
  border-radius:var(--radius-sm);padding:.9rem 1.1rem;margin:1rem 0}
.note .tag{font-family:var(--font-heading);font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em;color:var(--gold)}
.note p{color:var(--text-2);font-size:.9rem;margin-top:.3rem}

/* ---------- KBD / PILLS / BADGES ---------- */
kbd{font-size:.8em;padding:.12em .45em;border-radius:5px;background:var(--bg-3);border:1px solid var(--border);border-bottom-width:2px;color:var(--text)}
.pills{display:flex;flex-wrap:wrap;gap:.45rem}
.pill{font-family:var(--font-heading);font-size:.68rem;font-weight:700;letter-spacing:.04em;padding:.25rem .7rem;
  border-radius:var(--radius-pill);background:color-mix(in srgb,var(--acc) 12%,transparent);
  color:var(--acc-strong);border:1px solid color-mix(in srgb,var(--acc) 22%,transparent)}
.pill.gold{background:color-mix(in srgb,var(--gold) 14%,transparent);color:var(--gold);border-color:color-mix(in srgb,var(--gold) 26%,transparent)}

/* ---------- INLINE DEMO STRIP ---------- */
.demo{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;background:var(--code-bg);
  border:1px solid var(--border);border-radius:var(--radius-sm);padding:.8rem 1rem;font-family:var(--font-mono);font-size:.86rem}
.demo,.demo code{color:var(--code-ink)}
.demo .arrow{color:var(--code-accent);font-weight:700;font-family:var(--font-body);font-size:.8rem}
.demo .out{color:var(--code-output)}

/* ---------- FOOTER : "MORE TOOLS BY SZA" + CONTACT ---------- */
.site-footer{border-top:1px solid var(--border);margin-top:3rem;padding:2rem 0}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,14rem),1fr));gap:.6rem;margin-bottom:1.5rem}
.tools-grid a{display:block;min-height:var(--ui-target);padding:.7rem .9rem;border:1px solid var(--border);border-radius:var(--radius-sm);
  background:var(--card);color:var(--text);font-size:.85rem}
.tools-grid a:hover{border-color:var(--border-hover);background:var(--card-hover)}
.tools-grid a b{font-family:var(--font-heading)}
.tools-grid a span{display:block;color:var(--muted);font-size:.74rem;margin-top:.15rem}
.footer-bottom{display:flex;flex-direction:column;gap:.6rem;align-items:center;color:var(--muted);font-size:.82rem}
@media(min-width:640px){.footer-bottom{flex-direction:row;justify-content:space-between}}

/* ---------- BACK TO TOP : an icon-only familiar command; carry a localized title and aria-label ---------- */
.to-top{position:fixed;right:18px;bottom:18px;z-index:40;display:none;padding:0}
.to-top.show{display:inline-flex}
.to-top svg{width:var(--ui-glyph);height:var(--ui-glyph)}

/* ---------- RESPONSIVE / A11Y ----------
   Targets come from the stable profile (UI-SIZING): 32 for a pointer, 48 for touch, scaled by --ui-scale and
   never below the declared floors. The header's secondary Contact command leaves the strip under 481 px: the
   same destination is the hero's own command, so it is a documented overflow policy, not a lost function. */
@media(max-width:480px){.site-header .btn{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){
  .btn,.theme-btn,.seg,.copybox .copy,.to-top,.opt-help{border-color:ButtonText}
  .btn[aria-pressed="true"],.seg button[aria-pressed="true"]{background:Highlight;color:HighlightText}
  .opt-mark{border-color:ButtonText;background:Canvas;color:HighlightText}
  .opt-boxwrap input:checked+.opt-mark{background:Highlight;border-color:Highlight}
}

/* ---------- PRINT (optional; PAGE-STYLE 4.13) ----------
   Dark ink on white; chrome hidden; URL after each external link.
   Expanding closed <details> is script (beforeprint), not CSS. */
@media print{
  html,html[data-theme]{--bg:#fff;--bg-2:#fff;--bg-3:#f2f2f2;--card:#fff;--card-hover:#fff;--border:#999;
    --text:#000;--text-2:#111;--muted:#333;--acc:#000;--acc-strong:#000;--gold:#000;
    --code-bg:#f2f2f2;--code-ink:#000;--shadow:none;--glow:none}
  body{background:#fff;color:#000}
  .bg-blobs,.site-header,.to-top,.btn{display:none!important}
  .card,.get,details.sec{backdrop-filter:none;box-shadow:none;break-inside:avoid}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:.85em;word-break:break-all}
}

/* Code ink stays readable when the page changes its light-theme prose colors. */
.demo code,.copybox code{color:var(--code-ink)}
