/* Shared full-width chapter surfaces. Media and nested cards keep their own
   presentation; only the explicitly marked chapter owns a page stripe. */
main [data-section-tone="light"] {
  --section-bg: #fff;
  --section-ink: #15181b;
  --section-muted: #56616b;
  --section-accent: #a64b12;
  --section-line: #d9dee3;
  color-scheme: only light;
}
main [data-section-tone="dark"] {
  --section-bg: #090c10;
  --section-ink: #f8f8fa;
  --section-muted: #b9c0ca;
  --section-accent: #ffb678;
  --section-line: #ffffff26;
  color-scheme: dark;
}
main [data-section-tone] {
  /* Explicit tones take precedence over older page-specific backgrounds. */
  background-color: var(--section-bg) !important;
  color: var(--section-ink);
}

/* Separate the MediaFirst device lineup, features, and deployment chapters. */
#mediafirst-stream-devices,
#mediafirst-features {
  padding-block: var(--product-space, clamp(64px, 7vw, 100px));
}
#mediafirst-features .mediafirst-feature-row {
  border-color: var(--section-line);
}
#mediafirst-features .mediafirst-feature-row h3 {
  color: var(--section-ink);
}
#mediafirst-features .mediafirst-feature-row li {
  color: var(--section-muted);
}
#mediafirst-features .mediafirst-line-icon,
#mediafirst-deployment .mediafirst-line-icon,
#mediafirst-deployment .mediafirst-deployment-option h3 {
  color: var(--section-accent);
}
#mediafirst-deployment .mediafirst-deployment-option,
#mediafirst-deployment .mediafirst-partnership {
  border-color: var(--section-line);
}
#mediafirst-deployment .mediafirst-deployment-option :is(p, li),
#mediafirst-deployment .mediafirst-partnership figcaption {
  color: var(--section-muted);
}
#mediafirst-deployment[data-section-tone="light"] .mediafirst-partnership img {
  filter: brightness(0);
}

/* Residential product pages close on a contrasting chapter. The homepage
   Experience CITRUS closing remains white in every selected experience. */
.contact-section[data-section-tone="dark"] > p,
.contact-section[data-section-tone="dark"] :is(.contact-phone, .office-label, .office-grid address, .office-grid article > p:last-child) {
  color: var(--section-muted);
}
.contact-section[data-section-tone="dark"] .office-grid {
  border-color: var(--section-line);
}
.contact-section[data-section-tone="dark"] .contact-button {
  background: #fff;
  color: #15181b;
}

/* Give each content chapter its own edge-to-edge surface. */
.content-hero[data-section-tone] { padding-bottom: 0; }
#paramount-top[data-section-tone] { border: 0; }
#paramount-top[data-section-tone="dark"] .paramount-feature-copy h2 img {
  filter: brightness(0) invert(1);
}
#paramount-top .paramount-feature-copy :is(h3, strong),
.vod-feature[data-section-tone] .vod-feature-copy :is(h2, strong, .vod-feature-label) {
  color: var(--section-ink);
}
#paramount-top .paramount-feature-copy p,
.vod-feature[data-section-tone] .vod-feature-copy p:not(.vod-feature-label) {
  color: var(--section-muted);
}
.vod-feature[data-section-tone] { padding-block: clamp(64px, 7vw, 104px); }
.vod-feature[data-section-tone] .movie-carousel { background: transparent; }

/* Provider logos remain monochrome and readable on their new white chapter. */
#network-technologies[data-section-tone] {
  --network-line: var(--section-line);
  --network-muted: var(--section-muted);
  padding-top: clamp(64px, 7vw, 100px);
}
#network-technologies .network-technology-heading { border: 0; padding-top: 0; }
#network-technologies .network-vendors dt { color: var(--section-muted); }
#network-technologies .network-vendors dd { color: var(--section-ink); }
#network-technologies[data-section-tone="light"] .networking-logo { filter: brightness(0); }

/* Company content is grouped into introduction, solutions, team, and offices. */
.company-page #company { min-height: 0; padding-bottom: clamp(64px, 7vw, 100px); }
.company-page .company-chapter,
.company-page #offices {
  padding: clamp(64px, 7vw, 100px) max(6vw, 24px);
  margin: 0;
  border: 0;
}
.company-page .company-chapter .company-details { margin-top: 0; }
.company-page .company-chapter .company-details > section { border-color: var(--section-line); }
.company-page .company-chapter .company-details p { color: var(--section-muted); }
.company-page .company-chapter .company-commitment { color: var(--section-ink); }
.company-page .company-chapter .management { margin: 0; padding: 0; border: 0; }
.company-page #offices :is(h3, .office-label) { color: var(--section-ink); }
.company-page #offices :is(address, .office-grid article > p:last-child) { color: var(--section-muted); }

/* Single-purpose pages retain a white reading/form surface and dark footer. */
body.legal-page,
body.request-page { background: #fff; }

/* The shared footer follows the white closing chapter in all home modes. */
body:has(#overview) > footer {
  --footer-follow-color: #fff;
  background: #090c10;
  color: #f8f8fa;
}
body:has(#overview) > footer .footer-wordmark { filter: url(#nav-wordmark-cutout); mix-blend-mode: normal; }
body:has(#overview) > footer :is(.footer-main, .footer-directory) { border-color: #ffffff26; }
body:has(#overview) > footer .footer-directory h3 { color: #f8f8fa; }
body:has(#overview) > footer :is(.footer-directory a, .footer-legal, small) { color: #b9c0ca; }
body:has(#overview) > footer :is(.footer-directory a, .footer-legal a, .footer-legal button):hover { color: #ffb678; }
