/* =====================================================================
   VectorShift — pSEO Component Library
   Built once; every template composes these. Loads AFTER vs-tokens.css.
   Editorial financial-paper aesthetic: cream surfaces, hairlines, ink,
   espresso/gold italic accents, squared corners, slow motion.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: italic; }
ul, ol { list-style: none; }

/* Subtle paper grain over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─── LAYOUT PRIMITIVES ─────────────────────────────────────────────── */
.vs-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-page); }
.vs-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--pad-page); }
.vs-main { padding-top: var(--nav-h); container-type: inline-size; container-name: vp; }
.vs-section { padding: var(--s-10) 0; border-bottom: 1px solid var(--rule); }
.vs-section--tight { padding: var(--s-8) 0; }
.vs-section--alt { background: var(--bg-alt); }
.vs-rule { height: 1px; background: var(--rule); border: 0; }

/* Two-column editorial section header: 240px label + 1fr heading */
.vs-sec-head { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-10); align-items: start; margin-bottom: var(--s-10); }
.vs-sec-head__label { display: flex; align-items: baseline; gap: 14px; font-family: var(--sans); font-weight: 500; font-size: var(--t-ui); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); }
.vs-sec-head__num { font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--accent); }
.vs-sec-head__title { font-family: var(--serif); font-weight: 400; font-size: var(--t-h1); line-height: var(--lh-heading); letter-spacing: var(--tr-heading); color: var(--ink); max-width: 900px; }
.vs-sec-head__title em { color: var(--accent); }
.vs-sec-head__sub { font-family: var(--serif); font-weight: 300; font-size: var(--t-lede); line-height: 1.5; color: var(--ink-soft); max-width: 540px; margin-top: var(--s-5); }

/* ─── NAV (fixed, blurred) ──────────────────────────────────────────── */
.vs-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--nav-h); background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.vs-nav__inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 40px; height: 100%; position: relative; display: flex; align-items: center; justify-content: space-between; }
.vs-nav__logo { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.vs-nav__logo em { font-style: normal; font-weight: 600; color: var(--brand); }
.vs-nav__links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 36px; }
.vs-nav__links a { font-size: var(--t-ui); color: var(--ink-soft); position: relative; padding: 6px 0; transition: color var(--t-fast); white-space: nowrap; }
.vs-nav__links a:hover { color: var(--accent); }
.vs-nav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }
.vs-nav__actions { display: flex; align-items: center; gap: 24px; }
.vs-nav__login { font-size: var(--t-ui); color: var(--ink-soft); transition: color var(--t-fast); white-space: nowrap; }
.vs-nav__login:hover { color: var(--accent); }
.vs-nav__cta { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-ui); font-weight: 500; color: var(--ink); padding: 8px 16px; border: 1px solid var(--ink); transition: background var(--t-fast), color var(--t-fast); white-space: nowrap; }
.vs-nav__cta:hover { background: var(--ink); color: var(--bg); }
.vs-nav__toggle { display: none; }

/* ─── BUTTONS / LINKS ───────────────────────────────────────────────── */
.vs-btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); padding: 13px 22px; border: 1px solid var(--ink); background: transparent; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.vs-btn:hover { background: var(--ink); color: var(--bg); }
.vs-btn--inverse { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vs-btn--inverse:hover { background: transparent; color: var(--ink); }
.vs-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.vs-textlink { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-meta); font-weight: 500; color: var(--accent); transition: gap var(--t-fast); }
.vs-textlink svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.vs-textlink:hover { gap: 12px; }

/* ─── BREADCRUMB ────────────────────────────────────────────────────── */
.vs-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--sans); font-size: var(--t-meta); color: var(--muted); padding: var(--s-7) 0 0; }
.vs-crumb a { transition: color var(--t-fast); }
.vs-crumb a:hover { color: var(--accent); }
.vs-crumb__sep { color: var(--dim); }
.vs-crumb [aria-current] { color: var(--ink); }

/* ─── ENTITY HERO ───────────────────────────────────────────────────── */
.vs-hero { padding: var(--s-8) 0 var(--s-7); border-bottom: 1px solid var(--rule); }
.vs-hero__eyebrow { display: flex; align-items: center; gap: 16px; font-family: var(--sans); font-weight: 500; font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-5); }
.vs-hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--rule-dk); }
.vs-hero__row { display: grid; grid-template-columns: auto 1fr; gap: var(--s-6); align-items: start; }
.vs-hero__logo { width: 60px; height: 60px; border: 1px solid var(--rule-dk); background: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; color: var(--ink); overflow: hidden; flex-shrink: 0; }
.vs-hero__logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.vs-hero__h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); max-width: 22ch; text-wrap: balance; }
.vs-hero__h1 em { color: var(--accent); }
.vs-hero__status { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: var(--s-4); font-family: var(--sans); font-size: var(--t-meta); color: var(--muted); }
.vs-hero__status span { display: inline-flex; align-items: center; gap: 8px; }
.vs-hero__status span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-right: 10px; }
.vs-hero__lede { font-family: var(--serif); font-weight: 300; font-size: var(--t-lede); line-height: 1.5; color: var(--ink-soft); max-width: 620px; margin-top: var(--s-5); }
.vs-keyfacts { display: flex; flex-wrap: wrap; gap: 0; margin-top: var(--s-7); border-top: 1px solid var(--rule); }
.vs-keyfacts__item { padding: var(--s-5) var(--s-6) var(--s-5) 0; margin-right: var(--s-6); border-right: 1px solid var(--rule); }
.vs-keyfacts__item:last-child { border-right: 0; margin-right: 0; }
.vs-keyfacts__k { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.vs-keyfacts__v { font-family: var(--serif); font-size: 24px; color: var(--ink); font-feature-settings: "lnum","tnum"; }

/* ─── AI SNAPSHOT (GEO hero component) ──────────────────────────────── */
.vs-snapshot { border: 1px solid var(--rule-dk); background: var(--paper); padding: 0; margin: var(--s-8) 0; display: grid; grid-template-columns: 1.4fr 1fr; }
.vs-snapshot__main { padding: var(--s-7) var(--s-7) var(--s-7); border-right: 1px solid var(--rule); }
.vs-snapshot__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-label); font-weight: 500; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-4); }
.vs-snapshot__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.vs-snapshot__answer { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.5; letter-spacing: -0.005em; color: var(--ink); text-wrap: pretty; }
.vs-snapshot__answer em { color: var(--accent); }
.vs-snapshot__facts { padding: var(--s-7); display: block; }
.vs-snapshot__facts dl { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.vs-snapshot__facts dt { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); padding: 12px 24px 12px 0; border-top: 1px solid var(--rule); align-self: center; }
.vs-snapshot__facts dd { font-family: var(--serif); font-size: 16px; color: var(--ink); text-align: right; padding: 12px 0; border-top: 1px solid var(--rule); font-feature-settings: "lnum","tnum"; align-self: center; }
.vs-snapshot__facts > dl > dt:first-of-type, .vs-snapshot__facts > dl > dd:first-of-type { border-top: 0; }

/* ─── SNAPSHOT SCORECARD (stat tiles) ───────────────────────────────── */
.vs-scorecard { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.vs-stat { padding: var(--s-6) var(--s-5); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: var(--s-2); }
.vs-stat__label { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); }
.vs-stat__value { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.0; letter-spacing: -0.03em; color: var(--ink); font-feature-settings: "lnum","tnum"; }
.vs-stat__value sup { font-size: 0.4em; vertical-align: top; color: var(--accent); margin-left: 2px; }
.vs-stat__sub { font-size: var(--t-meta); color: var(--dim); }

/* ─── TEAR-SHEET (label → value dl) ─────────────────────────────────── */
.vs-tearsheet { border-top: 1px solid var(--rule); }
.vs-tearsheet__row { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-6); padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.vs-tearsheet__k { font-size: var(--t-body-sm); color: var(--muted); }
.vs-tearsheet__v { font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.5; font-feature-settings: "lnum","tnum"; }
.vs-tearsheet__v.is-nd { font-style: italic; color: var(--dim); }
.vs-tearsheet__note { font-size: var(--t-meta); color: var(--dim); padding-top: var(--s-4); font-style: italic; }

/* ─── DATA TABLE ────────────────────────────────────────────────────── */
.vs-tablewrap { border: 1px solid var(--rule); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vs-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: var(--t-body-sm); min-width: 560px; }
.vs-table thead th { position: sticky; top: 0; background: var(--bg-alt); text-align: right; font-weight: 500; font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 14px 20px; border-bottom: 1px solid var(--rule-dk); white-space: nowrap; }
.vs-table thead th:first-child { text-align: left; }
.vs-table tbody th { text-align: left; font-weight: 400; color: var(--ink); padding: 14px 20px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.vs-table tbody td { text-align: right; padding: 14px 20px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); font-feature-settings: "lnum","tnum"; white-space: nowrap; }
.vs-table tbody tr:hover { background: rgba(20,19,15,0.02); }
.vs-table td.is-nd { color: var(--dim); font-style: italic; }
.vs-table tfoot td, .vs-table tfoot th { padding: 14px 20px; border-top: 1px solid var(--rule-dk); font-weight: 500; color: var(--ink); }

/* ─── LIST-ROW (workhorse) ──────────────────────────────────────────── */
.vs-rows { border-top: 1px solid var(--rule); }
.vs-row { display: grid; grid-template-columns: 56px 1fr auto 24px; gap: var(--s-5); align-items: center; padding: var(--s-5) var(--s-2); border-bottom: 1px solid var(--rule); transition: background var(--t-fast); }
.vs-row:hover { background: rgba(20,19,15,0.02); }
.vs-row:hover .vs-row__chev { color: var(--accent); transform: translateX(3px); }
.vs-row__mono { width: 48px; height: 48px; border: 1px solid var(--rule-dk); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 19px; color: var(--accent); overflow: hidden; }
.vs-row__mono img { width: 100%; height: 100%; object-fit: cover; }
.vs-row__title { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.2; color: var(--ink); letter-spacing: -0.012em; }
.vs-row__sub { display: block; font-size: var(--t-meta); color: var(--muted); margin-top: 5px; }
.vs-row__meta { text-align: right; font-family: var(--serif); font-size: 16px; color: var(--ink-soft); font-feature-settings: "lnum","tnum"; white-space: nowrap; }
.vs-row__meta small { display: block; font-family: var(--sans); font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.vs-row__chev { color: var(--dim); transition: color var(--t-fast), transform var(--t-fast); display: flex; }
.vs-row__chev svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ─── CARD GRID ─────────────────────────────────────────────────────── */
.vs-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.vs-cards--2 { grid-template-columns: repeat(2, 1fr); }
.vs-card { padding: var(--s-6); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: var(--s-3); transition: background var(--t-fast); min-height: 200px; }
.vs-card:hover { background: rgba(20,19,15,0.025); }
.vs-card:hover .vs-card__arrow { transform: translateX(4px); color: var(--accent); }
.vs-card__eyebrow { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); }
.vs-card__title { font-family: var(--serif); font-size: var(--t-h4); line-height: 1.2; letter-spacing: -0.012em; color: var(--ink); }
.vs-card__excerpt { font-size: var(--t-body-sm); line-height: 1.6; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vs-card__foot { margin-top: auto; padding-top: var(--s-4); display: flex; align-items: center; justify-content: space-between; font-size: var(--t-meta); color: var(--muted); }
.vs-card__arrow { transition: transform var(--t-fast), color var(--t-fast); display: flex; }
.vs-card__arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ─── TIMELINE (horizontal) ─────────────────────────────────────────── */
.vs-timeline { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vs-timeline__track { display: flex; min-width: min-content; padding: var(--s-7) 0 var(--s-6); position: relative; }
.vs-timeline__track::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--s-7) + 38px); height: 1px; background: var(--rule); }
.vs-tl-item { flex: 0 0 220px; padding-right: var(--s-6); position: relative; }
.vs-tl-item__date { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--accent); margin-bottom: 14px; }
.vs-tl-item__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); position: relative; z-index: 1; margin-bottom: var(--s-5); }
.vs-tl-item__value { font-family: var(--serif); font-size: 22px; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 6px; font-feature-settings: "lnum","tnum"; }
.vs-tl-item__label { font-size: var(--t-meta); color: var(--muted); line-height: 1.5; max-width: 180px; }

/* ─── TRANSCRIPT BLOCK ──────────────────────────────────────────────── */
.vs-transcript { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-9); }
.vs-transcript__nav { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.vs-transcript__nav a { display: block; font-size: var(--t-body-sm); color: var(--muted); padding: 8px 0 8px 16px; border-left: 1px solid var(--rule); transition: color var(--t-fast), border-color var(--t-fast); }
.vs-transcript__nav a:hover, .vs-transcript__nav a.is-active { color: var(--accent); border-color: var(--accent); }
.vs-transcript__body { max-width: 720px; }
.vs-transcript__section { margin-bottom: var(--s-9); }
.vs-transcript__h { font-family: var(--sans); font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-6); }
.vs-speech { margin-bottom: var(--s-6); }
.vs-speech__who { font-family: var(--serif); font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.vs-speech__who small { font-family: var(--sans); font-size: var(--t-meta); color: var(--muted); margin-left: 8px; }
.vs-speech__p { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--ink-soft); letter-spacing: -0.003em; }
.vs-speech__p + .vs-speech__p { margin-top: var(--s-4); }

/* ─── ARTICLE BODY (editorial long-form) ────────────────────────────── */
.vs-prose { max-width: 720px; font-family: var(--serif); }
.vs-prose p { font-size: 19px; line-height: 1.75; color: var(--ink-soft); margin-bottom: var(--s-5); letter-spacing: -0.003em; }
.vs-prose h2 { font-size: var(--t-h2); font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); margin: var(--s-9) 0 var(--s-5); }
.vs-prose h3 { font-size: var(--t-h4); font-weight: 500; color: var(--ink); margin: var(--s-7) 0 var(--s-3); }
.vs-prose ul, .vs-prose ol { margin: 0 0 var(--s-5) 0; padding: 0; }
.vs-prose li { font-size: 18px; line-height: 1.6; color: var(--ink-soft); padding-left: var(--s-6); position: relative; margin-bottom: var(--s-3); }
.vs-prose ol { counter-reset: vsli; }
.vs-prose ol li::before { counter-increment: vsli; content: counter(vsli, decimal-leading-zero); position: absolute; left: 0; font-style: italic; color: var(--accent); }
.vs-prose ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 1px; background: var(--accent); }
.vs-prose blockquote { border-left: 2px solid var(--accent); padding-left: var(--s-6); margin: var(--s-8) 0; font-size: var(--t-h4); line-height: 1.4; color: var(--ink); font-style: italic; }
.vs-prose figure { margin: var(--s-8) 0; }
.vs-prose figcaption { font-family: var(--sans); font-size: var(--t-meta); color: var(--muted); margin-top: var(--s-3); }
.vs-callout { border: 1px solid var(--rule-dk); background: var(--paper); padding: var(--s-6); margin: var(--s-8) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.vs-callout__k { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-3); }
.vs-callout__v { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink); }

/* ─── FAQ ACCORDION ─────────────────────────────────────────────────── */
.vs-faq { border-top: 1px solid var(--rule); max-width: 860px; }
.vs-faq__item { border-bottom: 1px solid var(--rule); }
.vs-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); text-align: left; background: none; border: 0; cursor: pointer; padding: var(--s-5) 0; font-family: var(--serif); font-size: 21px; color: var(--ink); letter-spacing: -0.012em; transition: color var(--t-fast); }
.vs-faq__q:hover { color: var(--accent); }
.vs-faq__icon { flex-shrink: 0; width: 16px; height: 16px; position: relative; }
.vs-faq__icon::before, .vs-faq__icon::after { content: ""; position: absolute; background: var(--accent); transition: transform var(--t-fast); }
.vs-faq__icon::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.vs-faq__icon::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.vs-faq__item.is-open .vs-faq__icon::after { transform: translateX(-50%) scaleY(0); }
.vs-faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t-med) var(--ease-out); }
.vs-faq__a-inner { padding: 0 0 var(--s-5); font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 680px; }

/* ─── RELATED STRIP → bordered-card carousel ───────────────────────── */
.vs-related { padding: var(--s-9) 0; border-top: 1px solid var(--rule); }
.vs-related__bar { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.vs-related__label { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -0.02em; text-transform: none; color: var(--ink); margin: 0; }
.vs-relnav { display: flex; gap: 8px; flex-shrink: 0; align-self: center; }
.vs-relnav button { width: 38px; height: 38px; border: 1px solid var(--rule-dk); background: var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast); }
.vs-relnav button:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vs-relnav button:disabled { opacity: 0.3; cursor: default; }
.vs-relnav svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.vs-related__grid { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x proximity; border: 0; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.vs-related__grid::-webkit-scrollbar { display: none; }
.vs-related__item { flex: 0 0 calc((100% - var(--s-4) * 2) / 3); scroll-snap-align: start; border: 1px solid var(--rule-dk); background: var(--bg); padding: var(--s-5); display: flex; flex-direction: column; gap: 10px; min-height: 116px; transition: background var(--t-fast); }
.vs-related__item:hover { background: rgba(11,14,18,0.025); }
.vs-related__item:hover .vs-related__name { color: var(--accent); }
.vs-related__kind { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--dim); }
.vs-related__name { font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.25; letter-spacing: -0.012em; transition: color var(--t-fast); margin-top: auto; }

/* ─── FILTER / SORT BAR ─────────────────────────────────────────────── */
.vs-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.vs-filterbar__group { display: flex; align-items: center; gap: 10px; }
.vs-filterbar__lbl { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); }
.vs-chip { font-family: var(--sans); font-size: var(--t-body-sm); color: var(--ink-soft); padding: 7px 14px; border: 1px solid var(--rule-dk); background: var(--bg); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); white-space: nowrap; }
.vs-chip:hover { border-color: var(--ink); }
.vs-chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vs-filterbar__spacer { flex: 1; }
.vs-select { font-family: var(--sans); font-size: var(--t-body-sm); color: var(--ink); padding: 7px 30px 7px 14px; border: 1px solid var(--rule-dk); background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B4824' stroke-width='1.5'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 8px center / 14px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.vs-azbar { display: flex; flex-wrap: wrap; gap: 2px; }
.vs-azbar a { font-family: var(--serif); font-size: 15px; color: var(--muted); padding: 4px 8px; transition: color var(--t-fast); }
.vs-azbar a:hover { color: var(--accent); }

/* ─── PAGINATION ────────────────────────────────────────────────────── */
.vs-pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: var(--s-8) 0 0; }
.vs-pager a, .vs-pager span { font-family: var(--sans); font-size: var(--t-body-sm); color: var(--ink-soft); min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; transition: border-color var(--t-fast), color var(--t-fast); }
.vs-pager a:hover { border-color: var(--rule-dk); color: var(--accent); }
.vs-pager .is-current { border-color: var(--ink); color: var(--ink); }
.vs-pager__ellipsis { color: var(--dim); }

/* ─── QUARTER / PREV-NEXT PAGER (proper buttons) ───────────────────── */
.vs-stepper { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.vs-stepper a { display: flex; flex-direction: column; gap: 6px; padding: var(--s-4) var(--s-5); border: 1px solid var(--rule-dk); background: var(--bg); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.vs-stepper a:hover { background: var(--ink); border-color: var(--ink); }
.vs-stepper a:hover .vs-stepper__dir, .vs-stepper a:hover .vs-stepper__name { color: var(--bg); }
.vs-stepper a:last-child { text-align: right; align-items: flex-end; }
.vs-stepper__dir { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); transition: color var(--t-fast); white-space: nowrap; }
.vs-stepper__dir svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.vs-stepper__name { font-family: var(--serif); font-size: 19px; color: var(--ink); transition: color var(--t-fast); white-space: nowrap; }

/* ─── PROVENANCE FOOTNOTE ───────────────────────────────────────────── */
.vs-provenance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding: var(--s-6) 0; border-top: 1px solid var(--rule); font-size: var(--t-meta); color: var(--muted); }
.vs-provenance__k { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--dim); }
.vs-provenance a { color: var(--accent); transition: color var(--t-fast); }
.vs-provenance a:hover { text-decoration: underline; }
.vs-provenance time { color: var(--ink-soft); }

/* ─── FACET NAVIGATOR (company hub) ─────────────────────────────────── */
.vs-facets { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.vs-facet { padding: var(--s-6); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: var(--s-3); transition: background var(--t-fast); position: relative; }
.vs-facet:hover { background: rgba(20,19,15,0.025); }
.vs-facet:hover .vs-facet__arrow { transform: translateX(4px); color: var(--accent); }
.vs-facet__num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent); }
.vs-facet__title { font-family: var(--serif); font-size: var(--t-h4); color: var(--ink); letter-spacing: -0.012em; }
.vs-facet__teaser { font-size: var(--t-body-sm); line-height: 1.55; color: var(--ink-soft); }
.vs-facet__count { font-size: var(--t-meta); color: var(--muted); margin-top: auto; padding-top: var(--s-4); display: flex; align-items: center; justify-content: space-between; }
.vs-facet__arrow { transition: transform var(--t-fast), color var(--t-fast); display: flex; }
.vs-facet__arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ─── SHARE SCORECARD (og:image, 1200×630 ratio) ────────────────────── */
.vs-share { width: 1200px; max-width: 100%; aspect-ratio: 1200 / 630; background: var(--dark-bg); color: var(--paper); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.vs-share__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(0.18) brightness(0.7) contrast(1.05); }
.vs-share__bg::after { content: ""; position: absolute; inset: 0; background: var(--dark-blend); mix-blend-mode: hard-light; opacity: 0.7; }
.vs-share__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(8,11,18,0.92) 0%, rgba(8,11,18,0.7) 60%, rgba(8,11,18,0.55) 100%); }
.vs-share__inner { position: relative; z-index: 2; padding: 56px 64px; display: flex; flex-direction: column; height: 100%; }
.vs-share__eyebrow { font-size: 14px; font-weight: 500; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--accent-gold); margin-bottom: 20px; }
.vs-share__title { font-family: var(--serif); font-size: 52px; font-weight: 400; line-height: 1.05; letter-spacing: -0.028em; color: var(--paper); max-width: 18ch; text-shadow: var(--shadow-text-dark); }
.vs-share__title em { font-style: italic; color: var(--accent-gold); }
.vs-share__stats { display: flex; gap: 56px; margin-top: auto; }
.vs-share__stat-l { font-size: 12px; letter-spacing: var(--tr-label); text-transform: uppercase; color: rgba(251,249,244,0.7); margin-bottom: 8px; }
.vs-share__stat-v { font-family: var(--serif); font-size: 34px; color: var(--paper); font-feature-settings: "lnum","tnum"; }
.vs-share__foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 64px; border-top: 1px solid rgba(251,249,244,0.18); }
.vs-share__brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--paper); }
.vs-share__brand em { font-style: normal; color: var(--accent-gold); }
.vs-share__tag { font-size: 12px; letter-spacing: var(--tr-label); text-transform: uppercase; color: rgba(251,249,244,0.6); }

/* ─── CTA BAND ──────────────────────────────────────────────────────── */
.vs-cta { padding: var(--s-11) 0; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.vs-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 50% at 80% 20%, rgba(91,72,36,0.35), transparent 60%), radial-gradient(ellipse 60% 40% at 20% 80%, rgba(91,72,36,0.18), transparent 60%); }
.vs-cta__inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-10); }
.vs-cta__heading { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 64px); font-weight: 400; line-height: 1.04; letter-spacing: -0.028em; color: var(--bg); max-width: 700px; }
.vs-cta__heading em { font-style: italic; }
.vs-cta__action { flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em; background: var(--bg); color: var(--ink); padding: 18px 26px; border: 1px solid var(--bg); transition: background var(--t-fast), color var(--t-fast); white-space: nowrap; }
.vs-cta__action:hover { background: transparent; color: var(--bg); }
.vs-cta__action svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ─── FOOTER (with hub block — internal-link backbone) ──────────────── */
.vs-footer { background: var(--ink); color: var(--bg); padding: var(--s-10) 0 var(--s-7); }
.vs-footer__hub { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-8); padding-bottom: var(--s-8); border-bottom: 1px solid rgba(242,239,232,0.15); }
.vs-footer__logo { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.015em; color: var(--bg); }
.vs-footer__logo em { font-style: normal; color: var(--accent-gold); }
.vs-footer__tag { font-family: var(--serif); font-size: 15px; font-style: italic; line-height: 1.5; color: rgba(242,239,232,0.7); margin-top: var(--s-4); max-width: 30ch; }
.vs-footer__col h4 { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: rgba(242,239,232,0.5); margin-bottom: var(--s-4); }
.vs-footer__col a { display: block; font-size: var(--t-body-sm); color: rgba(242,239,232,0.85); padding: 6px 0; transition: color var(--t-fast); }
.vs-footer__col a:hover { color: var(--accent-gold); }
.vs-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-6); }
.vs-footer__copy { font-size: var(--t-micro); letter-spacing: 0.04em; color: rgba(242,239,232,0.6); }
.vs-footer__legal { display: flex; gap: var(--s-5); }
.vs-footer__legal a { font-size: var(--t-micro); color: rgba(242,239,232,0.6); transition: color var(--t-fast); }
.vs-footer__legal a:hover { color: var(--accent-gold); }

/* ─── EMPTY / ZERO STATES ───────────────────────────────────────────── */
.vs-empty { padding: var(--s-9) 0; text-align: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.vs-empty__icon { width: 44px; height: 44px; margin: 0 auto var(--s-4); border: 1px solid var(--rule-dk); display: flex; align-items: center; justify-content: center; color: var(--dim); }
.vs-empty__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.vs-empty__title { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: var(--s-3); }
.vs-empty__body { font-size: var(--t-body-sm); color: var(--muted); max-width: 420px; margin: 0 auto; }
.is-nd { font-style: italic; color: var(--dim); }

/* ─── REVEAL ON SCROLL ──────────────────────────────────────────────── */
.vs-reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
.vs-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .vs-reveal { opacity: 1; transform: none; transition: none; } }

/* ─── DEMO MODAL (Request Demo) ─────────────────────────────────────── */
.vs-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; }
.vs-modal.is-open { display: flex; }
.vs-modal__backdrop { position: absolute; inset: 0; background: rgba(15,19,26,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vs-modal__panel { position: relative; z-index: 1; background: var(--bg); width: 100%; max-width: 520px; padding: var(--s-9) var(--s-8) var(--s-8); border: 1px solid var(--rule-dk); animation: vsPanelIn 0.35s var(--ease-out); }
@keyframes vsPanelIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.vs-modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; background: transparent; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: color var(--t-fast); }
.vs-modal__close:hover { color: var(--ink); }
.vs-modal__title { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 12px; }
.vs-modal__title em { font-style: italic; color: var(--accent); }
.vs-modal__sub { font-size: var(--t-body-sm); color: var(--muted); line-height: 1.55; margin-bottom: var(--s-6); }
.vs-field { margin-bottom: var(--s-4); }
.vs-field label { display: block; font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.vs-field input { width: 100%; font-family: var(--sans); font-size: var(--t-body); color: var(--ink); padding: 12px 14px; border: 1px solid var(--rule-dk); background: var(--paper); }
.vs-field input:focus { outline: none; border-color: var(--ink); }

/* ─── CHART (column, NULL-safe, built by JS from a data array) ──────── */
.vs-chart { border: 1px solid var(--rule); padding: var(--s-6) var(--s-6) var(--s-5); }
.vs-chart.is-empty { display: none; }
.vs-chart__cols { display: flex; align-items: flex-end; gap: var(--s-4); height: 230px; border-bottom: 1px solid var(--ink); border-top: 1px solid var(--rule); background-image: linear-gradient(var(--rule) 1px, transparent 1px); background-size: 100% 25%; background-position: 0 0; }
.vs-chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.vs-chart__bar-wrap { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; flex: 1; }
.vs-chart__bar { width: 46%; max-width: 38px; background: var(--ink-soft); min-height: 2px; height: 0; transition: height 0.9s var(--ease-out); }
.vs-chart__col:last-child .vs-chart__bar { background: var(--ink); }
.vs-chart__val { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-bottom: 8px; font-feature-settings: "lnum","tnum"; white-space: nowrap; }
.vs-chart__lbl { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); margin-top: 12px; text-align: center; white-space: nowrap; }
.vs-chart__cap { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--rule); }
.vs-chart__cap-l { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink); }
.vs-chart__cap-r { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); }

/* ─── SECTION "VIEW ALL" LINK + DATA SECTION HEADER ────────────────── */
.vs-datahead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-5); padding-bottom: var(--s-5); margin-bottom: var(--s-6); border-bottom: 1px solid var(--rule-dk); }
.vs-datahead__l { display: flex; align-items: baseline; gap: 14px; }
.vs-datahead__num { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--accent); }
.vs-datahead__title { font-family: var(--serif); font-size: var(--t-h3); letter-spacing: -0.018em; color: var(--ink); }
.vs-datahead__count { font-size: var(--t-meta); color: var(--muted); }
.vs-seclink { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-meta); font-weight: 500; color: var(--accent); white-space: nowrap; transition: gap var(--t-fast); }
.vs-seclink svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.vs-seclink:hover { gap: 12px; }
.vs-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }

/* ─── COVERAGE RATING PILL ─────────────────────────────────────────── */
.vs-rating { display: inline-flex; align-items: center; font-size: var(--t-label); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--rule-dk); padding: 4px 10px; }
.vs-rating--buy { color: var(--accent); border-color: var(--accent); }
.vs-facetlink { cursor: pointer; transition: color var(--t-fast); }
.vs-facetlink:hover span { color: var(--accent) !important; }

/* =====================================================================
   PANEL (framed-card section)  +  E1 (no entry motion)   [global]
   ===================================================================== */
.vs-panel { border: 1px solid var(--rule-dk); background: var(--bg); }
.vs-panel + .vs-panel { margin-top: var(--s-6); }
.vs-panel__hd { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding: 13px 20px; border-bottom: 1px solid var(--rule-dk); background: #F4F5F6; }
.vs-panel__hd h2, .vs-panel__t { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -0.018em; color: var(--ink); line-height: 1.1; margin: 0; }
.vs-panel__hd h2 em, .vs-panel__t em { font-style: italic; color: var(--accent); }
.vs-panel__meta { font-size: var(--t-meta); color: var(--muted); white-space: nowrap; }
.vs-panel__meta a { color: var(--accent); }
.vs-panel__meta a:hover { text-decoration: underline; }
.vs-panel__body { padding: 22px; }
.vs-panel__body--flush { padding: 0; }
/* lists/tables sitting flush inside a panel shed their own outer frame */
.vs-panel__body--flush > .vs-rows { border-top: 0; }
.vs-panel__body--flush > .vs-rows > .vs-row,
.vs-panel__body--flush > .vs-rows > [data-clone] { padding-left: 22px; padding-right: 22px; }
.vs-panel__body--flush > .vs-rows > .vs-row:last-child,
.vs-panel__body--flush > .vs-rows > [data-clone]:last-child { border-bottom: 0; }

/* E1 — no entrance animation anywhere */
.vs-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.vs-chart__bar { transition: none; }

/* Monograms removed globally (no placeholder logo bug) */
.vs-row { grid-template-columns: 1fr auto 24px; }
.vs-row > span { min-width: 0; }
.vs-row__mono { display: none; }

/* ── Company-hub hero: name + key-facts (fills the right) ─────────── */
.hub-hero { display: grid; grid-template-columns: 1fr auto; gap: var(--s-10); align-items: end; }
.hub-hero__main { min-width: 0; }
.hub-hero__facts { display: grid; grid-template-columns: repeat(2, auto); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.hub-fact { background: var(--bg); padding: 13px 24px; min-width: 132px; }
.hub-fact__k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.hub-fact__v { font-family: var(--serif); font-size: 18px; color: var(--ink); font-feature-settings: "lnum","tnum"; }
.hub-fact__v.is-nd { font-size: 14px; font-style: italic; color: var(--dim); }

/* hero variant B — headline metric on the right */
.hub-hero--metric { align-items: center; }
.hub-hero__metric { text-align: right; border-left: 1px solid var(--rule); padding-left: 48px; }
.hub-hero__metric-k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hub-hero__metric-v { font-family: var(--serif); font-size: clamp(38px, 4vw, 54px); line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-feature-settings: "lnum","tnum"; }
.hub-hero__metric-v.is-nd { font-size: 18px; font-style: italic; color: var(--dim); }
.hub-hero__metric-d { font-size: 14px; font-weight: 500; margin-top: 8px; }
.hub-hero__metric-d.is-pos { color: var(--pos); }

/* ── Author strip (editorial article footer) ──────────────────────── */
.vs-author { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-5); align-items: start; border: 1px solid var(--rule-dk); padding: var(--s-6); margin-top: var(--s-9); }
.vs-author__mark { width: 56px; height: 56px; border: 1px solid var(--rule-dk); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.vs-author__k { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.vs-author__name { font-family: var(--serif); font-size: 20px; color: var(--ink); letter-spacing: -0.012em; }
.vs-author__bio { font-size: var(--t-body-sm); line-height: 1.6; color: var(--ink-soft); margin-top: 8px; max-width: 60ch; }

/* repurposed-as-heading elements keep their styled look (no UA bold/margins) */
h2.vs-snapshot__eyebrow, h3.vs-transcript__h { font-weight: 500; margin-top: 0; }

/* =====================================================================
   RESEARCH-TERMINAL COMPONENTS  (PitchBook / Yahoo-Finance density)
   ===================================================================== */
:root { --pos: #15724E; --neg: #8A2A2A; --num: #0B0E12; }

/* ── Two-column terminal layout: main + firmographics rail ────────── */
.vs-terminal { display: grid; grid-template-columns: minmax(0,1fr) 348px; gap: var(--s-6); align-items: start; padding: var(--s-7) 0 var(--s-8); }
.vs-terminal__main { min-width: 0; display: flex; flex-direction: column; gap: var(--s-6); }
.vs-terminal__rail { display: flex; flex-direction: column; gap: var(--s-6); }
.vs-terminal__block { margin-bottom: 0; }
/* single-column stacked panels (no heavy section-break rules) */
.vs-stack { display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-8) 0; }
.vs-terminal__block:last-child { margin-bottom: 0; }
.vs-terminal__rail .vs-blocklbl__t { font-size: 19px; }
.vs-terminal__rail .vs-blocklbl { margin-bottom: var(--s-4); }

/* ── Market-data / key-metrics ribbon ─────────────────────────────── */
.vs-ribbon { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--rule); border-left: 0; }
.vs-ribbon__cell { padding: var(--s-4) var(--s-5); border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vs-ribbon__k { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.vs-ribbon__v { font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--ink); font-feature-settings: "lnum","tnum"; white-space: nowrap; }
.vs-ribbon__v.is-nd { font-family: var(--sans); font-size: 14px; font-style: italic; color: var(--dim); }
.vs-ribbon__v small { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-left: 4px; }

/* ── Quote head: big value + delta ────────────────────────────────── */
.vs-quote { display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; }
.vs-quote__v { font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-feature-settings: "lnum","tnum"; }
.vs-quote__delta { font-family: var(--sans); font-size: 15px; font-weight: 500; font-feature-settings: "lnum","tnum"; }
.vs-quote__delta.is-pos { color: var(--pos); }
.vs-quote__delta.is-neg { color: var(--neg); }
.vs-quote__asof { font-size: var(--t-meta); color: var(--dim); }

/* ── Section heading hierarchy (proper h2 / h3) ───────────────────── */
.vs-blocklbl { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-3); margin-bottom: var(--s-5); border-bottom: 1px solid var(--rule); }
.vs-blocklbl__t { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -0.02em; text-transform: none; color: var(--ink); line-height: 1.1; }
.vs-blocklbl__t em { font-style: italic; color: var(--accent); }
.vs-blocklbl__r { font-size: var(--t-meta); color: var(--muted); white-space: nowrap; }
.vs-blocklbl__r a { color: var(--accent); }
.vs-blocklbl__r a:hover { text-decoration: underline; }
.vs-h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -0.012em; color: var(--ink); margin-bottom: var(--s-4); }
.vs-h3--rule { padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); }

/* ── Financial statement table (multi-period) ─────────────────────── */
.vs-fin { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13px; }
.vs-fin caption { caption-side: top; text-align: left; font-size: var(--t-meta); color: var(--dim); padding-bottom: var(--s-3); font-style: italic; }
.vs-fin thead th { text-align: right; font-weight: 500; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); padding: 8px 0 8px 18px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.vs-fin thead th:first-child { text-align: left; padding-left: 0; }
.vs-fin thead th small { display: block; font-weight: 400; color: var(--dim); font-size: 10px; letter-spacing: 0.02em; margin-top: 2px; }
.vs-fin tbody th { text-align: left; font-weight: 400; color: var(--ink-soft); padding: 9px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.vs-fin tbody td { text-align: right; padding: 9px 0 9px 18px; border-bottom: 1px solid var(--rule); color: var(--num); font-feature-settings: "lnum","tnum"; white-space: nowrap; }
.vs-fin tbody td.is-nd { color: var(--dim); }
.vs-fin tbody tr.is-total th, .vs-fin tbody tr.is-total td { border-bottom: 1px solid var(--ink); font-weight: 600; color: var(--ink); }
.vs-fin tbody tr:hover td, .vs-fin tbody tr:hover th { background: rgba(11,14,18,0.02); }
.vs-fin td.is-neg { color: var(--neg); }

/* ── Tabs (Income / Balance / Cash flow) ──────────────────────────── */
.vs-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: var(--s-5); }
.vs-tab { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px 10px 0; margin-right: var(--s-5); cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast); }
.vs-tab:hover { color: var(--ink); }
.vs-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }

/* ── Executive table (name / title / pay / tenure) ────────────────── */
.vs-exec { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13px; }
.vs-exec thead th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--ink); }
.vs-exec thead th:last-child, .vs-exec tbody td:last-child { text-align: right; padding-right: 0; }
.vs-exec tbody td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); vertical-align: baseline; }
.vs-exec tbody td.vs-exec__name { font-family: var(--serif); font-size: 15px; color: var(--ink); white-space: nowrap; }
.vs-exec tbody td.vs-exec__pay { font-feature-settings: "lnum","tnum"; color: var(--num); white-space: nowrap; }
.vs-exec tbody tr:hover td { background: rgba(11,14,18,0.02); }

/* ── Firmographics dense key/value (rail) ─────────────────────────── */
.vs-kv { border-top: 1px solid var(--rule); }
.vs-kv__row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); padding: 9px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.vs-kv__k { font-size: 12px; color: var(--muted); }
.vs-kv__v { font-size: 13px; color: var(--ink); text-align: right; font-feature-settings: "lnum","tnum"; }
.vs-kv__v.is-nd { font-style: italic; color: var(--dim); }
.vs-kv__v a { color: var(--accent); }
.vs-kv__v a:hover { text-decoration: underline; }

/* ── Filings / events feed ────────────────────────────────────────── */
.vs-filings { border-top: 1px solid var(--rule); }
.vs-filing { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-4); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.vs-filing__date { grid-row: span 2; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; white-space: nowrap; font-feature-settings: "lnum","tnum"; }
.vs-filing__type { font-family: var(--serif); font-size: 14px; color: var(--ink); }
.vs-filing__desc { font-size: 12px; color: var(--muted); line-height: 1.45; }
.vs-filing__link { font-size: 11px; color: var(--accent); }
.vs-filing__link:hover { text-decoration: underline; }

/* ── Mini sparkline-style metric pair for rail ────────────────────── */
.vs-railmetric { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.vs-railmetric__k { font-size: 12px; color: var(--muted); }
.vs-railmetric__v { font-family: var(--serif); font-size: 16px; color: var(--ink); font-feature-settings: "lnum","tnum"; }



/* =====================================================================
   RESPONSIVE — container queries (driven by the framed <main>, so the
   harness viewport toggle AND real-device resize both reflow content)
   + a few @media rules for chrome that lives outside the container.
   ===================================================================== */

/* ── TABLET (≤900px container) ───────────────────────────────────── */
@container vp (max-width: 900px) {
  .vs-sec-head { grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-7); }
  .vs-sec-head__sub { margin-top: var(--s-3); }
  .vs-snapshot { grid-template-columns: 1fr; }
  .vs-snapshot__main { border-right: 0; border-bottom: 1px solid var(--rule); }
  .vs-facets { grid-template-columns: repeat(2, 1fr); }
  .vs-cards { grid-template-columns: repeat(2, 1fr); }
  .vs-transcript { grid-template-columns: 1fr; gap: var(--s-6); }
  .vs-transcript__nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--s-5); }
  .vs-transcript__nav a { border-left: 0; border-bottom: 1px solid var(--rule); padding: 8px 14px; }
  .vs-transcript__nav a.is-active { border-color: var(--accent); }
  .deal-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .ds-tiles { grid-template-columns: 1fr 1fr; }
  .vs-twocol { grid-template-columns: 1fr; gap: var(--s-7); }
  .vs-terminal { grid-template-columns: 1fr; }
  .vs-terminal__main { padding: var(--s-6) 0 var(--s-7); }
  .vs-terminal__rail { border-left: 0; border-top: 1px solid var(--ink); padding: var(--s-7) 0 var(--s-6); }
  .vs-ribbon { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; border-left: 1px solid var(--rule); }
  .vs-ribbon__cell:nth-child(3n+1) { border-left: 0; }
  .vs-ribbon__cell { border-top: 1px solid var(--rule); }
  .vs-ribbon__cell:nth-child(-n+3) { border-top: 0; }
  .hub-hero { grid-template-columns: 1fr; gap: var(--s-6); }
  .hub-hero__facts { justify-self: start; }
  .hub-hero__metric { border-left: 0; padding-left: 0; text-align: left; }
}

/* ── MOBILE (≤620px container) ───────────────────────────────────── */
@container vp (max-width: 620px) {
  .vs-hero { padding: var(--s-7) 0; }
  .vs-hero__row { grid-template-columns: 1fr; gap: var(--s-4); }
  .vs-hero__h1 { font-size: clamp(32px, 11vw, 44px); }
  .vs-keyfacts { gap: 0; }
  .vs-keyfacts__item { border-right: 0; border-bottom: 1px solid var(--rule); width: 100%; margin-right: 0; padding: var(--s-4) 0; }
  .vs-keyfacts__item:last-child { border-bottom: 0; }
  .vs-facets { grid-template-columns: 1fr; }
  .vs-cards, .vs-cards--2 { grid-template-columns: 1fr; }
  .vs-tearsheet__row { grid-template-columns: 1fr; gap: 4px; padding: var(--s-4) 0; }
  .vs-tearsheet__v { font-size: 16px; }
  .vs-row { grid-template-columns: 1fr auto; }
  .vs-row__meta { grid-column: 1 / -1; text-align: left; margin-top: 4px; }
  .vs-row__meta small { display: inline; margin: 0 0 0 8px; }
  .vs-row__chev { display: none; }
  .ds-tiles { grid-template-columns: 1fr; }
  .vs-snapshot__answer { font-size: 18px; }
  .vs-snapshot__main, .vs-snapshot__facts { padding: var(--s-5); }
  .deal-hero__names { font-size: clamp(30px, 9vw, 44px); }
  .deal-hero__arrow { margin: 0 8px; }
  .vs-stepper { grid-template-columns: 1fr; }
  .vs-stepper a:last-child { text-align: left; align-items: flex-start; }
  .vs-related__item { flex-basis: calc((100% - var(--s-4)) / 2); }
  .art-hero__title { font-size: clamp(30px, 9vw, 42px); }
  /* share scorecard scales down with the frame */
  .vs-share__inner { padding: 26px 28px; }
  .vs-share__title { font-size: 26px; }
  .vs-share__eyebrow { margin-bottom: 12px; }
  .vs-share__stats { gap: 22px; }
  .vs-share__stat-v { font-size: 20px; }
  .vs-share__foot { padding: 14px 28px; }
  .vs-chart__cols { height: 180px; gap: 6px; }
  .vs-chart__val { font-size: 11px; }
  .vs-chart__lbl { font-size: 9px; }
  .vs-datahead { flex-direction: column; gap: var(--s-3); }
  .vs-ribbon { grid-template-columns: repeat(2, 1fr); }
  .vs-ribbon__cell:nth-child(3n+1) { border-left: 1px solid var(--rule); }
  .vs-ribbon__cell:nth-child(odd) { border-left: 0; }
  .vs-ribbon__cell:nth-child(-n+2) { border-top: 0; }
  .vs-ribbon__cell:nth-child(3), .vs-ribbon__cell:nth-child(4) { border-top: 1px solid var(--rule); }
  .vs-fin, .vs-exec { font-size: 12px; }
  .vs-quote__v { font-size: 32px; }
}

/* ── CHROME (outside the query container — keyed to real viewport) ─── */
@media (max-width: 820px) {
  .vs-footer__hub { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}
@media (max-width: 760px) {
  .vs-nav__links, .vs-nav__login { display: none; }
  .vs-cta__inner { flex-direction: column; align-items: flex-start; gap: var(--s-6); }
}
@media (max-width: 520px) {
  .vs-footer__hub { grid-template-columns: 1fr; gap: var(--s-6); }
  .vs-wide, .vs-container { padding: 0 var(--s-5); }
  .vs-nav__inner { padding: 0 var(--s-5); }
}

/* ── Responsive hardening (2026-06-08) ──────────────────────────────────
   The base sheet only collapsed the footer + nav; every content grid stayed
   multi-column and overflowed/clipped on tablet & phone. Collapse the grids,
   tame section padding, and guard against any stray horizontal scroll.
   (Data tables keep their own .vs-tablewrap{overflow-x:auto} scroll.) */
@media (max-width: 900px) {
  .vs-sec-head   { grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-8); }
  .vs-snapshot   { grid-template-columns: 1fr; }
  .vs-facets     { grid-template-columns: repeat(2, 1fr); }
  .vs-cards, .vs-cards--2 { grid-template-columns: repeat(2, 1fr); }
  .vs-transcript { grid-template-columns: 1fr; gap: var(--s-6); }
  .vs-transcript__nav { position: static; }
  .vs-callout    { grid-template-columns: 1fr; gap: var(--s-5); }
  .vs-twocol     { grid-template-columns: 1fr; gap: var(--s-7); }
  .vs-section    { padding: var(--s-8) 0; }
  html, body     { overflow-x: hidden; }   /* belt-and-suspenders against overflow */
}
@media (max-width: 600px) {
  .vs-hero__row       { grid-template-columns: 1fr; gap: var(--s-4); }
  .vs-tearsheet__row  { grid-template-columns: 1fr; gap: 4px; padding: var(--s-4) 0; }
  .vs-facets          { grid-template-columns: 1fr; }
  .vs-cards, .vs-cards--2 { grid-template-columns: 1fr; }
  .vs-scorecard       { grid-template-columns: repeat(2, 1fr); }
  .vs-stepper         { grid-template-columns: 1fr; }
  .vs-row             { grid-template-columns: 44px 1fr auto; gap: var(--s-4); }
  .vs-row > :nth-child(4) { display: none; }   /* trailing chevron column */
  .vs-hero__h1        { font-size: clamp(26px, 7vw, 34px); }
  .vs-section         { padding: var(--s-7) 0; }
  .vs-cta             { padding: var(--s-9) 0; }
  .vs-snapshot__cell, .vs-snapshot__facts { padding: var(--s-5); }
}

/* ── Score/ratio TILES (was unstyled — value+label rendered as plain text) ─── */
.vs-score { padding: var(--s-6) var(--s-5); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vs-score__v { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); font-feature-settings: "lnum","tnum"; word-break: break-word; }
.vs-score__v.is-nd { color: var(--muted); font-size: 20px; }
.vs-score__l { font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); }

/* ── Wide media must never push page width ─────────────────────────────────── */
img, svg, table { max-width: 100%; }
.vs-tablewrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vs-chart__cols { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }

/* ── Mobile typography + overflow hardening (2026-06-08 v2) ────────────────── */
@media (max-width: 1024px) { html, body { overflow-x: hidden; max-width: 100%; } }
@media (max-width: 760px) {
  .vs-hero__h1        { font-size: clamp(24px, 6.4vw, 32px); }
  .deal-hero__names   { font-size: clamp(23px, 6.6vw, 32px); word-break: break-word; }
  .vs-sec-head__title { font-size: 23px; }
  .vs-snapshot__answer{ font-size: 16px; line-height: 1.6; }
  .vs-score__v        { font-size: 23px; }
  .vs-score           { padding: var(--s-5) var(--s-4); }
  .vs-scorecard       { grid-template-columns: repeat(2, 1fr); }
  .vs-fin, .vs-table  { font-size: 13px; }
  .vs-fin th, .vs-fin td, .vs-table th, .vs-table td { padding: 8px 10px; }
  .tr-turn p          { font-size: 16px; line-height: 1.6; }
  .tr-turn            { padding: var(--s-5) 0; }
  .vs-hero__lede      { font-size: 16px; }
  .vs-cta__heading    { font-size: clamp(22px, 6vw, 30px); }
  .vs-snapshot__answer{ font-size: 16px; }
  .vs-facet__title    { font-size: 20px; }
}
@media (max-width: 480px) {
  .vs-scorecard { grid-template-columns: 1fr 1fr; }
  .vs-hero__h1, .deal-hero__names { font-size: clamp(22px, 7.4vw, 28px); }
  .vs-container, .vs-wide { padding: 0 18px; }
}
