/**
 * firefly theme CSS — byte-for-byte port of
 *   /Volumes/x9/claude-design/ui_kits/firefly/{index,blog,post,page}.html
 *
 * Generated by scripts/port-theme-css.py.
 *
 * NOTE: top-level `:root` and `html, body` selectors are mechanically
 * rewritten to `body[data-theme="firefly"]` so multiple theme.css
 * files can coexist in the bundle without overriding each other's
 * CSS custom properties. Other selectors (.brand, .nav-link, etc.)
 * are preserved verbatim from source — they reference var(--bg)/
 * var(--fg) which inherit from the scoped body.
 */

/*
 * Global Design → Bespoke-Token Theme Bridge (v2, 2026-07-18, spec
 * docs/specs/2026-07-18-global-design-bespoke-token-bridge.md §5, Phase 3
 * Batch B). ROOT brand-role tokens read `var(--vgc-<role>, <exact-default>)`;
 * un-applied → verbatim default → byte-identical (zero regression). Headings
 * use var(--fg) directly (no separate heading token). --accent (firefly
 * gold) is the theme's ONLY highlight color → primary. --on-accent is NOT a
 * decorative supporting shade — it's the theme's designed WCAG-safe
 * text-on-accent pairing (newsletter-form button label + the commerce
 * --vb-color-primary-fg bridge, P-094), so it is bridged to the platform's
 * OWN WCAG-derived `--vgc-color-primary-fg` (pickReadableForeground against
 * the chosen primary, global-design.ts) rather than left hardcoded — a
 * customized brand primary must keep legible button text, not silently
 * regress to ~1.7:1 contrast (the exact class of bug the existing
 * --vb-color-primary-fg comment below already documents). --surface/
 * -bright, --subtle-fg, --border-subtle, --accent-dim (decorative
 * gradient/glow tone) are supporting tokens, intentionally not bridged
 * (§5.4). The nav header's hardcoded oklch(19.0% 0.020 84.1 / 0.6) and the
 * newsletter input's oklch(19% 0.02 84.1) were both literal copies of --bg's
 * default — redirected to track the bridged background (same class of fix
 * as terminal's Phase 2-polish; `color-mix(in oklch, …)` keeps the OKLCH
 * interpolation this theme already uses throughout). No radius token exists
 * (--vb-radius: 4px below is a fixed design constant, not a themeable brand
 * token) — not radius-bridgeable. Registry: src/lib/theme/theme-bridge-tokens.ts.
 */
/* ===== firefly/index.html <style> ===== */
body[data-theme="firefly"], [data-theme="firefly"] {
    overflow-x: clip;
    --bg:        var(--vgc-color-background, oklch(19.0% 0.020 84.1));    /* #181309 deep warm brown */
    --surface:   oklch(24.3% 0.022 82.4);    /* #251f14 card surface */
    --surface-bright: oklch(28.5% 0.022 78.9);
    --fg:        var(--vgc-color-foreground, oklch(91.5% 0.026 76.8));    /* #ede1d0 warm cream */
    --muted-fg:  var(--vgc-color-secondary, oklch(82.8% 0.039 77.6));    /* warm gray cream */
    --subtle-fg: oklch(65.7% 0.037 78.5);    /* aged taupe */
    --border:    var(--vgc-color-neutral, oklch(39.7% 0.034 78.9));
    --border-subtle: oklch(28.5% 0.022 78.9);
    --accent:    var(--vgc-color-primary, oklch(82.7% 0.171 80.5));    /* #ffb800 firefly gold */
    --accent-dim: oklch(48.6% 0.100 81.0);   /* dark gold glow */
    --on-accent: var(--vgc-color-primary-fg, oklch(31.2% 0.064 82.0));
    --heading:   var(--vgc-font-heading, var(--font-cormorant-garamond, 'Cormorant Garamond'), Georgia, serif);
    --body:      var(--vgc-font-body, "Inter", system-ui, sans-serif);
    --meta:      "IBM Plex Mono", monospace;
    --container-max: 1440px;
  }
  [data-theme="firefly"] * { box-sizing: border-box; }
  body[data-theme="firefly"], [data-theme="firefly"] { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--body); -webkit-font-smoothing: antialiased; }

  /* Firefly glyph — small gold diamond */
  [data-theme="firefly"] .firefly-glyph {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent);
    transform: rotate(45deg);
    box-shadow: 0 0 12px var(--accent);
    vertical-align: middle;
  }

  /* Fixed top nav */
  [data-theme="firefly"] nav.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: color-mix(in oklch, var(--bg) 60%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid oklch(91.5% 0.026 76.8 / 0.1);
    padding: 20px 40px;
    display: flex; align-items: center; justify-content: space-between;
  }
  [data-theme="firefly"] .brand {
    font-family: var(--meta); font-size: 12px;
    font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--fg);
    text-decoration: none;
  }
  [data-theme="firefly"] .nav-links { display: flex; gap: 40px; }
  [data-theme="firefly"] .nav-link {
    font-family: var(--meta); font-size: 11px;
    font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--muted-fg);
    text-decoration: none; transition: color 200ms;
  }
  [data-theme="firefly"] .nav-link:hover { color: var(--accent); }

  /* Hero — full-bleed featured essay */
  [data-theme="firefly"] main { padding-top: 128px; }
  [data-theme="firefly"] .featured {
    padding-bottom: 96px;
  }
  [data-theme="firefly"] .featured-img {
    width: 100%;
    aspect-ratio: 21/9; max-height: 720px;
    border-top: 1px solid oklch(82.7% 0.171 80.5 / 0.35);
    border-bottom: 1px solid oklch(82.7% 0.171 80.5 / 0.35);
    background-size: cover; background-position: center;
    background-image:
      linear-gradient(to bottom, transparent 35%, oklch(19% 0.02 84.1 / 0.85)),
      radial-gradient(circle at 70% 30%, oklch(48.6% 0.100 81.0 / 0.35), oklch(19% 0.02 84.1) 60%),
      linear-gradient(135deg, var(--accent-dim) 0%, var(--bg) 100%);
    background-blend-mode: normal, normal, multiply;
    position: relative;
  }
  [data-theme="firefly"] .featured-caption {
    max-width: 1024px; margin: 48px auto 0;
    padding: 0 40px; text-align: center;
  }
  [data-theme="firefly"] .featured-label {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: var(--meta); font-size: 11px;
    font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 24px;
  }
  [data-theme="firefly"] .featured h1 {
    font-family: var(--heading);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 300; line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--fg); margin: 0;
    padding-bottom: 0.05em;
  }
  [data-theme="firefly"] .featured p {
    max-width: 640px; margin: 32px auto 0;
    font-size: 18px; font-weight: 300; line-height: 1.7;
    color: var(--muted-fg);
  }
  [data-theme="firefly"] .featured-byline {
    font-family: var(--meta); font-size: 10px;
    font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--subtle-fg);
    margin-top: 28px !important;
  }

  /* Bento (1 big + 5 smaller) */
  [data-theme="firefly"] .bento {
    max-width: var(--container-max); margin: 0 auto;
    padding: 0 40px 96px;
  }
  [data-theme="firefly"] .bento-label {
    font-family: var(--meta); font-size: 11px;
    font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--accent);
    margin: 0 0 32px;
    display: flex; align-items: center; gap: 14px;
  }
  [data-theme="firefly"] .bento-label::after {
    content: ""; flex: 1; height: 1px;
    background: oklch(82.7% 0.171 80.5 / 0.25);
  }
  [data-theme="firefly"] .bento-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  }
  [data-theme="firefly"] .bento-grid .big { grid-column: span 2; grid-row: span 2; }
  [data-theme="firefly"] .post-card {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    border: 1px solid var(--border-subtle);
    background: var(--surface);
    padding: 0;
    overflow: hidden;
  }  [data-theme="firefly"] .post-card-img {
    width: 100%; aspect-ratio: 3/2;
    background-size: cover; background-position: center;
    filter: contrast(1.1) saturate(0.9);
  }
  [data-theme="firefly"] .post-card.big .post-card-img { aspect-ratio: 4/3; }
  [data-theme="firefly"] .post-card:nth-child(1) .post-card-img { background-image: linear-gradient(135deg, var(--accent-dim) 0%, var(--surface) 100%); }
  [data-theme="firefly"] .post-card:nth-child(2) .post-card-img { background-image: linear-gradient(135deg, var(--surface) 0%, var(--accent-dim) 100%); }
  [data-theme="firefly"] .post-card:nth-child(3) .post-card-img { background-image: linear-gradient(160deg, var(--bg) 0%, var(--accent-dim) 100%); }
  [data-theme="firefly"] .post-card:nth-child(4) .post-card-img { background-image: linear-gradient(135deg, var(--accent-dim) 0%, var(--bg) 100%); }
  [data-theme="firefly"] .post-card:nth-child(5) .post-card-img { background-image: linear-gradient(135deg, var(--surface) 0%, var(--surface-bright) 100%); }
  [data-theme="firefly"] .post-card:nth-child(6) .post-card-img { background-image: linear-gradient(160deg, var(--surface-bright) 0%, var(--accent-dim) 100%); }

  [data-theme="firefly"] .post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
  [data-theme="firefly"] .post-card-body > * { margin: 0; }
  [data-theme="firefly"] .post-cat {
    font-family: var(--meta); font-size: 10px;
    font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--accent);
  }
  [data-theme="firefly"] .post-card h3 {
    font-family: var(--heading);
    font-size: 22px; font-weight: 400;
    line-height: 1.25; letter-spacing: -0.01em;
    color: var(--fg); margin: 0;
  }
  [data-theme="firefly"] .post-card.big h3 { font-size: 36px; line-height: 1.1; }
  [data-theme="firefly"] .post-card p {
    font-family: var(--body); font-size: 14px;
    font-weight: 300; line-height: 1.6;
    color: var(--muted-fg); margin: 0;
  }
  [data-theme="firefly"] .post-meta {
    font-family: var(--meta); font-size: 10px;
    font-weight: 500; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--subtle-fg);
    margin-top: auto !important; padding-top: 12px;
  }

  /* Newsletter CTA */
  [data-theme="firefly"] .newsletter {
    max-width: var(--container-max); margin: 0 auto;
    padding: 0 40px 96px;
  }
  [data-theme="firefly"] .newsletter-card {
    text-align: center;
    padding: 80px 40px;
    border: 1px solid oklch(82.7% 0.171 80.5 / 0.25);
    background: radial-gradient(circle at 50% 0%, oklch(48.6% 0.100 81.0 / 0.2), transparent 60%);
  }
  [data-theme="firefly"] .newsletter-card h2 {
    font-family: var(--heading);
    font-size: 48px; font-weight: 300;
    line-height: 1.1; color: var(--fg);
    margin: 16px 0;
  }
  [data-theme="firefly"] .newsletter-card p { color: var(--muted-fg); font-size: 16px; margin: 0 auto 28px; max-width: 480px; }
  [data-theme="firefly"] .newsletter-form { display: inline-flex; gap: 8px; max-width: 420px; width: 100%; }
  [data-theme="firefly"] .newsletter-form input {
    flex: 1; background: var(--bg); color: var(--fg);
    border: 1px solid var(--border); padding: 12px 16px;
    font-family: var(--body); font-size: 14px;
  }
  [data-theme="firefly"] .newsletter-form button {
    background: var(--accent); color: var(--on-accent);
    border: none; padding: 12px 22px;
    font-family: var(--meta); font-size: 11px;
    font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; cursor: pointer;
    box-shadow: 0 0 20px oklch(82.7% 0.171 80.5 / 0.3);
  }

  /* Footer */
  [data-theme="firefly"] footer.site-footer {
    border-top: 1px solid oklch(82.7% 0.171 80.5 / 0.25);
    padding: 40px;
  }
  [data-theme="firefly"] .footer-inner {
    max-width: var(--container-max); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
    font-family: var(--meta); font-size: 11px;
    color: var(--subtle-fg);
    letter-spacing: 0.16em; text-transform: uppercase;
  }

/* ===== firefly/blog.html <style> ===== */
/* === Inner page (blog/post/page) — inherits theme typography & color from body === */
  [data-theme="firefly"] .ip-wrap { max-width: 1200px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 32px); }
  [data-theme="firefly"] .ip-narrow { max-width: 760px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 32px); }
  [data-theme="firefly"] .ip-prose-wrap { max-width: 720px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
  [data-theme="firefly"] .ip-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; margin: 0 0 18px; }
  [data-theme="firefly"] .ip-h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 18px; text-wrap: balance; }
  [data-theme="firefly"] .ip-h1-serif { font-family: var(--vb-heading-font, var(--heading, var(--display, inherit))); font-size: clamp(40px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 18px; text-wrap: balance; }
  [data-theme="firefly"] .ip-dek { font-size: 19px; line-height: 1.55; opacity: 0.7; margin: 0 0 28px; max-width: 640px; text-wrap: pretty; }
  [data-theme="firefly"] .ip-byline { display: flex; align-items: center; gap: 14px; margin: 0 0 40px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
  [data-theme="firefly"] .ip-byline > div { min-width: 0; flex: 1; }
  [data-theme="firefly"] .ip-avatar { width: 40px; height: 40px; border-radius: 9999px; background: color-mix(in srgb, currentColor 12%, transparent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
  [data-theme="firefly"] .ip-byline .author { font-size: 14px; font-weight: 600; }
  [data-theme="firefly"] .ip-byline .meta { font-size: 13px; opacity: 0.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  [data-theme="firefly"] .ip-cover { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; margin: 0 0 40px; }
  [data-theme="firefly"] .ip-prose { font-size: 18px; line-height: 1.75; }
  [data-theme="firefly"] .ip-prose p { margin: 0 0 22px; opacity: 0.92; }
  [data-theme="firefly"] .ip-prose h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 40px 0 16px; }
  [data-theme="firefly"] .ip-prose h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; margin: 32px 0 12px; }
  [data-theme="firefly"] .ip-prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid color-mix(in srgb, currentColor 35%, transparent); font-style: italic; font-size: 21px; line-height: 1.5; opacity: 0.78; }
  [data-theme="firefly"] .ip-prose ul, [data-theme="firefly"] .ip-prose ol { margin: 0 0 22px; padding-left: 22px; }
  [data-theme="firefly"] .ip-prose li { margin: 0 0 8px; opacity: 0.92; line-height: 1.7; }
  [data-theme="firefly"] .ip-prose code:not(pre code) { font-family: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace; font-size: 0.88em; background: color-mix(in srgb, currentColor 8%, transparent); padding: 1px 6px; border-radius: 4px; }
  [data-theme="firefly"] .ip-prose pre { font-family: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace; background: color-mix(in srgb, currentColor 4%, transparent); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: 8px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.65; margin: 22px 0; }
  [data-theme="firefly"] .ip-prose hr { border: none; height: 1px; background: color-mix(in srgb, currentColor 14%, transparent); margin: 36px 0; }
  [data-theme="firefly"] .ip-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 0; }
  [data-theme="firefly"] .ip-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 9999px; opacity: 0.7; text-decoration: none; color: inherit; white-space: nowrap; }
  [data-theme="firefly"] .ip-tag:hover { opacity: 1; }
  /* Blog index */
  [data-theme="firefly"] .ip-index-head { margin: 0 0 40px; padding-bottom: 24px; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
  [data-theme="firefly"] .ip-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
  [data-theme="firefly"] .ip-filter { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 9999px; text-decoration: none; color: inherit; opacity: 0.7; white-space: nowrap; }
  [data-theme="firefly"] .ip-filter:hover { opacity: 1; border-color: color-mix(in srgb, currentColor 32%, transparent); }
  [data-theme="firefly"] .ip-filter.active { background: color-mix(in srgb, currentColor 14%, transparent); border-width: 2px; padding: 5px 13px; opacity: 1; font-weight: 700; }
  [data-theme="firefly"] .ip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  @media (max-width: 900px) { [data-theme="firefly"] .ip-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { [data-theme="firefly"] .ip-grid { grid-template-columns: 1fr; } }
  [data-theme="firefly"] .ip-card { display: block; border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 200ms, transform 200ms; }
  [data-theme="firefly"] .ip-card:hover { border-color: color-mix(in srgb, currentColor 30%, transparent); transform: translateY(-2px); }
  [data-theme="firefly"] .ip-card .img { width: 100%; aspect-ratio: 16/10; background-size: cover; background-position: center; }
  [data-theme="firefly"] .ip-card .body { padding: 18px 20px 20px; }
  [data-theme="firefly"] .ip-card .kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin: 0 0 8px; }
  [data-theme="firefly"] .ip-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 8px; }
  [data-theme="firefly"] .ip-card p { font-size: 14px; line-height: 1.55; opacity: 0.7; margin: 0 0 12px; }
  [data-theme="firefly"] .ip-card .meta { font-size: 12px; opacity: 0.55; }
  [data-theme="firefly"] .ip-pag { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 56px 0 0; }
  [data-theme="firefly"] .ip-pag a, [data-theme="firefly"] .ip-pag span { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 6px; text-decoration: none; color: inherit; font-size: 13px; font-weight: 600; }
  [data-theme="firefly"] .ip-pag .current { background: color-mix(in srgb, currentColor 12%, transparent); }
  /* Inline newsletter CTA — outline style, no blend tricks */
  [data-theme="firefly"] .ip-inline-cta { margin: 56px 0 0; padding: 36px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 12px; text-align: center; }
  [data-theme="firefly"] .ip-inline-cta h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
  [data-theme="firefly"] .ip-inline-cta p { font-size: 14px; opacity: 0.7; margin: 0 0 18px; }
  [data-theme="firefly"] .ip-inline-cta form { display: flex; gap: 8px; max-width: 380px; margin: 0 auto; }
  [data-theme="firefly"] .ip-inline-cta input { flex: 1; min-width: 0; background: transparent; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 8px; color: inherit; font-family: inherit; font-size: 14px; padding: 10px 14px; outline: none; }
  [data-theme="firefly"] .ip-inline-cta button { background: transparent; border: 2px solid currentColor; border-radius: 8px; color: inherit; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; padding: 9px 22px; cursor: pointer; white-space: nowrap; transition: background 150ms; }
  [data-theme="firefly"] .ip-inline-cta button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
  /* Comments */
  [data-theme="firefly"] .ip-comments { margin: 64px 0 0; padding-top: 32px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
  [data-theme="firefly"] .ip-comments h3 { font-size: 18px; font-weight: 700; margin: 0 0 24px; }
  [data-theme="firefly"] .ip-comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent); }
  [data-theme="firefly"] .ip-comment > div { min-width: 0; flex: 1; }
  [data-theme="firefly"] .ip-comment:last-child { border-bottom: none; }
  [data-theme="firefly"] .ip-comment .who { font-size: 13px; font-weight: 600; }
  [data-theme="firefly"] .ip-comment .when { font-size: 12px; opacity: 0.55; }
  [data-theme="firefly"] .ip-comment .text { font-size: 14px; line-height: 1.55; opacity: 0.85; margin: 6px 0 0; }
  /* Back link */
  [data-theme="firefly"] .ip-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; color: inherit; opacity: 0.65; margin: 0 0 24px; white-space: nowrap; }
  [data-theme="firefly"] .ip-back:hover { opacity: 1; }
  /* Static page form */
  [data-theme="firefly"] .ip-form { max-width: 520px; margin: 32px 0 0; }
  [data-theme="firefly"] .ip-form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; margin: 0 0 6px; }
  [data-theme="firefly"] .ip-form .row { margin: 0 0 16px; }
  [data-theme="firefly"] .ip-form input, [data-theme="firefly"] .ip-form textarea { width: 100%; background: transparent; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: 8px; color: inherit; font-family: inherit; font-size: 15px; padding: 10px 14px; outline: none; }
  [data-theme="firefly"] .ip-form textarea { min-height: 120px; resize: vertical; }
  [data-theme="firefly"] .ip-form button { background: transparent; border: 2px solid currentColor; border-radius: 8px; color: inherit; font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; padding: 10px 24px; cursor: pointer; white-space: nowrap; transition: background 150ms; }
  [data-theme="firefly"] .ip-form button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* ===== Responsive overhaul (Sprint K Phase 3 Batch B) ===== */
/* Fixed nav: main needs padding-top to compensate for fixed positioning */
@media (max-width: 1023px) {
  [data-theme="firefly"] .nav-links { display: none; }
}

/* ===== Page-builder block token bridge ===== */
/* Maps generic --vb-* renderer variables to this theme's own CSS custom properties */
[data-theme="firefly"] main {
  --vb-color-bg:        var(--bg);
  --vb-color-surface:   var(--surface);
  --vb-color-primary:   var(--accent);
  /* --vb-color-primary-fg: was missing — --accent is firefly gold
     (~83% lightness), so hardcoded white button text had ~1.7:1 contrast
     (P-094 recurrence). --on-accent is this theme's own designed dark
     pairing for text on top of --accent. */
  --vb-color-primary-fg: var(--on-accent);
  --vb-color-secondary: var(--accent-dim);
  --vb-color-text:      var(--fg);
  --vb-color-muted:     var(--muted-fg);
  --vb-color-border:    var(--border);
  --vb-heading-font:    var(--heading);
  --vb-body-font:       var(--body);
  --vb-radius:          4px;
  --vb-spacing-unit:    1rem;
}

/* ===== Old-30 Bespoke Parity Wave 5 — bespoke shop + drawer CSS-only hover (P-097) ===== */
[data-theme="firefly"] .ff-shop-card { transition: border-color 150ms, box-shadow 150ms; }
[data-theme="firefly"] .ff-shop-card:hover { border-color: var(--accent); box-shadow: 0 0 18px -6px rgba(255,184,0,0.35); }
[data-theme="firefly"] .ff-shop-pill:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="firefly"] .ff-shop-input:focus { border-color: var(--accent); }
[data-theme="firefly"] .ff-buy-now:hover { filter: brightness(1.08); }
