/* Public reading hierarchy approved 12 November 2026.
   Loaded last by main-site pages; dashboard and other public hosts do not use it. */
body:is(.site-refined, .enterprise-page) {
  --public-body-size: 20px;
  --gray: #e5e5e5;
  --muted: #d4d4d4;
  font-size: var(--public-body-size);
  font-weight: 500;
  line-height: 1.65;
}

/* Keep the existing heading sizes and responsive geometry. */
#main h1 { font-weight: 700 !important; }
#main :is(h2, h3, h4) { font-weight: 650 !important; }

#main :is(.lede, .body-copy, .cap-detail-copy, .overview-lede),
#main .loop-narrative > div > p {
  color: #e5e5e5;
  font-size: var(--public-body-size);
  font-weight: 500;
  line-height: 1.65;
}

/* Legacy route styles use important declarations. Override only their type,
   with smaller labels and control text retained below. */
#main.route-content {
  --white: #f3f3f3;
  --gray: #e5e5e5;
  --muted: #d4d4d4;
  font-size: var(--public-body-size) !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}
#main.route-content :is(p, li) {
  color: #e5e5e5;
  font-size: var(--public-body-size) !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}
#main.route-content :is(.iv-eyebrow, .core-eyebrow, .eyebrow, .section-kicker, .core-kicker) {
  color: #d4d4d4 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}
#main.route-content :is(.iv-note, .iv-help, .hint, .help, .meta, .tag, .sample-note, .core-note,
  .text-xs, .text-\[10px\], .text-\[11px\]) {
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}
#main.route-content :is(label, input, select, textarea) { font-size: 16px !important; }
#main.route-content label { font-weight: 600; }

/* Product illustrations keep their denser, semantic type hierarchy. */
#main :is(.hero-node, .loop-node, .authority-note, .arch-control, .arch-node,
  .dash-view-head, .meaning-block, .trust-note, .boundary-details, .overview-diagram,
  .overview-step, .fragment-row) p,
#main :is(.fragment-row span, .plan-list li, #tool-description, .fleet-action-note, .operations-note) {
  color: #e5e5e5;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}
#main :is(.eyebrow, .hero-category, .cap-kicker) {
  color: #d4d4d4;
  font-size: 16px;
  font-weight: 600;
}
#main :is(.hero-caption, .product-caption, .sample-note, .tool-hint, .integration-boundary) {
  color: #d4d4d4;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

/* Existing logo, destinations, menu ownership and 1180px switch stay intact. */
.site-header .nav-shell { display: flex; gap: 32px; }
.site-header .nav-actions { margin-left: auto; flex: 0 0 auto; }
.site-header :is(.nav-trigger, .nav-login, .nav-demo) {
  color: #f3f3f3;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
/* Preserve the existing primary blue while giving small CTA text full contrast. */
.site-header .nav-demo { color: #fff; }
#main.iv-support-page [data-open-support],
.iv-support .iv-support-primary {
  background-color: #1769f3 !important;
  border-color: #1769f3 !important;
  color: #fff !important;
}
@media (min-width: 1181px) {
  .site-header .desktop-nav { flex: 0 0 auto; justify-content: flex-start; gap: 24px; }
  .site-header .nav-trigger { padding-inline: 0; }
  /* The existing Runtime source link has inline horizontal padding. */
  .site-header .desktop-nav > .nav-login { padding-inline: 0 !important; }
}
.site-header :is(.mega-link, .mobile-links a, .mobile-actions a) { font-size: 16px; font-weight: 500; }
.site-header :is(.mega-intro p, .mega-link small, .mega-label) {
  color: #d4d4d4;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.site-footer :is(.footer-brand p, .footer-group a, .footer-group strong, .footer-bottom) {
  color: #d4d4d4;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}
.site-footer .footer-group strong { color: #f3f3f3; font-weight: 600; }
#iv-privacy-banner .iv-privacy-copy {
  color: #e5e5e5;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}
#iv-privacy-banner .iv-privacy-copy strong { font-weight: 700; }

@media (max-width: 800px) {
  body:is(.site-refined, .enterprise-page) { --public-body-size: 18px; }
  .site-header .nav-shell { gap: 24px; }
}
