/**
 * editorial-noir theme CSS — byte-for-byte port of
 *   /Volumes/x9/claude-design/ui_kits/editorial-noir/{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="editorial-noir"]` 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). --crimson is the
 * theme's ONLY highlight color (kicker, nav-link hover, hero border,
 * read-cta, post h2 hover, shop active pill) → primary (no distinct
 * accent). --surface/-low/-high, --subtle-fg, --border-soft, --crimson-h
 * (hardcoded hover shade) are supporting tokens, intentionally not bridged
 * (§5.4). header.site-nav already reads `background: var(--bg)` directly —
 * no hardcoded-literal fix needed here. Registry:
 * src/lib/theme/theme-bridge-tokens.ts.
 */
/* ===== editorial-noir/index.html <style> ===== */
body[data-theme="editorial-noir"], [data-theme="editorial-noir"] {
    overflow-x: clip;
    --bg:        var(--vgc-color-background, oklch(12.5% 0.005 30.0));   /* near-black warm */
    --surface:   oklch(17.0% 0.008 30.0);
    --surface-low: oklch(14.5% 0.006 30.0);
    --surface-high: oklch(20.0% 0.010 30.0);
    --fg:        var(--vgc-color-foreground, oklch(95.0% 0.008 80.0));   /* paper-aged off-white */
    --muted-fg:  var(--vgc-color-secondary, oklch(70.0% 0.015 60.0));   /* newsprint gray */
    --subtle-fg: oklch(55.0% 0.012 50.0);
    --border:    var(--vgc-color-neutral, oklch(28.0% 0.010 30.0));   /* coal hairline */
    --border-soft: oklch(22.0% 0.008 30.0);
    --crimson:   var(--vgc-color-primary, oklch(45.0% 0.175 25.0));   /* dried-blood crimson */
    --crimson-h: oklch(54.0% 0.165 25.0);

    --heading: var(--vgc-font-heading, var(--font-oswald, 'Oswald'), Impact, 'Arial Narrow Bold', sans-serif);
    --body:    var(--vgc-font-body, 'Source Serif 4', 'Source Serif Pro', Georgia, serif);
    --mono:    'IBM Plex Mono', 'Courier New', monospace;
    --container: 1200px;
  }
  [data-theme="editorial-noir"] * { box-sizing: border-box; }
  body[data-theme="editorial-noir"], [data-theme="editorial-noir"] {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
  }
  [data-theme="editorial-noir"] a { color: inherit; text-decoration: none; }

  /* Kicker / mono caps */
  [data-theme="editorial-noir"] .en-kicker {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--crimson);
  }
  [data-theme="editorial-noir"] .en-meta {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--muted-fg);
  }
  [data-theme="editorial-noir"] .en-pipe {
    color: var(--border);
    margin: 0 14px;
    font-family: var(--heading);
  }

  /* Header */
  [data-theme="editorial-noir"] header.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  [data-theme="editorial-noir"] .nav-inner {
    max-width: var(--container); margin: 0 auto;
    height: 56px;
    padding: 0 clamp(16px, 4vw, 48px);
    display: flex; align-items: center; justify-content: space-between;
  }
  [data-theme="editorial-noir"] .masthead-name {
    font-family: var(--heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--fg);
  }
  [data-theme="editorial-noir"] .en-nav-link {
    font-family: var(--heading);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg);
    transition: color 150ms;
  }
  [data-theme="editorial-noir"] .en-nav-link:hover { color: var(--crimson); }
  [data-theme="editorial-noir"] .nav-right .member {
    width: 30px; height: 30px;
    border-radius: 9999px;
    border: 1px solid var(--border);
    color: var(--fg);
    font-family: var(--mono);
    font-size: 10px;
    display: inline-flex; align-items: center; justify-content: center;
  }

  /* Hero — headline strip */
  [data-theme="editorial-noir"] .hero {
    background: var(--surface);
    border-bottom: 1px solid var(--crimson);
  }
  [data-theme="editorial-noir"] .hero-grid {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    display: grid; grid-template-columns: 3fr 2fr; gap: 0;
    align-items: stretch;
  }
  @media (max-width: 880px) {
    [data-theme="editorial-noir"] .hero-grid { grid-template-columns: 1fr; }
    [data-theme="editorial-noir"] .hero-img { aspect-ratio: 16/9; }
  }
  [data-theme="editorial-noir"] .hero-text {
    padding: 64px 56px 64px 0;
    display: flex; flex-direction: column; justify-content: center;
  }
  @media (max-width: 880px) {
    [data-theme="editorial-noir"] .hero-text { padding: 56px 0; }
  }
  [data-theme="editorial-noir"] .hero-kicker { margin: 0 0 20px; }
  [data-theme="editorial-noir"] .hero h1 {
    font-family: var(--heading);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--fg);
    margin: 0 0 24px;
  }
  [data-theme="editorial-noir"] .hero-lede {
    font-family: var(--body);
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.55;
    color: var(--muted-fg);
    max-width: 520px;
    margin: 0 0 28px;
  }
  [data-theme="editorial-noir"] .read-cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--crimson);
    transition: opacity 150ms;
    white-space: nowrap;
  }
  [data-theme="editorial-noir"] .read-cta:hover { opacity: 0.7; }
  [data-theme="editorial-noir"] .hero-img {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-image:
      linear-gradient(to right, var(--surface) 0%, transparent 32%),
      linear-gradient(135deg, var(--crimson) 0%, var(--bg) 100%);
    filter: grayscale(20%) contrast(1.1);
  }

  /* LATEST DISPATCHES */
  [data-theme="editorial-noir"] .section-head {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px clamp(16px, 4vw, 48px) 0;
  }
  [data-theme="editorial-noir"] .crimson-rule {
    height: 1px; background: var(--crimson);
    margin-top: 12px;
  }

  /* Stacked post list */
  [data-theme="editorial-noir"] .dispatches {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px) 96px;
  }
  [data-theme="editorial-noir"] .post {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
  }
  [data-theme="editorial-noir"] .post-kicker { margin: 0 0 10px; }
  [data-theme="editorial-noir"] .post-kicker .case {
    color: var(--muted-fg);
  }
  [data-theme="editorial-noir"] .post h2 {
    font-family: var(--heading);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    color: var(--fg);
    margin: 0 0 14px;
  }
  [data-theme="editorial-noir"] .post h2 a:hover { color: var(--crimson); }
  [data-theme="editorial-noir"] .post-lede {
    font-family: var(--body);
    font-size: 16px;
    font-style: italic;
    line-height: 1.55;
    color: var(--muted-fg);
    max-width: 680px;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  [data-theme="editorial-noir"] .post-byline {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px;
  }
  [data-theme="editorial-noir"] .post-byline .author {
    font-family: var(--body);
    color: var(--muted-fg);
  }
  [data-theme="editorial-noir"] .post-byline .author b { color: var(--crimson); font-weight: 400; }
  [data-theme="editorial-noir"] .post-byline .dot { color: var(--border); }

  /* Footer */
  [data-theme="editorial-noir"] footer.site-footer {
    background: var(--surface-low);
    border-top: 1px solid var(--border);
    padding: 64px clamp(16px, 4vw, 48px) 48px;
    text-align: center;
  }
  [data-theme="editorial-noir"] .end-mark {
    font-family: var(--heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--fg);
    margin: 0 0 20px;
  }
  [data-theme="editorial-noir"] .end-pub {
    font-family: var(--body);
    font-style: italic;
    font-size: 15px;
    color: var(--fg);
    margin: 0 0 8px;
  }
  [data-theme="editorial-noir"] .end-meta {
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 0;
  }
  [data-theme="editorial-noir"] .powered-by {
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-fg);
    border: 1px solid var(--border);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 2px;
  }

/* ===== editorial-noir/blog.html <style> ===== */
/* === Inner page (blog/post/page) — inherits theme typography & color from body === */
  [data-theme="editorial-noir"] .ip-wrap { max-width: 1200px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 32px); }
  [data-theme="editorial-noir"] .ip-narrow { max-width: 760px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 32px); }
  [data-theme="editorial-noir"] .ip-prose-wrap { max-width: 720px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
  [data-theme="editorial-noir"] .ip-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; margin: 0 0 18px; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .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="editorial-noir"] .ip-dek { font-size: 19px; line-height: 1.55; opacity: 0.7; margin: 0 0 28px; max-width: 640px; text-wrap: pretty; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-byline > div { min-width: 0; flex: 1; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-byline .author { font-size: 14px; font-weight: 600; }
  [data-theme="editorial-noir"] .ip-byline .meta { font-size: 13px; opacity: 0.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  [data-theme="editorial-noir"] .ip-cover { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; margin: 0 0 40px; }
  [data-theme="editorial-noir"] .ip-prose { font-size: 18px; line-height: 1.75; }
  [data-theme="editorial-noir"] .ip-prose p { margin: 0 0 22px; opacity: 0.92; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-prose h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; margin: 32px 0 12px; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-prose ul, [data-theme="editorial-noir"] .ip-prose ol { margin: 0 0 22px; padding-left: 22px; }
  [data-theme="editorial-noir"] .ip-prose li { margin: 0 0 8px; opacity: 0.92; line-height: 1.7; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .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="editorial-noir"] .ip-prose hr { border: none; height: 1px; background: color-mix(in srgb, currentColor 14%, transparent); margin: 36px 0; }
  [data-theme="editorial-noir"] .ip-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 0; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-tag:hover { opacity: 1; }
  /* Blog index */
  [data-theme="editorial-noir"] .ip-index-head { margin: 0 0 40px; padding-bottom: 24px; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
  [data-theme="editorial-noir"] .ip-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-filter:hover { opacity: 1; border-color: color-mix(in srgb, currentColor 32%, transparent); }
  [data-theme="editorial-noir"] .ip-filter.active { background: color-mix(in srgb, currentColor 14%, transparent); border-width: 2px; padding: 5px 13px; opacity: 1; font-weight: 700; }
  [data-theme="editorial-noir"] .ip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  @media (max-width: 900px) { [data-theme="editorial-noir"] .ip-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { [data-theme="editorial-noir"] .ip-grid { grid-template-columns: 1fr; } }
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-card:hover { border-color: color-mix(in srgb, currentColor 30%, transparent); transform: translateY(-2px); }
  [data-theme="editorial-noir"] .ip-card .img { width: 100%; aspect-ratio: 16/10; background-size: cover; background-position: center; }
  [data-theme="editorial-noir"] .ip-card .body { padding: 18px 20px 20px; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 8px; }
  [data-theme="editorial-noir"] .ip-card p { font-size: 14px; line-height: 1.55; opacity: 0.7; margin: 0 0 12px; }
  [data-theme="editorial-noir"] .ip-card .meta { font-size: 12px; opacity: 0.55; }
  [data-theme="editorial-noir"] .ip-pag { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 56px 0 0; }
  [data-theme="editorial-noir"] .ip-pag a, [data-theme="editorial-noir"] .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="editorial-noir"] .ip-pag .current { background: color-mix(in srgb, currentColor 12%, transparent); }
  /* Inline newsletter CTA — outline style, no blend tricks */
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-inline-cta h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
  [data-theme="editorial-noir"] .ip-inline-cta p { font-size: 14px; opacity: 0.7; margin: 0 0 18px; }
  [data-theme="editorial-noir"] .ip-inline-cta form { display: flex; gap: 8px; max-width: 380px; margin: 0 auto; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .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="editorial-noir"] .ip-inline-cta button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
  /* Comments */
  [data-theme="editorial-noir"] .ip-comments { margin: 64px 0 0; padding-top: 32px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
  [data-theme="editorial-noir"] .ip-comments h3 { font-size: 18px; font-weight: 700; margin: 0 0 24px; }
  [data-theme="editorial-noir"] .ip-comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent); }
  [data-theme="editorial-noir"] .ip-comment > div { min-width: 0; flex: 1; }
  [data-theme="editorial-noir"] .ip-comment:last-child { border-bottom: none; }
  [data-theme="editorial-noir"] .ip-comment .who { font-size: 13px; font-weight: 600; }
  [data-theme="editorial-noir"] .ip-comment .when { font-size: 12px; opacity: 0.55; }
  [data-theme="editorial-noir"] .ip-comment .text { font-size: 14px; line-height: 1.55; opacity: 0.85; margin: 6px 0 0; }
  /* Back link */
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-back:hover { opacity: 1; }
  /* Static page form */
  [data-theme="editorial-noir"] .ip-form { max-width: 520px; margin: 32px 0 0; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-form .row { margin: 0 0 16px; }
  [data-theme="editorial-noir"] .ip-form input, [data-theme="editorial-noir"] .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="editorial-noir"] .ip-form textarea { min-height: 120px; resize: vertical; }
  [data-theme="editorial-noir"] .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="editorial-noir"] .ip-form button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* ===== Responsive overhaul (Sprint K Phase 3 Batch B) ===== */
/* Hide desktop nav-right below lg (1024px).
 * Editorial Noir uses .nav-right (not .nav-links) for the desktop nav group. */
@media (max-width: 1023px) {
  [data-theme="editorial-noir"] .nav-right { display: none; }
}

/* ===== V2 contract: Page-builder block token bridge =====
 * Maps generic --vb-* block renderer variables to Editorial Noir's
 * own --bg / --fg / --crimson theme tokens, scoped to <main>.
 */
[data-theme="editorial-noir"] main {
  --vb-color-bg:          var(--bg);
  --vb-color-surface:     var(--surface);
  --vb-color-bg-elevated: var(--surface-high);
  --vb-color-fg:          var(--fg);
  --vb-color-heading:     var(--fg);
  --vb-color-muted:       var(--muted-fg);
  --vb-color-text-muted:  var(--subtle-fg);
  --vb-color-border:      var(--border);
  --vb-color-primary:     var(--crimson);
  --vb-color-primary-bg:  var(--crimson);
  /* v2 bridge: sources the platform's WCAG-derived --vgc-color-primary-fg
     (computed against whatever primary the tenant applies) so a customized
     brand primary keeps legible button text; var(--fg) is the verbatim
     un-applied fallback (same fix class as firefly/hackerstack/atelier-modern). */
  --vb-color-primary-fg:  var(--vgc-color-primary-fg, var(--fg));
  --vb-color-cta-btn-bg:  var(--crimson);
  --vb-color-cta-btn-fg:  var(--vgc-color-primary-fg, var(--fg));
  --vb-color-secondary:   var(--muted-fg);
  --vb-heading-font:      var(--heading);
}

/* ===== Old-30 Bespoke Parity Wave 4 — bespoke mobile drawer + storefront =====
 * EditorialNoirMobileMenu / EditorialNoirShopLayout / EditorialNoirProductLayout
 * styling hooks. Hover-only rules (P-097 — CSS-only, no JS event handlers).
 */

[data-theme="editorial-noir"] .en-shop-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 14px;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}
[data-theme="editorial-noir"] .en-shop-pill:hover {
  border-color: var(--crimson);
}
[data-theme="editorial-noir"] .en-shop-pill[data-active] {
  background: var(--crimson);
  color: var(--fg);
  border-color: var(--crimson);
}

[data-theme="editorial-noir"] .en-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
[data-theme="editorial-noir"] .en-shop-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  [data-theme="editorial-noir"] .en-shop-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  [data-theme="editorial-noir"] .en-shop-grid { grid-template-columns: 1fr; }
}

[data-theme="editorial-noir"] .en-shop-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
[data-theme="editorial-noir"] .en-shop-card:hover .en-shop-title {
  color: var(--crimson);
}

[data-theme="editorial-noir"] .en-add-to-cart {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 0;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 200ms;
}
[data-theme="editorial-noir"] .en-add-to-cart:hover {
  background: var(--crimson);
}

@media (max-width: 768px) {
  [data-theme="editorial-noir"] .en-product-grid {
    grid-template-columns: 1fr !important;
  }
}
