/* Shared layout corrections. Keep each page's art direction and motion intact.
   The header's content edge is the authority for every full-width section. */
:root {
  --ios-section-space: clamp(48px, 4.5vw, 64px);
  --hero-edge: var(--pw-edge, clamp(24px, 3.8vw, 56px));
}

/* Preserve each page's original eyebrow size while using uppercase labels. */
:is(p, span)[class*="kicker"]:has(+ :is(h1, h2)),
:is(p, span)[class*="eyebrow"]:has(+ :is(h1, h2)),
:is(p, span)[class*="label"]:has(+ :is(h1, h2)) {
  text-transform: uppercase !important;
}

.ios-platform-page { --bp-pad: var(--hero-edge); }
.ios-brand-page { --bb-pad: var(--hero-edge); }
.ios-product-page { --pd-pad: var(--hero-edge); }
.ios-menu-page { --mp-pad: var(--hero-edge); }
.ios-cloud-page { --cp-pad: var(--hero-edge); }
.sv-page { --sv-edge: var(--hero-edge); }
.ios-agent-page { --ag-pad: var(--hero-edge); }
.ios-credit-page { --cr-pad: var(--hero-edge); }
.ios-ai-page { --ai-edge: var(--hero-edge); }
.ios-automation { --au-pad: var(--hero-edge); }
.pn-page { --pn-edge: var(--hero-edge); }
.ip-page { --ip-edge: var(--hero-edge); }
.af-page { --af-edge: var(--hero-edge); }
.ch-page { --ch-edge: var(--hero-edge); }
.rs-page { --rs-edge: var(--hero-edge); }
.wl-page { --wl-edge: var(--hero-edge); }
.rx-page { --edge: var(--hero-edge); }
.rp-page { --rp-gutter: var(--hero-edge); }
.ios-model-explorer { --model-edge: var(--hero-edge); padding-inline:var(--model-edge); }
.ios-growth-continuity { --growth-edge: var(--hero-edge); }

/* These homepage/footer sections previously bypassed the page gutter tokens. */
.ios-managed-support,
.ios-cloud-enhanced,
.ios-closing-cta,
.ios-connected,
.ios-endnote { padding-inline: var(--hero-edge); }

/* Preserve the header's compact laptop breakpoint, including the utility bar. */
@media (min-width:1261px) and (max-width:1399px) {
  :root { --pw-edge: 24px; }
}
@media (max-width:1260px) {
  .ios-navbar-inner { width:100%; padding-inline:var(--hero-edge); }
}
@media (max-width:700px) {
  :root { --pw-edge:20px; }
  .ios-navbar-inner,
  .ios-topbar-inner { width:100%; padding-inline:var(--hero-edge); }
  .ios-growth-continuity { padding-inline:var(--hero-edge); }
}

/* Reduce section-to-section dead space. Deliberately exclude pinned galleries,
   hero stages and internal card padding so their composition stays unchanged. */
@media (min-width:701px) {
  .ios-platform-page :is(.bp-explorer,.outcome,.bp-closing),
  .ios-brand-page :is(.bb-layers,.bb-capacity,.bb-design,.bb-decision),
  .ios-product-page :is(.pd-foundation,.pd-advisor,.pd-ai-plans,.pd-outcome,.pd-decision,.pd-closing),
  .ios-menu-page :is(.mp-foundations,.mp-ai,.mp-plan-scale,.mp-decision,.mp-closing,.quick-includes),
  .ios-cloud-page :is(.cp-management,.cp-capabilities,.cp-details,.cp-chooser,.cp-partners,.cp-outcome,.cp-closing,.cp-decision),
  .sv-page .sv-section:not(.sv-decision),
  .ios-agent-page :is(.ag-value,.ag-outcome,.ag-closing),
  .ios-ai-page :is(.ai-foundation,.ai-models,.ai-decision,.ai-closing),
  .ios-automation :is(.au-explorer,.au-delivery),
  .pn-page .pn-models,
  .ip-page :is(.ip-capabilities,.ip-outcome),
  .af-page :is(.af-process,.af-managed,.af-decision),
  .ch-page :is(.ch-journey,.ch-support,.ch-closing),
  .rs-page .rs-support,
  .wl-page :is(.wl-model,.wl-support,.wl-decision),
  .rx-page .rx-section:not([class*="-hero"]):not(.path-journey),
  .rp-page :is(.rp-foundation,.rp-discover-section,.rp-trust-proof,.rp-customer-workflow,.rp-contact-hero,.rp-decision,.rp-close,.gv-build-section,.gv-discovery-section,.gv-trust-section),
  .ios-managed-support,
  .ios-cloud-enhanced { padding-block:var(--ios-section-space); }

  .ios-cloud-page .cp-hero { padding-top:48px; padding-bottom:56px; }
  .ios-cloud-page .cp-custom-hero { padding-bottom:40px; }
  .ios-cloud-page .cp-heading { margin-bottom:36px; }
  .ios-cloud-page .cp-paths { padding-bottom:var(--ios-section-space); }
  .ios-cloud-page .cp-decision figure { height:clamp(400px,34vw,520px); }

  /* Percentage row gaps plus copy padding created the empty VPS hero band. */
  .sv-page .sv-vps-hero { row-gap:24px; padding-top:48px; }
  .sv-page .sv-hero-copy { padding-block:0 20px; }
  .sv-page .sv-hero-foot { margin-top:0; padding-block:22px; }
  .sv-page .sv-section-head { margin-bottom:32px; }

  .ch-page .ch-hero { padding-top:40px; }
  .ios-connected { padding-top:var(--ios-section-space); }
}

/* Screenshot review: compact, aligned resource and partner sections. */
.rx-page .rx-heading { gap:clamp(24px,5vw,80px); align-items:start; margin-bottom:28px; }
.rx-page .path-phase-list { gap:24px; }
.rx-page .path-phase-list article { gap:14px; padding-top:18px; }
.rx-page .path-phase-list h3 { font-size:clamp(24px,1.65vw,30px); }
.rx-page .path-note { margin-top:28px; padding-top:22px; gap:22px; }
.rx-page .path-note h2 { max-width:none; font-size:clamp(26px,2vw,36px); }
.rx-page .path-note>span { font-size:50px; }
.rx-page .guide-annotations { gap:28px; }
.rx-page .guide-annotations article { padding-top:18px; }
.rx-page .guide-annotations h3 { margin-top:14px; max-width:none; font-size:clamp(25px,1.75vw,32px); }
.rx-page .guide-rule { margin-top:18px; height:3px; width:100%; }
.rx-page .guide-takeaway { justify-content:flex-start; align-items:center; margin-top:26px; padding-top:22px; gap:32px; }
.rx-page .guide-takeaway .rx-label { margin:0; flex-shrink:0; }
.rx-page .guide-takeaway h2 { max-width:none; font-size:clamp(28px,2vw,36px); }
.rx-page .about-diptych { grid-template-columns:1.3fr 1fr; margin-top:30px; }
.rx-page .about-diptych>div,.rx-page .about-diptych .about-infra { height:clamp(240px,23vw,350px); margin-top:0; }
.rx-page .about-foundation-layout { grid-template-columns:.8fr 1.4fr; gap:clamp(28px,4vw,64px); align-items:stretch; }
.rx-page .about-experience { padding:28px; }
.rx-page .about-years { font-size:clamp(100px,10vw,160px); }
.rx-page .about-experience h3 { margin-top:16px; }
.rx-page .about-experience-line { margin-top:24px; }
.rx-page .about-capability article { padding:22px 0; gap:22px; }
.rx-page .about-capability article:last-child { padding-bottom:0; }
.rx-page .about-capability p { max-width:65ch; margin:14px 0 8px; }
.rx-page .about-connected { gap:clamp(28px,4vw,64px); grid-template-columns:1fr 1.1fr; padding-bottom:28px; }
.rx-page .about-connected-heading h2 { max-width:26ch; }
.rx-page .about-connected-heading p:not(.rx-label) { margin-top:18px; }
.rx-page .about-network>svg { height:80px; }
.rx-page .about-connected + .rx-close { padding-top:28px; padding-bottom:40px; }
.pn-page .pn-studio-stage { grid-template-columns:1.1fr 1fr; gap:26px 4%; align-items:stretch; }
.pn-page .pn-solution-photos { height:clamp(280px,24vw,420px); }
.pn-page .pn-model-ledger { padding:28px; background:var(--pn-mist); }
.pn-page .pn-solution-copy p { max-width:50ch; }
.pn-page .pn-solution-route { padding-top:20px; min-height:0; }
@media (min-width:701px) {
 .rx-page :is(.path-foundation,.guide-principles,.about-foundation) { padding-block:40px; }
}
@media (max-width:1000px) {
 .rx-page .about-connected { grid-template-columns:1fr; }
}
@media (max-width:760px) {
 .pn-page .pn-studio-stage { grid-template-columns:1fr; }
 .pn-page .pn-model-ledger { padding:24px; }
}
@media (max-width:650px) {
 .rx-page .about-foundation-layout { grid-template-columns:1fr; }
 .rx-page .about-diptych>div,.rx-page .about-diptych .about-infra { height:220px; }
 .rx-page .guide-annotations article { padding-top:18px; }
 .rx-page .guide-annotations h3 { margin:0; }
 .rx-page .guide-takeaway { align-items:flex-start; gap:14px; }
 .rx-page .about-connected+.rx-close { flex-direction:column; align-items:flex-start; gap:24px; }
}
@media (min-width:701px) {
 .rx-page .rx-section:is(.path-foundation,.guide-principles,.about-foundation) { padding-block:40px; }
 .rx-page .about-connected.rx-section { padding-bottom:28px; }
}

/* Section introductions: readable heading-scale labels across all page families.
   Keep document heading order and exclude model counters, tabs and form labels. */
:is(.ios-shell,[data-ios-redesign]) :is(.bb-kicker,.bp-eyebrow,.bp-model-kicker,.pd-kicker,.mp-kicker,.cp-kicker,
.ag-kicker,.cr-kicker,.ai-kicker,.rx-label,.rp-label,.af-label,.ch-label,
.au-label,.ip-label,.sv-label,.pn-label,.pn-model-kicker,.rs-label,.wl-label,.rs-platform-eyebrow),
.ios-platform-page :is(.outcome,.cta) > b,
.ios-platform-page .cta > div > b {
  font-size: clamp(20px, 1.5vw, 24px) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  max-width: 100%;
  overflow-wrap: break-word;
}
