/* Shared editorial treatment for the linked marketing subpages. */
body:is(.bid-page, .sx-page, .kb-page, .system-page) {
  --subpage-paper: #f7f7f5;
  --subpage-panel: #f0efeb;
  --subpage-line: #deded8;
  --subpage-ink: #0d1016;
  --subpage-muted: #5e615c;
  --subpage-action: #005032;
  --subpage-action-hover: #003c26;
  --subpage-deep: #173629;
  --subpage-selected: #e3ece5;
  --ic-ink: var(--subpage-ink);
  --ic-muted: var(--subpage-muted);
  --ic-line: var(--subpage-line);
  --ic-soft: var(--subpage-panel);
  background: var(--subpage-paper);
  color: var(--subpage-ink);
}

body:is(.bid-page, .sx-page, .kb-page, .system-page) main {
  background: var(--subpage-paper);
}

body > footer.ic-site-footer,
.sol-page .sol-footer {
  background: var(--subpage-panel);
  color: var(--subpage-muted);
  border-top: 1px solid var(--subpage-line);
}

body .ic-site-footer .ic-footer-app,
.bid-page main .bid-primary,
.system-page main .system-button,
.sol-page .sol-pill--primary {
  background-color: var(--subpage-action);
  border-color: var(--subpage-action);
  color: #fff;
  border-radius: 999px;
}

body .ic-site-footer .ic-footer-app:hover,
.bid-page main .bid-primary:hover,
.system-page main .system-button:hover,
.sol-page .sol-pill--primary:hover {
  background-color: var(--subpage-action-hover);
  border-color: var(--subpage-action-hover);
  color: #fff;
}

/* Solution detail pages already use the three-column editorial grid. */
body.sol-page {
  --sol-paper: var(--subpage-paper);
  --sol-ink: var(--subpage-ink);
  --sol-muted: var(--subpage-muted);
  --sol-line: var(--subpage-line);
}

.sol-page .sol-pill:not(.sol-pill--primary) {
  background-color: #e7e7e2;
  border-color: transparent;
  color: var(--subpage-ink);
}

.sol-page .sol-pill:not(.sol-pill--primary):hover {
  background-color: #dcddd7;
  color: var(--subpage-ink);
}

.sol-page .sol-hero-photo { filter: none; }

.sol-page .sol-visual,
.sol-page .sol-tool-art {
  background: var(--subpage-panel);
  filter: none;
}

.sol-page .sol-visual::before { opacity: .05; }
.sol-page .sol-story { background: var(--subpage-panel); }

.sol-page :is(.sol-case-copy, .sol-story-copy, .sol-faq-copy) a,
.sol-page .sol-tool h3 span,
.sol-page .sol-case-nav a:is(:hover, :focus-visible),
.sol-page .sol-faq summary::after {
  color: var(--subpage-action);
}

.bid-page :is(.bid-band, .bid-study) { background-color: var(--subpage-panel); }
.bid-page .bid-study-evidence { filter: none; }

/* The solutions directory uses the same editorial type and surfaces. */
.bid-page .bid-intro h1 {
  font-size: clamp(42px, 5.08vw, 80px);
  letter-spacing: -.028em;
}

.bid-page .bid-feature > h2,
.bid-page .bid-entry strong,
.bid-page .bid-band blockquote {
  font-family: var(--ic-sans);
  font-weight: 400;
  letter-spacing: -.026em;
}

.bid-page .bid-ink {
  background: linear-gradient(138deg, #234c39, var(--subpage-deep) 64%);
  color: #fafaf7;
}

.bid-page .bid-paper { background: var(--subpage-panel); }
.bid-page .bid-feature { border-radius: 8px; }
.bid-page .bid-entry:hover { background-color: var(--subpage-selected); }
.bid-page :is(.bid-back, .bid-text-link) { color: var(--subpage-action); }

.bid-page .bid-paper .bid-pill {
  background-color: var(--subpage-action);
  border-color: var(--subpage-action);
  color: #fff;
}

.bid-page .bid-paper .bid-pill:hover:not(:disabled) {
  background-color: var(--subpage-action-hover);
  border-color: var(--subpage-action-hover);
}

.bid-page .bid-motion .lk-stage,
.bid-page :is(.bid-motion-admin, .bid-rs-demo) {
  background: var(--subpage-panel);
}

.bid-page :is(.bid-motion-admin, .bid-rs-demo) { filter: none; }

/* Audience and knowledge heroes keep their existing centered composition. */
.sx-page .sx-eudia-hero,
.sx-page .sx-hero-atmosphere,
.sx-page .sx-eudia-showcase,
.kb-page .kb-hero {
  background: var(--subpage-paper);
  color: var(--subpage-ink);
}

.sx-page .sx-hero-atmosphere::after { background: none; }

.sx-page .sx-hero-atmosphere::before,
.kb-page .kb-hero::before {
  filter: brightness(0);
  opacity: .08;
}

.sx-page .sx-eudia-hero-inner,
.kb-page .kb-hero {
  padding-top: clamp(116px, 12vw, 160px);
}

:is(.sx-page .sx-eudia-hero, .kb-page .kb-hero, .system-page .system-intro) h1 {
  color: var(--subpage-ink);
  font: 400 clamp(38px, 4.5vw, 70px)/1.05 var(--ic-sans);
  letter-spacing: -.029em;
}

.sx-page .sx-eudia-hero .sx-hero-description > p,
.kb-page .kb-hero > p,
.kb-page .kb-hero .kb-eyebrow,
.system-page .system-kicker {
  color: var(--subpage-muted);
}

body.sx-page .sx-eudia-hero .sx-actions > .sx-primary,
body.kb-page .kb-link,
body.kb-page .kb-hero > .kb-link {
  background-color: var(--subpage-action);
  border-color: var(--subpage-action);
  color: #fff !important;
}

body.sx-page .sx-eudia-hero .sx-actions > .sx-primary:hover,
body.kb-page .kb-link:hover,
body.kb-page .kb-hero > .kb-link:hover {
  background-color: var(--subpage-action-hover);
  border-color: var(--subpage-action-hover);
}

.sx-page .sx-eudia-hero .sx-actions > .sx-text-link,
.sx-page .sx-feature-copy > .sx-text-link {
  border-color: #e7e7e2;
  background-color: #e7e7e2;
  color: var(--subpage-ink) !important;
}

.sx-page .sx-eudia-hero .sx-actions > .sx-text-link:hover,
.sx-page .sx-feature-copy > .sx-text-link:hover {
  background-color: #dcddd7;
  border-color: #dcddd7;
}

.sx-page main > .sx-feature {
  border: 1px solid var(--subpage-line);
  border-radius: 10px;
  box-shadow: none;
}

.sx-page .sx-eudia-media,
.kb-page .kb-motion-hero,
.kb-page .kb-motion-hero .ui-motion-stage {
  background: var(--subpage-panel);
  filter: none;
}

.sx-page .sx-eudia-media-feature::before,
.sx-page .sx-eudia-media-feature::after { display: none; }

.sx-page .sx-feature > .sx-feature-checks > article,
.kb-page .kb-steps article:nth-child(2),
.kb-page .kb-source-list a:last-child {
  background-color: var(--subpage-panel);
}

.sx-page .sx-task,
.sx-page .sx-closing {
  background: var(--subpage-deep);
  filter: none;
  border-radius: 10px;
}

.sx-page .sx-closing::before {
  background: radial-gradient(ellipse at 90% 100%, #39745266, transparent 68%);
  filter: none;
}

.sx-page .sx-task:nth-child(2) {
  background: var(--subpage-panel);
  color: var(--subpage-ink);
}

.sx-page .sx-task:hover { background-color: #214734; }
.sx-page .sx-task:nth-child(2):hover { background-color: #e9e8e2; }

.sx-page :is(.sx-task h3, .sx-closing h2),
.kb-page .kb-source-list a b,
.system-page :is(.system-atlas, .system-chapter, .system-closing) h2 {
  font-family: var(--ic-sans);
  font-weight: 400;
  letter-spacing: -.028em;
}

.sx-page .sx-closing .sx-primary {
  background-color: var(--subpage-paper);
  border-color: var(--subpage-paper);
  color: var(--subpage-ink) !important;
}

.kb-page .kb-section { background: var(--subpage-paper); }
.kb-page .kb-source-list a > span { color: var(--subpage-action); }

/* System chapters keep their existing product frames and copy. */
.system-page {
  --system-paper: var(--subpage-panel);
  --system-line: var(--subpage-line);
  --system-accent: var(--subpage-selected);
}

.system-page .system-atlas {
  background: radial-gradient(ellipse at 80% 36%, #355c49, transparent 62%),
              linear-gradient(145deg, #10271e, var(--subpage-deep));
  border-radius: 12px;
}

.system-page :is(.system-catalog, .system-media, .system-closing) {
  background: var(--subpage-panel);
  border-color: var(--subpage-line);
  border-radius: 8px;
}

.system-page .system-media figcaption { color: var(--subpage-muted); }
.system-page main .system-link { color: var(--subpage-action); }

@media (max-width: 760px) {
  .sx-page .sx-eudia-hero .sx-hero-description > p,
  .kb-page .kb-hero > p { font-size: 17px; }
}
