/* Shared public-page theme, loaded by React layout and every legacy HTML document.
   Existing evidence badges, warnings, clinical content and private-workspace tokens remain distinct. */
body.nc-editorial-site{--paper:#faf7f2;--white:#fffdf9;--ink:#302c35;--muted:#655e69;--purple:#614570;--purple-dark:#493352;--line:#e5ddd6;--lilac:#f0e9f3;--sage:#eaf0e6;background:var(--paper);color:var(--ink);font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased}
body.nc-editorial-site .wrap{width:min(1280px,calc(100% - 96px));margin-inline:auto}
body.nc-editorial-site:not(:has(.care-refined-shell)) :is(h1,h2,h3){font-family:var(--sans,Arial,Helvetica,sans-serif);color:var(--ink);text-wrap:balance;overflow-wrap:break-word}
body.nc-editorial-site:not(:has(.care-refined-shell)) h1{font-size:clamp(34px,4.5vw,62px);font-weight:650;line-height:1.15;letter-spacing:-.045em;max-width:1000px}
body.nc-editorial-site:not(:has(.care-refined-shell)) h2{font-size:clamp(27px,3vw,40px);font-weight:650;line-height:1.25;letter-spacing:-.035em}
body.nc-editorial-site:not(:has(.care-refined-shell)) h3{font-size:clamp(21px,2.1vw,26px);font-weight:600;line-height:1.35;letter-spacing:-.02em}
body.nc-editorial-site:not(:has(.care-refined-shell)) :is(h1,h2) em{font:inherit;font-weight:500;color:var(--purple)}
body.nc-editorial-site:not(:has(.care-refined-shell)) .page-hero{padding:clamp(36px,5vw,64px) 0;background:#f5efe8;border-bottom:1px solid var(--line)}
body.nc-editorial-site:not(:has(.care-refined-shell)) .page-hero p{font-size:18px;line-height:1.7;max-width:70ch;margin-top:18px;color:var(--muted)}
body.nc-editorial-site:not(:has(.care-refined-shell)) .section{padding:clamp(36px,5vw,68px) 0}
body.nc-editorial-site:not(:has(.care-refined-shell)) :is(.panel,.tx-card,.resource-card,.tool-card,.post-card){background:var(--white);border:1px solid var(--line);border-radius:18px;box-shadow:none;padding:24px;min-width:0}
body.nc-editorial-site:not(:has(.care-refined-shell)) :is(.tx-card,.resource-card,.tool-card,.post-card) p{font-size:16px;line-height:1.7;color:var(--muted)}
body.nc-editorial-site:not(:has(.care-refined-shell)) :is(.button,.filter-chip){font-family:var(--sans,Arial,sans-serif);font-size:14px;font-weight:600;min-height:44px;line-height:1.45;border-radius:12px}
body.nc-editorial-site:not(:has(.care-refined-shell)) .button.primary{background:var(--purple);color:#fff;border-color:var(--purple)}
body.nc-editorial-site:not(:has(.care-refined-shell)) .button.outline{background:var(--white);border-color:var(--line);color:var(--ink)}
body.nc-editorial-site:not(:has(.care-refined-shell)) .text-link{font-size:15px;color:var(--purple-dark);line-height:1.5}
body.nc-editorial-site:not(:has(.care-refined-shell)) :is(.article-body,.prose,.nc-reading-article,.blog-body){max-width:72ch;margin-inline:auto;font-size:17px;line-height:1.85;overflow-wrap:anywhere}
body.nc-editorial-site:not(:has(.care-refined-shell)) :is(.article-body,.prose,.nc-reading-article,.blog-body) :is(p,li){font-size:inherit;line-height:inherit}
body.nc-editorial-site:not(:has(.care-refined-shell)) :is(.article-body,.prose,.blog-body) a:not(.button){text-decoration:underline;text-underline-offset:3px}
body.nc-editorial-site:not(:has(.care-refined-shell)) :is(.article-body,.prose,.nc-reading-article,.blog-body) h2{margin-top:1.6em;margin-bottom:.6em}
body.nc-editorial-site:not(:has(.care-refined-shell)) :is(.reviewed,.source-list,.form-msg){font-size:14px;line-height:1.7}
body.nc-editorial-site :is(input,select,textarea){max-width:100%;font:inherit}
body.nc-editorial-site:not(:has(.care-refined-shell)) .field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%;min-height:46px;border:1px solid #cfc4d0;border-radius:10px;background:#fffdf9;color:#302c35;padding:11px 13px;font-size:16px;line-height:1.5}
body.nc-editorial-site:not(:has(.care-refined-shell)) .field label{font-size:15px;font-weight:600;line-height:1.6}
body.nc-editorial-site :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #286873;outline-offset:3px}
body.nc-editorial-site :is(.grid-2,.grid-3)>*{min-width:0}
body.nc-editorial-site :is(img,video){max-width:100%;height:auto}
body.nc-editorial-site:not(:has(.care-refined-shell)) .site-footer{border-top:1px solid var(--line);background:#f4efe8;padding-block:48px}
body.nc-editorial-site :is(.callout.safety,.crisis-bar,.ev){/* Evidence and safety colors intentionally retain their existing definitions. */}
@media(max-width:1100px){body.nc-editorial-site .wrap{width:calc(100% - 64px)}}
@media(max-width:760px){body.nc-editorial-site{font-size:16px}body.nc-editorial-site .wrap{width:calc(100% - 40px)}body.nc-editorial-site:not(:has(.care-refined-shell)) :is(.grid-3,.grid-2){grid-template-columns:1fr}body.nc-editorial-site:not(:has(.care-refined-shell)) .page-hero p{font-size:16px}body.nc-editorial-site:not(:has(.care-refined-shell)) :is(.panel,.tx-card,.resource-card,.tool-card,.post-card){padding:20px}}
@media(max-width:390px){body.nc-editorial-site .wrap{width:calc(100% - 32px)}}
@media(prefers-reduced-motion:reduce){body.nc-editorial-site{scroll-behavior:auto}body.nc-editorial-site *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body.nc-editorial-site{background:#fff;color:#111}body.nc-editorial-site .wrap{width:100%}body.nc-editorial-site :is(.site-header,.site-footer,.no-print){display:none!important}}

/* Keep footer text legible on the editorial cream surface, including private pages.
   The earlier dark-footer theme uses !important pale link colors. */
body.nc-editorial-site .site-footer{background:#f4efe8;color:#302c35;border-top:1px solid #d8cfc5}
body.nc-editorial-site .site-footer .brand-name{color:#302c35}
body.nc-editorial-site .site-footer .footer-brand>p{color:#554b5c;font-size:22px;line-height:1.5}
body.nc-editorial-site .site-footer .footer-top h3{color:#302c35;font-size:18px;font-weight:700;line-height:1.4;margin-bottom:16px}
body.nc-editorial-site .site-footer a{color:#514057!important}
body.nc-editorial-site .site-footer .footer-top>div:not(.footer-brand)>a{font-size:16px;line-height:1.65;margin:8px 0;padding:3px 0}
body.nc-editorial-site .site-footer a:hover{color:#493352!important;text-decoration:underline;text-underline-offset:4px}
body.nc-editorial-site .site-footer a:focus-visible{outline:3px solid #614570;outline-offset:4px;border-radius:3px}
body.nc-editorial-site .site-footer .footer-note{color:#554b5c!important;border-color:#cfc3d2!important;font-size:14px;line-height:1.85;max-width:none}
body.nc-editorial-site .site-footer .footer-bottom{color:#554b5c!important;border-color:#cfc3d2!important;font-size:13px;line-height:1.7;flex-wrap:wrap}
body.nc-editorial-site .site-footer .newsletter-signup label span{color:#554b5c;font-size:14px;line-height:1.6}
body.nc-editorial-site .site-footer .newsletter-signup input::placeholder{color:#655e69;opacity:1}
@media(max-width:760px){body.nc-editorial-site .site-footer .footer-top{gap:28px}body.nc-editorial-site .site-footer .footer-brand>p{font-size:20px}body.nc-editorial-site .site-footer .footer-top>div:not(.footer-brand)>a{padding-block:6px}}
