/* Novastacks revamp skin for pre-existing chrome pages (2026-10): CSS only, markup and copy untouched.
   Each page opts in with a body class (rv-page + rv-skin + a page class). Requires revamp.css. */

/* ---------- Shared ---------- */
.rv-skin { background: var(--rv-navy); font-family: var(--rv-font-body); }
/* `// LABEL` eyebrows: hidden (text stays in the HTML; the brand style bans eyebrow labels) */
.rv-skin main p.font-mono.text-novastacks.tracking-wider, .rv-skin > section p.font-mono.text-novastacks.tracking-wider { display: none; }
.rv-skin :is(main, body) > section { position: relative; isolation: isolate; border-top: 0 !important; border-bottom: 0 !important; }
.rv-skin section.bg-slate-950, .rv-skin section.bg-slate-900 { background: var(--rv-navy) !important; }
.rv-skin section:is(.bg-white, .bg-slate-50, .bg-slate-100) { background: var(--rv-paper) !important; }
.rv-skin section:is(.bg-white, .bg-slate-50, .bg-slate-100)::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: multiply;
  background-image: var(--rv-linen-grain), repeating-linear-gradient(0deg, rgba(2,6,23,.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(2,6,23,.03) 0 1px, transparent 1px 3px);
  background-size: 200px 200px, auto, auto; }
/* Two light sections in a row read as ONE paper band: no seam, shared padding */
.rv-skin section:is(.bg-white, .bg-slate-50, .bg-slate-100) + section:is(.bg-white, .bg-slate-50, .bg-slate-100) { padding-top: 0 !important; }
.rv-skin h1 { font-family: var(--rv-font-head) !important; font-weight: 500 !important; letter-spacing: -.05em !important; line-height: .95 !important; font-size: clamp(2.6rem,6.5vw,5.75rem) !important; }
.rv-skin main :is(h2, h3), .rv-skin > section :is(h2, h3) { font-family: var(--rv-font-head) !important; }
.rv-skin main h2, .rv-skin > section h2 { font-weight: 500 !important; letter-spacing: -.035em !important; line-height: 1.05 !important; font-size: clamp(2rem,4.4vw,3.25rem) !important; }
.rv-skin section:is(.bg-white, .bg-slate-50, .bg-slate-100) :is(h2, h3) { color: var(--rv-navy) !important; }
.rv-skin main [class*="rounded"], .rv-skin > section [class*="rounded"] { border-radius: 0 !important; }
.rv-skin section.bg-slate-950 [class*="bg-slate-900"], .rv-skin section.bg-slate-950 [class*="bg-white/5"] { background: var(--rv-navy-raised) !important; border-color: transparent !important; }
.rv-skin section:is(.bg-white, .bg-slate-50, .bg-slate-100) .bg-white { box-shadow: 0 1px 1px rgba(2,6,23,.06), 0 12px 28px -14px rgba(2,6,23,.2); border-color: transparent !important; }
/* Primary teal buttons -> pressable */
.rv-skin main a[class*="bg-novastacks"]:not([class*="/"]), .rv-skin > section a[class*="bg-novastacks"]:not([class*="/"]), .rv-skin main button[type="submit"] {
  border-radius: 0 !important; background: var(--rv-teal) !important; color: var(--rv-navy) !important; font-family: var(--rv-font-head) !important; font-weight: 600 !important;
  box-shadow: 5px 5px 0 var(--rv-teal-dark); transition: transform .12s, box-shadow .12s; }
.rv-skin main a[class*="bg-novastacks"]:not([class*="/"]):hover, .rv-skin > section a[class*="bg-novastacks"]:not([class*="/"]):hover, .rv-skin main button[type="submit"]:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--rv-teal-dark); }
.rv-skin > footer { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { .rv-skin main a, .rv-skin main button { transition: none !important; } }

/* ---------- Methodology (/methodology) ---------- */
/* Closing "Get started" band becomes the teal CTA */
.rv-method #get-started { background: var(--rv-teal) !important; color: var(--rv-navy) !important; }
.rv-method #get-started :is(h2, p, span, li) { color: var(--rv-navy) !important; }
.rv-method #get-started a[class*="bg-novastacks"] { background: var(--rv-navy) !important; color: var(--rv-paper) !important; }
.rv-method #get-started a:not([class*="bg-"]) { color: var(--rv-navy) !important; text-decoration: underline; }
/* Loop panels and node chips: square, raised navy */
.rv-method .aios-page .lp-panel { border-radius: 0; background: var(--rv-navy-raised); border: 0; }
.rv-method .aios-page .lp-name { border-radius: 0; background: var(--rv-navy); }
.rv-method .aios-page .hs-plus { border-radius: 0; color: var(--rv-navy); }
.rv-method .aios-page .hs-diagram { box-shadow: 0 1px 1px rgba(2,6,23,.06), 0 12px 28px -14px rgba(2,6,23,.2); }
.rv-method .msx .msx-cmp-others, .rv-method .msx .msx-cmp-ours { border-radius: 0 !important; }

/* ---------- Shared bits for rebuilt chrome pages ---------- */
.rv-hub-cs .rv-tool-stats, .rv-page .rv-stat-row { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px 28px; }
.rv-hub-cs .rv-tool-stats li { display: flex; flex-direction: column; gap: 6px; }
.rv-hub-cs .rv-tool-stats b { font-family: var(--rv-font-head); font-weight: 500; font-size: clamp(1.8rem,3.4vw,2.6rem); letter-spacing: -.04em; line-height: 1; color: var(--rv-paper); }
.rv-hub-cs .rv-tool-stats span { font-size: 14px; color: var(--rv-paper-text); }
.rv-hub-cs main { padding-top: 0 !important; background: var(--rv-navy); }

/* ---------- Case-study hub: live .cc cards, restyled ---------- */
.rv-cs-grid .cc-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%,480px),1fr)) !important; gap: 20px !important; }
.rv-cs-grid .cc { display: flex !important; flex-direction: column; background: var(--rv-navy-raised) !important; border: 0 !important; border-radius: 0 !important; color: var(--rv-paper) !important; box-shadow: none !important; transition: transform .2s, box-shadow .2s; text-decoration: none; }
.rv-cs-grid .cc:hover { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 var(--rv-teal) !important; }
.rv-cs-grid .cc-media { background: var(--rv-paper) !important; border-radius: 0 !important; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.rv-cs-grid .cc-media img { filter: grayscale(1); max-height: 54px; width: auto; }
.rv-cs-grid .cc-media.masked .cc-mark { font-family: var(--rv-font-head) !important; color: var(--rv-navy) !important; }
.rv-cs-grid .cc-media.masked .cc-withheld { font-family: var(--rv-font-mono) !important; font-size: 12px; color: var(--rv-clay-deep) !important; }
.rv-cs-grid .cc-body { padding: clamp(22px,3vw,32px) !important; display: flex; flex-direction: column; gap: 10px; }
.rv-cs-grid .cc-ind { font-family: var(--rv-font-mono) !important; font-size: 12px !important; color: var(--rv-teal) !important; letter-spacing: 0 !important; text-transform: none !important; }
.rv-cs-grid .cc h2 { font-family: var(--rv-font-head) !important; font-weight: 600 !important; font-size: clamp(20px,2vw,24px) !important; letter-spacing: -.02em !important; line-height: 1.2 !important; color: var(--rv-paper) !important; margin: 0 !important; }
.rv-cs-grid .cc-sum { color: var(--rv-paper-text) !important; font-size: 15px !important; line-height: 1.55; margin: 0 !important; }
.rv-cs-grid .cc-stats { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 8px 0 !important; padding: 16px 0 !important; border-top: 1px solid rgba(239,241,239,.12) !important; border-bottom: 1px solid rgba(239,241,239,.12) !important; background: none !important; }
.rv-cs-grid .cc-stats b { display: block; font-family: var(--rv-font-head) !important; font-weight: 500 !important; font-size: clamp(1.2rem,2vw,1.6rem) !important; letter-spacing: -.03em; color: var(--rv-paper) !important; }
.rv-cs-grid .cc-stats span { font-size: 13px !important; color: var(--rv-paper-text) !important; }
.rv-cs-grid .cc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: auto; }
.rv-cs-grid .cc-tags { font-family: var(--rv-font-mono) !important; font-size: 12px !important; color: rgba(239,241,239,.6) !important; }
.rv-cs-grid .cc-cta { color: var(--rv-teal) !important; font-weight: 500; font-size: 14px; }
@media (max-width: 640px) { .rv-cs-grid .cc-stats { grid-template-columns: 1fr; } .rv-hub-cs .rv-tool-stats { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.rv-hub-cs .rv-h1, .rv-hub-cs .rv-h1 span { margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; max-width: none; }
.rv-hub-cs .rv-h1 { padding: 0 !important; }

/* ---------- Case-study pages (/case-studies/<slug>): variable remap, markup and copy untouched ---------- */
.rv-case .cs { --paper: #EFF1EF; --paper-2: #EFF1EF; --rule: rgba(2,6,23,.12); --rule-2: rgba(2,6,23,.2); --ink: #020617; --ink-2: #3a3f4a; --ink-3: #5b6270;
  --teal: #01aac1; --teal-ink: #017d8e; --teal-wash: #e6f6f8; padding-top: 0 !important; }
.rv-case .cs > section { position: relative; isolation: isolate; border-bottom: 0 !important; }
.rv-case .cs > section:not(.evidence):not(.lesson):not(.cta)::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: multiply;
  background-image: var(--rv-linen-grain), repeating-linear-gradient(0deg, rgba(2,6,23,.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(2,6,23,.03) 0 1px, transparent 1px 3px);
  background-size: 200px 200px, auto, auto; }
.rv-case .cs > section.evidence, .rv-case .cs > section.lesson { background: var(--rv-navy) !important; }
/* consecutive light sections read as one paper band */
.rv-case .cs > section:not(.evidence):not(.lesson):not(.cta) + section:not(.evidence):not(.lesson):not(.cta) { padding-top: 0 !important; }
.rv-case .cs h1 { font-weight: 500 !important; letter-spacing: -.05em !important; line-height: .95 !important; font-size: clamp(2.4rem,5.6vw,5rem) !important; }
.rv-case .cs h2 { font-weight: 500 !important; letter-spacing: -.035em !important; }
.rv-case .cs .sec-head .num { display: none; }                 /* eyebrow labels (brand style) */
.rv-case .cs .sec-head { grid-template-columns: 1fr; }
.rv-case .cs .label { letter-spacing: 0; text-transform: none; font-size: 12px; }
.rv-case .cs .headline-stats b { font-weight: 500; letter-spacing: -.04em; font-size: clamp(2rem,4vw,2.75rem); }
.rv-case .cs .panel { border-top-color: var(--rv-navy); }
.rv-case .cs [class*="ex-img"], .rv-case .cs img { border-radius: 0 !important; }
/* closing CTA: teal band, pressable navy button */
.rv-case .cs > section.cta { background: var(--rv-teal) !important; padding-block: clamp(64px,8vw,104px) !important; }
.rv-case .cs .cta-row { border-top: 0 !important; padding-top: 0; }
.rv-case .cs .cta-row h2 { font-size: clamp(2rem,4.4vw,3.25rem) !important; line-height: 1; color: var(--rv-navy); }
.rv-case .cs .cta-row a:first-of-type { display: inline-flex; align-items: center; min-height: 52px; padding: 16px 22px; border-radius: 0 !important; background: var(--rv-navy) !important; color: var(--rv-paper) !important;
  font-family: var(--rv-font-head); font-weight: 600; box-shadow: 5px 5px 0 var(--rv-teal-dark); text-decoration: none; }
.rv-case .cs .cta-row a:not(:first-of-type) { color: var(--rv-navy) !important; border-color: var(--rv-navy) !important; background: none !important; border-radius: 0 !important; }

/* ---------- Industry pages (/industries/<slug>) ---------- */
/* Two dark sections in a row read as ONE navy band */
.rv-industry main > section:is(.bg-slate-950, .bg-slate-900) + section:is(.bg-slate-950, .bg-slate-900) { padding-top: 0 !important; }
/* Closing CTA section: teal band */
.rv-industry main > section:last-of-type { background: var(--rv-teal) !important; color: var(--rv-navy) !important; }
.rv-industry main > section:last-of-type :is(h2, h3, p, span, li) { color: var(--rv-navy) !important; }
.rv-industry main > section:last-of-type a[class*="bg-novastacks"] { background: var(--rv-navy) !important; color: var(--rv-paper) !important; }
.rv-industry main > section:last-of-type a:not([class*="bg-novastacks"]) { color: var(--rv-navy) !important; border-color: var(--rv-navy) !important; background: none !important; }
.rv-industry main > section.bg-white table thead th, .rv-industry main table thead th { background: var(--rv-navy) !important; color: var(--rv-paper) !important; }
.rv-industry main { padding-top: 0 !important; }
/* Industry pages: label spans and the case-study kicker (all `//` or "01 / X" eyebrows) hidden */
.rv-industry main :is(span, p).font-mono.tracking-wider { display: none; }
/* The CTA is the last section of main; ensure the selector wins over the generic dark rule */
.rv-industry main > section:last-of-type.bg-slate-950 { background: var(--rv-teal) !important; }

/* ---------- Privacy + team pages ---------- */
.rv-plain main > section:first-of-type h1 { color: var(--rv-paper); }
.rv-plain main { color: var(--rv-paper-text); }
.rv-plain main :is(h2, h3) { color: var(--rv-paper) !important; }
.rv-plain main a { color: var(--rv-teal) !important; }
.rv-team-page { background: var(--rv-navy); }
.rv-team-page main > section:last-of-type { background: var(--rv-teal) !important; color: var(--rv-navy) !important; }
.rv-team-page main > section:last-of-type :is(h2, h3, p, span) { color: var(--rv-navy) !important; }
.rv-team-page main > section:last-of-type a { background: var(--rv-navy) !important; color: var(--rv-paper) !important; border-radius: 0 !important; box-shadow: 5px 5px 0 var(--rv-teal-dark); }
.rv-team-page main img { border-radius: 0 !important; filter: grayscale(1); outline: 1px solid var(--rv-clay); outline-offset: 4px; }

/* ---------- GEO Beat hub (/geo-beat/, body.rv-geo). Brief text untouched; chrome only. ---------- */
.rv-geo { background: var(--rv-paper) !important; color: var(--rv-navy); font-family: var(--rv-font-body); }
.rv-geo .hero { background: var(--rv-navy) !important; padding: clamp(56px,7vw,96px) 0 !important; }
.rv-geo .hero .geo1, .rv-geo .hero .geoc, .rv-geo .hero .geoc2 { display: none !important; }
.rv-geo .hero h1 { font-family: var(--rv-font-head) !important; font-weight: 500 !important; font-size: clamp(2.8rem,7vw,6rem) !important; letter-spacing: -.05em; line-height: .92 !important; color: var(--rv-paper) !important; }
.rv-geo .hero h1 em { display: block; margin-top: 14px; font-family: var(--rv-font-human) !important; font-style: italic; font-weight: 400; font-size: .42em; letter-spacing: 0; color: var(--rv-clay) !important; }
.rv-geo .hero .standfirst { color: var(--rv-paper-text) !important; max-width: 60ch; }
.rv-geo .hero .bc, .rv-geo .hero .bc a, .rv-geo .lang-switch a { color: rgba(239,241,239,.75) !important; }
.rv-geo .signup-card { background: var(--rv-paper) !important; color: var(--rv-navy) !important; border-radius: 0 !important; border: 0 !important; box-shadow: 8px 8px 0 var(--rv-teal) !important; }
.rv-geo .signup-card h3 { font-family: var(--rv-font-head) !important; color: var(--rv-navy) !important; }
.rv-geo .signup-card p { color: var(--rv-ink-soft) !important; }
.rv-geo .signup-card input { border-radius: 0 !important; border: 1px solid rgba(2,6,23,.22) !important; background: var(--rv-white) !important; color: var(--rv-navy) !important; min-height: 48px; }
.rv-geo .signup-card button { border-radius: 0 !important; background: var(--rv-navy) !important; color: var(--rv-paper) !important; font-family: var(--rv-font-head); font-weight: 600; min-height: 48px; box-shadow: 5px 5px 0 var(--rv-teal-dark); }
.rv-geo body > section:not(.hero), .rv-geo > section:not(.hero) { position: relative; isolation: isolate; }
.rv-geo > section:not(.hero)::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: multiply;
  background-image: var(--rv-linen-grain), repeating-linear-gradient(0deg, rgba(2,6,23,.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(2,6,23,.03) 0 1px, transparent 1px 3px); background-size: 200px 200px, auto, auto; }
.rv-geo .item { border-top: 1px solid rgba(2,6,23,.14) !important; }
.rv-geo .item h2, .rv-geo .item h2 a { font-family: var(--rv-font-head) !important; font-weight: 500 !important; letter-spacing: -.025em; color: var(--rv-navy) !important; }
.rv-geo .when { font-family: var(--rv-font-mono) !important; font-size: 12px !important; color: var(--rv-ink-soft) !important; letter-spacing: 0 !important; }
.rv-geo .when b { display: block; color: var(--rv-teal-dark) !important; font-weight: 500; }
.rv-geo .card-sum { color: var(--rv-ink-soft) !important; }
.rv-geo a.more { color: var(--rv-teal-dark) !important; }
.rv-geo .sw a, .rv-geo .sw button { border-radius: 0 !important; }
.rv-geo > footer { overflow-x: clip; }

/* Methodology: services is its own taller band; FAQ and CTA use the site components */
.rv-method #explore { padding-top: clamp(104px,12vw,176px) !important; padding-bottom: clamp(104px,12vw,176px) !important; }
.rv-method #explore h2 { margin-bottom: clamp(40px,5vw,72px) !important; }
.rv-method #explore .grid { gap: clamp(20px,3vw,32px) !important; }
.rv-method #explore .grid > * { padding: clamp(28px,3vw,40px) !important; }
.rv-method #get-started.rv-cta-band { text-align: left; }
.rv-method #get-started.rv-cta-band a.rv-btn { background: var(--rv-navy) !important; color: var(--rv-paper) !important; }
/* The industry-page teal rule must not restyle the component's secondary link */
.rv-industry main > section.rv-cta-band a.rv-link { background: none !important; }
/* GEO Beat brief pages (same body class rv-geo; rendered by publish_geo_beat.py page_shell) */
.rv-geo .hero h1 { font-size: clamp(2.3rem,5vw,4.25rem) !important; max-width: 20ch; }
.rv-geo .signup-card { background: var(--rv-white) !important; }
.rv-geo .take { border-radius: 0 !important; background: var(--rv-navy) !important; box-shadow: none !important; }
.rv-geo .take .tk { font-family: var(--rv-font-mono); letter-spacing: 0; text-transform: none; color: var(--rv-teal) !important; }
.rv-geo .hero .pill, .rv-geo .briefimg img { border-radius: 0 !important; }
.rv-geo .hero .kicker { font-family: var(--rv-font-mono); letter-spacing: 0; text-transform: none; }
.rv-geo article { color: var(--rv-navy); }
/* Methodology services band: heading pair, left-aligned like every other band */
.rv-method #explore > .container { max-width: var(--rv-max); padding-left: var(--rv-gutter); padding-right: var(--rv-gutter); text-align: left; }
.rv-method #explore .rv-h-pair { font-size: inherit !important; line-height: inherit !important; letter-spacing: -.04em !important; margin-bottom: clamp(40px,5vw,72px) !important; color: var(--rv-navy); }
.rv-method #explore .rv-h-pair .rv-lead { font-size: clamp(1.25rem,2.4vw,1.75rem); }
.rv-method #explore .rv-h-pair .rv-big { font-size: clamp(2.4rem,6vw,5rem); line-height: .9; }
.rv-method #explore .grid { margin-left: 0 !important; max-width: none !important; }
.rv-method #explore .rv-h-pair .rv-big { max-width: 14ch; }
