/* Public-site narrative and navigation refinements. */
:root {
  --tv-blue: #174f78;
  --tv-blue-dark: #0d2b42;
  --tv-maroon: #6d2435;
  --tv-gold: #c5a880;
  --tv-silver: #e8edf2;
}

#header .menu-links-w > ul { gap: clamp(12px, 1.4vw, 28px); }
#header .menu-w { gap: 10px; }
#header .menu-w .news-w { margin-right: 2px; }
#header .live-vantage-cta,
#header .waitlist-cta,
#header .login-cta { margin-left: 0 !important; }

/* The legacy hero stylesheet makes the entire hero non-interactive for its
   animation. Re-enable pointer events for the custom homepage content so
   its visible action links can actually receive clicks and taps. */
main[data-scene="Homepage"] .hero[data-astro-cid-226k2nfd],
main[data-scene="Homepage"] .hero[data-astro-cid-226k2nfd] .hero-inner[data-astro-cid-226k2nfd],
main[data-scene="Homepage"] .hero[data-astro-cid-226k2nfd] .hero-inner[data-astro-cid-226k2nfd] a {
  pointer-events: auto !important;
}

/* Some legacy pages were emitted as compressed HTML. These preserve the
   current vocabulary until those templates are rebuilt from source. */
#header .menu-links-w a[href="/usecases/"] > span,
#header .menu-links-w a[href="/gapanalysis/"] > span { font-size: 0; }
#header .menu-links-w a[href="/usecases/"] > span::after,
#header .menu-links-w a[href="/gapanalysis/"] > span::after { font-size: .82rem; }
#header .menu-links-w a[href="/usecases/"] > span::after { content: "Roles & Use Cases"; }
#header .menu-links-w a[href="/gapanalysis/"] > span::after { content: "Connection Gap"; }

@media (min-width: 64em) and (max-width: 120rem) {
  #header .menu-links-w > ul > li:nth-child(5) { display: none; }
  #header .live-vantage-cta { padding: 0 14px !important; font-size: 11px !important; }
  #header .waitlist-cta { padding: 0 13px !important; font-size: 11px !important; }
  #header .login-cta { padding: 0 15px !important; font-size: 12px !important; }
}

@media (min-width: 64em) and (max-width: 88rem) {
  #header .menu-links-w > ul > li:nth-child(4),
  #header .menu-w .news-w,
  #header .menu-w .login-cta { display: none !important; }
}

.tv-network-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf4f8 52%, #f8f4ee 100%);
  color: var(--tv-blue-dark);
  margin: 7rem 0;
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1.25rem, 6vw, 7rem);
}

.tv-network-inner { max-width: 1180px; margin: 0 auto; }
.tv-eyebrow { color: var(--tv-maroon); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tv-network-section h2 { color: var(--tv-blue-dark); font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: 1.03; margin: .75rem 0 1.25rem; max-width: 850px; }
.tv-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 840px; }
.tv-role-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 3rem 0; }
.tv-role-card { background: rgba(255,255,255,.9); border: 1px solid rgba(23,79,120,.15); border-top: 4px solid var(--tv-blue); border-radius: 16px; box-shadow: 0 14px 40px rgba(13,43,66,.08); padding: 1.5rem; }
.tv-role-card:nth-child(2) { border-top-color: var(--tv-gold); }
.tv-role-card:nth-child(3) { border-top-color: var(--tv-maroon); }
.tv-role-card:nth-child(4) { border-top-color: #57886c; }
.tv-role-card h3 { color: var(--tv-blue-dark); font-size: 1.35rem; margin: .5rem 0; }
.tv-role-card p { font-size: .98rem; line-height: 1.55; margin: 0; }
.tv-role-label { color: var(--tv-blue); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tv-mission-flow { display: grid; gap: .75rem; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 2rem; }
.tv-flow-step { border-left: 2px solid var(--tv-gold); padding: .3rem 0 .3rem .85rem; }
.tv-flow-step strong { display: block; color: var(--tv-maroon); font-size: .87rem; text-transform: uppercase; letter-spacing: .08em; }
.tv-flow-step span { font-size: .9rem; line-height: 1.4; }
.tv-network-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.4rem; }
.tv-button { background: var(--tv-blue); border-radius: 999px; color: #fff !important; display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; padding: .9rem 1.35rem; text-decoration: none; text-transform: uppercase; }
.tv-button--outline { background: transparent; border: 1px solid rgba(23,79,120,.45); color: var(--tv-blue) !important; }

/* The legacy Use Cases chapter sits on a deep green visual. Its original
   navy typography loses contrast there, so every readable content element
   in that chapter uses white with a subtle shadow. The light role section is
   deliberately outside .capital-section and keeps its dark ink. */
.capital-section .thrallvision-navy-blue,
#grid > .thrallvision-navy-blue {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.capital-section .thrallvision-navy-blue h2,
.capital-section .thrallvision-navy-blue h3,
.capital-section .thrallvision-navy-blue p,
.capital-section .thrallvision-navy-blue strong,
.capital-section .thrallvision-navy-blue li {
  color: #fff !important;
}
.capital-section .read-more-button .arrow {
  border-color: #fff !important;
}

@media (max-width: 850px) {
  .tv-role-grid, .tv-mission-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .tv-role-grid, .tv-mission-flow { grid-template-columns: 1fr; }
  .tv-network-section { margin: 4rem 0; }
}
