/* TOKENIZED: ACSS variable pass applied — see _cra/build-insights/tokenize-insights-css.py */
/* CRAi Insights Vol. One (post 24457 rework) — chunk-internal styles only.
   Content sections are native Bricks + ACSS tokens on global classes; this
   file covers the raw-HTML chunks: nav tiles, F2/F3 CSS bar charts, F4 map
   legend/callouts/stats, whycards, levers, subscribe row, #fcta pill.
   Source: 02-FOR-ALEX-publish-clean.html style block, trimmed + rescoped.
   Ships the #prodcolor override: --prod is purple #7340EA, not draft yellow. */

#brx-content {
  --panel: rgba(255, 255, 255, 0.025);
  --panel2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.10);
  --line2: rgba(255, 255, 255, 0.07);
  --white: #F9F9F9;
  --muted: rgba(249, 249, 249, 0.82); /* legibility bump (crai precedent) */
  --faint: rgba(249, 249, 249, 0.60); /* legibility bump */
  --yellow: #FFEE99;
  --mag: #B045E5;
  --mint: #71E0B8;
  --nti: #E5766D;
  --sat: #8a8a92;
  --prod: #7340EA;
  --prodtext: #ffffff;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
/* house pattern (crai.css precedent): site header's off-canvas nav slides
   overflow the viewport on pages that ship their own CSS */
body { overflow-x: hidden; }

/* ── nav tiles (crai-stat card recipe, per Alex Jul 28) ────────── */
.socv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xs); width: 100%; }
.socv-tiles a.tile { display: flex; flex-direction: column; row-gap: var(--space-xs);
  text-decoration: none; color: var(--white);
  padding: var(--space-s);
  border: 1px solid var(--neutral-light-trans-20); border-radius: var(--radius);
  background-image: linear-gradient(137deg, var(--base-trans-60) 0%, var(--primary-ultra-dark-trans-40) 100%);
  transition: transform 0.2s ease-out; }
.socv-tiles a.tile:hover { transform: translateY(-2px); color: var(--white); }
.socv-tiles .tno { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); display: block; }
.socv-tiles .ttx { font-size: var(--text-s); line-height: 1.4; font-weight: 500; display: block; }
.socv-tiles a.tile.alt .tno { color: var(--muted); }
.socv-tiles a.tile.cta-tile .tno { color: var(--accent); }

/* ── chart cards (mockup .card) ────────────────────────────────── */
.socv-card, .socv-f2grid .card { border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); padding: 24px 28px; }
.socv-card { width: 100%; }
.socv .ctitle { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white); margin: 0 0 4px; }
.socv .csub { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin: 0 0 18px; }
.socv-card img, .socv-f2grid .card img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* ── F2 vertical bar pair ──────────────────────────────────────── */
.socv-f2grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.socv .bars { display: flex; gap: 34px; align-items: flex-end; margin: 26px 0 6px; }
.socv .bcol { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; flex: 1; }
.socv .bzone { height: 150px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.socv .bval { font-family: var(--mono); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.socv .bval.hero { font-size: 28px; color: var(--yellow); }
.socv .bar { width: 100%; max-width: 96px; border-radius: 6px 6px 2px 2px; background: rgba(255, 238, 153, 0.75); }
.socv .bar.hero { background: var(--yellow); }
.socv .bar.inv { background: rgba(249, 249, 249, 0.30); }
.socv .blab { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; line-height: 1.35; }
.socv .blab b { color: var(--white); }
.socv .sizecue { font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--faint); text-align: center; margin-top: var(--space-xs);
  background: linear-gradient(90deg, rgba(255, 238, 153, 0.06), rgba(255, 238, 153, 0.28));
  border-radius: 4px; padding: 6px 0; }

/* ── F3 grouped horizontal bars ────────────────────────────────── */
.socv .glegend { display: flex; gap: 22px; margin: 4px 0 var(--space-xs); font-size: 12.5px; color: var(--muted); }
.socv .glegend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px;
  vertical-align: -1px; }
.socv .grow { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: center;
  padding: var(--space-xs) 0; border-bottom: 1px solid var(--line2); }
.socv .grow:last-child { border-bottom: 0; }
.socv .gmet { font-size: var(--text-xs); color: var(--white); font-weight: 500; line-height: 1.35; }
.socv .gmet span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 3px; }
.socv .gbars { display: flex; flex-direction: column; gap: 7px; }
.socv .gbarrow { display: flex; align-items: center; gap: 12px; }
.socv .gbar { height: 16px; border-radius: 3px; }
.socv .gnum { font-family: var(--mono); font-size: 13px; font-weight: 700; min-width: 64px; }

/* ── F4 word-stats + map legend/callouts ───────────────────────── */
.socv-stats { display: flex; gap: 16px; flex-wrap: wrap; width: 100%; }
.socv .stat { border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  padding: 18px 22px; flex: 1; min-width: 210px; }
.socv .stat .v { font-family: var(--mono); font-weight: 700; font-size: 34px; line-height: 1; }
.socv .stat .l { font-size: 13px; color: var(--muted); margin-top: 9px; line-height: 1.4; }
.socv .anchor { font-family: var(--mono); font-size: 11.5px; color: var(--white);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line2); border-radius: 8px;
  padding: 8px 12px; margin: 0 0 var(--space-xs); display: inline-block; }
.socv .maplegend { display: flex; gap: var(--space-s); flex-wrap: wrap; font-size: 12.5px; color: var(--muted);
  margin: var(--space-xs) 0 0; }
.socv .maplegend .sw { display: inline-block; width: 13px; height: 13px; border-radius: 3px; margin-right: 7px;
  vertical-align: -2px; border: 1px solid rgba(249, 249, 249, 0.22); }
.socv .callouts { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }
.socv .co { border: 1px solid var(--line); border-radius: var(--radius-circle); padding: 6px var(--space-xs); font-size: 12.5px;
  color: var(--muted); }
.socv .co b { color: var(--white); font-weight: 600; }

/* ── Explore whycards ──────────────────────────────────────────── */
.socv-whycards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.socv .whycard { border: 1px solid var(--line2); border-radius: var(--radius); padding: var(--space-xs) var(--space-xs) 12px;
  background: rgba(255, 255, 255, 0.015); }
.socv .whycard b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.socv .whycard span { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: block; }
.socv .whycard .wsrc { display: block; margin-top: 7px; font-family: var(--mono); font-size: 9.5px;
  color: var(--faint); }

/* ── CTA levers (crai-stat card recipe, per Alex Jul 28) ───────── */
.socv-levers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xs); width: 100%; }
.socv a.lever { display: flex; flex-direction: column; row-gap: var(--space-xs);
  text-decoration: none; color: var(--white);
  padding: var(--space-s);
  border: 1px solid var(--neutral-light-trans-20); border-radius: var(--radius);
  background-image: linear-gradient(137deg, var(--base-trans-60) 0%, var(--primary-ultra-dark-trans-40) 100%);
  transition: transform 0.2s ease-out; }
.socv a.lever:hover { transform: translateY(-2px); color: var(--white); }
.socv .lever b { display: block; font-size: var(--text-s); font-weight: 600; }
.socv .lever span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; }

/* wide screens: corner glow replaces the linear wash (crai-stat media rule) */
@media (min-width: 1400px) {
  .socv-tiles a.tile, .socv a.lever {
    background-image: radial-gradient(120% 120% at 100% 100%, var(--primary-trans-30), transparent 55%);
  }
}

/* ── demo / subscribe rows (anchors carry mockup inline styles) ── */
.socv-subrow { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
/* the standalone demo-CTA row (anchors only, no input) is centered */
.socv-subrow:has(> a) { justify-content: center; }
/* subscribe card content is centered (card itself via socvsb class) */
.socv-subscribe .socv-subrow { justify-content: center; }
.socv-subrow input { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 9px;
  color: var(--white); font-family: inherit; font-size: var(--text-xs); padding: 11px var(--space-xs); min-width: 260px;
  /* beat the sitewide input width:100% so the button sits beside it */
  width: auto; flex: 0 1 420px; }
.socv-subrow button { background: var(--prod); color: var(--prodtext); border: 0; border-radius: 9px;
  font-family: inherit; font-weight: 600; font-size: var(--text-xs); padding: 11px var(--space-s); cursor: pointer; }

/* ── floating demo pill ────────────────────────────────────────── */
#fcta { position: fixed; right: 26px; bottom: 26px; z-index: 50; display: none; }
#fcta a { display: inline-block; background: var(--prod); color: var(--prodtext); font-weight: 600;
  font-size: var(--text-xs); padding: var(--space-xs) 24px; border-radius: var(--radius-circle); text-decoration: none; }
#fcta .x { margin-left: 6px; background: rgba(20, 16, 25, 0.85); color: var(--muted); border: 1px solid var(--line);
  border-radius: 50%; width: 26px; height: 26px; font-size: 12px; cursor: pointer; vertical-align: middle; }

/* ── responsive (mockup single breakpoint) ─────────────────────── */
@media (max-width: 900px) {
  .socv-tiles { grid-template-columns: 1fr 1fr; }
  .socv-whycards { grid-template-columns: 1fr 1fr; }
  .socv-f2grid { grid-template-columns: 1fr; }
  .socv-levers { grid-template-columns: 1fr; }
}

/* ── chart scroll-reveal (blur/fade) ───────────────────────────── */
/* Classes are applied at runtime by insights.js (only when
   IntersectionObserver exists), so charts stay fully visible when JS
   doesn't run. Final revealed state must end at filter:none so the
   interactive era chart's tooltips/zoom aren't affected. */
.socv-rvl { opacity: 0; filter: blur(8px); transform: translateY(12px); }
.socv-rvl--in { opacity: 1; filter: none; transform: none;
  animation: socv-rvl-in 0.7s cubic-bezier(0.33, 1, 0.68, 1) backwards; }
@keyframes socv-rvl-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(12px); }
  to   { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .socv-rvl { opacity: 1; filter: none; transform: none; }
  .socv-rvl--in { animation: none; }
}

/* ══════════════════════════════════════════════════════════════════
   r17 additions (2026-07-30): F1 production chart footnote, county-map
   (#f4xWrap) hover UI from the standalone #f4x-css, the "Why ratings
   matter" wrlab label, and the site button gradient on stylesheet-styled
   buttons + active chart chips (rescoped from the standalone #a11y-patch;
   .wrap → #brx-content / bare chunk classes). Vars live on #brx-content.
   ════════════════════════════════════════════════════════════════ */

/* ── F1: size-class definitions footnote under the production chart ── */
.crai-footnote { font-size: 12px; line-height: 1.55; color: var(--faint); margin: 12px 0 0; max-width: 60em; }

/* ── county map: wrap + fixed county-detail box (standalone #f4x-css,
   sits in the empty Pacific/Canada corner of the projection) ──────── */
.f4x-wrap { position: relative; }
.f4x-wrap:focus-visible { outline: 2px solid #a855f7; outline-offset: 2px; }
.f4x-wrap { width: 100%; }
#f4xMap { width: 100%; height: auto; display: block; }
.f4x-info { position: absolute; left: 50%; top: 1.5%; transform: translateX(-50%); pointer-events: none;
  background: #1c1722; border: 1px solid rgba(249,249,249,.22); border-radius: 10px; padding: 10px 14px;
  font-size: 12.5px; line-height: 1.55; color: var(--white); min-width: 210px; max-width: 46%; z-index: 5;
  box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.f4x-info:empty { display: none; }
.f4x-info .h { font-weight: 600; margin-bottom: 4px; }
.f4x-info .hint { color: var(--faint); }
.f4x-info .r { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.f4x-info .r b { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  /* on small screens the box sits in flow above the map instead of overlaying it */
  .f4x-info { position: static; transform: none; margin: 0 0 10px; max-width: none; }
}

/* ── "Why ratings matter" label (standalone .wrlab) ────────────────── */
.wrlab { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--yellow); margin: 38px 0 14px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,238,153,.28); }

/* ── site button gradient (standalone #a11y-patch): stylesheet-styled
   buttons + active chart chips carry the site purple→gold gradient ── */
.socv-subrow button,
#fcta a,
.socp-tab.is-active {
  background: linear-gradient(10deg, #6B2EE5 34%, #A641D9 66%, #FFE6B3 100%);
  color: #fff;
  border-radius: 720px;
  font-weight: 700;
  border-color: transparent;
}

/* ==== r17 Alex polish round (2026-07-30): rhythm, heading width, left-align.
   Delete this whole block to revert to the centered layout. ==== */
/* 1. Vertical rhythm: tight base gap for flowing text; visual blocks
      (stat tiles, figures, charts, panels) earn extra breathing room. */
#brx-content .section__container { row-gap: var(--space-s); }
#brx-content .section__container > .socv-stats,
#brx-content .section__container > [class*="socv-fig"],
#brx-content .section__container > .socv-why,
#brx-content .section__container > .socv-levers,
#brx-content .section__container > .brxe-block:not(.fr-intro) {
  margin-block-start: var(--space-m);
}
/* 2. Heading <-> lede/para spacing (Alex: var(--space-m)). */
#brx-content .fr-intro-alpha { row-gap: var(--space-m); }
/* 3. Wider headings; body copy keeps a readable measure.
      NB: html font-size is 10px on this site (SOP §3) — 100rem = 1000px. */
#finding-size .fr-intro, #finding-cd .fr-intro, #finding-capital .fr-intro,
#finding-families .fr-intro, #explore .fr-intro, #cta .fr-intro {
  max-width: min(100rem, 100%);
}
#finding-size .fr-intro-alpha__lede, #finding-cd .fr-intro-alpha__lede,
#finding-capital .fr-intro-alpha__lede, #finding-families .fr-intro-alpha__lede,
#explore .fr-intro-alpha__lede, #cta .fr-intro-alpha__lede {
  max-width: 70ch;
  text-align: left;
}
/* body notes/caveats read left in the left column too */
#finding-size .socv-caveat, #finding-cd .socv-caveat,
#finding-capital .socv-caveat, #finding-families .socv-caveat,
#explore .socv-caveat, #cta .socv-caveat,
#finding-families .socv-readerline, #explore .socv-readerline {
  text-align: left;
}
/* 4. Left-align everything except the hero (and the subscribe card /
      button rows, which keep their own centering). */
#finding-size .section__container, #finding-cd .section__container,
#finding-capital .section__container, #finding-families .section__container,
#explore .section__container, #cta .section__container {
  align-items: flex-start;
}
#finding-size .fr-intro-alpha, #finding-cd .fr-intro-alpha,
#finding-capital .fr-intro-alpha, #finding-families .fr-intro-alpha,
#explore .fr-intro-alpha, #cta .fr-intro-alpha {
  align-items: flex-start;
}
#finding-size .section__container, #finding-cd .section__container,
#finding-capital .section__container, #finding-families .section__container,
#explore .section__container, #cta .section__container,
#finding-size .fr-intro-alpha__heading, #finding-cd .fr-intro-alpha__heading,
#finding-capital .fr-intro-alpha__heading, #finding-families .fr-intro-alpha__heading,
#explore .fr-intro-alpha__heading, #cta .fr-intro-alpha__heading {
  text-align: left;
}
/* keep the subscribe card + demo button row centered inside the left flow */
#cta .socv-subscribe { align-self: center; text-align: center; }
#cta .socv-subrow { justify-content: center; }

/* ==== f4x map zoom UI (Alex 7/30) ==== */
#f4xWrap { position: relative; }
.f4x-zoomui { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.f4x-zoomui button {
  width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--neutral-light-trans-20);
  background: var(--primary-ultra-dark-trans-40); color: var(--white); font-size: 16px; line-height: 1;
  cursor: pointer; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 0; /* Alex 7/31: glyphs were left-aligned */
}
.f4x-zoomui button:hover { background: var(--primary-trans-30); }

/* Alex 7/30 eve: demo CTA in the levers section — pill radius + white text,
   deterministic (999px not a var; env-dependent var resolution burned us). */
#cta .socv-subrow a { border-radius: 999px !important; color: #fff !important; }

/* ==== GH #186 GTM standalone parity (2026-07-31) ====================
   Match the r17 standalone (crai-insights-vol1.html): narrower text column,
   standalone heading/lede scale, findings full width, header buffer.
   Measured on the standalone at 1440 (its .wrap runs font-size:16px,
   max-width:1080px). This site's html is 10px, so absolute px are used to
   land the SAME rendered size — do NOT convert these to rem.
   Delete this whole block to revert. ================================= */

/* 1. Header buffer: kill the dead space between the site header and the hero.
      Hero = first section (.fp-section-pad--s ships --section-space-s = 80px
      top at 1440). Standalone .mast is padding:64px 0 8px. Scope to this page
      only (file is enqueued for /crai-insights/) and only the FIRST section so
      the shared fp-section-pad--s class is untouched elsewhere. */
#brx-content > section.fp-section-pad--s:first-of-type {
  padding-top: 64px;
  padding-bottom: 8px;
}

/* 2. Narrower text column to the standalone measure.
      Override the r17 polish 1000px cap: the fr-intro (heading + lede) reads
      at a comfortable measure; findings/figures stay full width (rule 3). */
/* Alex 7/31 round 2: the 30px/18px standalone-parity scale read too small
   in situ — headings back to var(--h1), ledes back to var(--text-l),
   intro column at 90% of the section. */
#finding-size .fr-intro, #finding-cd .fr-intro, #finding-capital .fr-intro,
#finding-families .fr-intro, #explore .fr-intro, #cta .fr-intro {
  max-width: 93%; /* Alex r3; mobile goes 100% below */
}
@media (max-width: 767px) {
  #finding-size .fr-intro, #finding-cd .fr-intro, #finding-capital .fr-intro,
  #finding-families .fr-intro, #explore .fr-intro, #cta .fr-intro {
    max-width: 100%;
  }
}
#finding-size .fr-intro-alpha__heading, #finding-cd .fr-intro-alpha__heading,
#finding-capital .fr-intro-alpha__heading, #finding-families .fr-intro-alpha__heading,
#explore .fr-intro-alpha__heading, #cta .fr-intro-alpha__heading {
  font-size: var(--h1);
  line-height: 1.18;
  width: auto; /* clear the class's _width:15ch */
  /* Alex r3: no balance on THIS page's headings (page-scoped stylesheet, so
     the sitewide .fr-intro-alpha__heading class is untouched) + no top gap */
  text-wrap: wrap;
  margin-top: 0;
}
/* Alex r3: eyebrows sit flush */
#brx-content .crai-eyebrow { margin: 0; }
#finding-size .fr-intro-alpha__lede, #finding-cd .fr-intro-alpha__lede,
#finding-capital .fr-intro-alpha__lede, #finding-families .fr-intro-alpha__lede,
#explore .fr-intro-alpha__lede, #cta .fr-intro-alpha__lede {
  font-size: var(--text-l);
  line-height: 1.55;
  max-width: 62ch;
}

/* 3. Findings full width: figure/chart/map/panel blocks span the full section
      container regardless of the narrowed text column above. */
#brx-content .section__container > .socv,
#brx-content .section__container > .socv-card,
#brx-content .section__container > [class*="socv-fig"],
#brx-content .section__container > .socv-stats,
#brx-content .section__container > .socv-f2grid,
#brx-content .section__container > .socp-frame {
  width: 100%;
  max-width: 100%;
}

/* 4. Caveats / readerlines to the standalone measure (70ch / 66ch), left. */
#finding-size .socv-caveat, #finding-cd .socv-caveat,
#finding-capital .socv-caveat, #finding-families .socv-caveat,
#explore .socv-caveat, #cta .socv-caveat {
  max-width: 70ch;
}
#finding-families .socv-readerline, #explore .socv-readerline,
#finding-size .socv-readerline, #finding-cd .socv-readerline,
#finding-capital .socv-readerline, #cta .socv-readerline {
  max-width: 66ch;
}

/* 4a. Slightly narrower content viewport overall (Alex/ADL: "slightly narrower
       viewport"). Pull the section container in from 1280px; findings still
       fill this narrower container full-width. Use min(1120px,100%) so the
       container still shrinks to the viewport on mobile — a bare max-width let
       the flex container's computed width stick at 1120px at 375px (overflow). */
#finding-size .section__container, #finding-cd .section__container,
#finding-capital .section__container, #finding-families .section__container,
#explore .section__container, #cta .section__container {
  width: 100%;
  max-width: min(1120px, 100%);
}

/* jumpnav final CTA pill (Alex 7/31) */
.socp-jumpnav .jump-cta {
  background: #6B2EE5 !important;
  color: #fff !important;
  border-color: transparent !important;
  font-weight: 600;
}
.socp-jumpnav .jump-cta:hover { background: #5a26c4 !important; }
