/* HeartWise website: the Scandinavian layer (Stage A). Loaded LAST on every generated page.
   Calm, muted, linen ground, hairlines instead of boxes, small radii, no shadows (except covers and overlays),
   Crimson Pro for reading, Montserrat for small labels, ONE muted accent per section (body[data-sec]).
   Rollback: LOOK = "classic" in _build/lib.py, rebuild (or restore _before_scandi_31Oct2026/). */

/* ---------- 0. fonts: only files that exist in assets/fonts (no downloads). Light 300 uses Regular, Medium 500 uses SemiBold ---------- */
@font-face{font-family:"Crimson Pro";src:url("../fonts/CrimsonPro-Regular.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Crimson Pro";src:url("../fonts/CrimsonPro-Italic.woff2") format("woff2");font-weight:300;font-style:italic;font-display:swap}
@font-face{font-family:"Montserrat";src:url("../fonts/Montserrat-SemiBold.woff2") format("woff2");font-weight:500 600;font-style:normal;font-display:swap}

/* ---------- 1. tokens ---------- */
:root{
  --linen:#F5F0E7; --panel:#FBF8F2; --sand:#EFE9DD; --edge:#8F877C; --focus:#4E687C;
  --paper:#F5F0E7; --cream:#EFE9DD; --white:#FBF8F2; --line:#DDD5C7;
  --ink:#2E2A27; --ink-2:#6B645C; --ink-3:#6B645C; --coral-btn:#2E2A27;
  --coral:#B8756A; --coral-d:#84524A; --coral-t:#F0E3DD;
  --sun:#B48A38; --sun-d:#795F2F; --sun-t:#F0E6D0;
  --leaf:#7A9A82; --leaf-d:#4A6957; --leaf-t:#E4E8DC;
  --sky:#6F8CA3; --sky-d:#4E687C; --sky-t:#E3E8EB;
  --vio:#8B6A8E; --vio-d:#6F5471; --vio-t:#E8DEDC;
  --rust:#B5683F; --rust-ink:#8F5230; --rust-tint:#EEDFD2;
  --teal:#5E8C8A; --teal-ink:#3F6866; --teal-tint:#DFE5DF;
  --night:#2E2A27;
  --r-s:4px; --r-m:8px; --r-l:10px; --r-xl:12px;
  --sh-1:none; --sh-2:none;
  --sh-3:0 1px 2px rgba(46,42,39,.06),0 10px 28px rgba(46,42,39,.08);
  --sh-book:0 1px 1px rgba(46,42,39,.10),0 6px 12px -4px rgba(46,42,39,.16),0 18px 30px -18px rgba(46,42,39,.22);
  --sh-book-lg:0 2px 2px rgba(46,42,39,.10),0 14px 24px -8px rgba(46,42,39,.18),0 40px 60px -30px rgba(46,42,39,.25);
  --f-serif:"Crimson Pro","Crimson Text",Georgia,"Times New Roman",serif;
  --f-head:var(--f-serif); --f-body:var(--f-serif);
  --f-sans:"Montserrat",system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
  --ease:cubic-bezier(.25,.1,.25,1);
  --acc:var(--leaf); --acc-ink:var(--leaf-d); --acc-tint:var(--leaf-t);
}
body[data-sec="families"]{--acc:var(--coral);--acc-ink:var(--coral-d);--acc-tint:var(--coral-t)}
body[data-sec="teachers"],body[data-sec="default"]{--acc:var(--leaf);--acc-ink:var(--leaf-d);--acc-tint:var(--leaf-t)}
body[data-sec="schools"]{--acc:var(--sky);--acc-ink:var(--sky-d);--acc-tint:var(--sky-t)}
body[data-sec="work"]{--acc:var(--teal);--acc-ink:var(--teal-ink);--acc-tint:var(--teal-tint)}
body[data-sec="books"]{--acc:var(--sun);--acc-ink:var(--sun-d);--acc-tint:var(--sun-t)}
body[data-sec="try"]{--acc:var(--rust);--acc-ink:var(--rust-ink);--acc-tint:var(--rust-tint)}
body[data-sec="training"]{--acc:var(--vio);--acc-ink:var(--vio-d);--acc-tint:var(--vio-t)}

/* ---------- 2. ground and type ---------- */
html{scroll-behavior:auto}
body{background:var(--linen);color:var(--ink);font:400 18px/1.65 var(--f-serif);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body::before{display:none}
h1,h2,h3,h4{font-family:var(--f-serif);color:var(--ink);letter-spacing:0}
h1{font-size:clamp(2.4rem,5vw,3.6rem);line-height:1.1;font-weight:300}
h2{font-size:clamp(1.75rem,3vw,2.5rem);line-height:1.15;font-weight:400}
h3,.h3like{font-size:1.3rem;line-height:1.25;font-weight:600}
.ph-hero h1,.bp h1{font-size:clamp(2.1rem,4.2vw,3.1rem);line-height:1.12;font-weight:300}
.lead{font-size:clamp(1.15rem,1.6vw,1.35rem);line-height:1.55;font-weight:400;color:var(--ink-2);max-width:60ch}
em.s,.serif{font-family:var(--f-serif);font-style:italic;font-weight:400;color:var(--acc-ink);letter-spacing:0}
h1 .serif{font-weight:300}
b,strong{font-weight:600}
a{text-underline-offset:3px;text-decoration-thickness:1px}
.lead a,p a:not(.btn):not(.bk):not(.card){color:var(--acc-ink);text-decoration-thickness:1px}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:var(--r-s)}
::selection{background:var(--acc-tint);color:var(--ink)}
a,button,summary,label[for]{-webkit-tap-highlight-color:rgba(46,42,39,.12)}
.skip{border-radius:var(--r-s)}
section{padding:96px 0}
.sec-head{margin-bottom:48px}
@media (max-width:640px){section{padding:64px 0}.sec-head{margin-bottom:32px}}

/* labels: Montserrat 12px uppercase */
.eyebrow,.tag,.fact small,.bk .kind,.rs-kind,.fh,.btn,.chip-count,.flip-hint,.quote cite,.field label,.pillar .tag,.prog .tagp,.mq-pause{font-family:var(--f-sans);font-weight:500;font-size:12px;line-height:1.3;letter-spacing:.12em;text-transform:uppercase}
.eyebrow,.eyebrow.leaf,.eyebrow.sky,.eyebrow.vio,.eyebrow.sun{display:inline-flex;align-items:center;gap:12px;background:none;padding:0;border-radius:0;color:var(--acc-ink);margin-bottom:16px}
.eyebrow::before{content:"";flex:none;width:22px;height:1px;background:currentColor}
.sec-head .eyebrow{justify-content:center}

/* ---------- 3. header, menus ---------- */
.hdr{background:rgba(245,240,231,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hdr.stuck{border-color:var(--line);box-shadow:none}
.brand{font:600 1.4rem/1 var(--f-serif);color:var(--ink)}
.brand b{color:var(--ink);font-weight:400;font-style:italic}
.nav a,.dd-btn{font:400 1.06rem/1 var(--f-serif);color:var(--ink-2);border-radius:0;padding:12px 11px;background:none}
.nav a:hover,.dd-btn:hover{background:none;color:var(--ink)}
.nav a[aria-current="page"],.dd-btn.on{background:none;color:var(--ink);box-shadow:inset 0 -2px 0 var(--acc)}
.dd-btn[aria-expanded="true"]{background:none;color:var(--ink)}
.dd-btn::after{border-width:0 1px 1px 0}
.nav .cta{font:500 12px/1 var(--f-sans);letter-spacing:.12em;text-transform:uppercase;background:var(--ink);color:var(--linen);border-radius:var(--r-s);padding:14px 18px;margin-left:8px;box-shadow:none}
.nav .cta:hover{background:#4A443F;color:var(--linen)}
.nav .cta[aria-current="page"]{box-shadow:none;background:var(--ink);color:var(--linen)}
.dd-menu{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-m);box-shadow:var(--sh-3);padding:6px}
.dd-menu a{font:400 1.06rem/1.2 var(--f-serif);padding:12px 14px;border-radius:var(--r-s);color:var(--ink-2)}
.dd-menu a:hover,.dd-menu a[aria-current="page"]{background:var(--sand);color:var(--ink);box-shadow:none}
.burger{border:1px solid var(--edge);border-radius:var(--r-s);background:var(--panel)}
@media (min-width:1081px) and (max-width:1240px){.nav a,.dd-btn{padding:12px 8px;font-size:1rem}}
@media (max-width:1080px){
  .nav{background:var(--linen);border-bottom:1px solid var(--line);box-shadow:var(--sh-3);transition:transform .3s var(--ease),opacity .3s var(--ease),visibility .3s;transform:translateY(-8px)}
  .nav a,.dd-btn{padding:15px 12px;font-size:1.15rem;box-shadow:none}
  .nav a[aria-current="page"],.dd-btn.on{box-shadow:inset 3px 0 0 var(--acc)}
  .nav .cta{margin:10px 0 0;text-align:center;box-shadow:none}
  .dd-menu{background:none;box-shadow:none}
}

/* ---------- 4. buttons, chips, fields, tags ---------- */
.btn{min-height:48px;padding:14px 24px;border-radius:var(--r-s);border:1px solid var(--ink);box-shadow:none;transition:background-color .25s,border-color .25s,color .25s;justify-content:center}
.btn-p{background:var(--ink);color:var(--linen);box-shadow:none}
.btn-p:hover{background:#4A443F;color:var(--linen);box-shadow:none}
.btn-s{background:transparent;color:var(--ink);border-color:var(--ink);box-shadow:none}
.btn-s:hover{background:var(--sand);border-color:var(--ink)}
.btn-g{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 2px;min-height:44px;color:var(--ink)}
.btn-g:hover{background:none;color:var(--ink);border-bottom-color:var(--ink)}
.chip{background:var(--panel);border:1px solid var(--edge);color:var(--ink-2);font:400 1rem/1 var(--f-serif);letter-spacing:0;text-transform:none;min-height:44px;padding:12px 18px;transition:background-color .2s,color .2s,border-color .2s}
.chip:hover{border-color:var(--ink);color:var(--ink)}
.chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--linen)}
.chip[disabled]{border-style:solid;border-color:var(--line)}
.chip .n{font-weight:400}
.search input{background:var(--panel);border:1px solid var(--edge);border-radius:var(--r-s);font:400 1.1rem var(--f-serif);min-height:52px;color:var(--ink)}
.search input:focus{outline:2px solid var(--focus);outline-offset:2px;border-color:var(--edge);box-shadow:none}
.search img{opacity:.7}
.count{color:var(--ink-2);font-weight:400}
.field input,.field select,.field textarea{background:var(--panel);border:1px solid var(--edge);border-radius:var(--r-s);font:400 1.1rem var(--f-serif);min-height:52px;color:var(--ink)}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--focus);outline-offset:2px;border-color:var(--edge);box-shadow:none}
.field label{color:var(--ink-2)}
.tag{background:transparent;border:1px solid var(--line);border-radius:999px;color:var(--ink-2);padding:8px 13px}
.mq-pause{background:var(--panel);border:1px solid var(--edge);border-radius:999px}

/* ---------- 5. cards, bands, lists ---------- */
.card,.pillar,.fact,.lib-free-in,.use-card,.stitch,.lib-empty{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:none}
.card::before{display:none}
.card,.pillar{transition:border-color .25s}
.card:hover,.pillar:hover{border-color:var(--edge)}
.card .more{font:500 12px/1 var(--f-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--acc-ink)}
.card p{font-size:1.05rem}
.use-card,.lib-empty,.stitch{border-style:solid}
.band-bg{background:var(--sand)}
.dark{background:var(--sand);color:var(--ink)}
.dark h2,.dark h3{color:var(--ink)}.dark .lead,.dark .stats span{color:var(--ink-2)}.dark .stats b{color:var(--ink)}
.dark .bk .kind{color:var(--acc-ink)}.dark .bk h3,.dark .bk h2{color:var(--ink)}.dark .bk .ages{color:var(--ink-2)}
.dark :focus-visible{outline-color:var(--focus)}
.wave{display:none}
.ph-hero{background:var(--linen);border-bottom:1px solid var(--line);padding:56px 0 40px}
.pill-list li{font-weight:400}
.pill-list li::before{width:18px;height:18px;margin-top:6px;background:none;border:1px solid var(--acc-ink);box-shadow:none}
.quote,.bigquote{background:none;border-radius:0}
.quote{border-left:2px solid var(--acc);padding:6px 0 6px 22px;margin:32px 0}
.quote::before{display:none}
.quote p{font:italic 400 1.4rem/1.4 var(--f-serif);color:var(--ink)}
.quote cite{color:var(--ink-2)}
.bigquote{font:italic 400 clamp(1.5rem,3vw,2.3rem)/1.35 var(--f-serif)}
.inside{gap:0}
.inside li{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:14px 0;font:400 1.1rem/1.4 var(--f-serif);font-weight:400}
.inside li i{background:none;color:var(--acc-ink);width:auto;height:auto;min-width:28px;border-radius:0;font:500 12px/1 var(--f-sans);letter-spacing:.08em}
.buybox{background:var(--sand);color:var(--ink);border:1px solid var(--line);border-radius:var(--r-l)}
.buybox h3,.buybox h2,.buybox p{color:var(--ink)}
.buybox p{color:var(--ink-2)}
.buybox .btn-s{background:transparent;color:var(--ink);border-color:var(--ink)}
.buybox .btn-s:hover{background:var(--panel);border-color:var(--ink)}
.facts{gap:12px}
.fact small{color:var(--ink-2)}
.fact b{font:600 1.1rem/1.3 var(--f-serif)}
.fact-row a{font-weight:600}
.note{color:var(--ink-2)}
.crumbs{font-weight:400;color:var(--ink-2)}
.stats b{font-weight:300;color:var(--ink)}
.stats span{font-weight:400}
.ph{border:1px solid var(--line)}

/* the grain of the pictures: illustrations sit a touch quieter, covers and posters keep true colour */
.sc-pic,.split img.sc-pic,.prog img,.tool .big,.sc-spot{filter:saturate(.88)}
.sc-pic{border-radius:var(--r-l);box-shadow:none;display:block}
.sc-spot{width:72px;height:72px;object-fit:contain;margin-bottom:16px}
.card .ic.sc-spot{width:72px;height:72px}

/* ---------- 6. book covers: true colour, soft top-left light ---------- */
.bk .cv{border-radius:2px 4px 4px 2px;box-shadow:var(--sh-book);background:var(--sand);transform:none;transform-style:flat;transition:box-shadow .3s var(--ease),transform .3s var(--ease);outline:1px solid rgba(46,42,39,.08);outline-offset:-1px}
.bk .cv::after{width:4%;background:linear-gradient(90deg,rgba(0,0,0,.16),rgba(255,255,255,.10) 55%,transparent)}
.bk:hover .cv{transform:translateY(-3px);box-shadow:0 1px 1px rgba(46,42,39,.10),0 8px 14px -4px rgba(46,42,39,.16),0 18px 30px -14px rgba(46,42,39,.22)}
.bk .cv img{filter:none}
.bk .kind{color:var(--ac,var(--acc-ink))}
.bk h2,.bk h3{font:600 1.1rem/1.25 var(--f-serif);color:var(--ink)}
.bk .ages{color:var(--ink-2);font-size:.95rem}
.shelf{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:40px 28px}
.shelf .bk .meta{border-top:1px solid var(--line);margin-top:16px;padding:12px 2px 0}
@media (max-width:600px){.shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}.shelf .bk h2,.shelf .bk h3{font-size:1rem}}
.flip .face,.xcover{border-radius:2px 4px 4px 2px;box-shadow:var(--sh-book-lg);outline:1px solid rgba(46,42,39,.08);outline-offset:-1px}
.flip .inner{transition:transform .8s var(--ease)}
.flip-hint{font-weight:500;color:var(--ink-2)}
.xcover{background:var(--sand)}
.bp{--ac:var(--acc-ink)}
.bp .tag{color:var(--ink-2)}
.bp .crumbs a{color:var(--ink-2)}

/* ---------- 7. reveal, softened ---------- */
.reveal{transform:translateY(24px);transition:opacity .7s var(--mo-out,var(--ease)),transform .7s var(--mo-out,var(--ease));transition-delay:var(--d,0s)}
.reveal.in{transform:none}

/* ---------- 8. home, section by section ---------- */
.hero{padding:56px 0 96px}
.hero h1 .s{color:var(--acc-ink)}
.hero-meta{color:var(--ink-2);font:500 12px/1.3 var(--f-sans);letter-spacing:.1em;text-transform:uppercase;gap:32px}
.hero-meta b{font:300 2.2rem/1 var(--f-serif);color:var(--ink);letter-spacing:0;margin-bottom:6px;text-transform:none}
.hero .stage{aspect-ratio:auto;max-width:540px;margin:0 0 0 auto}
.hero .stage img{width:100%;height:auto;max-height:none;object-fit:cover}
@media (max-width:900px){.hero .stage{margin:8px auto 0;max-width:420px}}
/* audience cards */
.card .ic{margin-bottom:16px}
/* Feel Care Try Grow */
.fctg .num{width:64px;height:64px;background:transparent;border:1px solid var(--acc-ink);color:var(--acc-ink);box-shadow:none;font:300 1.8rem/1 var(--f-serif)}
.fctg .st:not(:last-child)::after{top:32px;left:calc(50% + 44px);right:calc(-50% + 44px);border-top:1px solid var(--line)}
.fctg h3{font-size:1.5rem}
/* age path */
.path .bg{height:1px;top:46px;background:var(--line);border-radius:0}
.stop .dot{width:92px;height:92px;border:1px solid var(--bc);background:var(--panel);box-shadow:none;font:300 1.45rem/1 var(--f-serif);color:var(--bd)}
.stop:hover .dot{border-color:var(--bd)}
.stop p{font-size:1rem}
.path .stop h3{font-size:1.2rem}
/* pillars */
.pillar .tag{background:none;border:0;padding:0;color:var(--pc);font-size:12px;margin-bottom:12px}
.pillar .n{font:300 4.4rem/1 var(--f-serif);color:var(--pc);opacity:.14}
.pillar .q{font-size:1.15rem}
/* compass band */
.cmp-band{background:var(--sand);color:var(--ink)}
.cmp-band h2{color:var(--ink)}.cmp-band .lead{color:var(--ink-2)}
.cmp-band .eyebrow{background:none;color:var(--acc-ink)}
.cmp-art svg{filter:none}
.chips-row span{background:transparent;border:1px solid var(--edge);color:var(--ink);font:400 1rem/1 var(--f-serif);padding:10px 16px}
.cmp-band .btn-p{background:var(--ink);color:var(--linen);box-shadow:none}
.cmp-band .btn-p:hover{background:#4A443F}
.marquee .bk .meta{border:0;margin:0;padding:12px 2px 0}
/* programme cards: picture above words */
.prog{display:flex;flex-direction:column;justify-content:flex-start;min-height:0;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:none;color:var(--ink);isolation:auto;transition:border-color .25s}
.prog:hover{border-color:var(--edge)}
.prog img{position:static;z-index:auto;height:220px;width:100%;object-fit:cover}
.prog::before{display:none}
.prog .in{padding:24px 26px 28px;text-shadow:none;background:var(--panel)}
.prog .tagp,.prog .tagp:not([style]){background:none;color:var(--acc-ink);padding:0;border-radius:0;margin-bottom:12px;display:inline-flex;align-items:center;gap:12px}
.prog .tagp::before{content:"";width:22px;height:1px;background:currentColor}
.prog h3{color:var(--ink);font-size:1.5rem}
.prog p{color:var(--ink-2);font-size:1.05rem}
.prog .go{font:500 12px/1 var(--f-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--ink)}
/* samples and posters bands */
.smp-band{background:var(--sand)}
.pst-band{background:var(--linen);border-top:1px solid var(--line)}
.fan{max-width:480px}
.fan .bk{width:28%}
.pst-fan figure{transform:rotate(calc(var(--r) / 2))}
.pst-fan:hover figure:nth-child(1){transform:rotate(-4.5deg)}.pst-fan:hover figure:nth-child(2){transform:rotate(4.5deg)}
.pst-fan figure img{border-radius:2px;background:var(--panel);box-shadow:var(--sh-book)}
.sticker,.pst-sticker{width:auto;height:auto;border-radius:var(--r-s);background:var(--ink);color:var(--linen);font:500 12px/1.3 var(--f-sans);letter-spacing:.12em;text-transform:uppercase;padding:10px 14px;transform:none;box-shadow:none}
.pst-sticker{right:4%;top:2%}
/* tools */
.tool{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:none;color:var(--ink);padding:28px 26px;transition:border-color .25s}
.tool:hover{border-color:var(--edge)}
.tool h3{color:var(--ink);font-size:1.4rem}
.tool p{opacity:1;color:var(--ink-2);font-size:1.05rem}
.tool{padding-top:28px}
.tool .big{position:static;width:88px;height:auto;margin:0 0 14px;opacity:1;filter:saturate(.7)}
.tool .btn-s{align-self:flex-start;min-height:44px;padding:12px 20px}
/* author, closing CTA */
.sc-author{max-height:520px;width:100%;object-fit:cover}
.sc-wide{max-width:none}
.sc-sig{font-size:1.5rem;color:var(--acc-ink)}
.sc-cta{padding:60px 40px;text-align:center}
.sc-cta h2{max-width:760px;margin-inline:auto}.sc-cta .lead{margin:0 auto 28px}.sc-cta .btn-row{justify-content:center}
@media (max-width:600px){.sc-cta{padding:44px 22px}}
/* td band (today) uses tokens only */
.td-band{background:var(--linen)}

/* ---------- 9. library ---------- */
.lib-free-in{border-left:2px solid var(--acc);padding:26px 34px}
.lib-free-in h2{font-size:clamp(1.4rem,2.6vw,2rem)}
.lib-free-in p{color:var(--ink-2)}
.lib-empty{background:var(--panel)}
.lib-empty::before{content:"";display:block;width:110px;height:87px;margin:0 auto 14px;background:url("../art/ps-seed.webp") center/contain no-repeat}

/* ---------- 10. footer: sand, still sprig ---------- */
.ftr{background:var(--sand);color:var(--ink-2);border-top:1px solid var(--line);padding:56px 0 32px}
.ftr-sprig{width:200px;height:auto;margin:0 auto 36px;opacity:.9}
.ftr .fh,.ftr h4{color:var(--ink)}
.ftr a{font:400 1rem/1.4 var(--f-serif);color:var(--ink-2);text-underline-offset:3px;transition:color .2s}
.ftr a:hover{color:var(--ink);text-decoration:underline}
.ftr a.brand{color:var(--ink);font:600 1.4rem/1 var(--f-serif)}
.ftr .fine{border-top:1px solid var(--line);font-size:.95rem;color:var(--ink-2)}
.ftr :focus-visible{outline-color:var(--focus)}

/* ---------- 11. Sound and Calm switches ---------- */
.hw-snd,.hw-calm{background:var(--panel);border:1px solid var(--edge);color:var(--ink);border-radius:999px;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;font:500 11px/1 var(--f-sans);letter-spacing:.1em;text-transform:uppercase;transition:background-color .2s,color .2s}
.hw-snd:hover,.hw-calm:hover{box-shadow:none;background:var(--sand)}
.hw-snd.is-on,.hw-calm.is-on{background:var(--ink);border-color:var(--ink);color:var(--linen)}
.hw-snd:focus-visible,.hw-calm:focus-visible{outline-color:var(--focus)}
.hw-snd-hint,.hw-calm-note{background:var(--ink);color:var(--linen);border-radius:var(--r-s);box-shadow:none;font:400 1rem/1.4 var(--f-serif)}

/* ---------- 12. motion: still by default where it matters ---------- */
@media (prefers-reduced-motion:reduce){
  .flip .inner{transition:none}
  .reveal{transition:none;opacity:1;transform:none}
  .cmp-needle{animation:none}
  .bk:hover .cv{transform:none}
}
html.calm .flip .inner{transition:none}
html.calm .reveal{transition:none;opacity:1;transform:none}
html.calm .cmp-needle{animation:none}
html.calm .bk:hover .cv{transform:none}

/* today card (home mini and Today page) */
.td-share{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:none}
/* alive2 E: the Today card keeps its Pillar-tint fill and dashed border (the OLD look); see motion.css section 24 */
.td-mini .tm-k,.td-pillar{font:500 12px/1.3 var(--f-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-2);background:none;padding:0}
.td-mini .tm-q,.td-quote p{font-weight:400}
.td-mini .tm-s,.td-mini .tm-s a,.td-src,.td-src a,.td-src cite{color:var(--ink-2);font-weight:400}
img.sc-pic{height:auto}
img.sc-pic.sc-author{height:auto;max-height:520px}
.bp .crumbs a{color:var(--ink-2)}
/* outlines on sand use ink-2 (edge is 2.9:1 on sand) */
.band-bg .chip,.cmp-band .chips-row span,.smp-band .btn-s,.dark .mq-pause{border-color:var(--ink-2)}

/* Sound + Calm: small round icon buttons, bottom right, side by side (never over content on the left, search or forms) */
body .hw-snd,body .hw-calm{left:auto;width:44px;min-height:44px;height:44px;padding:0;justify-content:center;gap:0;bottom:16px;background:var(--panel)}
body .hw-snd{right:16px}
body .hw-calm{right:68px}
body .hw-snd span,body .hw-calm span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body .hw-snd:hover,body .hw-calm:hover{background:var(--sand)}
body .hw-snd.is-on,body .hw-calm.is-on{background:var(--ink)}
.hw-snd-hint,.hw-calm-note{left:auto;right:12px;bottom:70px;max-width:340px}
@media (max-width:560px){body .hw-snd{right:12px;left:auto;bottom:12px}body .hw-calm{right:64px;left:auto;bottom:12px}.hw-snd-hint,.hw-calm-note{right:12px;left:12px;max-width:none;bottom:68px}}
body{padding-bottom:72px}

/* dropdowns: open on hover, or on Enter/Space/click (aria-expanded); Esc closes even while the button keeps focus */
@media (min-width:1081px){
  .dd:focus-within .dd-menu{opacity:0;visibility:hidden;transform:translateY(-6px)}
  .dd:hover .dd-menu,.dd-btn[aria-expanded="true"]+.dd-menu{opacity:1;visibility:visible;transform:none}
}

/* ======================================================================
   STAGE B (31 Oct 2026): all remaining generated pages. Page modules were swept by
   _build/tools/sweep_site_css.py (hex -> muted tokens, flat colour, no shadows, 1px lines, weights <= 600);
   inline style="" colours are swept in lib.layout() (sweep_html). Rules below only reconcile the two layers.
   ====================================================================== */

/* calm motion: decorative loops run once (breathing, floating, glowing, spinning); tools keep their own scenes */

/* evening bands: page sections that were built dark keep a calm ink band (light text), as part of the muted palette */
.dark:is(.m-lan,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band){background:#34302C;color:var(--linen)}
.dark:is(.m-lan,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) :is(h2,h3,h4):not(.card *):not(li *){color:var(--panel)}
.dark:is(.m-lan,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) .lead:not(.card *):not(li *){color:#E9E3D8}
.dark:is(.m-lan,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) .eyebrow:not(.card *):not(li *){color:var(--sun-t)}
.dark:is(.m-lan,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) :is(.serif,em.s):not(.card *):not(li *){color:var(--sun-t)}
.dark:is(.m-lan,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) :focus-visible{outline-color:var(--sun-t)}
.dark:is(.m-lan,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) .btn-s{color:var(--panel);border-color:rgba(251,248,242,.6)}
.dark:is(.m-lan,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) .btn-s:hover{background:rgba(251,248,242,.12)}
.ab-quote .ab-pq p{color:var(--panel)}.ab-quote .ab-pq footer{color:#E9E3D8}.ab-quote .ab-pq cite{color:var(--sun-t)}

/* dark heroes and tiles: light text, calm accents, outline buttons readable */
:is(.wp-hero,.pl-hero:not(.ph-hero),.pn-hero,.cc-hero,.au-ins .au-hero,.pg-hero,.rs-hero,.pg-camp,.tl) :is(.eyebrow,.tag,.kind){color:var(--sun-t)}
:is(.wp-hero,.pl-hero:not(.ph-hero),.pn-hero,.cc-hero,.au-ins .au-hero,.pg-hero,.rs-hero) :is(h1,h2) .serif,:is(.wp-hero,.pl-hero:not(.ph-hero),.pn-hero,.cc-hero,.au-ins .au-hero,.pg-hero,.rs-hero) :is(h1,h2) em{color:var(--sun-t)}
:is(.wp-hero,.pl-hero:not(.ph-hero),.pn-hero,.cc-hero,.au-ins .au-hero,.pg-hero,.rs-hero) :is(h1,h2){color:var(--panel)}
:is(.wp-hero,.pl-hero:not(.ph-hero),.pn-hero,.cc-hero,.au-ins .au-hero,.pg-hero,.rs-hero) :is(.lead,.cc-sub,.pl-tip,.pn-cap){color:#E9E3D8}
:is(.wp-hero,.pl-hero:not(.ph-hero),.pn-hero,.cc-hero,.au-ins .au-hero,.pg-hero,.rs-hero,.pg-camp,.tl) .btn-s{color:var(--panel);border-color:rgba(251,248,242,.65);background:transparent}
:is(.wp-hero,.pl-hero:not(.ph-hero),.pn-hero,.cc-hero,.au-ins .au-hero,.pg-hero,.rs-hero,.pg-camp,.tl) .btn-s:hover{background:rgba(251,248,242,.14)}
:is(.wp-hero,.pl-hero:not(.ph-hero),.pn-hero,.cc-hero,.au-ins .au-hero,.pg-hero,.rs-hero) :focus-visible,.pg-camp :focus-visible,.tl :focus-visible{outline-color:var(--sun-t)}
.pg-camp .tag,.tl .tag{color:var(--panel)}

/* decorative highlight behind italic words */

:is(.wp-hero,.pl-hero:not(.ph-hero),.pn-hero,.cc-hero,.au-ins .au-hero,.pg-hero,.rs-hero) .eyebrow{background:none;border:0}
.card :is(h2,h3,h4){color:var(--ink)}
.dark:is(.m-lan,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) :is(.stats b,.pg-stats b,.stats span,.pg-stats span,.wp-span):not(.card *):not(li *){color:#E9E3D8}
.dark:is(.m-lan,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) :is(.stats b,.pg-stats b){color:var(--panel)}
.tl-print{background:var(--coral-d)}
.m-lan .m-stn,.m-lan .m-stepcard .m-stn{color:var(--sun-t)}
.au-pillars .au-col :is(h3,.q){color:var(--panel)}.au-pillars .au-col .tag{color:var(--sun-t)}
section.dark:is(.m-lan,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) :is(h1,h2,h3) :is(.serif,.s,em):not(.card *):not(li *){color:var(--sun-t)}
.sw-lab,.sw-chip,.sw-chip small{color:var(--ink)}

/* ---------- Stage C: WCAG AA contrast patch (1 Nov 2026) ----------
   Text colours go darker (never the grounds lighter); translucent light chips on dark bands become translucent dark chips. */
:root{--ink-2:#655E56; --ink-3:#655E56; --ink-deep:#1F1B19}
/* ink-on-ochre / ink-on-sky badges: step numbers, ribbons, tags */
.ps-sn,.pn-cstep .n,.pn-aud .pin,.wp-track .pin,.rv-cards .pin,.pg-step .ribbon,.pg-step.is-train .num,.pg-std.std0 .tag,.m-st.lit i,.m-lan .chip[aria-pressed="true"],.m-layers button i{color:var(--ink-deep)}
.m-layers li:nth-child(6) button i{color:var(--panel)}
/* eyebrows that kept a pale tint chip inside dark bands: back to plain light text */
.wp-reviews .eyebrow.sun,.wp-road .eyebrow.vio{background:none;color:var(--sun-t)}
/* translucent light chips on dark/coloured grounds: darken the chip so light text keeps 4.5:1 */
.pg-camp .tag,.tl-kick{background:rgba(30,27,25,.28)}
.pg-std.std0 .two-l p,html:not(.no-js) .pg-cert[data-track="school"] .std0 .two-l p.sch,html:not(.no-js) .pg-cert[data-track="workplace"] .std0 .two-l p.wk{background:rgba(30,27,25,.24)}
.wp-pcard .btn-light:not(:hover){background:rgba(30,27,25,.22)}
/* accent inks that sat on dark cards/bands */
.pg-step.is-train .card :is(.serif,.more,em){color:var(--sun-t)}
section.dark.au-author :is(h1,h2,h3) .serif,section.dark.au-author :is(h1,h2,h3) em{color:var(--sun-t)}
/* Today: per-pillar colour (set inline from the data) is mixed toward ink for chip fills and the pillar line */
.sw{--pcd:color-mix(in srgb,var(--pc) 50%,#2E2A27)}
.sw-lab,.sw-chip[aria-selected="true"]{background:var(--pcd);border-color:var(--pcd);color:var(--panel)}
.sw-chip[aria-selected="true"] small{color:var(--panel)}
.sw-short{color:var(--pcd)}
:root{--sun-d:#795F2F}
section.dark:is(.m-lan,.m-sec,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) :is(.serif,em)[style*="sun-d"],section.dark:is(.m-lan,.m-sec,.wp-impl,.pg-fit-sec,.pg-facts-sec,.au-pillars,.au-author,.ab-quote,.ab-lantern,.mq-band) :is(.serif,em)[style*="795F2F"]{color:var(--sun-t)!important}

/* ===== Brand package logo (LOGO="new"): two-ribbon heart + lowercase wordmark ===== */
.brand img.hw-logo{width:auto;height:54px;display:block;transition:none}
.brand:hover img.hw-logo,.ftr a.brand:hover img.hw-logo{transform:none;animation:none}
.brand:has(img.hw-logo){padding:0;gap:0}
.ftr a.brand img.hw-logo-full{height:104px;max-width:100%}
@media (max-width:900px){.brand img.hw-logo{height:46px}.ftr a.brand img.hw-logo-full{height:92px}}
@media (max-width:360px){.brand img.hw-logo{height:40px}}

/* header dropdowns: the last two menus open towards the left so the page never grows sideways at 1081 to 1360 px (pages polish, 1 Nov 2026) */
@media (min-width:1081px) and (max-width:1360px){.nav .dd:nth-last-of-type(-n+2) .dd-menu{left:auto;right:0}}
