/* Reference palette for the 16 interior pages only.
   The scheduling homepage and demo do not load this stylesheet.
   Existing typography, actions, business states and layout are retained. */
@media screen and (forced-colors:none){
 html body.textured-page{
  --brand-soft-gradient:linear-gradient(110deg,#edf3ff,#f3edff);
  --brand-card-gradient:linear-gradient(145deg,#ffffffed,#f5f8ffed);
  --interior-callout-gradient:linear-gradient(110deg,#e4ebff,#eae5ff 70%,#e2f1ff);
  background:radial-gradient(ellipse 800px 700px at 100% 220px,#e2d9ff88,transparent),radial-gradient(ellipse 700px 700px at 0 400px,#bfe9ff77,transparent),#f6faff;
 }
 /* Color flows behind the header and hero; long reading keeps a quiet base. */
 html body.textured-page::before{filter:saturate(.65);opacity:.10}
 html body.textured-page::after{background:radial-gradient(ellipse at 0 38%,#cfe8ff38,transparent 25%),radial-gradient(ellipse at 100% 70%,#e5dcff38,transparent 24%);opacity:.45}
 html body.textured-page .site-footer{background:transparent!important}

 /* Task cards collect color near the top, fading to a translucent white face. */
 html body.textured-page :is(.card:not(.featured),.role-card,.module,.research-group,.mes-scene,.mes-feature-grid>article,.mes-version-grid>article,.knowledge-card,.process-strip>div,.timeline-item,.workflow-example>div){
  --interior-card-tint:#e2edff;
  --module-soft:var(--interior-card-tint)!important;
  --scene-tint:var(--interior-card-tint)!important;
  --feature-soft:var(--interior-card-tint)!important;
  --version-tint:var(--interior-card-tint)!important;
  background:linear-gradient(155deg,var(--interior-card-tint),#ffffffed 73%)!important;
  border-color:#fff;
 }
 html body.textured-page :is(.card:not(.featured),.role-card,.module,.research-group,.mes-scene,.mes-feature-grid>article,.mes-version-grid>article,.process-strip>div,.timeline-item,.workflow-example>div):nth-child(3n+2){--interior-card-tint:#ddf6f0}
 html body.textured-page :is(.card:not(.featured),.role-card,.module,.research-group,.mes-scene,.mes-feature-grid>article,.mes-version-grid>article,.process-strip>div,.timeline-item,.workflow-example>div):nth-child(3n){--interior-card-tint:#e8dfff}
 /* These retained ID-based rules otherwise flatten the first pastel card. */
 html body.textured-page :is(#factory-method .process-strip>div:nth-child(3n+1),#factory-directions .card:first-child,#roles .role-card:first-child,#training-outcomes .card:first-child,#team .card:first-child,#curriculum .module:nth-child(3n+1),.knowledge-card[data-category="qa"],#workflow .workflow-example>div:last-child,#career-story .timeline-item:nth-child(3n+1),#mes-reading .knowledge-card:first-child){background:linear-gradient(155deg,var(--interior-card-tint),#ffffffed 73%)!important}
 /* Knowledge category colors remain stable when filtering or reordering. */
 html body.textured-page .knowledge-card[data-category="case"]{--interior-card-tint:#ddf6f0}
 html body.textured-page .knowledge-card[data-category="tools"]{--interior-card-tint:#eee5ff}
 html body.textured-page .knowledge-card[data-category="research"]{--interior-card-tint:#e8dfff}
 html body.textured-page .knowledge-card[data-category="qa"]{--interior-card-tint:#e2edff}

 /* Forms, evidence and large reading panels use the quieter white material. */
 html body.textured-page :is(.form-card,.article-side,.knowledge-search,.responsibility-map,.mes-capability-board,.mes-hardware,.entity-facts,.contact-steps){background:var(--brand-card-gradient)!important}
 html body.textured-page .mes-flow-list>li:first-child{--flow-soft:#e2edff}
 html body.textured-page .mes-flow-list .mes-flow-visual{background:linear-gradient(155deg,var(--flow-soft),#ffffffed 73%)!important}
 html body.textured-page .studio-training-stage::before{background:linear-gradient(135deg,#cae6ff,#d4cff6)!important}
 /* Keep small indices readable when a legacy surface covers their text clip. */
 html body.textured-page :is(.studio-index,.module-num){-webkit-text-fill-color:currentColor!important}

 /* The closing invitation matches the reference's pale blue-violet panel. */
 html body.textured-page :is(.cta-band,.compact-callout,.first-step-bottom){background:var(--interior-callout-gradient)!important;color:#203b60!important;border-color:#fff}
 html body.textured-page :is(.cta-band,.compact-callout,.first-step-bottom) :is(h2,h3){color:#203b60!important}
 html body.textured-page :is(.cta-band,.compact-callout,.first-step-bottom) p{color:#60799a!important}
 html body.textured-page :is(.cta-band,.compact-callout,.first-step-bottom) :is(.eyebrow,.text-link){background-image:var(--brand-text-gradient)!important}
}
