/* The homepage's frame, type scale and section rhythm, applied to interior pages.
   Page-specific grids and interactive diagrams retain their own composition. */
body.story-site.subpage-layout:not(.home-site) {
  --story-space:clamp(20px,3.35vw,48px);
  --band-space:clamp(36px,4vw,56px);
  --type-page:clamp(36px,4.4vw,62px);
  --type-section:clamp(28px,3vw,40px);
  --type-card:clamp(21px,1.8vw,26px);
  --type-body:1rem;
  --band-ivory:#fff9f0;
  --band-paper:#f4ecdd;
  --band-rose:#eee1df;
  --band-line:#d0c2b0;
  --band-plum:#302e2c;
  max-width:1440px;
  margin-inline:auto;
}
html[data-theme=dark] body.story-site.subpage-layout:not(.home-site) {
  --magenta:#ff92c6;
  --band-ivory:#1d1b19;
  --band-paper:#252321;
  --band-rose:#373533;
  --band-line:#4a4846;
  --band-plum:#363432;
}
body.story-site.subpage-layout:not(.home-site) .site-header {padding-inline:var(--story-space)}
body.story-site.subpage-layout:not(.home-site) main {margin-inline:0;max-width:none}
body.story-site.subpage-layout:not(.home-site) main :is(.role-hero,.page-hero,.site-design-hero,.cn-hero,.cn-xero-hero,.bp-resource-hero) {
  padding:var(--band-space) var(--story-space);
  min-height:0;
  gap:clamp(28px,4vw,56px);
}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main :is(.role-hero,.page-hero,.site-design-hero,.cn-hero,.cn-xero-hero,.bp-resource-hero) h1 {
  font-size:var(--type-page);line-height:1.04;letter-spacing:-.045em;
  margin:0 0 20px;max-width:17ch;
}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main :is(.role-hero,.page-hero,.site-design-hero) .kicker {margin-bottom:20px}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main :is(.lede,.hero-promise,.cn-hero-copy>p,.bp-resource-intro>p,.cn-xero-intro p) {font-size:16px;line-height:1.65}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main h2 {font-size:var(--type-section);line-height:1.1;letter-spacing:-.035em}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main h3 {font-size:var(--type-card);line-height:1.2}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main :is(.section-lead,.section-lead.compact,.vs-heading,.pe-section-heading,.hs-section-heading,.deck-section-heading,.ep-product .vs-heading) {margin-bottom:28px;gap:28px}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main :is(.section-lead,.vs-heading,.pe-section-heading,.hs-section-heading,.deck-section-heading) h2 {margin-top:0;margin-bottom:16px}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main :is(.section-lead,.vs-heading,.pe-section-heading,.hs-section-heading,.deck-section-heading)>p {font-size:16px;line-height:1.65}
/* Each band starts and ends on the same content grid. */
body.story-site.subpage-layout:not(.home-site) main>:is(.release-demo-feature,.page-section,.bp-section,.ep-product,.deck-section,.pj-practical,.pj-closing,.pe-section,.sx-closing,.vs-solutions,.vs-app-build,.vs-app-market,.vs-app-range,.vs-app-library,.vs-partner-business,.cv-partner-platform,.vs-partner-migration,.hs-standalone,.human-connection-details,.platform-closing,.connector-explorer,.cn-xero-foundation,.finance-pressure,.customer-voice,.about-people,.about-origin,.about-patterns,.about-purpose,.related-explore,.final-cta) {
  padding:var(--band-space) var(--story-space);
  margin:0;
  border-inline:0;
  border-radius:0;
}
/* Deliberate transitions, rather than a long run of tan or an arbitrary stripe. */
body.story-site.subpage-layout:not(.home-site) main>:is(.ep-product,.pj-practical,.vs-app-build,.vs-app-library,.pe-evidence,.human-connection-details,.connector-explorer,.operator-context,.about-people,.page-section:not(.surface):not(.dark-panel),.related-explore) {
  background:var(--band-ivory);border-top:1px solid var(--band-line);
}
body.story-site.subpage-layout:not(.home-site) main>:is(.vs-solutions,.vs-app-range,.cv-partner-platform,.hp-agreement,.deck-catalog,.finance-pressure,.about-origin,.page-section.surface),
body.story-site.subpage-layout:not(.home-site) main>.bp-section.surface,
body.story-site.subpage-layout:not(.home-site).connector-site main>.cn-details {
  background:var(--band-rose);border-top:1px solid var(--band-line);
}
body.story-site.subpage-layout:not(.home-site) main>:is(.vs-partner-migration,.hs-standalone,.cn-xero-foundation,.about-patterns) {
  background:var(--band-paper);border-top:1px solid var(--band-line);
}
body.story-site.subpage-layout:not(.home-site).connector-site main>.bp-section:not(.ink):not(.cn-details) {background:var(--band-ivory);border-top:1px solid var(--band-line)}
body.story-site.subpage-layout:not(.home-site) main>.bp-growth-section {padding:var(--band-space) var(--story-space)}
body.story-site.subpage-layout:not(.home-site) main>.pj-practical+.related-explore {background:var(--band-rose)}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main :is(.bp-growth-section,.vs-app-market,.vs-partner-business,.about-purpose,.dark-panel) :is(h2 em,h2 span) {background:none;color:#ff92c6;-webkit-text-fill-color:#ff92c6}
body.story-site.subpage-layout:not(.home-site) .related-explore-grid {gap:24px 32px}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main .related-explore h2 {font-size:clamp(26px,2.5vw,34px);margin-bottom:24px}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main .related-explore h3 {font:650 17px/1.4 Inter,sans-serif;letter-spacing:-.02em}
body.story-site.subpage-layout:not(.home-site) .related-explore-grid p {font-size:14px;line-height:1.6}
/* Audience pages: individual product chapters get full-width bands, not nested gutters. */
body.story-site.subpage-layout:not(.home-site) main>.work-scenes.finance-interactives {padding:0}
body.story-site.subpage-layout:not(.home-site) :is(.systems-evidence-row,.finance-interactives>.work-scene,.bp-finance-investigation) {
  padding:var(--band-space) var(--story-space);margin:0;border-block:1px solid var(--band-line);gap:clamp(28px,4vw,56px);
}
body.story-site.subpage-layout:not(.home-site) .systems-evidence-row {background:var(--band-ivory)}
body.story-site.subpage-layout:not(.home-site) .systems-evidence-row:nth-child(2) {background:var(--band-paper)}
body.story-site.subpage-layout:not(.home-site) .systems-evidence-row:nth-child(3) {background:var(--band-rose)}
body.story-site.subpage-layout:not(.home-site) .bp-finance-investigation {background:var(--band-ivory)}
body.story-site.subpage-layout:not(.home-site) #finance-history {background:var(--band-paper)}
body.story-site.subpage-layout:not(.home-site) #finance-spend {background:var(--band-rose)}
body.story-site.subpage-layout:not(.home-site) .finance-interactives .work-scene-copy {padding:0;border:0;background:transparent}
body.story-site.subpage-layout:not(.home-site) .finance-interactives .work-scene-copy>p {font-size:16px;line-height:1.65}
body.story-site.subpage-layout:not(.home-site) .finance-interactives .work-scene figure {margin:0}
body.story-site.subpage-layout:not(.home-site) .finance-interactives .work-scene figure img {display:block;width:100%;height:auto;object-fit:contain}
body.story-site.subpage-layout:not(.home-site) .customer-voice {width:100%;max-width:none;background:var(--band-rose);border-top:1px solid var(--band-line)}
body.story-site.subpage-layout:not(.home-site) .customer-voice blockquote {font-size:clamp(20px,2vw,28px);line-height:1.4}
/* Resources use the same full-width chapter edges; the library remains a library. */
body.story-site.subpage-layout:not(.home-site) .resource-hub-new {padding:0;max-width:none}
body.story-site.subpage-layout:not(.home-site) .resource-hub-new>:is(.fieldnotes-feature,.fieldnotes-library,.partner-reading-path,.fieldnotes-tool) {
  padding:var(--band-space) var(--story-space);margin:0;border-inline:0;border-radius:0;
}
body.story-site.subpage-layout:not(.home-site) .fieldnotes-library {background:var(--band-ivory);border-top:1px solid var(--band-line)}
body.story-site.subpage-layout:not(.home-site) .partner-reading-path {background:var(--band-rose);border-block:1px solid var(--band-line)}
body.story-site.subpage-layout:not(.home-site) .fieldnotes-tool {background:var(--band-paper);border-top:0}
body.story-site.subpage-layout:not(.home-site).hierarchy-site .fieldnotes-tool h2 {font-size:var(--type-section)}
body.story-site.subpage-layout:not(.home-site) .library-heading {margin-bottom:24px}
body.story-site.subpage-layout:not(.home-site) .library-grid {gap:20px}
body.story-site.subpage-layout:not(.home-site) .library-card>a {padding:24px;min-height:280px}
body.story-site.subpage-layout:not(.home-site) .library-card h3 {font-size:24px;line-height:1.15}
body.story-site.subpage-layout:not(.home-site) .about-people-intro {margin-bottom:28px}
body.story-site.subpage-layout:not(.home-site) .about-origin-copy {padding-top:0}
/* Compact closing invitations share the homepage's plum band. */
body.story-site.subpage-layout:not(.home-site) main>:is(.pj-closing,.pe-closing,.sx-closing,.platform-closing,.cn-closing,.final-cta,.closing-brief) {
  --ink:#fff8ed;--muted:#dad8d6;--line:#5c5a58;--magenta:#ff92c6;
  background:var(--band-plum);color:var(--ink);padding:36px var(--story-space);border:0;border-radius:0;margin:0;min-height:0;
}
body.story-site.subpage-layout:not(.home-site).hierarchy-site main>:is(.pj-closing,.pe-closing,.sx-closing,.platform-closing,.cn-closing,.final-cta,.closing-brief) h2 {
  font-size:clamp(28px,3vw,40px);line-height:1.1;max-width:24ch;margin:0;color:#fff8ed;
}
body.story-site.subpage-layout:not(.home-site) main>:is(.pj-closing,.pe-closing,.sx-closing,.platform-closing,.cn-closing,.final-cta,.closing-brief) p {font-size:16px;line-height:1.6;color:#dad8d6;margin:16px 0 0}
body.story-site.subpage-layout:not(.home-site) main>:is(.pj-closing,.pe-closing,.sx-closing,.platform-closing,.cn-closing,.final-cta,.closing-brief) .button {font-size:14px;min-height:44px;padding:12px 20px;background:#d71179;border-color:#d71179;color:#fff;box-shadow:none}
body.story-site.subpage-layout:not(.home-site) main>:is(.pj-closing,.pe-closing,.sx-closing,.platform-closing,.cn-closing,.final-cta,.closing-brief) :is(h2 em,h2 span) {background:none;-webkit-text-fill-color:#ff92c6;color:#ff92c6}
body.story-site.subpage-layout:not(.home-site) .closing-brief.character-closing {display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.55fr);gap:36px;align-items:center}
body.story-site.subpage-layout:not(.home-site) .closing-brief .closing-copy {padding:0;max-width:620px}
body.story-site.subpage-layout:not(.home-site) .closing-brief .closing-copy .button {margin-top:24px}
body.story-site.subpage-layout:not(.home-site) .character-closing-art {max-width:310px;width:100%;height:auto;justify-self:end;order:2}
/* Reading pages preserve a comfortable text measure within the shared outer frame. */
body.story-site.subpage-layout:not(.home-site) .reading-page {max-width:none;padding:var(--band-space) var(--story-space)}
body.story-site.subpage-layout:not(.home-site) .policy-heading {padding:var(--band-space) var(--story-space);margin:0;background:var(--band-rose)}
body.story-site.subpage-layout:not(.home-site).privacy-site .article {max-width:780px;padding:var(--band-space) var(--story-space);margin-inline:auto}
body.story-site.subpage-layout:not(.home-site).privacy-site main.privacy-page {padding:0;background:var(--band-ivory)}
body.story-site.subpage-layout:not(.home-site).privacy-site .policy-heading h1 {font-size:var(--type-page)}
body.story-site.subpage-layout:not(.home-site).privacy-site .article h2 {font-size:clamp(24px,2.2vw,30px);max-width:none}
@media(min-width:851px) {
  body.story-site.subpage-layout:not(.home-site) main :is(.role-hero,.site-design-hero,.cn-hero) {min-height:520px}
}
@media(max-width:850px) {
  body.story-site.subpage-layout:not(.home-site) {--type-page:clamp(36px,6vw,52px)}
  body.story-site.subpage-layout:not(.home-site) .closing-brief.character-closing {grid-template-columns:1fr .55fr;gap:24px}
}
@media(max-width:600px) {
  body.story-site.subpage-layout:not(.home-site) {--band-space:36px;--type-section:30px;--type-card:23px}
  body.story-site.subpage-layout:not(.home-site) main :is(.role-hero,.page-hero,.site-design-hero,.cn-hero,.cn-xero-hero,.bp-resource-hero) {padding-block:32px;gap:28px}
  body.story-site.subpage-layout:not(.home-site) .closing-brief.character-closing {grid-template-columns:1fr}
  body.story-site.subpage-layout:not(.home-site) .character-closing-art {max-width:250px;justify-self:start}
  body.story-site.subpage-layout:not(.home-site) .library-card>a {min-height:0}
  body.story-site.subpage-layout:not(.home-site) .reading-page {padding-top:28px}
}

/* Align the legacy support-page hero internals with the shared outer gutter. */
body.story-site.subpage-layout:not(.home-site) .page-hero {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.story-site.subpage-layout:not(.home-site) .page-hero .page-hero-copy {padding:0;max-width:none}
body.story-site.subpage-layout:not(.home-site) .page-hero .page-hero-art {min-height:0;align-self:center;border:1px solid var(--line)}
body.story-site.subpage-layout:not(.home-site) .page-hero .page-hero-art img {height:auto;display:block;object-fit:contain}
body.story-site.subpage-layout:not(.home-site) .page-hero:has(>.page-hero-copy:only-child) {grid-template-columns:1fr}
body.story-site.subpage-layout:not(.home-site) .integration-panels {padding-inline:0}
body.story-site.subpage-layout:not(.home-site) .ip-content {padding-inline:var(--story-space)}
body.story-site.subpage-layout:not(.home-site) .ip-surface {border-radius:0}
@media(max-width:850px){body.story-site.subpage-layout:not(.home-site) .page-hero{grid-template-columns:1fr}}

/* Legacy audience heroes use the same bounded media column as the newer pages. */
body.story-site.subpage-layout:not(.home-site) .role-hero {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.story-site.subpage-layout:not(.home-site) .role-hero .role-hero-art {width:100%;min-width:0;min-height:0;margin:0;transform:none;box-shadow:none;align-self:center}
body.story-site.subpage-layout:not(.home-site) .role-hero .hero-promise {max-width:48ch;font-weight:400;margin:0 0 24px;color:var(--muted)}
body.story-site.subpage-layout:not(.home-site) .role-hero .subpage-story {grid-template-rows:auto auto auto}
body.story-site.subpage-layout:not(.home-site) :is(.role-hero,.page-hero) .hero-story-caption {position:static;display:flex;min-height:0;width:auto;max-width:none;margin:0;inset:auto;padding:16px 20px!important;border:0;border-top:1px solid var(--line);background:var(--paper);color:var(--ink);font:400 14px/1.5 Inter,sans-serif;letter-spacing:0;text-transform:none}
body.story-site.subpage-layout:not(.home-site) :is(.role-hero,.page-hero) .hero-story-navigation {padding:0 12px 8px;min-height:44px}
body.story-site.subpage-layout:not(.home-site) .customer-voice :is(blockquote,figcaption) {color:var(--ink)}
body.story-site.subpage-layout:not(.home-site).scorecard-site main.scorecard-page {padding:0}
body.story-site.subpage-layout:not(.home-site).scorecard-site :is(.scorecard-breadcrumb,#loading-note,.assessment-layout,#results) {margin-inline:var(--story-space)}
body.story-site.subpage-layout:not(.home-site).scorecard-site .scorecard-breadcrumb {padding-top:28px}
@media(max-width:850px) {
 body.story-site.subpage-layout:not(.home-site) .role-hero {grid-template-columns:1fr}
 body.story-site.subpage-layout:not(.home-site) .role-hero .role-hero-art {max-width:720px;justify-self:center}
 body.story-site.subpage-layout:not(.home-site).finance-site .finance-spend-scene {grid-template-columns:1fr}
}

/* Product evidence stays readable without taking over the legacy Security page. */
body.story-site.subpage-layout:not(.home-site) .security-product-plate {width:100%;max-width:920px;margin:0 auto 32px;padding:0;border:1px solid var(--line);transform:none;box-shadow:none;background:var(--surface)}
body.story-site.subpage-layout:not(.home-site) .security-product-plate .product-dashboard-window {transform:none;border:0;box-shadow:none}
body.story-site.subpage-layout:not(.home-site) .security-product-plate img {display:block;width:100%;height:auto}
body.story-site.subpage-layout:not(.home-site) .security-product-plate figcaption {padding:16px 20px}
body.story-site.subpage-layout:not(.home-site) .control-card {padding:24px}
body.story-site.subpage-layout:not(.home-site) .control-card p {font-size:16px}
body.story-site.subpage-layout:not(.home-site) .control-card ul {margin-top:20px}
body.story-site.subpage-layout:not(.home-site) .assessment-layout {padding-bottom:var(--band-space)}

/* Keep adjacent audience chapters distinct and article navigation readable. */
body.story-site.subpage-layout:not(.home-site) .customer-voice {
  --ink:#fff8ed;--muted:#dad8d6;--line:#5c5a58;
  background:var(--band-plum);color:var(--ink);
}
body.story-site.subpage-layout:not(.home-site) .customer-voice-brand img {max-width:160px;padding:12px 18px;background:#fff9f0;border-radius:4px}
body.story-site.subpage-layout:not(.home-site) .customer-voice-brand>p {color:#ff92c6}
body.story-site.subpage-layout:not(.home-site) .customer-voice-quotes figure+figure {border-color:var(--line)}
body.story-site.subpage-layout:not(.home-site).finance-site main>.bp-section.surface {background:var(--band-ivory)}
body.story-site.subpage-layout:not(.home-site).finance-site main>.bp-section.surface+.related-explore {background:var(--band-paper)}
body.story-site.subpage-layout:not(.home-site) .article-outline nav {display:block}
body.story-site.subpage-layout:not(.home-site) .faq-grid>.faq-card:last-child:nth-child(odd) {grid-column:1/-1}
