/* V1.37 estate closeout — explicit three-colour component contract. */
:root{--sst-black:#050505;--sst-cream:#E7E3DA;--sst-green:#707762}
:is(.section.white,.section.stone,.ecosystem-card-v30n,.benefit-card-v3b1,.path-card-v3b1,.related-card,.cluster-related a,.calc-explain-card,.calc-guide-card,.programme-compare-v30c,.grub-search,.grub-workbench,.grub-week-builder,.grub-recipe,.shopping-item,.grub-empty){background:var(--sst-cream)!important;color:var(--sst-black)!important}
:is(.section.white,.section.stone,.ecosystem-card-v30n,.benefit-card-v3b1,.path-card-v3b1,.related-card,.cluster-related a,.calc-explain-card,.calc-guide-card,.programme-compare-v30c,.grub-search,.grub-workbench,.grub-week-builder,.grub-recipe,.shopping-item,.grub-empty) :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,small,label,a){color:var(--sst-black)!important;-webkit-text-fill-color:currentColor!important;opacity:1!important}
:is(.result,.cluster-related a,.mmh-action-primary,.gtt-primary,.mh-primary,.shift-guided-actions__primary,.template-mens-mental-health .btn-primary) :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,small,label,a){color:var(--sst-black)!important;-webkit-text-fill-color:var(--sst-black)!important;opacity:1!important}
:is(.result .official,.result .result-caveat,.result .screening-reference,.result .wave2-inline-limit,.button.primary,.btn-primary,.commercial-cta-v3b1,.gtt-urgent,.grub-spotlight article){background:var(--sst-black)!important;color:var(--sst-cream)!important}
:is(.result .official,.result .result-caveat,.result .screening-reference,.result .wave2-inline-limit,.button.primary,.btn-primary,.commercial-cta-v3b1,.gtt-urgent,.grub-spotlight article) :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,small,label,a,button){color:var(--sst-cream)!important;-webkit-text-fill-color:var(--sst-cream)!important;opacity:1!important}
.whats-next .nextlinks a{display:inline-flex;align-items:center;min-height:46px;padding:11px 16px;border:1px solid var(--sst-black);background:var(--sst-black)!important;color:var(--sst-cream)!important;-webkit-text-fill-color:var(--sst-cream)!important;text-decoration:none;font-weight:900}
.template-shift-programme :is(.ecosystem-card-v30n,.benefit-card-v3b1,.journey-step-v3b1,.path-card-v3b1){border-color:var(--sst-green)!important;opacity:1!important}
.grub-v8{background:var(--sst-cream)!important;color:var(--sst-black)!important}.grub-v8 :is(input,select,textarea){background:#fff!important;color:var(--sst-black)!important}.grub-v8 :is(button,.v8-button){color:var(--sst-cream)!important;-webkit-text-fill-color:var(--sst-cream)!important}.grub-v136-sitebar{display:flex!important}
@media(max-width:700px){.cookie-banner-v3a{left:0!important;right:0!important;bottom:0!important;max-height:42vh!important;overflow:auto!important;border-radius:12px 12px 0 0!important;padding:12px!important}.cookie-banner-v3a p{font-size:13px!important;line-height:1.3!important}.cookie-actions-v3a{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:9px!important}.cookie-actions-v3a button{min-height:44px!important;padding:8px!important}body:has(.cookie-banner-v3a) :is(.sticky-cta,.mobile-sticky-cta,[data-sticky-cta]){bottom:42vh!important}}
/* Act 2B canonical chrome contract: page CSS must not weaken shared chrome. */
.site-header{height:100px!important;min-height:100px!important;box-sizing:border-box!important}
.site-header .header-inner{height:100px!important;min-height:100px!important;padding-top:10px!important;padding-bottom:10px!important;box-sizing:border-box!important}
.site-header .site-logo,.site-header .site-logo img{width:clamp(150px,18vw,230px)!important;height:auto!important;max-height:62px!important;object-fit:contain!important}
.site-drawer nav{display:grid!important;gap:0!important}
.site-drawer nav a{font-weight:800!important}
.site-footer h2,.site-footer a{font-weight:800!important}
@media(max-width:760px){.site-header{height:76px!important;min-height:76px!important}.site-header .header-inner{height:76px!important;min-height:76px!important}.site-header .site-logo,.site-header .site-logo img{width:165px!important;max-height:54px!important}}
.medicine-ticker-v138{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:16px!important;align-items:center!important;overflow:hidden!important;padding:10px max(18px,4vw)!important;background:#707762!important;color:#050505!important;border-block:1px solid #050505!important;font:900 14px/1.35 Arial,sans-serif!important}
.medicine-ticker-v138>strong{position:relative;z-index:2;white-space:nowrap;letter-spacing:.04em;background:#707762;color:#050505!important;font:900 14px/1.35 Arial,sans-serif!important}
.shift-ai-wire-window{min-width:0;overflow:hidden}.medicine-ticker-v138 [data-shift-ai-wire-track]{display:flex;width:max-content;white-space:nowrap;animation:sstMedicineWire 32s linear infinite}.medicine-ticker-v138 a{color:#050505!important;text-decoration:none!important;font-weight:900!important}.medicine-ticker-v138 a:hover,.medicine-ticker-v138 a:focus{text-decoration:underline!important}.medicine-ticker-v138:focus-within [data-shift-ai-wire-track]{animation-play-state:paused}
@keyframes sstMedicineWire{from{transform:translateX(100%)}to{transform:translateX(-100%)}}
.footer-legal-links{display:flex!important;flex-wrap:wrap!important;gap:10px 22px!important;align-items:center!important}.footer-legal-links a{display:inline-block!important;margin:0!important}
body.about-story-page main#main-content{padding-top:0!important;margin-top:0!important}body.about-story-page main>.content{padding-top:36px!important}body.about-story-page .sst-reading-lead-v31{display:block!important}
@media(max-width:560px) and (orientation:portrait){.medicine-ticker-v138{grid-template-columns:1fr!important;gap:4px!important;padding-block:7px!important}.medicine-ticker-v138>strong{font-size:12px!important}.medicine-ticker-v138 [data-shift-ai-wire-track]{font-size:12px!important}.footer-legal-links{gap:8px 14px!important}}

/* Stabilisation: contain the homepage artwork and footer at the 360px acceptance width. */
@media(max-width:560px){
  .template-home .struggle-artwork-section,
  .template-home .struggle-artwork-centre{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .template-home .struggle-artwork-centre>img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important}
  .footer-legal-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;max-width:100%!important;gap:8px 14px!important;overflow:hidden!important}
  .footer-legal-links a{min-width:0!important;overflow-wrap:anywhere!important}
}
@media(prefers-reduced-motion:reduce){.medicine-ticker-v138 [data-shift-ai-wire-track]{width:auto;white-space:normal;animation:none}}

/* REC-005: protect only the existing ticker from the global section colour rule. */
body.v6 section.medicine-ticker-v138{background-color:#707762!important;color:#050505!important}

/* REC-012/013: continuous approved headlines and the existing mobile footer. */
body.v6 .medicine-ticker-v138.sst-wire-ready [data-shift-ai-wire-track]{animation:sstPublishedWire 32s linear infinite!important;gap:0!important}
.sst-wire-copy{display:flex;align-items:center;flex:0 0 auto;gap:1.1em;padding-right:1.1em;box-sizing:border-box}
@keyframes sstPublishedWire{from{transform:translateX(0)}to{transform:translateX(-50%)}}
body.v6 .medicine-ticker-v138.sst-wire-ready:hover [data-shift-ai-wire-track]{animation-play-state:paused!important}
body.v6 .medicine-ticker-v138.sst-wire-ready:focus-within [data-shift-ai-wire-track]{animation:none!important;transform:none!important}
@media(prefers-reduced-motion:reduce){body.v6 .medicine-ticker-v138.sst-wire-ready [data-shift-ai-wire-track]{animation:none!important;transform:none!important;width:auto!important}.sst-wire-copy{min-width:0!important;flex-wrap:wrap;white-space:normal}.sst-wire-copy[aria-hidden="true"]{display:none}}
@media(max-width:767px){body .site-footer{display:block!important}body .site-footer .footer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){body .site-footer .footer-grid{grid-template-columns:minmax(0,1fr)!important}}
