/* ─────────────────────────────────────────────────────────────
   IVG — Base + Primitive Components
   Depends on tokens.css. Class names are prefixed `ivg-`
   to avoid collisions with per-page styles during migration.
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--ivg-sans);
  font-weight: 300;
  font-size: var(--ivg-t-body);
  line-height: var(--ivg-lh-loose);
  color: var(--ivg-ink);
  background: var(--ivg-surface, var(--ivg-paper));
  text-rendering: geometricPrecision;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ivg-accent); color: var(--ivg-paper); }

/* ── TYPOGRAPHY PRIMITIVES ── */
.ivg-overline {
  font-family: var(--ivg-sans);
  font-size: var(--ivg-t-overline);
  font-weight: 500;
  letter-spacing: var(--ivg-ls-hair);
  text-transform: uppercase;
  color: var(--ivg-accent-light);
}
.ivg-display {
  font-family: var(--ivg-serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, var(--ivg-t-display));
  line-height: var(--ivg-lh-tight);
  letter-spacing: var(--ivg-ls-display);
  color: var(--ivg-ink);
}
.ivg-display em { font-style: italic; color: var(--ivg-accent-mid); }
.ivg-h1 {
  font-family: var(--ivg-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, var(--ivg-t-h1));
  line-height: var(--ivg-lh-tight);
  letter-spacing: var(--ivg-ls-display);
  color: var(--ivg-ink);
}
.ivg-h1 em { font-style: italic; color: var(--ivg-accent-mid); }
.ivg-h2 {
  font-family: var(--ivg-serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, var(--ivg-t-h2));
  line-height: var(--ivg-lh-snug);
  color: var(--ivg-ink);
}
.ivg-h3 {
  font-family: var(--ivg-serif);
  font-weight: 500;
  font-size: var(--ivg-t-h3);
  line-height: var(--ivg-lh-snug);
  color: var(--ivg-ink);
}
.ivg-h4 {
  font-family: var(--ivg-serif);
  font-weight: 500;
  font-size: var(--ivg-t-h4);
  line-height: var(--ivg-lh-snug);
  color: var(--ivg-ink);
}
.ivg-lead {
  font-size: var(--ivg-t-lead);
  line-height: var(--ivg-lh-loose);
  color: var(--ivg-ink-soft);
  font-weight: 300;
  max-width: var(--ivg-w-text);
}
.ivg-body {
  font-size: var(--ivg-t-body);
  line-height: var(--ivg-lh-loose);
  color: var(--ivg-ink-soft);
  font-weight: 300;
  max-width: var(--ivg-w-text);
}
.ivg-caption {
  font-size: var(--ivg-t-caption);
  line-height: var(--ivg-lh-normal);
  color: var(--ivg-ink-muted);
  font-weight: 300;
}
.ivg-pullquote {
  font-family: var(--ivg-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ivg-accent);
  border-left: 2px solid var(--ivg-accent-light);
  padding-left: var(--ivg-s-5);
  max-width: var(--ivg-w-prose);
}

/* ── LAYOUT PRIMITIVES ── */
.ivg-container { max-width: var(--ivg-w-page); margin: 0 auto; padding: 0 var(--ivg-s-6); }
.ivg-container.wide { max-width: var(--ivg-w-wide); }
.ivg-container.prose { max-width: var(--ivg-w-prose); }
.ivg-container.text { max-width: var(--ivg-w-text); }

.ivg-section     { padding: var(--ivg-section-pad-md) 0; border-bottom: 0.5px solid var(--ivg-rule); }
.ivg-section.sm  { padding: var(--ivg-section-pad-sm) 0; }
.ivg-section.lg  { padding: var(--ivg-section-pad-lg) 0; }
.ivg-section.xl  { padding: var(--ivg-section-pad-xl) 0; }
.ivg-section.no-rule { border-bottom: none; }

/* Editorial grid — 12 column, 32px gutter */
.ivg-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--ivg-s-6);
  row-gap: var(--ivg-s-5);
}

/* ── BUTTONS ── */
.ivg-btn {
  display: inline-flex; align-items: center; gap: var(--ivg-s-3);
  font-family: var(--ivg-sans);
  font-size: var(--ivg-t-caption);
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border: 0.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--ivg-dur-base) var(--ivg-ease-spring),
              background var(--ivg-dur-base) var(--ivg-ease-out),
              border-color var(--ivg-dur-base) var(--ivg-ease-out),
              color var(--ivg-dur-base) var(--ivg-ease-out);
}
.ivg-btn:hover { transform: translateY(-1px); }
.ivg-btn:active { transform: scale(0.98); }

.ivg-btn-primary { background: var(--ivg-ink); color: var(--ivg-paper); }
.ivg-btn-primary:hover { background: var(--ivg-accent); }

.ivg-btn-ghost { background: transparent; color: var(--ivg-ink); border-color: var(--ivg-rule-strong); }
.ivg-btn-ghost:hover { border-color: var(--ivg-ink); }

.ivg-btn-link {
  padding: 0; border: none; background: transparent;
  color: var(--ivg-accent); letter-spacing: 0;
  font-size: var(--ivg-t-small);
  border-bottom: 0.5px solid var(--ivg-accent-light);
  padding-bottom: 2px;
}
.ivg-btn-link:hover { color: var(--ivg-ink); border-color: var(--ivg-ink); }

/* Arrow glyph */
.ivg-arrow { display: inline-block; transition: transform var(--ivg-dur-base) var(--ivg-ease-out); }
.ivg-btn:hover .ivg-arrow { transform: translateX(4px); }

/* ── NAV ── */
.ivg-nav {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--ivg-s-6);
  background: color-mix(in oklab, var(--ivg-surface, var(--ivg-paper)) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--ivg-rule);
  font-family: var(--ivg-sans);
}
.ivg-logo {
  font-family: var(--ivg-serif);
  font-size: 17px; font-weight: 500;
  color: var(--ivg-ink);
  letter-spacing: 0.005em;
}
.ivg-logo-mark {
  background: var(--ivg-green-deep);
  color: var(--ivg-paper);
  padding: 0.14em 0.52em;
  border-radius: var(--ivg-r-1);
  margin-right: 0.1em;
}
.ivg-nav-links { display: flex; gap: var(--ivg-s-6); }
.ivg-nav-links a {
  font-size: var(--ivg-t-small);
  color: var(--ivg-ink-muted);
  transition: color var(--ivg-dur-base) var(--ivg-ease-out);
}
.ivg-nav-links a:hover { color: var(--ivg-ink); }

/* ── EYEBROW + DIVIDERS ── */
.ivg-eyebrow { color: var(--ivg-accent-light); font-family: var(--ivg-sans); font-size: var(--ivg-t-overline); letter-spacing: var(--ivg-ls-hair); text-transform: uppercase; margin-bottom: var(--ivg-s-5); display: inline-block; }
.ivg-rule { border: 0; border-top: 0.5px solid var(--ivg-rule); margin: var(--ivg-s-7) 0; }
.ivg-hairline { display: block; height: 0.5px; background: var(--ivg-rule); margin: var(--ivg-s-5) 0; }

/* ── CARD / INDEX ROW ── */
.ivg-index-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: var(--ivg-s-5);
  align-items: baseline;
  padding: var(--ivg-s-5) 0;
  border-top: 0.5px solid var(--ivg-rule);
  transition: background var(--ivg-dur-base) var(--ivg-ease-out);
}
.ivg-index-row:last-child { border-bottom: 0.5px solid var(--ivg-rule); }
.ivg-index-row:hover { background: var(--ivg-accent-pale); }
.ivg-index-num { font-family: var(--ivg-mono); font-size: 11px; color: var(--ivg-accent-light); letter-spacing: 0.06em; }
.ivg-index-title { font-family: var(--ivg-serif); font-size: var(--ivg-t-h4); font-weight: 500; }
.ivg-index-meta  { font-size: var(--ivg-t-caption); color: var(--ivg-ink-muted); }

/* ── GRAIN ── */
.ivg-grain::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}

/* ── REVEAL ── */
.ivg-reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ivg-ease-out), transform 700ms var(--ivg-ease-out); }
.ivg-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── IMAGE PLACEHOLDER (for when photography is pending) ── */
.ivg-img-placeholder {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(20,20,16,0.04) 10px 11px),
    var(--ivg-accent-pale);
  border: 0.5px solid var(--ivg-rule);
  color: var(--ivg-ink-muted);
  font-family: var(--ivg-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5;
}
.ivg-img-placeholder::before {
  content: attr(data-label);
  background: var(--ivg-surface, var(--ivg-paper));
  padding: 6px 12px;
  border: 0.5px solid var(--ivg-rule);
}

/* ── AMBASSADOR PORTRAITS (unified styling across people, regardless of source photo treatment) ── */
.ambassador-portrait {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background: var(--ivg-portrait-bg);
  box-shadow: 0 0 0 1.5px rgba(122, 138, 74, 0.45), 0 1px 4px rgba(0,0,0,0.08);
}
.ambassador-portrait--sm { width: 88px; height: 88px; }
.ambassador-portrait--md { width: 96px; height: 96px; }
.ambassador-portrait--lg { width: 120px; height: 120px; }

/* ── FOUNDER PORTRAITS (editorial, distinct from ambassador rounds) ── */
.founder-portrait {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  background: var(--ivg-portrait-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
}
.founder-portrait--sm { max-width: 160px; }
@media (max-width: 700px) {
  .founder-portrait { max-width: 200px; }
  .founder-portrait--sm { max-width: 140px; }
}

/* ── SHARED FOOTER (cross-page consistent, FFI-inspired link groups added 2026-05-03) ── */
.ivg-footer {
  background: #1a1a1a;
  color: rgba(247,244,238,0.7);
  padding: 3.5rem 2.5rem 2rem;
  font-family: 'DM Sans', sans-serif;
}
.ivg-footer-inner {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.ivg-footer-inner.has-links {
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  max-width: 1100px;
  gap: 2.5rem;
}
.ivg-footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: #F7F4EE; }
.ivg-footer-logo span { background: #3A4A22; color: #F7F4EE; padding: 0.15em 0.5em; border-radius: 2px; }
.ivg-footer-mission {
  margin-top: 0.9rem; font-size: 13px; font-weight: 300;
  line-height: 1.7; color: rgba(247,244,238,0.5);
  max-width: 340px;
}
.ivg-footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.ivg-footer-col-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(247,244,238,0.55); margin-bottom: 0.4rem; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}
.ivg-footer-col a {
  color: rgba(247,244,238,0.78); text-decoration: none; font-size: 13px; font-weight: 300;
  transition: color 0.2s;
}
.ivg-footer-col a:hover { color: #F7F4EE; }
.ivg-footer-meta { display: flex; flex-direction: column; gap: 0.45rem; font-size: 12px; font-weight: 300; }
.ivg-footer-address { color: rgba(247,244,238,0.7); }
.ivg-footer-legal { color: rgba(247,244,238,0.4); }
.ivg-footer-cta { margin-top: 0.5rem; }
.ivg-footer-cta a {
  color: var(--ivg-footer-link-accent); text-decoration: none; font-size: 13px; letter-spacing: 0.05em;
  border-bottom: 0.5px solid rgba(200,220,150,0.35); padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.ivg-footer-cta a:hover { border-color: var(--ivg-footer-link-accent); color: var(--ivg-footer-link-accent-hover); }
.ivg-footer-copy { color: rgba(247,244,238,0.3); font-size: 11px; margin-top: 1rem; letter-spacing: 0.05em; }

/* Newsletter row inside dark footer (Substack subscribe) */
.ivg-footer-newsletter {
  max-width: 1100px; margin: 0 auto 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 0.5px solid rgba(247,244,238,0.12);
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 3rem; align-items: center;
}
.ivg-footer-nl-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500;
  color: #F7F4EE; line-height: 1.35;
}
.ivg-footer-nl-text span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 300;
  color: rgba(247,244,238,0.55);
  margin-top: 0.45rem; line-height: 1.6;
}
.ivg-footer-nl-form {
  display: flex; gap: 0;
  border: 0.5px solid rgba(247,244,238,0.25);
  background: rgba(247,244,238,0.04);
}
.ivg-footer-nl-form input {
  flex: 1; min-width: 0;
  padding: 0.7rem 0.9rem;
  font-size: 14px; border: 0;
  background: transparent;
  color: #F7F4EE;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300; outline: none;
}
.ivg-footer-nl-form input::placeholder { color: rgba(247,244,238,0.4); }
.ivg-footer-nl-form input { -webkit-appearance: none; appearance: none; border-radius: 0; }
.ivg-footer-nl-form button {
  -webkit-appearance: none; appearance: none;
  background: var(--accent-mid, var(--accent, #5F6B3A));
  color: var(--cream, #F7F4EE);
  border: 0; border-radius: 0;
  padding: 0 1.4rem;
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.ivg-footer-nl-form button:hover {
  background: var(--accent, var(--accent-mid, #3A4A22));
  color: var(--cream, #F7F4EE);
}

@media (max-width: 760px) {
  .ivg-footer-inner,
  .ivg-footer-inner.has-links { grid-template-columns: 1fr; gap: 2rem; }
  .ivg-footer-newsletter { grid-template-columns: 1fr; gap: 1.25rem; padding-bottom: 2rem; margin-bottom: 2rem; }
  .ivg-footer-nl-text { font-size: 24px; line-height: 1.25; }
  .ivg-footer-nl-text span { font-size: 13.5px; margin-top: 0.75rem; }
}

/* ── INLINE NEWSLETTER CTA (mid-page on kitchen + industry) ── */
.ivg-newsletter-inline {
  margin: 4.5rem auto;
  max-width: 720px;
  padding: 2rem 2.5rem;
  background: rgba(58, 74, 34, 0.04);
  border-top: 0.5px solid rgba(58, 74, 34, 0.18);
  border-bottom: 0.5px solid rgba(58, 74, 34, 0.18);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.ivg-newsletter-inline-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500;
  color: #1a1a1a; line-height: 1.35;
}
.ivg-newsletter-inline-text span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 300;
  color: rgba(0,0,0,0.55);
  margin-top: 0.5rem; line-height: 1.65;
}
.ivg-newsletter-inline-form {
  display: flex; gap: 0;
  border: 0.5px solid rgba(0,0,0,0.18);
  background: var(--ivg-surface-white);
}
.ivg-newsletter-inline-form input {
  flex: 1; min-width: 0;
  padding: 0.7rem 0.9rem;
  font-size: 14px; border: 0;
  background: transparent;
  color: #1a1a1a;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300; outline: none;
}
.ivg-newsletter-inline-form input::placeholder { color: rgba(0,0,0,0.4); }
.ivg-newsletter-inline-form input { -webkit-appearance: none; appearance: none; border-radius: 0; }
.ivg-newsletter-inline-form button {
  -webkit-appearance: none; appearance: none;
  background: var(--accent, #3A4A22);
  color: var(--cream, #F7F4EE);
  border: 0; border-radius: 0;
  padding: 0 1.4rem;
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer; transition: background 0.2s;
}
.ivg-newsletter-inline-form button:hover { background: var(--accent-mid, var(--ivg-legacy-accent-mid-fallback)); }

@media (max-width: 760px) {
  .ivg-newsletter-inline {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
    margin: 3rem 1.5rem;
  }
  .ivg-newsletter-inline-text { font-size: 24px; line-height: 1.25; }
  .ivg-newsletter-inline-text span { font-size: 13.5px; margin-top: 0.75rem; }
}

/* ── COLLAPSIBLE ROW SYSTEM (shared across pages) ── */
.ivg-row { border-top: 0.5px solid rgba(0,0,0,0.08); }
.ivg-row:last-of-type { border-bottom: 0.5px solid rgba(0,0,0,0.08); }
.ivg-row-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.75rem 0; cursor: pointer;
  transition: opacity 0.2s;
}
.ivg-row-head:hover { opacity: 1; }
.ivg-row-meta {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent, #3A4A22); margin-bottom: 0.4rem;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
}
.ivg-row-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; color: #1a1a1a; line-height: 1.2;
}
.ivg-row-hint {
  font-size: 11px; color: var(--ivg-ink-hint); margin-top: 0.3rem;
  font-family: 'DM Sans', sans-serif; font-weight: 300;
  transition: opacity 0.2s;
}
.ivg-row.open .ivg-row-hint { display: none; }
.ivg-row-preview {
  font-size: 14px; color: var(--ivg-ink-preview); margin-top: 0.6rem;
  font-weight: 300; line-height: 1.6;
  max-width: 600px;
}
.ivg-row-cue {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-light, #7A8A4A); margin-top: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  transition: gap 0.2s;
}
.ivg-row-head:hover .ivg-row-cue { gap: 0.7rem; }
.ivg-row.open .ivg-row-cue { display: none; }
.ivg-row-cue-close {
  display: none;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ivg-ink-hint); margin-top: 0.6rem;
  font-family: 'DM Sans', sans-serif;
}
.ivg-row.open .ivg-row-cue-close { display: block; }
.ivg-row-icon {
  width: 32px; height: 32px; border-radius: 50%;
  border: 0.5px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--ivg-ink-hint); flex-shrink: 0; margin-left: 2rem;
  transition: transform 0.35s ease, border-color 0.2s, color 0.2s, background 0.2s;
  font-size: 18px; font-weight: 300; line-height: 1;
}
.ivg-row-head:hover .ivg-row-icon { border-color: var(--accent-light, #7A8A4A); color: var(--accent, #3A4A22); }
.ivg-row.open .ivg-row-icon {
  transform: rotate(45deg);
  border-color: var(--accent-light, #7A8A4A); color: var(--accent, #3A4A22);
}
.ivg-row-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ivg-row.open .ivg-row-body { grid-template-rows: 1fr; }
.ivg-row-inner { overflow: hidden; }
.ivg-row-content { padding-bottom: 2.5rem; padding-top: 0.5rem; }

/* ── TABLE (program / overview, shared) ──
   Reusable, tokens-only table for program overviews. First user:
   the classroom curriculum section (format × duration × fit). Later
   user: the offer page (Brief E of the July plan).

   Usage:
     <table class="ivg-table">
       <thead><tr><th>Format</th><th>Duration</th><th>For</th></tr></thead>
       <tbody>
         <tr>
           <td data-label="Format">Intensive module</td>
           <td data-label="Duration">5 days</td>
           <td data-label="For">A department or team</td>
         </tr>
       </tbody>
     </table>
   Every <td> needs a data-label matching its column header: below 680px
   the header is hidden and each row restacks into labelled definition
   lines, so the table never forces horizontal page scroll on a phone.
   Institute register: hairline row rules only, no zebra, no cell borders.
   Sits inside a reading-width column; it fills that column's width. */
.ivg-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ivg-sans);
  color: var(--ivg-ink);
}
.ivg-table th {
  font-size: var(--ivg-t-overline);
  font-weight: 500;
  letter-spacing: var(--ivg-ls-hair);
  text-transform: uppercase;
  color: var(--ivg-accent-light);
  text-align: left;
  padding: 0 var(--ivg-s-5) var(--ivg-s-3) 0;
  border-bottom: 0.5px solid var(--ivg-rule);
}
.ivg-table td {
  font-size: var(--ivg-t-body);
  font-weight: 300;
  line-height: var(--ivg-lh-normal);
  color: var(--ivg-ink-soft);
  vertical-align: baseline;
  padding: var(--ivg-s-4) var(--ivg-s-5) var(--ivg-s-4) 0;
  border-bottom: 0.5px solid var(--ivg-rule);
}
/* Lead column anchors the row */
.ivg-table td:first-child { color: var(--ivg-ink); font-weight: 400; }

/* Below 680px: restack rows into labelled definition lines. */
@media (max-width: 680px) {
  .ivg-table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .ivg-table, .ivg-table tbody { display: block; }
  .ivg-table tr { display: block; padding: var(--ivg-s-4) 0; }
  .ivg-table td {
    display: block;
    padding: var(--ivg-s-1) 0;
    border: 0;
  }
  .ivg-table tbody tr { border-bottom: 0.5px solid var(--ivg-rule); }
  .ivg-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--ivg-t-overline);
    font-weight: 500;
    letter-spacing: var(--ivg-ls-hair);
    text-transform: uppercase;
    color: var(--ivg-accent-light);
    margin-bottom: var(--ivg-s-1);
  }
  /* Anchor cell is the row title; its label would be redundant. */
  .ivg-table td:first-child { font-size: var(--ivg-t-lead); padding-top: 0; }
  .ivg-table td:first-child::before { display: none; }
}

/* Interactive radar (institute, industry, boardroom) — hover/click to isolate or compare paradigms */
.vg-radar-wrap polygon[data-pg] { transition: opacity .25s ease, stroke-width .25s ease; cursor: pointer; }
.vg-radar-wrap.has-focus polygon[data-pg]:not(.is-active) { opacity: .08; }
.vg-radar-wrap.has-focus polygon[data-pg].is-active { stroke-width: 2.5; }
.vg-legend-item { cursor: pointer; padding: .5rem .65rem; margin: -.5rem -.65rem; border-radius: 4px; transition: background-color .2s ease, opacity .25s ease; outline: none; position: relative; }
.vg-legend-item:hover { background: rgba(255,255,255,0.05); }
.vg-legend-item:focus-visible { background: rgba(255,255,255,0.08); box-shadow: 0 0 0 1px rgba(255,255,255,0.3); }
.vg-radar-wrap.has-focus .vg-legend-item:not(.is-active) { opacity: .42; }
.vg-legend-item.is-selected { background: rgba(255,255,255,0.06); }
.vg-legend-item.is-selected::after { content: ''; position: absolute; right: .55rem; top: 1.05rem; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .85; box-shadow: 0 0 0 3px currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }
.vg-radar-hint { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 300; margin-top: 1.25rem; font-family: 'DM Sans', sans-serif; }

/* Radar on phones: pin the chart while the legend scrolls, so tapping a
   paradigm shows the overlay change instantly instead of off-screen. */
@media (max-width: 680px) {
  .vg-radar-wrap > :first-child {
    position: sticky;
    top: 60px;
    z-index: 2;
    background: var(--radar-bg, transparent);
    /* full-bleed cover regardless of the section's horizontal padding */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0.5rem calc(50vw - 50%) 0.75rem;
  }
  .vg-radar-wrap > :first-child svg {
    max-height: 38vh;
    width: auto !important;
    margin: 0 auto;
  }
}
