/* Shared insets for the content inside cards. Section gutters belong to the parent. */
main{--card-pad:clamp(16px,1.8vw,26px);--card-gap:clamp(10px,1vw,14px);--caption-pad:clamp(12px,1.35vw,18px)}
html body main :is(.bp-possibilities,.vs-four-opportunities,.control-grid,.hc-source-list,.related-explore-grid){gap:clamp(12px,1.5vw,20px)}
html body main :is(.bp-possibilities>article,.vs-four-opportunities>article,.hc-source-list>article,.finance-pressure-grid>article,.related-explore-grid>a,.about-pattern,.cn-perspective-panel,.cx-copy,.status-stack>.status-row,.scoring-details,.context-details,.about-founders article,.error-workbench){
 box-sizing:border-box;min-inline-size:0;padding:var(--card-pad)!important
}
html body main :is(.bp-possibilities,.vs-four-opportunities,.hc-source-list,.related-explore-grid,.about-pattern,.cn-perspective-panel,.cx-copy) :is(h3,h4){margin-block:0 var(--card-gap)}
html body main :is(.bp-possibilities>article,.vs-four-opportunities>article,.hc-source-list>article,.cx-copy,.cn-perspective-panel,.related-explore-grid>a,.about-pattern,.scoring-details,.context-details)>:last-child{margin-block-end:0}
html body main :is(.subpage-story,.release-demo-player,.article-product,.product-dashboard-plate,.error-art)>figcaption{
 box-sizing:border-box;margin:0;padding:10px var(--caption-pad);line-height:1.45;max-inline-size:100%
}
html body main :is(.subpage-story,.release-demo-player,.article-product,.product-dashboard-plate,.context-map,.error-art) :is(img,video){max-inline-size:100%}
html body main :is(.site-faq-items,.article-faq) details[open]{padding-inline:var(--caption-pad)!important;padding-block-end:var(--caption-pad)}
html body main :is(.site-faq-items,.article-faq) details[open]>:last-child{margin-block-end:0}
html body main :is(.fm-info,.fm-info-outcome,.fm-inspector,.cn-perspective-panel,.ab-detail,.console-copy,.score-section,.question-card,.library-card,.context-map,.article-product,.article-table,.if-copy,.if-stages,.if-copy-stage){min-inline-size:0}
html body main .if-stages{grid-template-columns:minmax(0,1fr)}
html body main .if-stages>.if-copy-stage{max-inline-size:100%}
html body main .score-section :is(.calendar-lane,.action-item){box-sizing:border-box;min-inline-size:0}
html body main :is(.score-section,.results-overview,.question-card){padding:var(--card-pad)}
html body main :is(.cx-copy,.cn-perspective-panel,.fm-info-outcome,.console-copy,.ab-detail) p{overflow-wrap:break-word}

html body.story-site main .security-flow .architecture-caption{padding-inline:var(--caption-pad)}

/* Information cards size to the copy, with one inset and a short reading path. */
html body main.site-sections :is(.related-explore-grid>a,.vs-four-opportunities>article){
 padding:clamp(15px,1.45vw,21px)!important;
}
html body main :is(.related-explore-grid,.vs-four-opportunities,.control-grid,.hc-source-list,.bp-possibilities){align-items:start}
html body main :is(.related-explore-grid,.vs-four-opportunities,.control-card) h3[data-film-object]{
 display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;justify-content:start;
 gap:10px;margin:0 0 9px;max-width:none
}
html body main .related-explore-grid h3[data-film-object]{grid-template-columns:auto minmax(0,1fr) auto}
html body main :is(.related-explore-grid,.vs-four-opportunities,.control-card) h3[data-film-object]::before{
 width:32px;height:32px;margin:0
}
html body main.site-sections .vs-partner-returns.vs-four-opportunities article h3{color:var(--feature-ink)}
html body main.site-sections .vs-partner-returns.vs-four-opportunities article p{color:var(--feature-muted)}
html body main :is(.related-explore-grid,.vs-four-opportunities) article p,
html body main .related-explore-grid>a p{max-width:none;margin:0}
html body main .library-card{padding:0!important}
html body main .library-card>a{min-height:0!important;padding:var(--card-pad);height:auto}
html body main .library-card h3{margin-block:12px 8px}
html body main .library-card p{margin-bottom:14px}
html body main .control-card>:last-child{margin-bottom:0}
html body main .cx-panel,html body main .apps-evidence .apps-evidence-copy{min-height:0}
html body main .apps-business.is-enhanced .ab-details{align-self:start;min-height:0;grid-template-rows:auto auto}
html body main .apps-business.is-enhanced .ab-detail[hidden],
html body main .apps-build-workbench.is-enhanced .vs-example-panels>.apps-example[hidden]{display:none!important}
html body main .apps-build-workbench .vs-example-panels>.apps-example{align-self:start}
html body main :is(.systems-evidence-figure,.ep-product-proof,.apps-evidence-grid figure,.apps-example-media,.bp-finance-panel figure)>figcaption{
 box-sizing:border-box;padding:10px 14px;margin:0;gap:4px 12px;flex-wrap:wrap
}
html body main .hc-source-list article .cn-feature-logo{display:block;width:auto;max-width:100px;height:32px;padding:0;background:transparent;margin:0 0 12px}
html[data-theme=dark] body main .cn-feature-logo[src$="netsuite.svg"]{filter:brightness(0) invert(1)}
/* Each sticky chapter moves its own paper surface and shade. */
html body main #connection-story .ip-panel{background:none;border:0;box-shadow:none}
html body main #connection-story .ip-surface{border:1px solid var(--feature-rule);box-shadow:2px 3px 0 var(--feature-shadow)}
html body main #connection-story .ip-content{min-height:0;padding-block:var(--card-pad);row-gap:14px}
html body main.site-sections>#connection-story{padding-bottom:clamp(20px,2.4vw,34px)!important}
html body main.site-sections>#integration-possibilities{padding-block:clamp(24px,2.8vw,40px)!important}
html body main #architecture-films{background:transparent;border-radius:0}

html body main.site-sections .library-grid{align-items:start}
html body main.site-sections .audience-grid{align-items:start}
html body main.site-sections .audience-card>div{padding-block:0}
html body main.site-sections #your-work>.systems-evidence-row,
html body main.site-sections :is(.bp-finance-investigation,.finance-interactives>.work-scene){padding-block:var(--card-pad)}
html body main .related-explore-grid>a>h3[data-film-object]{
 display:grid!important;grid-template-columns:32px minmax(0,1fr) auto;
 align-items:center;justify-content:start!important;gap:10px;min-height:0;padding:0;margin:0 0 8px!important
}
html body main .related-explore-grid>a>h3[data-film-object]::before{margin:0!important}
html body main .related-explore-grid>a>h3[data-film-object]>span{justify-self:end}
html body main.site-sections .library-card{
 --ink:var(--feature-ink);--muted:var(--feature-muted);--magenta:var(--feature-accent);--line:var(--feature-rule)
}
html body main .diagnostic-example .diagnostic-example-copy :is(h2,dt){color:var(--feature-ink)}
html body main .diagnostic-example .diagnostic-example-copy :is(p,dd){color:var(--feature-muted)}
html body main .security-flow{background-color:#262422;color:#faf8f6}
html body main .security-flow .security-instance{background-color:#312f2d;color:#faf8f6}
html body main .security-flow .security-instance p{color:#dfdddb}
@media(max-width:1180px){html[data-theme=dark] #site-nav{background-color:#252321}}

/* The page supplies one continuous paper surface. */
html body :is(main.error-main,main.privacy-page,.site-footer-grid),
html body main :is(.policy-heading,.campaign-placement,.iceberg-story,.about-patterns,.about-people,
 .apps-ownership,.audience-section,.bp-section:not(.ink),.cn-perspectives,.cn-xero-foundation,
 .connector-explorer,.error-exits,.page-section:not(.dark-panel),.foundation-hero,.site-faq,
 .related-explore,.vs-app-library,.apps-evidence,.apps-build-combined,.finance-pressure,
 .integration-catalog-hero,.hs-standalone,.hp-agreement,.ep-product,.release-demo-feature,
 .human-connection-details,.about-origin,.systems-evidence,.finance-interactives>.work-scene,
 .fieldnotes-library,.fieldnotes-tool,.partner-reading-path,.partner-story-scene){
 background-color:transparent!important;background-image:none!important;box-shadow:none!important
}
/* Text, illustration and caption share the page surface, including inside tabs. */
html body main :is(.related-explore-grid>a,.vs-four-opportunities>article,.bp-possibilities>article,
 .hc-source-list>article,.about-founders article,.operator-context-grid>article,.apps-evidence-grid>article,
 .finance-pressure-grid>article,.content-card,.stage-card,.control-card,.audience-card,.library-card,
 .content-grid,.stage-grid,.control-grid,.finance-pressure-grid,.about-pattern,.record-card,.tool-ticket,
 .question-card,.score-section,.results-overview,.scoring-details,.context-details,.systems-evidence-row,
 .cn-perspective-panel,.cn-perspective-tabs,.cx-copy,.bp-build-copy,.console-copy,.console-footer,.apps-example-copy,
 .fm-inspector,.bp-build-explorer,.apps-build-workbench,.platform-console,.deck-logo-grid,
 .bp-finance-investigation,.ep-case-evidence,.bp-resource-path,.fieldnotes-feature .feature-film,
 .privacy-page article,.product-dashboard-plate,.error-workbench,.error-copy,.error-art,.exit-grid,.exit-grid>a,
 .context-map,.subpage-story,.subpage-story-panels,.hero-story-navigation,.sx-hero-art,
 .related-reading a,.release-demo-takeaways li,.migration-map,.migration-system){
 background:transparent!important;box-shadow:none!important;border-color:transparent!important
}
html body main .related-explore-grid>a:is(:hover,:focus-visible) h3,
html body main .library-card>a:is(:hover,:focus-visible) h3{text-decoration:underline;text-underline-offset:.17em}
html body main :is(.ip-intro,.ip-context,.ip-processes,.ip-apps) .ip-surface{
 background:transparent!important;box-shadow:none!important;border-color:transparent!important
}
html body main :is(.ip-intro,.ip-context,.ip-processes,.ip-apps) .ip-surface::before{display:none}
html body main .vs-partner-business{--feature-ink:#faf8f6;--feature-muted:#dad8d6}
html body main .dark-panel .diagnostic-example{background:transparent!important;box-shadow:none!important;border-color:transparent!important;--feature-ink:#faf8f6;--feature-muted:#dad8d6}
html body main .apps-business :is(.ab-explorer,.ab-details,.ab-detail){background:transparent!important;box-shadow:none!important;border-color:transparent!important}
html body.site-design main .apps-business .ab-details :is(h3,dt){color:#faf8f6}
html body.site-design main .apps-business .ab-details :is(p,dd){color:#dad8d6}
html body.site-design main .apps-business .ab-details .ab-detail-type{color:#ffadd4}
html body.site-design main .apps-business .ab-details .ab-detail .ab-insight p{color:#dad8d6}
html[data-theme=dark] body main .error-art figcaption{background:#282624;color:#f2f0ee}
html[data-theme=dark] body main .error-art figcaption b{color:#ffadd4}

/* Frameless content uses the section or column edge as its reading edge. */
html body #main :is(.related-explore-grid>a,.vs-four-opportunities>article,.bp-possibilities>article,
 .hc-source-list>article,.about-founders article,.operator-context-grid>article,.apps-evidence-grid>article,
 .content-card,.stage-card,.control-card,.audience-card,.library-card,.library-card>a,
 .content-grid,.stage-grid,.control-grid,.finance-pressure-grid,.about-pattern,.record-card,.tool-ticket,
 .question-card,.score-section,.results-overview,.scoring-details,.context-details,.systems-evidence-row,
 .cn-perspective-panel,.cx-copy,.bp-build-copy,.console-copy,.apps-example-copy,.apps-example,
 .fm-inspector,.bp-build-explorer,.bp-build-panel,.apps-build-workbench,.platform-console,
 .ep-case-evidence,.ab-details,.ab-detail,.console-track,.apps-evidence-copy,
 .related-reading a,.release-demo-takeaways li){
 padding-inline:0!important;border-inline-width:0!important
}
html body #main :is(.related-explore-grid>a,.vs-four-opportunities>article,.bp-possibilities>article,
 .hc-source-list>article,.operator-context-grid>article,.about-pattern,
 .content-card,.stage-card,.control-card,.audience-card,.library-card>a,.bp-build-copy,.console-copy,
 .apps-example-copy,.cn-perspective-panel,.cx-copy){padding-block:0!important}
html body #main :is(.site-faq-items,.article-faq) details[open]{
 padding-inline:0!important;box-shadow:none
}
html body #main :is(.site-faq-items,.article-faq) details[open]>p{margin-inline:0}
html body #main .foundation-map .fm-layer[aria-selected=true]{
 outline:0;background:none!important;box-shadow:none
}
html body #main .foundation-map .fm-layer:focus-visible .fm-layer-label{outline:2px solid var(--fm-accent)}
html body #main .foundation-map .fm-inspector{scroll-margin-block-start:90px}

/* One paper surface groups the catalog, each connector brief, or the response to a tab. */
html body #main #integration-catalog .deck-logo-grid,
html body #main #source-explorer .hc-source-list>article,
html body.connector-site #main :is(.cn-perspective-panel,.cx-panel),
html body #main :is(.bp-build-panel,.apps-example)[role=tabpanel],
html body.scorecard-site #main .question-card{
 background:var(--film-paper)!important;border:1px solid var(--feature-rule)!important;
 border-radius:9px;box-shadow:none!important
}
html body #main #source-explorer .hc-source-list{align-items:stretch}
html body #main #source-explorer .hc-source-list>article,
html body.connector-site #main :is(.cn-perspective-panel,.cx-panel),
html body #main :is(.bp-build-panel,.apps-example)[role=tabpanel],
html body.scorecard-site #main .question-card{padding:var(--card-pad)!important}
html body #main #integration-catalog .ep-integration-invite{padding-inline:var(--card-pad)}
html[data-theme=dark] body #main #integration-catalog .deck-logo-art{background:#ede4d7}
html body #main #connection-story .ip-panel>.ip-surface{
 background:var(--ip-paper)!important;
 border:1px solid var(--feature-rule)!important
}

:root {
  --film-paper: rgba(255,248,237,.77);
  --film-grid: rgba(99,77,55,.07);
  --film-rule: rgba(111,86,65,.25);
}
html[data-theme=dark] {
  --film-paper: rgba(31,27,35,.76);
  --film-grid: rgba(238,211,228,.075);
  --film-rule: rgba(219,192,211,.25);
}
html body .overview-film,html body .diagram.redesigned .canvas {background:var(--film-paper)}
html body :is(.overview-scene,.redesigned .canvas>.scroll) {
  background-image:linear-gradient(var(--film-grid) 1px,transparent 1px),linear-gradient(90deg,var(--film-grid) 1px,transparent 1px);
  background-size:28px 28px
}
.redesigned .scroll svg>rect[fill^="url(#hf-paper-"],
.redesigned .scroll svg>rect[fill^="url(#hf-grid-"] {fill:none}
html body .redesigned .story-strip {background:transparent;gap:0}
html body .redesigned .story-strip li+li {border-inline-start:1px solid var(--film-rule)}
html body .redesigned .story-strip li:not(.is-current) .story-step {background:transparent}
html body #main .foundation-map .fm-governance {background:var(--film-paper);box-shadow:none}
html body #main .foundation-map .fm-governance:is(:hover,[aria-selected=true]) {border-color:var(--fm-accent);background:color-mix(in srgb,var(--film-paper) 92%,var(--fm-accent))}
html body #main .foundation-map .fm-source-options button {background:rgba(255,248,237,.8);border-color:var(--film-rule)}
html body #main .foundation-map .fm-source-options button[aria-pressed=true] {border-color:var(--fm-accent)}
html body #main :is(.cn-logo-netsuite,.cn-logo-salesforce) {background:transparent}
html[data-theme=dark] body #main .cn-logo-netsuite {filter:brightness(0) invert(1)}

/* Only the paper frame draws the silhouette; the embedding viewport stays square. */
html body .diagram.redesigned .canvas{border-radius:6px;box-shadow:none}
html body .diagram.redesigned .canvas>.story-strip:first-child{
  border-radius:5px 5px 0 0;overflow:clip
}

/* The full platform layer explorer shares a single paper surface. */
html body #main #platform-architecture{background:#eee5dd;border:1px solid var(--fm-line);border-radius:12px;padding:clamp(16px,2.2vw,32px)}
html[data-theme=dark] body #main #platform-architecture{background:var(--fm-paper)}
