/* One section-label treatment, independent of legacy paragraph styles. */
body.story-site.hierarchy-site main :is(.section-index,.kicker,.chapter-label),
body.story-site.hierarchy-site.subpage-layout main :is(.section-index,.kicker,.chapter-label) {
  display:block; margin:0 0 14px !important; padding:0; max-width:none;
  color:#c91068 !important; font-family:ui-monospace,SFMono-Regular,Menlo,monospace !important;
  font-size:12px !important; font-weight:700 !important; line-height:18px !important; letter-spacing:.075em !important;
  text-transform:uppercase !important;
}
body.story-site.hierarchy-site main :is(.section-index,.kicker,.chapter-label)::after {content:none !important;display:none !important}
body.story-site.hierarchy-site main :is(.dark-panel,.ink-band,.dark-band) :is(.section-index,.kicker,.chapter-label),
:root[data-theme=dark] body.story-site.hierarchy-site main :is(.section-index,.kicker,.chapter-label) {color:#ff92c6 !important}

/* Security follows one heading, content, and spacing rhythm. */
body.story-site.hierarchy-site.security-site main .page-section>.section-lead {
  display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:40px;
  max-width:none;margin-bottom:32px;
}
body.story-site.hierarchy-site.security-site main .section-lead>p:not(.section-index) {margin:32px 0 0;max-width:58ch;font-size:16px;line-height:1.65}
body.story-site.hierarchy-site.security-site main .section-lead h2 {font-size:clamp(28px,3.1vw,40px);line-height:1.1;max-width:20ch;margin:0}
body.security-site .security-flow {margin-top:0}
body.security-site .security-flow-drawing {grid-template-columns:minmax(155px,.9fr) minmax(145px,.65fr) minmax(0,2fr);padding:20px 0 28px}
body.security-site .security-instance {padding:24px}
body.security-site .security-flow .architecture-details {min-height:110px}
body.security-site .security-product-plate {max-width:960px}
body.security-site .control-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body.security-site .control-card {padding:24px;box-shadow:none}
body.security-site .control-card h3 {font-size:20px;line-height:1.25;margin:12px 0}
body.security-site .control-card :is(p,li) {font-size:14px;line-height:1.65}
body.security-site .control-card ul {padding-left:18px;margin:16px 0 0}
body.security-site .control-card p {margin:0}
body.security-site .status-row {grid-template-columns:100px minmax(200px,.8fr) minmax(0,1.5fr);gap:24px;padding:24px 0;align-items:start}
body.security-site .status-row strong {font-size:18px;line-height:1.35}
body.security-site .status-row p {font-size:15px;line-height:1.65;margin:0}
body.security-site .timeline {grid-template-columns:repeat(5,minmax(0,1fr));gap:24px}
body.security-site .timeline article {padding:20px 0 0}
body.security-site .timeline h3 {font-size:18px;line-height:1.3}
body.security-site .timeline p {font-size:14px;line-height:1.65}
/* A single drawn path keeps each arrowhead on its shaft. */
body.security-site :is(.security-read-path,.security-return-path) b {display:none}
body.security-site :is(.security-read-path,.security-return-path)::after {content:"";position:absolute;width:9px;height:9px;bottom:-6px;border-right:2px solid currentColor;border-top:2px solid currentColor;right:0;transform:rotate(45deg)}
body.security-site .security-return-path::after {right:auto;left:0;transform:rotate(-135deg);opacity:0}
body.security-site .security-flow[data-active-capability="1"] .security-return-path::after {opacity:1}
@media(max-width:1000px){
 body.security-site .control-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 body.security-site .timeline {grid-template-columns:repeat(2,minmax(0,1fr))}
 body.security-site .status-row {grid-template-columns:90px 1fr;gap:12px 24px}
 body.security-site .status-row p {grid-column:2}
}
@media(max-width:750px){
 body.story-site.hierarchy-site.security-site main .page-section>.section-lead {grid-template-columns:1fr;gap:16px;margin-bottom:24px}
 body.story-site.hierarchy-site.security-site main .section-lead>p:not(.section-index) {margin:0}
 body.security-site .security-flow-drawing {grid-template-columns:1fr;gap:22px;padding:0 0 24px}
 body.security-site .security-paths {display:flex;gap:30px;justify-content:center;padding:0}
 body.security-site :is(.security-read-path,.security-return-path) {border:0;padding:0 24px 0 0;min-height:40px}
 body.security-site :is(.security-read-path,.security-return-path)::before {content:"";position:absolute;right:5px;top:0;height:30px;border-right:2px solid currentColor}
 body.security-site :is(.security-read-path,.security-return-path)::after {right:1px;left:auto;bottom:auto;top:20px;transform:rotate(135deg)}
 body.security-site .security-return-path::before {border-right:1px dashed currentColor}
 body.security-site .security-flow[data-active-capability="1"] .security-return-path::before {border-right:2px solid currentColor}
 body.security-site .security-return-path::after {top:0;transform:rotate(-45deg)}
 body.security-site .security-instance {padding:20px}
 body.security-site .security-flow .architecture-details {min-height:0}
 body.security-site .control-card {padding:20px}
}
@media(max-width:520px){
 body.security-site .control-grid,body.security-site .timeline {grid-template-columns:1fr}
 body.security-site .status-row {grid-template-columns:1fr;gap:10px}
 body.security-site .status-row p {grid-column:1}
}

/* Gradient text needs room for the headline font's glyph overhang.
   Clone the paint box on wrapped lines without moving the text alignment. */
body.story-site main :is(h1 > span, h1 em, h2 em) {
  padding-inline: .1em;
  margin-inline: -.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Preserve complete product captures at every viewport width. */
body.resource-site .feature-film { aspect-ratio: auto; }
body.resource-site .feature-film > img {
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
body.resource-site .feature-film .film-play { position: static; }
body.security-site .security-product-plate .product-dashboard-window img {
  height: auto;
  min-height: 0;
  object-fit: contain;
}

/* Anchor marketing titles to the navigation, independently of neighboring artwork. */
body.story-site.hierarchy-site{
  --hero-title-inset:clamp(68px,6vw,86px);
}
body.story-site.hierarchy-site main :is(.role-hero,.page-hero,.cn-hero,.cn-xero-hero,.bp-resource-hero,.integration-catalog-hero,#architecture-detail,#how-it-works.platform-brief):has(h1){
  padding-block-start:var(--hero-title-inset) !important;
}
body.story-site.hierarchy-site main :is(.role-hero-copy,.page-hero-copy,.cn-hero-copy,.bp-resource-intro,.workshop-copy,.brief-intro):has(h1){
  align-self:start !important;
  align-content:start;
}
body.story-site main :is(.hero-message,.brief-intro,.cn-hero-copy):has(h1),
body.story-site main .cn-xero-hero{position:relative}
body.story-site main .hero-message>.how-label,
body.story-site main .brief-intro>.brief-label,
body.story-site main .cn-hero-copy>.cn-brand{
  position:absolute;inset-inline-start:0;bottom:calc(100% + 10px);margin:0;
}
body.story-site main .cn-xero-hero>.cn-brand{
  position:absolute;inset-inline-start:var(--story-space);top:var(--hero-title-inset);
  transform:translateY(calc(-100% - 10px));margin:0;
}
body.story-site main .integration-catalog-hero{border-top-width:0 !important}

/* The capabilities walkthrough shares the Platform grid and section hierarchy. */
#platform-journey.release-guide{
  box-sizing:border-box;width:100%;max-width:none;
  padding:var(--band-space) var(--story-space);
}
#platform-journey>h2{max-width:none;margin:0}
#platform-journey #platform-capabilities{
  padding:clamp(20px,2.4vw,32px) 0;margin:20px 0 24px;
}
#platform-journey #foundation-title{
  margin:0;max-width:none;font-size:clamp(22px,2.1vw,30px) !important;line-height:1.14;
}
#platform-journey #foundation-title em{color:var(--magenta)}
#platform-journey .bp-build-copy h4{
  grid-column:1;margin:0;font:800 clamp(19px,1.6vw,23px)/1.2 "Turbobase Headline",sans-serif;letter-spacing:-.035em;
}
