/* Canonical UI component library. THE SOURCE for every WILDCARD surface, served live from brand.teamwildcard.ca/v1/
   (same-origin /brand/v1/ on each host). Consumers link it; they never copy a rule out of it. v0.9.0 (2026-11-15) adds the
   twelve parts promoted from the sites (search "PROMOTED") and applies Alex's framework picks: one button (2a), gold labels (3a).
   Folio Card, Service Tile, Value Math, Section Label, Steps, Trust Pills, CTA Button, Folio Rule.
   Consumed by /components (the live reference) and /bible (the Ecosystem character-select panel, which renders a live Folio Card).
   Extracted 2026-07-24 from bible/index.html, where these were previously redeclared alongside narrative content. */


/* ---------------------------------------------------------------------------
   PLATFORM (the plinth) - L1 primitive, locked 2026-08-20.
   The ground anything in the brand stands on: the mark, a product emoji, a
   character, a coin. Same shape as the SVG platform in mark.js (a graduated
   ellipse a touch wider than the object it sits under), expressed in em so it scales with
   whatever it sits under - never re-tuned per size.

   SIZE RULE (locked 2026-08-23): only at 40px and up. Below that the ellipse is a
   pixel and a half tall - it stops reading as a floor and becomes a faint mark that
   needs explaining. Small chips, favicons and inline glyphs carry no ground; the seal
   is what does the work at 16px.

   RULE: the ground is always the ink of the thing standing on it. Never a
   second colour. A multicoloured glyph (an emoji) has no single ink, so it
   takes the brand's only accent, gold.

   Gradient, not blur or box-shadow: no filter to rasterise, and it degrades
   to nothing (rather than to a grey box) anywhere gradients are unsupported.

     <span class="on-plinth">{emoji}</span>
     --plinth-w / --plinth-h  size, in em      --plinth-drop  vertical offset
     .ink-dark / .ink-light   for paper and for light-on-dark placements
   --------------------------------------------------------------------------- */
.on-plinth{position:relative;display:inline-block;align-self:flex-start;
  --plinth-a:rgba(200,169,110,.5);--plinth-b:rgba(200,169,110,.24)}
.on-plinth::after{content:'';position:absolute;left:50%;bottom:var(--plinth-drop,-.04em);
  width:var(--plinth-w,.92em);height:var(--plinth-h,.2em);transform:translateX(-50%);
  pointer-events:none;z-index:0;
  background:radial-gradient(ellipse at 50% 50%,var(--plinth-a) 0%,var(--plinth-b) 55%,transparent 100%)}
.on-plinth.ink-dark{--plinth-a:rgba(11,18,21,.42);--plinth-b:rgba(11,18,21,.18)}
.on-plinth.ink-light{--plinth-a:rgba(240,237,230,.34);--plinth-b:rgba(240,237,230,.15)}

/* every product emoji in the library stands on it by default */
.folio-animal{--plinth-w:.8em;--plinth-h:.16em;--plinth-drop:.03em}

/* ---------------------------------------------------------------------------
   COIN — L1 primitive, ported 2026-09-08 (brain#189) from the Mint
   (deliverables/mark-coin-system.html) into a real component. Real CSS 3D:
   two faces plus a 48-reed milled edge, so one object flips, rolls and
   spins on edge. Faces render from mark.js's markPaths()/gemGroup() —
   no mark geometry is redefined here, so the coin restrikes with the die.

   Built via WildcardMark.coin.build(host, {size, finish, legend}); played
   via WildcardMark.coin.motion.{toss,drop,roll,stack,weigh}(...).
   Entry rule (locked 2026-08-23): the coin is earned value, never identity
   — see memory/tasks/brand/mark-coin-system.md.
   --------------------------------------------------------------------------- */
.coin3d{position:relative;transform-style:preserve-3d;will-change:transform}
.coin3d .face{position:absolute;inset:0;border-radius:50%;overflow:hidden;
  backface-visibility:hidden;display:grid;place-items:center}
.coin3d .face.front{transform:translateZ(var(--halfz))}
.coin3d .face.back{transform:rotateY(180deg) translateZ(var(--halfz))}
.coin3d .rimseg{position:absolute;top:0;left:50%;height:100%;transform-origin:0 0;backface-visibility:hidden}
.coin3d .face svg.markart{width:50%;height:50%;position:relative;z-index:2}
.coin3d .legend{position:absolute;inset:0;z-index:2}
.coin3d .legend text{font-family:var(--disp,'Tomorrow',sans-serif);font-weight:700;letter-spacing:2.4px}
.coin3d .shadow{position:absolute;border-radius:50%;filter:blur(8px);background:rgba(0,0,0,.6)}
.coin3d .gleam{position:absolute;inset:0;border-radius:50%;pointer-events:none;z-index:3;
  background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.5) 48%,transparent 58%);
  transform:translateX(-130%);mix-blend-mode:screen}
.coin3d:hover .gleam,.coin3d .gleam.run{animation:coin-sweep 1.15s ease-in-out}
@keyframes coin-sweep{to{transform:translateX(130%)}}

/* finishes — each earns its place (see task file for the per-finish job) */
.fin-gilt .face{background:var(--folio-gradient),#c8a96e}
.fin-gilt .face .markart{color:#6b5527;filter:drop-shadow(0 1.5px 0 rgba(255,240,200,.6))}
.fin-gilt .rimseg{background:linear-gradient(180deg,#8d7440,#e2c489 45%,#7b6436)}
.fin-gilt .legend text{fill:rgba(70,54,22,.7)}

.fin-obsidian .face{background:radial-gradient(120% 120% at 30% 20%,#26313a,#0c1418 70%)}
.fin-obsidian .face .markart{color:#c8a96e;filter:drop-shadow(0 0 9px rgba(200,169,110,.55))}
.fin-obsidian .rimseg{background:linear-gradient(180deg,#0d151a,#3b444d 45%,#0b1216)}
.fin-obsidian .legend text{fill:rgba(200,169,110,.6)}

.fin-steel .face{background:conic-gradient(from 210deg,#8b959e,#e5eaee 12%,#7e8891 28%,#c3cbd2 44%,#6e7880 62%,#dfe5ea 78%,#828c95 100%)}
.fin-steel .face .markart{color:#4c565f;filter:drop-shadow(0 1.5px 0 rgba(255,255,255,.65))}
.fin-steel .rimseg{background:linear-gradient(180deg,#5f6971,#cfd6db 45%,#5b656d)}
.fin-steel .legend text{fill:rgba(50,60,68,.6)}

.fin-vault .face{background:linear-gradient(150deg,rgba(240,237,230,.17),rgba(175,145,84,.15) 55%,rgba(240,237,230,.05));
  backdrop-filter:blur(6px);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),inset 0 -14px 30px -18px rgba(0,0,0,.9)}
.fin-vault .face .markart{color:rgba(240,237,230,.92);filter:drop-shadow(0 0 10px rgba(240,205,130,.5))}
.fin-vault .rimseg{background:linear-gradient(180deg,rgba(240,237,230,.3),rgba(175,145,84,.42) 45%,rgba(240,237,230,.12))}
.fin-vault .legend text{fill:rgba(240,237,230,.5)}
@media(prefers-reduced-motion:reduce){.coin3d:hover .gleam,.coin3d .gleam.run{animation:none}}

/* Folio Card */
/* Folio Card frame = the v3 geometry (docs/CARD-STANDARD.md §3): radius .0761w, edge .0087w, inner .0685w. --card-w is the card's rendered width. */
.folio-wrap{--card-w:300px;width:100%;max-width:var(--card-w);margin:0 auto;aspect-ratio:5/7;border-radius:calc(var(--card-w) * .0761);background:var(--folio-gradient);padding:calc(var(--card-w) * .0087);box-shadow:0 30px 70px rgba(0,0,0,.55)}
.folio-card{width:100%;height:100%;border-radius:calc(var(--card-w) * .0685);background:var(--card-deep);position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;padding:26px 22px;text-align:center}
.folio-card::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 36%,transparent 40%,rgba(0,0,0,.45) 100%);pointer-events:none}
.folio-idx{position:absolute;font-family:var(--disp,'Tomorrow',sans-serif);font-size:12px;font-weight:800;color:var(--gold-dim);letter-spacing:1px}
.folio-idx.tl{top:14px;left:15px}.folio-idx.br{bottom:14px;right:15px;transform:rotate(180deg)}
.folio-badge{display:inline-flex;align-items:center;gap:5px;background:rgba(175,145,84,.15);border:1px solid rgba(175,145,84,.3);border-radius:4px;padding:4px 9px;font-family:var(--disp,'Tomorrow',sans-serif);font-size:8px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:var(--gold);margin-top:2px}
.folio-animal{font-size:78px;line-height:1;margin:20px 0 8px;filter:drop-shadow(0 0 18px rgba(175,145,84,.4));transition:transform .5s;position:relative;display:inline-block}
.folio-card.swap .folio-animal{transform:scale(.6) rotate(-8deg);opacity:0}
.folio-name{font-family:var(--disp,'Tomorrow',sans-serif);font-weight:700;font-size:23px;letter-spacing:.3px;position:relative;z-index:2}
.folio-cat{font-family:var(--disp,'Tomorrow',sans-serif);font-size:9px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--gold);margin-top:4px}
.folio-rule{width:34px;height:1px;background:linear-gradient(90deg,transparent,var(--gold-b),transparent);margin:14px auto}
.folio-tag{font-size:13px;line-height:1.5;color:var(--white);position:relative;z-index:2;font-style:italic}
.folio-foot{margin-top:auto;width:100%;border-top:1px solid rgba(175,145,84,.15);padding-top:12px;display:flex;justify-content:space-between;align-items:baseline;position:relative;z-index:2}
.folio-foot .brand{font-family:var(--disp,'Tomorrow',sans-serif);font-size:8px;font-weight:800;letter-spacing:2px;color:var(--muted)}
.folio-foot .price{font-family:var(--disp,'Tomorrow',sans-serif);font-weight:900;font-size:19px;color:var(--gold);font-variant-numeric:tabular-nums}
.folio-foot .price small{font-size:9px;color:var(--muted);font-weight:600;letter-spacing:.5px}

/* Section Label */
.c-section-label{font-family:var(--disp,'Tomorrow',sans-serif);font-size:10px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--gold);display:flex;align-items:center;gap:8px;width:100%}
.c-section-label::after{content:'';flex:1;height:1px;background:var(--faint)}

/* Service Tile */
.c-tile{background:var(--card);border:1px solid var(--gold-dim);border-radius:8px;padding:12px 14px;display:flex;gap:11px;width:100%}
.c-tile .an{font-size:24px;line-height:1;flex-shrink:0;align-self:flex-start}
.c-tile .tn{font-family:var(--disp,'Tomorrow',sans-serif);font-size:15px;font-weight:700}
.c-tile .tsub{font-size:9px;color:var(--gold);font-weight:600;letter-spacing:.8px;text-transform:uppercase;margin:2px 0}
.c-tile .td{font-size:11px;color:var(--muted);line-height:1.45}

/* Value Math / Comparison Box */
.c-math{background:var(--card);border:1px solid var(--gold-dim);border-radius:8px;padding:16px;width:100%}
.c-math .r{display:flex;justify-content:space-between;align-items:center;padding:6px 0;font-size:13px}
.c-math .r.wc{border-top:1px solid var(--faint);margin-top:4px;padding-top:12px}
.c-math .r .k{color:var(--muted)}
.c-math .r.wc .k{color:var(--white);font-family:var(--disp,'Tomorrow',sans-serif);font-weight:700}
.c-math .r .v{font-variant-numeric:tabular-nums;color:var(--muted)}
.c-math .r.wc .v{font-family:var(--disp,'Tomorrow',sans-serif);font-weight:900;font-size:22px;color:var(--gold)}

/* CTA Button */
/* .c-cta is retired as a look (2a, Alex 2026-11-15: one button everywhere, never tiny tracked caps). The class stays so
   existing markup keeps working: it now renders the ghost twin of .c-btn. New markup uses .c-btn / .c-btn.is-ghost. */
.c-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--btn-h);padding:var(--btn-pad);font:var(--btn-font);letter-spacing:0;text-transform:none;color:var(--white);background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.14);border-radius:var(--btn-r);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .2s,border-color .2s}
.c-cta:hover{background:rgba(255,255,255,.07);border-color:var(--gold-dim)}

/* Trust Pills */
.c-pills{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
/* .c-pill is retired as a look (13b, Alex 2026-11-15): it is an alias of .c-badge, declared with it in the ROUND 6-7 section below. */
.c-pill .ck{color:var(--gold);font-weight:700}

/* Steps — number marker is the real original coin (2026-06-09, component-library.html):
   a plain folio-gradient circle, spun+jumped by the actual `coin-jump` keyframe on hover.
   Not the loonie cut — that was a later (2026-07-18) misattribution. */
.c-steps{display:flex;flex-direction:column;gap:12px;width:100%}
.c-step{display:flex;gap:11px;align-items:flex-start;perspective:400px}
.c-step .num{
  width:22px;height:22px;flex-shrink:0;
  background:var(--folio-gradient);
  border-radius:50%;
  font-family:var(--disp,'Tomorrow',sans-serif);font-size:11px;font-weight:800;color:var(--bg);
  display:flex;align-items:center;justify-content:center;
  margin-top:1px;cursor:pointer;
}
.c-step:hover .num{animation:coin-jump 1s cubic-bezier(.34,1.2,.64,1) forwards}
@keyframes coin-jump{
  0%{transform:translateY(0) rotateY(0deg) scale(1);filter:drop-shadow(0 0 14px rgba(175,145,84,.35))}
  20%{transform:translateY(-16px) rotateY(90deg) scale(1.12);filter:drop-shadow(0 6px 18px rgba(200,169,110,.55))}
  45%{transform:translateY(-22px) rotateY(180deg) scale(1.16);filter:drop-shadow(0 8px 22px rgba(200,169,110,.65))}
  65%{transform:translateY(-14px) rotateY(270deg) scale(1.1);filter:drop-shadow(0 4px 16px rgba(200,169,110,.5))}
  80%{transform:translateY(-3px) rotateY(360deg) scale(1.03);filter:drop-shadow(0 1px 12px rgba(175,145,84,.4))}
  92%{transform:translateY(3px) rotateY(360deg) scale(.98)}
  100%{transform:translateY(0) rotateY(360deg) scale(1);filter:drop-shadow(0 0 14px rgba(175,145,84,.35))}
}
@media(prefers-reduced-motion:reduce){.c-step:hover .num{animation:none}}
.c-step .st{font-family:var(--disp,'Tomorrow',sans-serif);font-size:13px;font-weight:700}
.c-step .sd{font-size:11px;color:var(--muted);line-height:1.4}

/* Style A card — "Refined Dark" (2026-06-09, component-library.html): the print/postcard
   treatment. Flat elevated background + solid border, no gradient, no bevel — nothing
   here that print/foil/single-colour reproduction can't handle. Distinct from the Folio
   Card above (Style B, digital/collectible — gradient border, metallic bevel). */
.a-card{width:240px;height:336px;border-radius:13px;background:var(--elevated);border:1.5px solid var(--gold-dim);padding:17px 17px 9px;display:flex;flex-direction:column;gap:7px;flex-shrink:0}
.a-card-frame{flex:1;border:1px solid rgba(175,145,84,.18);border-radius:4px;display:flex;flex-direction:column;overflow:hidden}
.a-card-head{height:28px;flex-shrink:0;padding:0 11px;display:flex;align-items:center}
.a-card-index{display:flex;flex-direction:column;align-items:center;gap:1px;font-family:var(--disp,'Tomorrow',sans-serif);line-height:1}
.a-card-index .suit{font-size:11px;color:var(--gold)}
.a-card-index .code{font-size:5.5px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:rgba(175,145,84,.45)}
.a-card-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 16px 12px}
.a-card-animal{font-size:60px;line-height:1;margin-bottom:16px}
.a-card-name{font-family:var(--disp,'Tomorrow',sans-serif);font-size:12px;font-weight:900;color:var(--white);text-align:center}
.a-card-rule{width:22px;height:1px;background:var(--gold);margin:9px auto}
.a-card-tag{font-size:9px;color:var(--muted);text-align:center;line-height:1.5;max-width:130px}
.a-card-foot{height:28px;flex-shrink:0;padding:0 11px;display:flex;align-items:center;justify-content:flex-end}
.a-card-foot .a-card-index{transform:rotate(180deg)}
.a-card-brand{text-align:center;flex-shrink:0;font-family:var(--disp,'Tomorrow',sans-serif);font-size:6px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:rgba(175,145,84,.4)}

/* ================================================================================================
   v3card — THE card. One 5:7 frame, every value derived from --card-w (locked ratios, 14/184 etc.),
   one face slot. Ported 2026-09-20 from the first real consumer (quotes-teamwildcard/public/quote.css,
   Alex-approved legibility passes 2026-09-19) into the shared home. Spec: brain deliverables/v3card-spec.html,
   record: brain memory/tasks/brand/v3card.md. Consumers set --card-w; nothing else is hand-sized.
   Layers: gilt edge (--folio-gradient) > deep face (--card-deep) > vignette (::after) > glare.
   Modes: .mode-live (cursor tilt + moving glare, web) · default static (glare pinned 34%/26%, PDF/print)
   · flat = a baked 2x PNG of the static card (email — Outlook renders with Word).
   ================================================================================================ */
.v3 {
  --v3-h: calc(var(--card-w) * 7 / 5);
  --v3-r: calc(var(--card-w) * .0761); --v3-edge: calc(var(--card-w) * .0087);
  --v3-ri: calc(var(--card-w) * .0685); --v3-suit: calc(var(--card-w) * .0598);
  --v3-iny: calc(var(--card-w) * .0652); --v3-inx: calc(var(--card-w) * .0707);
  --v3-name: calc(var(--card-w) * .0924); --v3-icon: calc(var(--card-w) * .345);
  --v3-feat: calc(var(--card-w) * .0505); --v3-pad: calc(var(--card-w) * .093);
  --v3-gap: calc(var(--card-w) * .048);
  --v3-frame: calc(var(--card-w) * .03); --v3-hair: max(1px, calc(var(--card-w) * .0054));
  width: var(--card-w); flex: 0 0 auto;
}
.v3 .edge {
  background: var(--folio-gradient); position: relative; display: block;
  width: 100%; height: var(--v3-h); border-radius: var(--v3-r); padding: var(--v3-edge);
  box-shadow: 0 calc(var(--card-w) * .09) calc(var(--card-w) * .2) rgba(0,0,0,.5);
}
.v3 .face {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  background: linear-gradient(170deg, color-mix(in srgb, var(--card-deep) 95%, var(--white)) 0%, var(--card-deep) 55%, color-mix(in srgb, var(--card-deep) 92%, #000) 100%);
  display: flex; flex-direction: column; align-items: center; color: var(--white);
  border-radius: var(--v3-ri); justify-content: center;
  padding: var(--v3-pad) calc(var(--v3-pad) * .82); text-align: center; gap: var(--v3-gap);
}
.v3 .face::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse at 50% 38%, transparent 44%, rgba(0,0,0,.45) 100%);
}
.v3 .glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  border-radius: var(--v3-ri);
  background: radial-gradient(circle at var(--gx, 34%) var(--gy, 26%), rgba(240,205,130,.16), transparent 66%),
    conic-gradient(from 210deg at 34% 26%, rgba(218,180,100,.05), rgba(140,160,170,.04), rgba(240,205,130,.07), rgba(120,130,150,.03), rgba(218,180,100,.05));
}
/* Playing-card treatment (preview/v3-playing-card; from the proposal cover). The face is a soft 170deg gradient, not a flat fill, and a hairline
   gold frame sits a margin inside the edge, the way a printed card is boxed. The corner indices sit in the margin between frame and corner;
   the picture sits in its own framed panel like a court card. Every value a ratio of --card-w. */
.v3 .face::before {
  content: ''; position: absolute; inset: var(--v3-frame); z-index: 1; pointer-events: none;
  border: var(--v3-hair) solid color-mix(in srgb, var(--gold-b) 42%, transparent);
  border-radius: calc(var(--v3-ri) - var(--v3-frame));
}
.v3 .suit {
  position: absolute; z-index: 5; display: flex; flex-direction: column; line-height: 1.02;
  color: var(--gold-b); opacity: .78; font-family: var(--disp, 'Tomorrow', sans-serif);
  font-size: var(--v3-suit); font-weight: 700; letter-spacing: .04em;
}
.v3 .suit.tl { top: var(--v3-iny); left: var(--v3-inx); }
.v3 .suit.br { bottom: var(--v3-iny); right: var(--v3-inx); transform: rotate(180deg); }
.v3 .v3-icon {
  width: var(--v3-icon); height: var(--v3-icon); object-fit: contain; z-index: 2;
  filter: drop-shadow(0 calc(var(--card-w) * .03) calc(var(--card-w) * .055) rgba(0,0,0,.5));
}
.v3 .v3-icon.emoji { display: flex; align-items: center; justify-content: center; font-size: calc(var(--v3-icon) * .86); line-height: 1; }
.v3 .v3-icon.mark { padding: calc(var(--v3-icon) * .08); }
.v3 .v3-name { z-index: 5; font-family: var(--disp, 'Tomorrow', sans-serif); font-weight: 700; font-size: var(--v3-name); line-height: 1.08; letter-spacing: .005em; text-wrap: balance; }
.v3 .v3-rule { width: calc(var(--card-w) * .155); height: 1px; z-index: 5; background: linear-gradient(90deg, transparent, var(--gold-b), transparent); }
.v3 .v3-feats { z-index: 5; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(var(--card-w) * .022); width: 100%; }
.v3 .v3-feats li { font-family: var(--body, 'Inter', sans-serif); font-size: var(--v3-feat); line-height: 1.35; color: var(--muted); letter-spacing: .01em; }
.v3 .v3-title { z-index: 5; font-family: var(--body, 'Inter', sans-serif); font-size: var(--v3-feat); line-height: 1.35; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.v3 .v3-brand { z-index: 5; font-family: var(--disp, 'Tomorrow', sans-serif); font-weight: 700; font-size: calc(var(--card-w) * .044); letter-spacing: .16em; color: var(--gold); opacity: .85; margin-top: calc(var(--card-w) * .01); }
/* Emphasis is a frame STATE, not a new card: white (not muted) feature text, nothing else (Alex, 2026-09-19). */
.v3.is-emphasis .v3-feats li { color: var(--white); }
/* Legibility floor (Alex, 2026-09-19): below ~150px the ratio-scaled type rounds to illegible; consumers at
   small widths pin the two type sizes instead of scaling. Kept as a documented override, not in the base. */
.v3.is-small .v3-name { font-size: 14px; }
.v3.is-small .v3-feats li { font-size: 10px; }
/* Live mode — the edge tilts toward the cursor, the glare follows. JS sets --rx/--ry/--gx/--gy. */
.v3.mode-live .edge { transition: transform .14s ease-out; transform: perspective(calc(var(--card-w) * 5)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.v3.mode-live .glare { transition: background-position .14s ease-out; }
@media (prefers-reduced-motion: reduce) { .v3.mode-live .edge { transform: none; transition: none; } }
/* Back — the same frame as the locked identity card: mark centred, WILDCARD under it, corners. Product back = the product suit; identity back = the four-suit column (the signature card). */
.v3.v3-back .face { justify-content: center; gap: calc(var(--card-w) * .07); }
.v3.v3-back .back-mark { width: calc(var(--card-w) * .38); height: calc(var(--card-w) * .38); z-index: 5; filter: drop-shadow(0 0 calc(var(--card-w) * .0815) rgba(175,145,84,.42)); }
/* Wordmark on the card carries no asterisk — the mark is already on it (Alex, 2026-09-20). Same type as the locked identity card: 17px/900/2.5px at 184. */
.v3.v3-back .back-wm { z-index: 5; font-family: var(--disp, 'Tomorrow', sans-serif); font-weight: 900; font-size: var(--v3-name); letter-spacing: calc(var(--card-w) * .0136); color: var(--white); }
.v3.v3-back .suit.four { opacity: .6; }
/* Deck layouts */
.v3-deck { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: flex-start; }
.v3-deck.tight { gap: 14px; }

/* Suits as referenced assets (suits.js installs #suit-S/H/D/C symbols; the bare mark #markBare is the placeholder). */
.suit-icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -.12em; }
.v3 .suit { gap: calc(var(--card-w) * .014); }
.v3 .suit .suit-icon { width: var(--v3-suit); height: var(--v3-suit); display: block; vertical-align: initial; }
.v3 .suit.four .suit-icon { width: calc(var(--v3-suit) * .78); height: calc(var(--v3-suit) * .78); }
.v3 .v3-icon.placeholder { color: var(--gold-dim); }
.v3.is-template .v3-name, .v3.is-template .v3-feats li { color: var(--muted); }
/* is-mini — the 72px chip (quote bundle tiles, any "which products are inside" row). Same frame,
   icon + name only: no corners, rule, lines or brand foot at this size. Edit this and every chip
   follows — docs/CARD-STANDARD.md §10. Wins over .is-small (declared after it). */
.v3.is-mini .suit, .v3.is-mini .v3-rule, .v3.is-mini .v3-feats, .v3.is-mini .v3-brand { display: none; }
.v3.is-mini .face { justify-content: center; gap: calc(var(--card-w) * .08); padding: calc(var(--card-w) * .1) calc(var(--card-w) * .06); }
.v3.is-mini .v3-icon { width: calc(var(--card-w) * .31); height: calc(var(--card-w) * .31); }
.v3.is-mini .v3-name { font-size: 8.5px; line-height: 1.25; color: var(--muted); letter-spacing: 0; }
.v3.is-mini .face::before { display: none; }
.v3.is-mini .edge { box-shadow: 0 calc(var(--card-w) * .06) calc(var(--card-w) * .14) rgba(0,0,0,.45); }

/* ================================================================================================
   JOKER + GRADE — two v3card faces, one object (brain#321, locked 2026-10-02). Built by cards.js;
   nothing here redefines the frame. The Joker is the unknown (never the identity card); the grade
   card is what the scan deals. Tier colours are the scanner's own tokens.
   Strikes: .v3-joker (Index, default) · .is-gilt (earned only) · .is-duck (Sitting Duck only).
   ================================================================================================ */
.v3 .jq { z-index: 5; font-family: var(--disp, 'Tomorrow', sans-serif); font-weight: 900; font-size: calc(var(--card-w) * .62); line-height: .9; color: var(--gold-b); letter-spacing: -.04em; text-shadow: 0 0 calc(var(--card-w) * .12) rgba(200,169,110,.35); }
.v3 .jq.ink { color: var(--white); text-shadow: none; }
.v3 .suit.jk { align-items: center; gap: calc(var(--card-w) * .02); }
.v3 .suit.jk .q { font-size: calc(var(--v3-suit) * 1.25); font-weight: 900; line-height: 1; }
.v3 .suit.jk .w { display: flex; flex-direction: column; font-size: calc(var(--card-w) * .03); font-weight: 800; letter-spacing: 0; line-height: 1.05; opacity: .75; }
.v3 .v3-duck { width: calc(var(--card-w) * .58); height: calc(var(--card-w) * .58); z-index: 5; filter: drop-shadow(0 calc(var(--card-w) * .03) calc(var(--card-w) * .06) rgba(0,0,0,.5)); }
.v3 .tier { z-index: 5; display: inline-block; font-family: var(--disp, 'Tomorrow', sans-serif); font-size: calc(var(--card-w) * .042); font-weight: 800; letter-spacing: .1em; padding: calc(var(--card-w) * .02) calc(var(--card-w) * .045); border-radius: 999px; text-transform: uppercase; }
.v3 .tier.protected { color: var(--protected); background: color-mix(in srgb, var(--protected) 10%, transparent); border: 1px solid color-mix(in srgb, var(--protected) 28%, transparent); }
.v3 .tier.exposed { color: var(--exposed); background: color-mix(in srgb, var(--exposed) 10%, transparent); border: 1px solid color-mix(in srgb, var(--exposed) 28%, transparent); }
.v3 .tier.atrisk { color: var(--atrisk); background: color-mix(in srgb, var(--atrisk) 10%, transparent); border: 1px solid color-mix(in srgb, var(--atrisk) 28%, transparent); }
/* Gilt: the stock inverts. Gilt face, obsidian edge, dark ink. */
/* The scorecard v3.2, Engraved (brain#345, #437; locked 2026-10-08; a v3 variant for the client scorecard only, not a new card version). Built by cards.js on the
   unchanged frame. Index: rank letter over the bare mark as pip, pip in the band colour. Face: fine
   rings engraved a few shades darker, the logo at their centre, progress a gilt arc from 12 o'clock.
   No logo on file: the bare mark debossed (face mixed toward black, a hairline of light under it).
   Below 150px the letter pins to 11px in the band colour, and the pip and rings drop out. */
.v3.v3-score .face { justify-content: center; }
.v3.v3-score .suit.sc { opacity: 1; align-items: center; gap: calc(var(--card-w) * .018); }
.v3.v3-score .suit.sc .r { font-size: calc(var(--card-w) * .128); font-weight: 700; line-height: .9; letter-spacing: 0; }
.v3.v3-score .suit.sc .p { width: calc(var(--card-w) * .062); height: calc(var(--card-w) * .062); }
.v3.v3-score.band-a .p, .v3.v3-score.band-b .p { color: var(--protected); }
.v3.v3-score.band-c .p { color: var(--gold-b); }
.v3.v3-score.band-d .p { color: var(--exposed); }
.v3.v3-score.band-f .p { color: var(--atrisk); }
.v3.v3-score.band-none .p { color: var(--muted); }
.v3.v3-score .v3-rings { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 calc(var(--card-w) * .017), color-mix(in srgb, var(--card-deep) 72%, #000) calc(var(--card-w) * .017) calc(var(--card-w) * .02));
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent calc(var(--card-w) * .3), #000 calc(var(--card-w) * .34), #000 calc(var(--card-w) * .52), transparent calc(var(--card-w) * .68));
  mask: radial-gradient(circle at 50% 50%, transparent calc(var(--card-w) * .3), #000 calc(var(--card-w) * .34), #000 calc(var(--card-w) * .52), transparent calc(var(--card-w) * .68)); }
.v3.v3-score .v3-dial { position: relative; z-index: 5; width: calc(var(--card-w) * .58); height: calc(var(--card-w) * .58); display: grid; place-items: center; }
.v3.v3-score .v3-arc { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.v3.v3-score .v3-arc .t { fill: none; stroke: var(--gold-faint); stroke-width: 1.2; }
.v3.v3-score .v3-arc .f { fill: none; stroke: var(--gold-b); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 2px rgba(200,169,110,.5)); }
.v3.v3-score .v3-logo { width: 56%; height: 56%; object-fit: contain; display: block; }
.v3.v3-score .v3-deboss { width: 52%; height: 52%; color: color-mix(in srgb, var(--card-deep) 76%, #000);
  filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--white) 7%, transparent)) drop-shadow(0 -1px 0 rgba(0,0,0,.35)); }
.v3.v3-score.is-small .suit.sc .r { font-size: 11px; }
.v3.v3-score.is-small .suit.sc .p, .v3.v3-score.is-small .v3-rings { display: none; }
.v3.v3-score.is-small .v3-dial { width: calc(var(--card-w) * .66); height: calc(var(--card-w) * .66); }
.v3.v3-score.is-small.band-a .suit, .v3.v3-score.is-small.band-b .suit { color: var(--protected); }
.v3.v3-score.is-small.band-d .suit { color: var(--exposed); }
.v3.v3-score.is-small.band-f .suit { color: var(--atrisk); }
.v3.v3-score.is-small.band-none .suit { color: var(--muted); }

.v3.is-gilt .edge { background: linear-gradient(145deg, #26313a, #0c1418); }
.v3.is-gilt .face { background: var(--folio-gradient), #c8a96e; color: #3a2e14; }
.v3.is-gilt .jq { color: #4a3a18; text-shadow: 0 1px 0 rgba(255,240,200,.5); }
.v3.is-gilt .suit, .v3.is-gilt .v3-brand { color: #4a3a18; }
.v3.is-gilt .face::before { border-color: rgba(74,58,24,.45); }
.v3.is-gilt .v3-rule { background: linear-gradient(90deg, transparent, #4a3a18, transparent); }

/* Morphic mark on the identity back (morph.js upgrades .back-mark; no JS keeps the static svg).
   Every size is a ratio of --card-w. The wrap is 40:42 so the plinth has room under the spokes. */
.v3.v3-back .morphwrap.back-mark { position: relative; display: grid; place-items: center; width: calc(var(--card-w) * .38); height: calc(var(--card-w) * .38 * 1.05); filter: none; }
.v3 .morph { position: relative; width: 100%; height: 100%; color: var(--gold-b); filter: drop-shadow(0 0 calc(var(--card-w) * .03) rgba(175,145,84,.45)); }
.v3 .morph .plinth { transform-origin: 50% 50%; animation: plinthbuzz 2.1s ease-in-out infinite; filter: drop-shadow(0 0 calc(var(--card-w) * .03) rgba(240,205,130,.7)); }
@keyframes plinthbuzz { 0%, 100% { opacity: .62; transform: scaleX(.9); } 42% { opacity: 1; transform: scaleX(1.16); } 72% { opacity: .8; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .v3 .morph .plinth { animation: none; } }

/* ── Email capture bar + primary button (canonical CTA, Alex 2026-11-05; first used on teamwildcard.ca/coffee) ──
   Every email CTA on the sites is this bar: one frosted pill holding the field and a gold button.
   Button label is sentence case Inter 600 15px, never tiny tracked caps. Under 420px the label drops to its
   first word ("Check →") so the placeholder stays whole; under 360px the bar stacks.
   Markup: <form class="c-capture"><input type="email" placeholder="you@yourbusiness.ca">
           <button class="c-btn">Check<span class="c-wide">my email</span><span aria-hidden="true">→</span></button></form>
           <p class="c-micro">We respect your privacy. No spam, no card.</p> */
/* THE button (2a, Alex 2026-11-15: one canonical button, referenced everywhere). Every value comes from the --btn-*
   variables in tokens.css, so a change there (or here) restyles every button on every host. Consumers never restyle a
   button; their own CSS may only place it (width, margin, order, flex). brand-check fails a build that styles one locally. */
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--btn-h); padding: var(--btn-pad); font: var(--btn-font); letter-spacing: 0; text-transform: none; color: var(--on-gold, #0b1215); background: var(--btn-bg); text-decoration: none; border: 1px solid color-mix(in srgb, var(--gold-b) 70%, transparent); border-radius: var(--btn-r); box-shadow: var(--btn-glow); cursor: pointer; white-space: nowrap; transition: filter .2s, transform .2s, box-shadow .2s; }
.c-btn:hover { filter: var(--btn-hover); box-shadow: var(--btn-glow-hover); }
.c-btn:active { transform: scale(var(--btn-press)); }
.c-btn.is-ghost { color: var(--white); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.c-btn.is-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--gold-dim); filter: none; }
.c-capture { display: flex; align-items: center; gap: 6px; max-width: 560px; padding: 6px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 40px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color .2s, box-shadow .2s; }
.c-capture:focus-within { border-color: color-mix(in srgb, var(--gold) 60%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 4px var(--gold-faint), 0 12px 40px rgba(0,0,0,.35); }
.c-capture input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; background: transparent; border: 0; outline: none; color: var(--white); font: 400 16px 'Inter', sans-serif; }
.c-capture input::placeholder { color: var(--muted); }
.c-capture .c-btn { flex: none; }
.c-capture .c-wide { margin-left: -3px; }
.c-micro { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.62); }
.c-micro a { color: inherit; text-decoration: none; }
@media (max-width: 420px) { .c-capture .c-wide { display: none; } .c-capture .c-btn { padding: 0 16px; } }
@media (max-width: 359px) { .c-capture { flex-direction: column; align-items: stretch; } .c-capture .c-btn { width: 100%; } }

/* ── Light mode for the button and capture bar (4a): the ghost and the bar were drawn in white-on-dark rgba. ── */
html[data-theme="light"] .c-btn.is-ghost,
html[data-theme="light"] .c-cta { color: var(--white); background: rgba(20,28,32,.03); border-color: rgba(20,28,32,.16); box-shadow: none; }
html[data-theme="light"] .c-btn.is-ghost:hover,
html[data-theme="light"] .c-cta:hover { background: rgba(20,28,32,.06); border-color: var(--gold-dim); }
html[data-theme="light"] .c-capture { background: var(--card); border-color: var(--faint); box-shadow: 0 12px 30px rgba(60,45,15,.12); }
html[data-theme="light"] .c-micro { color: var(--muted); }

/* =================================================================================================
   PROMOTED 2026-11-15 (brand framework audit, Alex: "promote all twelve"). Each part was built on one
   surface and copied elsewhere; it lives here now. Source of each port is named on its block.
   ================================================================================================= */

/* 1 · Theme switch — the button. Behaviour is theme.js (head, before paint). One markup on every bar:
   <button type="button" class="c-theme" data-theme-toggle aria-label="Light mode">(sun svg)</button> */
.c-theme { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: var(--r-pill); border: 1px solid var(--hair2); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.c-theme:hover { color: var(--gold-b); border-color: var(--gold-dim); }
.c-theme svg { width: 18px; height: 18px; }
.c-theme:focus-visible { outline: 2px solid var(--gold-b); outline-offset: 2px; }

/* 2 · Sign-in card (from teamwildcard shared/page.js, used by my., sales., admin., staff hosts).
   Markup: a main.c-auth holding div.c-auth-card (mark, h1, .c-field, .c-btn, .c-auth-sso, .c-auth-foot). */
.c-auth { min-height: 100svh; display: grid; place-items: center; padding: var(--sp-6); }
.c-auth-card { box-sizing: border-box; width: min(380px, 100%); background: var(--card); border: 1px solid var(--gold-dim); border-radius: var(--r-card); padding: 28px 22px; display: flex; flex-direction: column; gap: var(--sp-4); align-items: center; text-align: center; }
.c-auth-card h1 { font: 700 20px/1.2 var(--disp); margin: 0; text-wrap: balance; }
.c-auth-card .c-btn { width: 100%; }
.c-auth-lede { font-size: 14px; color: var(--muted); margin: -8px 0 0; }
.c-auth-sso { display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; }
.c-auth-sso a, .c-auth-sso button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; background: var(--bg); border: 1px solid var(--faint); border-radius: var(--r-btn); color: var(--white); padding: 0 14px; font: 600 15px var(--body); text-decoration: none; cursor: pointer; }
.c-auth-sso a:hover, .c-auth-sso button:hover { border-color: var(--gold-dim); }
.c-auth-foot { font-size: 12px; color: var(--muted); }
.c-field { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; font: 700 10px/1.2 var(--disp); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.c-field input, .c-field select, .c-field textarea { box-sizing: border-box; background: var(--bg); border: 1px solid var(--faint); border-radius: 10px; color: var(--white); padding: 14px 12px; font: 400 16px var(--body); letter-spacing: 0; text-transform: none; width: 100%; }
.c-field input:focus, .c-field select:focus, .c-field textarea:focus { outline: 2px solid var(--gold-dim); outline-offset: 2px; }
.c-err { color: var(--atrisk); font-size: 13px; }

/* 3 · Gold section label: .c-section-label is gold by default since 3a (above). Nothing else to add. */

/* 4 · Choice tile (from quotes .qline). A card the client switches on or off; the on state carries an inset gold bar.
   <label class="c-choice"><input type="checkbox" checked> <span class="c-choice-body">name, detail</span> <b class="c-choice-amt">$40</b></label>
   The off state follows the checkbox (:has) or the .is-off class. */
.c-choice { display: flex; align-items: flex-start; gap: 14px; background: var(--card); border: 1px solid var(--gold-dim); border-radius: 8px; padding: 16px 18px; box-shadow: inset 3px 0 0 var(--gold); cursor: pointer; transition: opacity .2s, filter .2s, box-shadow .2s; }
.c-choice input[type="checkbox"], .c-choice input[type="radio"] { width: 18px; height: 18px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.c-choice.is-off, .c-choice:has(input:not(:checked)) { opacity: .42; filter: grayscale(.4); box-shadow: none; }
.c-choice-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.c-choice-name { font: 700 16px/1.25 var(--disp); color: var(--white); }
.c-choice-detail { font-size: 13px; color: var(--muted); line-height: 1.45; }
.c-choice-amt { font: 700 16px/1.25 var(--disp); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-choice-group { background: var(--card-deep); border: 1px solid var(--gold-dim); border-radius: 10px; padding: 14px 16px 4px; }
.c-choice-group .c-choice { background: transparent; border: 0; border-top: 1px solid var(--faint); border-radius: 0; padding: 10px 0; box-shadow: none; }
.c-choice-group .c-choice:first-of-type { border-top: 0; padding-top: 0; }

/* 5 · Segment, chip, switch (from admin mission.css). All three are buttons with aria-pressed.
   <div class="c-seg"><button aria-pressed="true">Day</button><button aria-pressed="false">Week</button></div>
   <button class="c-chip" aria-pressed="false">Overdue <b>3</b></button>
   <button class="c-switch" aria-pressed="true"><i></i>Show done</button> */
.c-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--card); border: 1px solid var(--hair2); border-radius: 10px; }
.c-seg button { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 7px; font: 600 12px var(--body); color: var(--muted); white-space: nowrap; }
.c-seg button:hover { color: var(--white); }
.c-seg button[aria-pressed="true"] { background: var(--elevated); color: var(--white); box-shadow: inset 0 0 0 1px var(--gold-dim); }
.c-seg b, .c-chip b, .c-switch b { font: 700 11px var(--disp); font-variant-numeric: tabular-nums; }
.c-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--hair2); border-radius: var(--r-pill); font: 600 12px var(--body); color: var(--muted); white-space: nowrap; }
.c-chip b { color: var(--white); }
.c-chip b:empty { display: none; }
.c-chip:hover { border-color: var(--gold-dim); color: var(--white); }
.c-chip[aria-pressed="true"], .c-chip.on { border-color: var(--gold); background: var(--gold-faint); color: var(--gold-b); }
.c-chip[aria-pressed="true"] b, .c-chip.on b { color: var(--gold-b); }
.c-switch { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px; border-radius: 8px; font: 600 12px var(--body); color: var(--muted); white-space: nowrap; }
.c-switch:hover, .c-switch[aria-pressed="true"] { color: var(--white); }
.c-switch i { position: relative; flex: 0 0 auto; width: 26px; height: 14px; border-radius: var(--r-pill); background: var(--elevated); border: 1px solid var(--hair2); transition: background .15s, border-color .15s; }
.c-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--muted); transition: transform .15s, background .15s; }
.c-switch[aria-pressed="true"] i { background: var(--gold-faint); border-color: var(--gold); }
.c-switch[aria-pressed="true"] i::after { transform: translateX(12px); background: var(--gold-b); }
.c-seg button:focus-visible, .c-chip:focus-visible, .c-switch:focus-visible { outline: 2px solid var(--gold-b); outline-offset: 2px; }

/* 6 · Metal finishes: tokens.css [data-finish]. Nothing to add here. */

/* 7 · Playing cards stay dark on a light page (from quotes; four other copies retire). A card is a physical object. */
@media screen {
  html[data-theme="light"] .v3, html[data-theme="light"] .folio-wrap, html[data-theme="light"] .coin3d {
    --card: #111a1f; --card-deep: #0e1a20; --elevated: #182028;
    --white: #F0EDE6; --muted: #9A9EA8; --faint: #1e2d35;
  }
  /* Gold comes back to the dark-face values only for the default finish; a silver, rose or black client keeps its metal. */
  html[data-theme="light"]:not([data-finish]) .v3, html[data-theme="light"]:not([data-finish]) .folio-wrap, html[data-theme="light"]:not([data-finish]) .coin3d {
    --gold: #af9154; --gold-b: #c8a96e; --gold-dim: rgba(175,145,84,0.35);
  }
}

/* 8 · Swipe deck (mechanics from onboard intake; swipe.js wires the drag). One card, one yes/no answer.
   <div class="c-deck"><article class="c-swipe-card"><span class="c-stamp yes">Have</span><span class="c-stamp no">Don't have</span>…</article></div>
   <div class="c-swipe-actions"><button class="c-swipe-btn no">No</button><button class="c-swipe-btn yes">Yes</button></div> */
.c-deck { position: relative; height: 24rem; }
.c-swipe-card { position: absolute; inset: 0; background: var(--card); border: 1px solid var(--gold-dim); border-radius: var(--r-card); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.4rem; touch-action: pan-y; cursor: grab; user-select: none; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s ease; }
.c-swipe-card:active { cursor: grabbing; }
.c-swipe-card.leaving-yes { transform: translate(140%,-8%) rotate(18deg); opacity: 0; }
.c-swipe-card.leaving-no { transform: translate(-140%,-8%) rotate(-18deg); opacity: 0; }
.c-swipe-card.is-back { transform: scale(.94) translateY(10px); opacity: .6; pointer-events: none; }
.c-swipe-q { font: 700 24px/1.25 var(--disp); text-wrap: balance; margin: 0 0 .6rem; }
.c-stamp { position: absolute; top: 1.4rem; font: 800 15px/1 var(--disp); letter-spacing: .04em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 6px; border: 2.5px solid; transform: rotate(-8deg); opacity: 0; transition: opacity .12s; }
.c-stamp.yes { right: 1.3rem; color: var(--protected); }
.c-stamp.no { left: 1.3rem; color: var(--atrisk); transform: rotate(8deg); }
.c-swipe-actions { display: flex; gap: .8rem; margin-top: var(--sp-4); }
.c-swipe-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; border-radius: var(--r-btn); border: 1.5px solid var(--faint); background: var(--card); color: var(--white); font: 600 15px var(--body); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.c-swipe-btn:active { transform: scale(.97); }
.c-swipe-btn.no:hover { border-color: var(--atrisk); color: var(--atrisk); background: color-mix(in srgb, var(--atrisk) 8%, transparent); }
.c-swipe-btn.yes:hover { border-color: var(--protected); color: var(--protected); background: color-mix(in srgb, var(--protected) 8%, transparent); }
@media (prefers-reduced-motion: reduce) { .c-swipe-card, .c-stamp { transition: none; } }

/* 9 · Coin state loader stage (from onboard_ui). The coin itself is mark.js WildcardMark.coin + .coin3d above:
   steel while the system works, gilt when the client has earned it. The flip is the success message.
   <div class="c-coin-stage"><div class="c-coin-shadow"></div><div class="c-coin-ground"></div><div id="coinHost"></div></div> */
.c-coin-stage { perspective: 1000px; display: grid; place-items: center; height: 9.5rem; width: 100%; margin: 0 auto 1.75rem; position: relative; }
.c-coin-ground { position: absolute; bottom: .9rem; width: 7rem; height: 1rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(175,145,84,.3), rgba(175,145,84,0)); pointer-events: none; }
.c-coin-shadow { position: absolute; bottom: 1.1rem; width: 5.5rem; height: .9rem; border-radius: 50%; background: rgba(0,0,0,.65); filter: blur(9px); }

/* 10 · Type and spacing scale: tokens.css (--fs-*, --sp-*, --r-*). */

/* 11 · Compact button for dense tables (from portal .adm-btn). Same button, 30px. */
.c-btn.is-sm { height: var(--btn-h-sm); padding: var(--btn-pad-sm); font: var(--btn-font-sm); border-radius: var(--btn-r-sm); gap: 6px; box-shadow: none; }
/* Quiet: a text-weight action beside other buttons (Hide, Skip). Same geometry, no fill, no border. */
.c-btn.is-quiet { color: var(--muted); background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.c-btn.is-quiet:hover { color: var(--white); border-color: var(--hair2); filter: none; box-shadow: none; }
/* Paper: the ghost twin on a paper page (proposals, documents), drawn in the paper tokens. */
.c-btn.is-paper { color: var(--paper-ink); background: var(--paper-face); border-color: var(--paper-line-2); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.c-btn.is-paper:hover { border-color: var(--paper-gold-b); filter: none; box-shadow: none; }
/* Disabled: every variant, one rule. */
.c-btn:disabled, .c-btn[aria-disabled="true"], .c-icon-btn:disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; box-shadow: none; }
/* Icon button: a round hairline control holding one icon (close, menu, play, theme). */
.c-icon-btn { display: inline-grid; place-items: center; width: var(--btn-icon); height: var(--btn-icon); padding: 0; border-radius: var(--r-pill); border: 1px solid var(--hair2); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.c-icon-btn:hover { color: var(--gold-b); border-color: var(--gold-dim); }
.c-icon-btn svg { width: 18px; height: 18px; }
.c-icon-btn:focus-visible, .c-btn:focus-visible { outline: 2px solid var(--gold-b); outline-offset: 2px; }
.c-btn.is-sm.is-ghost { box-shadow: none; }

/* 12 · Fluid hero heading (from teamwildcard global.css). Fits the longest word at 360px; set --h1-max per page. */
.c-hero-h1 { font-family: var(--disp); font-weight: 800; line-height: 1.04; font-size: clamp(28px, 8.4vw, var(--h1-max, 44px)); overflow-wrap: normal; word-break: normal; hyphens: manual; text-wrap: balance; margin: 0; }
.c-hero-h1 em { font-style: normal; color: var(--gold); }

/* =================================================================================================
   PROMOTED 2026-11-15 (nav parts, Alex decisions 10a and 11a: every UI component lives in the package,
   so a change here reaches every site). Three parts moved out of teamwildcard.ca with no visual change.
   ================================================================================================= */

/* 13 · Coin button (10a). One round control in two finishes: .is-gold (the play coin, from teamwildcard Header
   .nav-cta) and .is-glass (the Guide coin, from DocsLayout .dguide-btn). Size is --coin-size (default 40px). The glow
   and glass values are --coin-* in tokens.css. .is-bare drops the finish and keeps only the face (the dock's centre
   while it shows reading progress). It works on a link or a button; put the face svg inside and a label on it. */
.c-coin-btn { box-sizing: border-box; display: grid; place-items: center; flex: none; width: var(--coin-size); height: var(--coin-size); margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; text-decoration: none; cursor: pointer; transition: box-shadow .25s, background .2s, color .15s, border-color .15s; }
.c-coin-btn svg { display: block; }
.c-coin-btn:focus-visible { outline: 2px solid var(--gold-b); outline-offset: 2px; }
.c-coin-btn.is-gold { color: var(--coin-gold-ink); background: var(--folio-gradient), var(--gold); box-shadow: var(--coin-gold-glow); }
.c-coin-btn.is-gold:hover { background: var(--folio-gradient), var(--gold-b); box-shadow: var(--coin-gold-glow-hover); }
@media (max-width: 940px) { .c-coin-btn.is-gold { box-shadow: var(--coin-gold-glow-sm); } .c-coin-btn.is-gold:hover { box-shadow: var(--coin-gold-glow-hover); } }
.c-coin-btn.is-glass { color: var(--muted); background: var(--coin-glass-bg); border: 1px solid var(--coin-glass-border); box-shadow: var(--coin-glass-shadow); -webkit-backdrop-filter: blur(var(--coin-glass-blur)); backdrop-filter: blur(var(--coin-glass-blur)); }
.c-coin-btn.is-glass:hover { color: var(--gold-b); border-color: var(--gold-dim); }
.c-coin-btn.is-bare, .c-coin-btn.is-bare:hover { background: none; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
@media (prefers-reduced-motion: reduce) { .c-coin-btn { transition: none; } }

/* 14 · Phone dock (11a, from teamwildcard SiteDock). dock.js builds it from a JSON config: tabs either side of a centre
   coin, each tab a link or an action. The frame is the glass bar; the centre is a .c-coin-btn.is-glass that pulses and,
   with the phone menu open, turns gold and spins its face. A host adds its own rows and sheets through the config's
   templates. The tabs and the grid are phone only (940px and under); a host hides or re-places the dock above that. */
.c-dock-edge { padding: 1px; background: var(--folio-gradient); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.c-dock-glass { display: block; background: linear-gradient(170deg, rgba(17,30,37,.92), rgba(11,20,25,.88)); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); position: relative; overflow: hidden; }
.c-dock-glass::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 50% 0%, rgba(175,145,84,.12), transparent 60%); pointer-events: none; }
html[data-theme="light"] .c-dock-glass { background: linear-gradient(170deg, rgba(255,255,255,.94), rgba(241,237,228,.92)); }
html[data-theme="light"] .c-dock-edge { box-shadow: 0 18px 44px rgba(40,32,12,.18); }
.c-dock { position: fixed; left: 50%; bottom: var(--dock-bot); transform: translateX(-50%); z-index: 220; width: min(480px, calc(100vw - 24px)); display: flex; flex-direction: column; align-items: center; }
/* the bar does not clip: a coin tossed up out of the dock would be cut off at the bar edge */
.c-dock-bar { position: relative; width: 100%; border-radius: 32px; }
.c-dock-bar > .c-dock-glass { border-radius: 31px; overflow: visible; }
html[data-theme="light"] .c-dock-bar { box-shadow: 0 18px 44px rgba(40,32,12,.2); }
.c-dock-grid { position: relative; }
.c-dock-nav { display: contents; }
.c-dock-face { display: grid; place-items: center; }
.c-dock-face svg { display: block; }
button.c-dock-tab { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.c-dock-tab:focus-visible { outline: 2px solid var(--gold-b); outline-offset: 2px; }
@media (max-width: 940px) {
  .c-dock-bar { box-shadow: 0 18px 44px rgba(0,0,0,.55); }
  html[data-theme="light"] .c-dock-bar { box-shadow: 0 18px 44px rgba(40,32,12,.2); }
  .c-dock-grid { display: grid; grid-template-columns: repeat(var(--dock-l, 2), 1fr) 72px repeat(var(--dock-r, 2), 1fr); align-items: center; padding: 4px 6px; }
  .c-dock-tab, .c-dock-coin { grid-row: var(--dock-row, 1); }
  .c-dock-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; color: var(--muted); text-decoration: none; border-radius: 16px; transition: color .2s; -webkit-tap-highlight-color: transparent; }
  .c-dock-tab svg { width: 22px; height: 22px; display: block; }
  .c-dock-tab span { font-family: var(--disp); font-size: 9px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; line-height: 1; }
  .c-dock-tab:hover, .c-dock-tab:active { color: var(--white); }
  .c-dock-tab[aria-current="page"] { color: var(--gold-b); }
  .c-dock-tab[aria-current="page"]::after { content: ''; position: absolute; top: 2px; left: 50%; width: 14px; height: 2px; margin-left: -7px; border-radius: 2px; background: var(--gold-b); box-shadow: 0 0 8px rgba(240,205,130,.6); }
  .c-dock-coin { --coin-size: 56px; --coin-glass-bg: color-mix(in srgb, var(--card) 85%, transparent); --coin-glass-border: var(--gold-dim); justify-self: center; }
  .c-dock-coin.is-glass:not(.is-bare) { box-shadow: 0 0 0 0 rgba(175,145,84,.3); -webkit-backdrop-filter: none; backdrop-filter: none; animation: c-dock-pulse 3.2s ease-in-out infinite; }
  .c-dock-coin .c-dock-face svg { transition: transform .45s cubic-bezier(.3,1.6,.4,1); }
  body.menu-open .c-dock-coin:not(.is-bare) { border-color: var(--gold); animation: none; }
  body.menu-open .c-dock-coin .c-dock-face svg { transform: rotate(135deg); }
  @keyframes c-dock-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(175,145,84,.3); } 50% { box-shadow: 0 0 0 9px rgba(175,145,84,0); } }
  /* page content never hides behind the dock */
  body:has(.c-dock) { padding-bottom: calc(var(--dock-top) + 24px); }
}
@media (prefers-reduced-motion: reduce) { .c-dock-coin, .c-dock-coin .c-dock-face svg { animation: none !important; transition: none !important; } }

/* 15 · Phone menu, "the deck" (locked design, brain memory/tasks/brand/deck-menu.md; from teamwildcard Header). A hand of
   .v3 cards fanned above the dock, four glass action circles arcing out either side, a scrim behind. deck-menu.js builds
   it from JSON and runs the swipe, flip, deal, keyboard and reduced-motion behaviour. State is body.menu-open. The dock
   centre opens it. Phone only (940px and under). */
.c-deck-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(6,10,12,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
body.menu-open .c-deck-scrim { opacity: 1; pointer-events: all; }
body.menu-open { overflow: hidden; }
.c-deck-menu, .c-deck-acts { display: none; }
.c-deck-menu { position: fixed; inset: 0; z-index: 205; pointer-events: none; touch-action: none; }
body.menu-open .c-deck-menu { pointer-events: auto; }
.c-deck-hand { position: absolute; inset: 0; touch-action: none; }
.c-deck-card { position: absolute; left: 50%; bottom: calc(var(--dock-top) + 46px); width: 124px; height: 174px; margin-left: -62px; touch-action: none; transform-origin: 50% 100%; cursor: pointer; will-change: transform, opacity; opacity: 0; }
.c-deck-card .v3 { pointer-events: none; }
/* the current-card label sits on its own glass plate so page content behind the scrim never shows through the words */
.c-deck-now { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 48px); bottom: calc(var(--dock-top) + 248px); text-align: center; padding: 10px 20px 12px; border-radius: 18px; background: rgba(11,20,25,.94); border: 1px solid var(--gold-dim); box-shadow: 0 12px 32px rgba(0,0,0,.55); opacity: 0; transition: opacity .5s; pointer-events: none; }
body.menu-open .c-deck-now { opacity: 1; }
.c-deck-now b { display: block; font-family: var(--disp); font-size: 16px; font-weight: 700; color: var(--white); }
.c-deck-now small { display: block; margin-top: 8px; font-family: var(--disp); font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.c-deck-pips { display: flex; gap: 6px; justify-content: center; margin-top: 9px; }
.c-deck-pips i { width: var(--deck-pip, 0px); height: var(--deck-pip, 0px); border-radius: 50%; background: var(--faint); transition: background .2s, transform .2s; }
.c-deck-pips i.on { background: var(--gold-b); transform: scale(1.35); }
/* the actions: a glass circle with the glyph at about 58% of it, label under. They arc out and up on reveal; flattening that arc kills the feel. */
.c-deck-acts { position: fixed; inset: 0; z-index: 210; pointer-events: none; }
.c-deck-act { position: absolute; bottom: calc(var(--dock-top) + 12px); left: 50%; margin-left: -22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, rgba(240,237,230,.17), rgba(175,145,84,.15) 55%, rgba(240,237,230,.05)); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); border: 1px solid rgba(240,237,230,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -10px 22px -14px rgba(0,0,0,.9), 0 6px 18px rgba(0,0,0,.5); text-decoration: none; transform: translate(0, 4px) scale(.4); opacity: 0; pointer-events: none; transition: transform .84s cubic-bezier(.25,1.35,.35,1), opacity .52s, border-color .25s; }
body.menu-open .c-deck-act { opacity: 1; pointer-events: auto; }
body.menu-open .c-deck-act.is-l2 { transform: translate(-126px, -52px); transition-delay: .24s; }
body.menu-open .c-deck-act.is-l1 { transform: translate(-76px, -14px); transition-delay: .1s; }
body.menu-open .c-deck-act.is-r1 { transform: translate(76px, -14px); transition-delay: .1s; }
body.menu-open .c-deck-act.is-r2 { transform: translate(126px, -52px); transition-delay: .24s; }
.c-deck-act:hover { border-color: var(--gold-dim); }
.c-deck-act:focus-visible { outline: 2px solid var(--gold-b); outline-offset: 3px; }
.c-deck-act svg { width: 28px; height: 28px; display: block; color: var(--gold-b); }
.c-deck-lbl { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; font-family: var(--disp); font-size: 6px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--gold-b); opacity: .7; white-space: nowrap; line-height: 1; }
/* The Joker and the reading cards (Blog, Glossary, Docs). The frame is .v3 above; these are the faces the deck deals. */
.c-deck-menu .v3 .jq { z-index: 5; font-family: var(--disp); font-weight: 900; font-size: calc(var(--card-w) * .62); line-height: .9; color: var(--gold-b); letter-spacing: -.04em; text-shadow: 0 0 calc(var(--card-w) * .12) rgba(200,169,110,.35); }
.c-deck-menu .v3 .suit.jk { align-items: center; gap: calc(var(--card-w) * .02); }
.c-deck-menu .v3 .jq.gx { font-size: calc(var(--card-w) * .3); letter-spacing: -.02em; white-space: nowrap; }
.c-deck-menu .v3 .bt { z-index: 5; margin: 0 calc(var(--card-w) * .16); font-family: var(--disp); font-weight: 700; font-size: calc(var(--card-w) * .085); line-height: 1.2; color: var(--white); text-align: center; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.c-deck-menu .v3 .suit.jk .q { font-size: calc(var(--v3-suit) * 1.25); font-weight: 900; line-height: 1; }
.c-deck-menu .v3 .suit.jk .w { display: flex; flex-direction: column; font-size: calc(var(--card-w) * .03); font-weight: 800; letter-spacing: 0; line-height: 1.05; opacity: .75; }
/* Story is the locked card back; the mark inside it runs live. */
.c-deck-menu .morphwrap { position: relative; z-index: 5; display: grid; place-items: center; }
.c-deck-menu .morph { position: relative; width: 100%; height: 100%; color: var(--gold-b); filter: drop-shadow(0 0 4px rgba(175,145,84,.45)); }
.c-deck-menu .morph .plinth { transform-origin: 50% 50%; animation: c-deck-plinth 2.1s ease-in-out infinite; }
@keyframes c-deck-plinth { 0%, 100% { opacity: .62; transform: scaleX(.9); } 42% { opacity: 1; transform: scaleX(1.16); } 72% { opacity: .8; transform: scaleX(1); } }
/* the six core animals, laid out as a six card's pips */
.c-deck-menu .world { z-index: 5; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center; width: 74px; height: 114px; pointer-events: none; }
.c-deck-menu .world img { width: 22px; height: auto; display: block; animation-iteration-count: infinite; animation-direction: alternate; animation-timing-function: ease-in-out; }
.c-deck-menu .world img.d0 { animation-name: c-deck-drift0; }
.c-deck-menu .world img.d1 { animation-name: c-deck-drift1; }
.c-deck-menu .world img.d2 { animation-name: c-deck-drift2; }
@keyframes c-deck-drift0 { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-7%) rotate(3deg); } }
@keyframes c-deck-drift1 { from { transform: translate(0,0) rotate(2deg); } to { transform: translate(-4%,-5%) rotate(-3deg); } }
@keyframes c-deck-drift2 { from { transform: translateY(2%) scale(.96); } to { transform: translateY(-5%) scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .c-deck-scrim { transition: none; }
  .c-deck-act, .c-deck-now { transition: none; }
  .c-deck-menu .world img, .c-deck-menu .morph .plinth { animation: none; }
}
@media (max-width: 940px) { .c-deck-menu, .c-deck-acts { display: block; } }

/* =================================================================================================
   ROUND 6-7 (Alex 2026-11-15: every UI component lives in the package; he picked each look from drawn options).
   Each section names the source its look was lifted from. Local copies in the sites retire; a site may only
   place these (width, margin, order, flex), never restyle them. brand-check --components fails a build that does.
   ================================================================================================= */

/* 16 · Eyebrow (12d). Lifted from teamwildcard src/pages/glossary/[slug].astro .glp-eyebrow: Tomorrow 10px 700, 3px
   tracking, gold, a 40px rule after the words. .is-plain drops the rule (a centred hero, where a trailing rule
   would push the words off centre). */
.c-eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.c-eyebrow::after { content: ''; width: 40px; height: 1px; background: var(--gold-dim); }
.c-eyebrow.is-plain { display: block; }
.c-eyebrow.is-plain::after { display: none; }

/* 17 · Badge (13b). Lifted from teamwildcard src/pages/pricing/index.astro .fairplay-pill: a static gold tag with a hairline
   border. Status variants take the status tokens. Interactive filters stay .c-chip. .c-pill is an alias of it. */
.c-badge, .c-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--disp); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 6px; padding: 5px 12px; }
.c-badge b, .c-badge strong { font-weight: inherit; }
.c-badge.is-muted { color: var(--muted); border-color: var(--faint); }
.c-badge.is-ok { color: var(--protected); border-color: color-mix(in srgb, var(--protected) 45%, transparent); }
.c-badge.is-warn { color: var(--exposed); border-color: color-mix(in srgb, var(--exposed) 45%, transparent); }
.c-badge.is-bad { color: var(--atrisk); border-color: color-mix(in srgb, var(--atrisk) 45%, transparent); }

/* 18 · FAQ (14b). Lifted from teamwildcard src/components/ProductFAQ.astro: a details list, two columns on wide screens,
   tap to open. The bullet is the plain WILDCARD mark (mark.js bare state), never a text glyph. Markup: a .c-faq list of
   .c-faq-item details, each summary holding a .c-faq-mark svg (viewBox 0 0 40 40, the bare mark) then the question, then
   a p with the answer. .is-single keeps one column at any width (an article body). */
.c-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 40px; }
.c-faq-item { border-bottom: 1px solid var(--faint); padding: 18px 0; }
.c-faq-item summary { cursor: pointer; display: flex; align-items: flex-start; gap: 10px; font-family: var(--disp); font-size: 14px; font-weight: 700; color: var(--white); list-style: none; }
.c-faq-item summary::-webkit-details-marker { display: none; }
.c-faq-mark { width: 14px; height: 14px; margin-top: 2px; flex: none; color: var(--gold); transition: color .2s; }
.c-faq-item[open] .c-faq-mark { color: var(--gold-b); }
.c-faq-item p { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 10px 0 0; padding-left: 24px; }
.c-faq.is-single { grid-template-columns: 1fr; gap: 0; }
@media (max-width: 768px) { .c-faq { grid-template-columns: 1fr; gap: 0; } }

/* 19 · Notice (15a). Lifted from teamwildcard edge/public/portal.css .adm-notice: a card with a hairline border; the
   status variants take the status tokens for the outline. Markup: a div with class c-notice and one of is-ok, is-warn,
   is-bad, is-info. */
.c-notice { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; font-size: .82rem; border: 1px solid var(--hair2); background: var(--card); color: var(--white); }
.c-notice.is-ok { border-color: color-mix(in srgb, var(--protected) 55%, transparent); }
.c-notice.is-warn { border-color: color-mix(in srgb, var(--exposed) 55%, transparent); }
.c-notice.is-bad { border-color: color-mix(in srgb, var(--atrisk) 55%, transparent); }
.c-notice.is-info { border-color: var(--gold-dim); }

/* 20 · Modal (16c). A bottom sheet on phones (under 720px wide: full width, slides up, grab handle, rounded top) and a
   centred card above that (gold hairline border, radius 14px, 460px wide). modal.js opens and closes it: Escape, a
   click on the scrim, focus return and scroll lock. The scrim holds the modal and carries the id; any element with
   data-modal-open set to that id opens it, any element inside with data-modal-close shuts it. Markup: a .c-modal-scrim
   with the id and the hidden attribute, holding a .c-modal (role dialog, aria-modal true, aria-labelledby) that holds
   a .c-icon-btn.c-modal-close button then the content. */
.c-modal-scrim { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); background: rgba(5,8,9,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.c-modal-scrim.is-open { opacity: 1; }
.c-modal-scrim[hidden] { display: none; }
.c-modal { position: relative; box-sizing: border-box; width: min(460px, 100%); max-height: 88vh; overflow-y: auto; background: var(--bg); color: var(--white); border: 1px solid var(--gold-dim); border-radius: 14px; padding: 44px 28px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.5); outline: none; }
.c-modal-close { position: absolute; top: 12px; right: 12px; }
@media (max-width: 719px) {
  .c-modal-scrim { align-items: flex-end; padding: 0; }
  .c-modal { width: 100%; max-height: 92vh; border-width: 1px 0 0; border-radius: 20px 20px 0 0; padding: 28px 20px calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
  .c-modal-scrim.is-open .c-modal { transform: none; }
  .c-modal::before { content: ''; display: block; width: 40px; height: 4px; margin: -14px auto 18px; border-radius: 999px; background: var(--faint); }
}
@media (prefers-reduced-motion: reduce) { .c-modal-scrim, .c-modal { transition: none; } }

/* 21 · Tabs (17a). Lifted from teamwildcard src/components/StoreShell.astro .store-tabs / .store-tab: Tomorrow 11px 700,
   uppercase, muted; the open tab takes a 2px gold underline and gold text (.on, aria-current or aria-selected).
   Works on a link or a button. Markup: a .c-tabs row of .c-tab links or buttons. */
.c-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.c-tabs::-webkit-scrollbar { display: none; }
.c-tab { box-sizing: border-box; appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin: 0; font-family: var(--disp); font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; line-height: normal; text-decoration: none; color: var(--muted); padding: 16px 12px; white-space: nowrap; cursor: pointer; }
.c-tab:hover { color: var(--white); }
.c-tab.on, .c-tab[aria-current]:not([aria-current="false"]), .c-tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.c-tab:focus-visible { outline: 2px solid var(--gold-b); outline-offset: -2px; }

/* ================================================================================================
   PROMOTED 2026-11-15 (second pass: twelve more components lifted from the teamwildcard sites).
   Each section names the file(s) its look was lifted from. Tokens only; the few literals that
   have no token (14px card radius, 22px/13px/14px type, 56px empty padding, black shadows) are
   kept exactly as the source drew them. Light mode follows from the tokens.
   ================================================================================================= */

/* 1 · Promo: the gold-framed CORE callout. Lifted from src/pages/index.astro (.core-callout and parts).
   A 1.5px folio-gradient frame around a card; icon and name on the left, price on the right. */
.c-promo { background: var(--folio-gradient); padding: 1.5px; border-radius: var(--r-card); }
.c-promo-inner { background: var(--card); border-radius: calc(var(--r-card) - 1.5px); padding: 40px var(--sp-8); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.c-promo-left { display: flex; align-items: center; gap: var(--sp-5); }
.c-promo-icon { font-size: 40px; line-height: 1; }
.c-promo-name { font-family: var(--disp); font-size: 22px; font-weight: 900; color: var(--white); line-height: 1; margin-bottom: var(--sp-1); }
.c-promo-sub { font-size: 14px; color: var(--muted); }
.c-promo-price { font-family: var(--disp); font-size: var(--fs-title); font-weight: 800; color: var(--gold-b); white-space: nowrap; }
.c-promo-unit { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--muted); }
@media (max-width: 600px) { .c-promo-inner { flex-direction: column; align-items: flex-start; } }

/* 2 · Tier card: a pricing plan. Lifted from src/pages/pricing/index.astro (.tier-grid, .tier-card and parts).
   .is-featured wraps its content in .c-tier-inner and takes the folio-gradient frame. */
.c-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: stretch; }
.c-tier-card { background: var(--card); border: 1px solid var(--faint); border-radius: 14px; padding: 28px 26px; display: flex; flex-direction: column; }
.c-tier-card.is-featured { background: var(--folio-gradient); padding: 1.5px; }
.c-tier-card.is-featured .c-tier-inner { background: var(--card-deep); border-radius: 12.5px; padding: 26.5px 24.5px; height: 100%; display: flex; flex-direction: column; }
.c-tier-eyebrow { font-family: var(--disp); font-size: var(--fs-label); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.c-tier-name { font-family: var(--disp); font-size: 22px; font-weight: 900; color: var(--white); margin-bottom: 6px; }
.c-tier-price { font-family: var(--disp); font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: var(--sp-1); }
.c-tier-unit { font-family: var(--body); font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.c-tier-sub { font-size: var(--fs-small); color: var(--muted); margin-bottom: var(--sp-5); }
.c-tier-features { list-style: none; margin: 0 0 var(--sp-6); padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.c-tier-features li { font-size: 13px; color: var(--white); padding-left: var(--sp-5); position: relative; line-height: 1.4; }
.c-tier-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.c-tier-cta { display: flex; width: 100%; }
.c-tier-footnote { font-size: var(--fs-fine); color: var(--muted); line-height: 1.5; margin: 14px 0 0; text-align: center; }
@media (max-width: 920px) { .c-tier-grid { grid-template-columns: 1fr; } }

/* 3 · Product card: a store item. Lifted from src/components/StoreShell.astro (.store-grid, .store-card and parts).
   The card is a link (or any block); the media square holds an image or the type glyph. */
.c-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.c-product-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--faint); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.c-product-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.c-product-media { aspect-ratio: 1 / 1; background: var(--card-deep); display: grid; place-items: center; padding: 22px; }
.c-product-media img { width: 100%; height: 100%; object-fit: contain; }
.c-product-glyph { font-family: var(--disp); font-size: var(--fs-fine); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dim); text-align: center; }
.c-product-body { padding: var(--sp-4) 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.c-product-type { font-family: var(--disp); font-size: var(--fs-label); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.c-product-name { font-family: var(--disp); font-size: var(--fs-body); font-weight: 700; line-height: 1.3; }
.c-product-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: var(--sp-2); }
.c-product-amount { font-family: var(--disp); font-size: 18px; font-weight: 800; color: var(--white); }
.c-product-msrp { font-size: var(--fs-small); color: var(--muted); text-decoration: line-through; }
.c-product-cur { font-size: var(--fs-fine); color: var(--muted); letter-spacing: 1px; }
@media (max-width: 1000px) { .c-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .c-product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); } }
@media (max-width: 440px) { .c-product-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .c-product-card { transition: none; } .c-product-card:hover { transform: none; } }

/* 4 · Breadcrumbs. Lifted from src/layouts/DocsLayout.astro (.dcrumbs); same shape as the glossary (.glp-crumbs),
   blog (.blp-crumbs), store (.pd-crumb in src/pages/store/[id].astro) and admin analytics (.an-crumb, admin/public/analytics.css).
   The sticky glass strip and the bottom margin stay with the page that wants them. */
.c-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); font-size: 13px; color: var(--muted); }
.c-crumbs a { color: var(--muted); text-decoration: none; transition: color .15s; }
.c-crumbs a:hover { color: var(--gold); }
.c-crumbs-sep { color: var(--gold-dim); }
.c-crumbs-cur { color: var(--white); }

/* 5 · Skeleton, loading and empty. Lifted from staff/public/sales/sales.css (.sk, .loading, .empty: the copy that
   already uses tokens); same shape in staff/public/content/content.css, staff/public/board/board.css, work/lib/dash.js and
   work/lib/render.js (.empty), edge/public/portal.css (.adm-empty, .team-empty) and admin/public/mission.css (.mc-empty, .mc-none). */
.c-skeleton { display: block; height: 12px; width: 100%; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--hair), var(--faint), var(--hair)); background-size: 200% 100%; animation: c-shimmer 1.6s linear infinite; }
.c-skeleton.is-short { width: 60%; margin-top: var(--sp-2); }
@keyframes c-shimmer { to { background-position: -200% 0; } }
.c-loading { padding: 40px var(--sp-4); max-width: 480px; }
.c-empty { color: var(--muted); font-size: 13px; padding: 14px; margin: 0; border: 1px dashed var(--faint); border-radius: 10px; }
.c-empty.is-plain { border: 0; padding: var(--sp-5) 0; }
.c-empty.is-card { display: grid; gap: var(--sp-2); justify-items: center; padding: 56px var(--sp-5); text-align: center; font-size: 14px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-card); }
.c-empty-title { margin: 0; font-family: var(--disp); font-size: 18px; font-weight: 700; color: var(--white); }
.c-empty.is-card .c-btn { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .c-skeleton { animation: none; } }

/* 6 · Toast: a fixed bottom-centre message. Lifted from admin/public/mission.css (.mc-toasts, .mc-toast, .is-err), the
   most complete of the copies; same look in edge/public/portal.css (.toast) and staff/public/content/content.css (.toast).
   .is-bad is the source's error stripe. A site that sits it above a bar sets --toast-bot; .is-docked clears the phone dock.
   .c-toasts is the optional stack holder (it also works as a popover). */
.c-toast { position: fixed; left: 50%; bottom: var(--toast-bot, calc(var(--sp-6) + env(safe-area-inset-bottom, 0px))); transform: translateX(-50%); z-index: 400; box-sizing: border-box; width: max-content; max-width: min(calc(100vw - 32px), 420px); display: flex; align-items: center; gap: var(--sp-3); padding: 11px var(--sp-4); border-radius: 12px; background: var(--white); color: var(--bg); font: 600 13.5px/1.4 var(--body); text-align: center; box-shadow: 0 12px 32px color-mix(in srgb, var(--bg) 60%, transparent); }
.c-toast.is-bad { box-shadow: inset 4px 0 0 var(--exposed), 0 12px 32px color-mix(in srgb, var(--bg) 60%, transparent); }
.c-toast.is-docked { --toast-bot: calc(var(--dock-top) + var(--sp-3)); }
.c-toast a { color: var(--bg); font-weight: 700; white-space: nowrap; }
.c-toasts { position: fixed; inset: auto auto var(--toast-bot, calc(var(--sp-6) + env(safe-area-inset-bottom, 0px))) 50%; transform: translateX(-50%); z-index: 70; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; display: grid; gap: var(--sp-2); justify-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.c-toasts .c-toast { position: static; transform: none; pointer-events: auto; }
@media (max-width: 720px) { .c-toast a { display: inline-flex; align-items: center; min-height: 44px; } }

/* 7 · Search: an input with a magnifier. Lifted from edge/public/portal.css (.adm-find, the only copy that draws a
   magnifier); the other copies are the same input without one: src/pages/glossary/index.astro (.glx-search),
   staff/public/sales/sales.css and staff/public/content/content.css (.search). The wrapper is a label or div, never the input. */
.c-search { position: relative; display: block; width: 300px; max-width: 100%; }
.c-search::before { content: ''; position: absolute; left: var(--sp-3); top: 50%; width: 12px; height: 12px; margin-top: -7px; border: 1.6px solid var(--muted); border-radius: var(--r-pill); box-sizing: border-box; }
.c-search::after { content: ''; position: absolute; left: 21px; top: 50%; width: 6px; height: 1.6px; margin-top: 2.5px; background: var(--muted); transform: rotate(45deg); transform-origin: left center; }
.c-search input { box-sizing: border-box; width: 100%; height: 38px; background: var(--card); border: 1px solid var(--hair2); border-radius: 10px; color: var(--white); padding: 0 var(--sp-3) 0 32px; font: 13.5px var(--body); }
.c-search input::placeholder { color: var(--muted); }
.c-search input:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px var(--gold-faint); }
.c-search.is-wide { width: 100%; max-width: 520px; }
@media (max-width: 719px) { .c-search input { font-size: 16px; } }

/* 8 · Avatar: round initials or a picture. Lifted from edge/public/portal.css (.av, the account avatar: 36px, gold ring)
   and (.adm-av, the small one: 28px, hair ring); the same disc in staff (.me-ini, .me-av in staff/public/sales/sales.css).
   Size is --av (default 36px). Make it a button or link and it gets the pointer and focus ring. */
.c-avatar { --av: 36px; display: inline-grid; place-items: center; flex: 0 0 auto; box-sizing: border-box; width: var(--av); height: var(--av); padding: 0; border-radius: var(--r-pill); background: var(--elevated); border: 1px solid var(--gold-dim); color: var(--gold-b); font-family: var(--disp); font-size: var(--fs-lede); font-weight: 700; line-height: 1; overflow: hidden; }
.c-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-avatar.is-sm { --av: 28px; border-color: var(--hair2); font-size: var(--fs-fine); letter-spacing: .04em; }
.c-avatar.is-lg { --av: 48px; font-size: 24px; }
button.c-avatar, a.c-avatar { cursor: pointer; }
.c-avatar:focus-visible { outline: 2px solid var(--gold-b); outline-offset: 3px; }

/* 9 · Step dots: one round dot per step, current and done states. Lifted from edge/join-page.js (.sdots, .sd; the copy
   that uses --on-gold); same in edge/public/portal.css. A dot holds a small svg or a short glyph. */
.c-dots { display: flex; gap: 6px; justify-content: center; align-items: center; }
.c-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-pill); border: 1px solid var(--faint); color: var(--muted); font-style: normal; }
.c-dot svg { width: 13px; height: 13px; fill: currentColor; display: block; }
.c-dot.is-cur { border-color: var(--gold-dim); color: var(--gold-b); }
.c-dot.is-on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.c-dots.is-sm .c-dot { width: 22px; height: 22px; }

/* 10 · App bar: the top bar of the staff, work and admin pages. Lifted from work/lib/frame.js (.bar, .bar-in, .brand,
   .nav, .stamp; identical to staff/public/sales/sales.css and staff/public/content/content.css); .is-tabs is the underline
   tab form from edge/public/portal.css (.adm-bar, .adm-tabs, .adm-me, .adm-who). The theme switch inside it is the package's
   own .c-theme; the account disc is .c-avatar. Height and width are --appbar-h and --appbar-w (56px, 1440px). */
.c-appbar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--hair); }
.c-appbar-in { height: var(--appbar-h, 56px); max-width: var(--appbar-w, 1440px); margin: 0 auto; padding: 0 var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); }
.c-appbar-brand { display: flex; align-items: center; flex: 0 0 auto; gap: var(--sp-2); text-decoration: none; color: var(--white); font-family: var(--disp); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.c-appbar-brand svg { width: 24px; height: 24px; fill: var(--gold-b); }
.c-appbar-nav { display: flex; gap: 2px; margin-left: auto; }
.c-appbar-nav a { text-decoration: none; color: var(--muted); padding: 7px 10px; border-radius: 7px; font-size: 13px; white-space: nowrap; transition: color .15s; }
.c-appbar-nav a:hover { color: var(--white); }
.c-appbar-nav a.on, .c-appbar-nav a[aria-current="page"] { color: var(--white); background: var(--card); }
.c-appbar-nav a:focus-visible { outline: 2px solid var(--gold-b); outline-offset: -2px; }
.c-appbar-acct { position: relative; display: flex; align-items: center; flex: 0 0 auto; gap: var(--sp-3); min-width: 0; }
.c-appbar-stamp { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.c-appbar-who { display: flex; flex-direction: column; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.15; font-size: var(--fs-small); color: var(--white); }
.c-appbar-who i { font-style: normal; font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.c-appbar-menu { position: absolute; right: 0; top: 42px; z-index: 40; min-width: 240px; padding: var(--sp-2); border-radius: 14px; background: var(--elevated); border: 1px solid var(--hair); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.c-appbar-menu[hidden] { display: none; }
.c-appbar-menu .c-btn { width: 100%; justify-content: flex-start; }
.c-appbar.is-tabs .c-appbar-in { --appbar-h: 64px; --appbar-w: 1280px; gap: 28px; }
.c-appbar.is-tabs .c-appbar-nav { height: 100%; min-width: 0; margin-left: 0; gap: var(--sp-1); overflow-x: auto; scrollbar-width: none; }
.c-appbar.is-tabs .c-appbar-nav a { display: flex; align-items: center; padding: 0 var(--sp-3); border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.c-appbar.is-tabs .c-appbar-nav a.on, .c-appbar.is-tabs .c-appbar-nav a[aria-current="page"] { background: none; border-bottom-color: var(--gold-b); }
.c-appbar.is-tabs .c-appbar-acct { margin-left: auto; }
@media (max-width: 860px) { .c-appbar-in { height: auto; flex-wrap: wrap; padding: 10px var(--sp-4); } .c-appbar-nav { order: 3; flex-basis: 100%; margin-left: 0; overflow-x: auto; } .c-appbar-acct { margin-left: auto; } .c-appbar.is-tabs .c-appbar-in { height: 56px; flex-wrap: nowrap; padding: 0 var(--sp-4); gap: 14px; } .c-appbar.is-tabs .c-appbar-nav { order: 0; flex-basis: auto; } .c-appbar-who { display: none; } }

/* 11 · Legal foot: the small muted centred line under a single-card page (a phone number, a privacy link).
   Lifted from edge/agent-site.js and edge/join-page.js (.foot); the same rule is in edge/public/remote.css (.remote .foot).
   Unlike .c-auth-foot it sits outside the card and centres itself. */
.c-legal-foot { font-size: var(--fs-small); color: var(--muted); text-align: center; margin: 0; }

/* 12 · Card page: the single-card shell is the existing .c-auth / .c-auth-card (they already match edge/join-page.js,
   edge/agent-site.js and edge/public/remote.css within a few pixels), so three modifiers cover the rest and no new class
   is needed. .is-wide is the 440px card (join, agent site); .is-doc is the 860px document card (join agreement step);
   .is-form left-aligns and stretches the children (join form, claim page in edge/pages.js). */
.c-auth-card.is-wide { width: min(440px, 100%); }
.c-auth-card.is-doc { width: min(860px, 100%); }
.c-auth-card.is-form { align-items: stretch; text-align: left; }
