/* ct-next.css. Cerebral Torque redesign layer, Dec 2026. Loads after ct-glass.css. Remove the link in functions.php to roll back. */
/* ==========================================================================
   Cerebral Torque "Next" layer. Loads last. One file, removable in one step.
   Same brand (navy #062448, coral #d9657a, blue #59a5bf, pink #fec1c6),
   same fonts (Atkinson Hyperlegible Next headings, DM Sans body).
   ========================================================================== */

/* ---------- 1. Foundation: type scale, depth, surfaces ---------- */
html:root{
  --step-3:clamp(1.8rem,1.42rem + 1.75vw,2.75rem);
  --step-4:clamp(2.35rem,1.6rem + 3.6vw,3.9rem);
  --n-ease:cubic-bezier(.2,.8,.2,1);
  --n-glow:rgba(89,165,191,.42);
}
html:root:not([data-light=low]){
  --m-surface:rgba(255,255,255,.8);
  --m-shadow:0 0 0 1px rgba(6,36,72,.055),0 1px 2px rgba(6,36,72,.04),0 12px 32px -16px rgba(6,36,72,.2);
  --m-shadow-h:0 0 0 1px rgba(89,165,191,.55),0 0 0 5px rgba(89,165,191,.14),0 3px 6px rgba(6,36,72,.05),0 28px 56px -24px rgba(6,36,72,.36);
}
html[data-light=low]:root{
  --m-shadow:0 0 0 1px rgba(255,255,255,.07),0 18px 44px -26px rgba(0,0,0,.7);
}

h1,h2,.h1,.h2{text-wrap:balance}
h1:not(#ct-x){letter-spacing:-.034em;line-height:1.04}
h2:not(#ct-x){letter-spacing:-.028em;line-height:1.1}
p{text-wrap:pretty}
::selection{background:#fec1c6;color:#062448}

/* section rhythm: tighter, so the next thing is always in view */
.sec{padding:clamp(40px,5.2vw,76px) 0}
.sec--tight{padding:clamp(24px,3.2vw,40px) 0}
.sec-head{margin-bottom:clamp(18px,2.2vw,30px)}
.sec-head p:not(#ct-x){font-size:1.06rem;line-height:1.55;margin-top:.55em}

/* ---------- 2. Cards: crisp edge, layered shadow, lift and glow on hover ---------- */
html body :is(.card,.toolcard,.newest__in,.igtile,.door:not(.door--hot)):not(#ct-x):not(#ct-y){
  transition:transform .35s var(--n-ease),box-shadow .35s var(--n-ease)!important}
@media (any-hover:hover){
  html body :is(.card,.toolcard,.igtile):hover:not(#ct-x):not(#ct-y){transform:translateY(-5px)}
  html body .newest__in:hover:not(#ct-x):not(#ct-y){transform:translateY(-3px)}
  .card:hover .card__media img,.toolcard:hover>img,.newest__in:hover .newest__img img{transform:scale(1.045)}
}
html body :is(.card,.toolcard):not(#ct-x):not(#ct-y){border-radius:24px!important}
.card__body:not(#ct-x){padding:20px 22px 22px;gap:9px}
.card__title:not(#ct-x){font-size:1.2rem;line-height:1.24;letter-spacing:-.02em}
.card__dek:not(#ct-x){font-size:.95rem;line-height:1.5}
.card__meta:not(#ct-x){font-size:.82rem;font-weight:600;font-variant-numeric:tabular-nums}
.grid:not(#ct-x){gap:24px}
.toolcard b:not(#ct-x){font-size:1.14rem;letter-spacing:-.015em}
.toolcard>img{transition:transform .7s var(--n-ease)}

/* ---------- 3. Buttons: a little depth, clear edges ---------- */
html body :is(.btn:not([class*="btn--"]),.btn--primary,.btn--coral,.btn--amz,.ctc-go,.hsf-visit__go,.ctc-btn:not(.alt),.attackbtn,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn):not(#ct-x):not(#ct-y){
  background-image:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,0) 58%)!important}
html body :is(.btn:not([class*="btn--"]),.btn--primary,.ctc-go,.hsf-visit__go,.ctc-btn:not(.alt):not(.coral),.attackbtn):not(#ct-x):not(#ct-y){
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 1px 2px rgba(6,36,72,.3),0 10px 22px -10px rgba(6,36,72,.6)!important}
html body :is(.btn--coral,.ctc-btn.coral):not(#ct-x):not(#ct-y){
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 1px 2px rgba(156,61,80,.35),0 10px 22px -10px rgba(181,72,93,.65)!important}
html body :is(.btn--amz,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn):not(#ct-x):not(#ct-y){
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 0 0 1px rgba(196,140,0,.28),0 1px 2px rgba(150,105,0,.25),0 10px 22px -10px rgba(210,150,0,.6)!important}
html:not([data-light=low]) body :is(.btn--ghost,.btn--white,.hsf-clear,.hsf-nearme-btn):not(:is(.band--navy,.door--hot,.ctd-dark,.adlg,.hero--dark,.ftr) *):not(#ct-x):not(#ct-y){
  background-color:rgba(255,255,255,.82)!important;
  box-shadow:inset 0 0 0 1.5px rgba(6,36,72,.2),0 1px 2px rgba(6,36,72,.05),0 6px 14px -10px rgba(6,36,72,.3)!important}
html:not([data-light=low]) body :is(.btn--ghost,.btn--white,.hsf-clear,.hsf-nearme-btn):not(:is(.band--navy,.door--hot,.ctd-dark,.adlg,.hero--dark,.ftr) *):hover:not(#ct-x):not(#ct-y){
  background-color:#fff!important;box-shadow:inset 0 0 0 1.5px #062448,0 1px 2px rgba(6,36,72,.05),0 10px 20px -12px rgba(6,36,72,.4)!important}
/* ---------- 4. Home hero ---------- */
@media (min-width:801px){
  .hero:not(#ct-x){padding-top:clamp(28px,3.4vw,52px);padding-bottom:clamp(14px,2vw,28px)}
  .hero h1:not(#ct-x){font-size:clamp(3.4rem,1.6rem + 5.4vw,6.1rem);line-height:.95;letter-spacing:-.045em;margin-bottom:.26em}
  .hero h1 em{display:block}
  .hero .lede:not(#ct-x){font-size:clamp(1.15rem,1rem + .5vw,1.4rem);line-height:1.45;max-width:34ch;margin-bottom:28px}
  .hero__grid:not(#ct-x){grid-template-columns:1.12fr .88fr;gap:clamp(20px,4vw,56px)}
  .hero .doors:not(#ct-x){max-width:680px;gap:14px;margin:0 0 20px}
}
@media (min-width:1101px){.hero__art:not(#ct-x){max-width:500px}}
.hero h1 em:not(#ct-x){color:#c4566b}
html[data-light=low] .hero h1 em:not(#ct-x){color:#ee9aab}

/* the stage behind Skipper: a soft lit disc with a slow pink and blue glow */
.hero__art:not(#ct-x)::before{inset:2%;background:radial-gradient(circle at 38% 30%,#fff 0,#f4f7fd 42%,#e8eefa 68%,rgba(232,238,250,0) 70.5%);
  box-shadow:0 40px 80px -50px rgba(6,36,72,.35)}
.hero__art::after{content:"";position:absolute;inset:-6%;z-index:-1;border-radius:50%;pointer-events:none;
  background:conic-gradient(from 210deg,rgba(254,193,198,.85),rgba(150,208,232,.8),rgba(214,204,246,.6),rgba(254,193,198,.85));
  filter:blur(46px);opacity:.75;animation:n-spin 38s linear infinite}
html[data-light=low] .hero__art::after{opacity:.22}
html[data-light=low] .hero__art:not(#ct-x)::before{background:radial-gradient(circle at 38% 30%,#22324c 0,#1a2940 55%,rgba(26,41,64,0) 70.5%);box-shadow:none}
@keyframes n-spin{to{transform:rotate(360deg)}}
html[data-motion=off] .hero__art::after{animation:none}
@media (prefers-reduced-motion:reduce){.hero__art::after{animation:none}}

/* the three doors: bigger, each with its own mark */
.hero .door:not(#ct-x){padding:18px 18px 20px;font-size:.95rem;line-height:1.42;gap:6px;border-radius:24px!important;position:relative}
.hero .door b:not(#ct-x){font-size:1.2rem;letter-spacing:-.02em}
.hero .door::before{content:"";width:40px;height:40px;border-radius:13px;margin-bottom:8px;flex:none;
  background:var(--dbg,#eef7fa) var(--dic) center/22px 22px no-repeat;box-shadow:inset 0 0 0 1px rgba(6,36,72,.06)}
.hero .door--hot::before{--dbg:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
  --dic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fec1c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E")}
.hero .door:nth-child(2)::before{--dbg:#ffeef1;
  --dic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5485d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15.5 8.5-2 5-5 2 2-5 5-2Z'/%3E%3C/svg%3E")}
.hero .door:nth-child(3)::before{--dbg:#e8f5fa;
  --dic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6l-5 9a2 2 0 0 0 1.8 3h10.4a2 2 0 0 0 1.8-3l-5-9V3'/%3E%3Cpath d='M7.5 15h9'/%3E%3C/svg%3E")}
html[data-light=low] .hero .door:not(.door--hot)::before{--dbg:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
@media (max-width:700px){
  .hero .door:not(#ct-x){display:grid;grid-template-columns:40px 1fr;column-gap:14px;row-gap:2px;align-items:start;padding:14px 16px}
  .hero .door::before{grid-row:1/span 2;margin:2px 0 0}
  .hero .door b:not(#ct-x){font-size:1.1rem}
}
.trust:not(#ct-x){margin-top:6px;gap:10px 22px;font-size:.95rem;color:var(--ink-2)}

/* ---------- 5. Home sections ---------- */
/* newest study strip */
.newest__in:not(#ct-x):not(#ct-y){border-radius:28px!important;padding:16px;gap:30px;grid-template-columns:340px minmax(0,1fr) auto}
.newest__img:not(#ct-x),.newest__img img:not(#ct-x){border-radius:16px}
.newest__txt h3:not(#ct-x){font-size:clamp(1.35rem,1.1rem + .8vw,1.75rem);letter-spacing:-.025em;line-height:1.16}
@media (max-width:860px){.newest__in:not(#ct-x):not(#ct-y){grid-template-columns:1fr;gap:16px;padding:14px 14px 18px}}

/* topics: one glass panel, bigger marks, rows that respond */
.toc-list:not(#ct-x){margin-top:0;padding:10px 26px;border-radius:28px;column-gap:44px;
  background:var(--m-surface);box-shadow:var(--m-shadow);-webkit-backdrop-filter:var(--m-blur);backdrop-filter:var(--m-blur)}
.toc-list a:not(#ct-x){padding:14px 12px!important;margin:2px -12px;gap:16px;transition:background-color .2s}
.toc-list img:not(#ct-x){width:46px;height:46px}
.toc-list b:not(#ct-x){font-size:1.14rem;letter-spacing:-.018em}
@media (any-hover:hover){.toc-list a:hover:not(#ct-x){background:rgba(6,36,72,.04)}html[data-light=low] .toc-list a:hover:not(#ct-x){background:rgba(255,255,255,.05)}}
@media (max-width:700px){.toc-list:not(#ct-x){padding:6px 16px;border-radius:22px}.toc-list a:not(#ct-x){padding:12px 8px!important;margin:1px -8px;gap:12px}.toc-list img:not(#ct-x){width:40px;height:40px}}

/* course + finder, and newsletter + mission: a wide card beside a narrow one, so both fill their height */
@media (min-width:1200px){
  body.home main{display:grid;grid-template-columns:minmax(20px,1fr) minmax(0,548px) minmax(0,104px) minmax(0,548px) minmax(20px,1fr);align-items:stretch}
  body.home main>*{grid-column:1/-1;min-width:0}
  body.home main>section:has(>.band--pink){grid-column:2/4}
  body.home main>section:has(>.band--blue){grid-column:4}
  body.home main>section#signup{grid-column:2}
  body.home main>section:has(>.band--navy){grid-column:3/5}
  body.home main>section:has(>.band--pink)>.band,body.home main>section#signup>.wrap--mid{width:auto;margin:0 12px 0 0;height:100%}
  body.home main>section:has(>.band--blue)>.band,body.home main>section:has(>.band--navy)>.band{width:auto;margin:0 0 0 12px;height:100%}
  /* every card in these rows: same padding, same picture size, picture centred on the card's middle line */
  body.home .band--pink:not(#ct-x),body.home .band--blue:not(#ct-x),body.home .band--navy:not(#ct-x){grid-template-columns:minmax(0,1fr) 148px;gap:8px 20px;padding:34px 34px 32px;align-items:center;align-content:center}
  body.home .band--blue>.band__art{order:2}
  body.home .band .band__art:not(#ct-x){max-width:148px;margin:0;align-self:center}
  body.home .band h2:not(#ct-x){font-size:clamp(1.6rem,1.2rem + 1vw,2.05rem);margin-bottom:.45em}
  body.home .band .lede:not(#ct-x),body.home .band--navy p:not(#ct-x){font-size:1.04rem;line-height:1.55}
  body.home .band .checks{margin:14px 0 0;gap:8px;font-size:.96rem}
  body.home .band .btnrow:not(#ct-x){margin-top:22px}
  body.home #signup .signupband:not(#ct-x){grid-template-columns:1fr;gap:16px;height:100%;padding:34px 30px 28px;align-content:center;border-radius:36px!important}
  body.home #signup .signupband h2:not(#ct-x){font-size:clamp(1.6rem,1.2rem + 1vw,2.05rem)}
  body.home #signup .signupband p:not(#ct-x){font-size:1.04rem}
}
.band h2:not(#ct-x){letter-spacing:-.03em}
html body .band--pink:not(#ct-x):not(#ct-y){background:linear-gradient(140deg,#fff0f3,#ffdfe5 55%,#ffd0da)!important;box-shadow:inset 0 0 0 1px rgba(181,72,93,.1),0 20px 44px -30px rgba(181,72,93,.45)!important}
html body .band--blue:not(#ct-x):not(#ct-y){background:linear-gradient(140deg,#f1fafd,#dcf1f8 55%,#c9e8f3)!important;box-shadow:inset 0 0 0 1px rgba(31,111,138,.1),0 20px 44px -30px rgba(31,111,138,.45)!important}
html body .band--navy:not(#ct-x):not(#ct-y){background:radial-gradient(120% 90% at 100% 0%,#1b4d86 0,rgba(27,77,134,0) 55%),linear-gradient(150deg,#0f3563,#062448 70%)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07),0 24px 50px -30px rgba(6,36,72,.8)!important}
html[data-light=low] body :is(.band--pink,.band--blue):not(#ct-x):not(#ct-y){background:rgba(30,44,66,.55)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)!important}
html[data-light=low] body .band--navy:not(#ct-x):not(#ct-y){background:linear-gradient(150deg,#22355a,#16233a)!important}

/* product shelf */
.shelf:not(#ct-x):not(#ct-y){border-radius:32px!important;padding-top:32px}
.shelf h2:not(#ct-x){font-size:clamp(1.6rem,1.3rem + .9vw,2.1rem);letter-spacing:-.03em}
@media (min-width:761px){.shelf__item img:not(#ct-x){height:196px}.shelf__p b:not(#ct-x){font-size:1.12rem}.shelf__q:not(#ct-x){font-size:.95rem}}
.shelf__item img{filter:drop-shadow(0 18px 14px rgba(6,36,72,.18))}

/* instagram tiles */
.igtile:not(#ct-x):not(#ct-y){border-radius:22px!important}
@media (max-width:800px){.igtile:not(#ct-x):not(#ct-y){border-radius:16px!important}}
.shelf__lede:not(#ct-x){max-width:64ch;margin-right:0}
@media (max-width:800px){.hero h1:not(#ct-x){font-size:clamp(2.5rem,11.2vw,3.3rem);line-height:.98;letter-spacing:-.04em}.hero h1 em{display:block}}

.band .btn:not(#ct-x){white-space:nowrap}
/* tablets and small laptops: headline stays on one line so the first screen still shows the articles */
@media (min-width:801px) and (max-width:1099px){
  .hero h1:not(#ct-x){font-size:clamp(2.4rem,5.2vw,3.4rem);line-height:1;letter-spacing:-.04em;white-space:nowrap}
  .hero h1 em{display:inline}
  .hero__art:not(#ct-x){max-width:270px}
  .hero .lede:not(#ct-x){font-size:1.14rem;margin-bottom:20px}
  .hero .door::before{display:none}
  .hero .door:not(#ct-x){padding:14px 14px 16px;font-size:.88rem}
  .hero .door b:not(#ct-x){font-size:1.04rem}
}
@media (max-width:700px){.hero .door:not(#ct-x){padding:12px 14px}.hero .doors:not(#ct-x){gap:8px}}
/* ---------- 6. Hub page heads (Blog, Learn, topics, Research, Tools, Shop, Start here) ---------- */
.hubhead:not(#ct-x){padding-top:clamp(26px,4vw,56px);padding-bottom:clamp(16px,2.4vw,30px);
  background:radial-gradient(900px 460px at 88% 0%,rgba(150,208,232,.42),transparent 66%),radial-gradient(700px 380px at 0% 10%,rgba(254,193,198,.34),transparent 70%)}
html[data-light=low] .hubhead:not(#ct-x){background:radial-gradient(900px 460px at 88% 0%,rgba(40,90,130,.2),transparent 66%)}
.hubhead .lede:not(#ct-x){font-size:clamp(1.12rem,1.02rem + .45vw,1.34rem);line-height:1.5;max-width:56ch}
.hubhead h1:not(#ct-x){margin-bottom:.32em}
.hubhead .btnrow{margin-top:22px}
@media (min-width:801px){
  .hubhead__grid:not(.hubhead__grid--art):not(#ct-x){grid-template-columns:minmax(0,1fr) 290px;gap:40px}
  .hubhead__grid:not(.hubhead__grid--art)>img:not(.bellimg):not(#ct-x){width:260px;height:auto;justify-self:center;position:relative;
    filter:drop-shadow(0 26px 22px rgba(6,36,72,.2))}
  .hubhead__grid:not(.hubhead__grid--art){position:relative}
  .hubhead__grid:not(.hubhead__grid--art)::after{content:"";position:absolute;right:-10px;top:50%;width:310px;height:310px;margin-top:-155px;border-radius:50%;z-index:-1;pointer-events:none;
    background:conic-gradient(from 200deg,rgba(254,193,198,.9),rgba(150,208,232,.85),rgba(214,204,246,.6),rgba(254,193,198,.9));filter:blur(44px);opacity:.7}
  html[data-light=low] .hubhead__grid:not(.hubhead__grid--art)::after{opacity:.18}
  .hubhead{isolation:isolate}
}

/* filter chips */
html body .chip:not(#ct-x):not(#ct-y){min-height:40px!important;padding:0 17px!important;font-size:.92rem}
html:not([data-light=low]) body .chip:not([aria-pressed=true]):not([aria-current]):not(#ct-x):not(#ct-y){background-color:rgba(255,255,255,.75)!important;box-shadow:inset 0 0 0 1px rgba(6,36,72,.1)!important}
html:not([data-light=low]) body .chip:not([aria-pressed=true]):not([aria-current]):hover:not(#ct-x):not(#ct-y){background-color:#fff!important;box-shadow:inset 0 0 0 1.5px rgba(6,36,72,.45)!important}

/* Learn page chapters */
.chapter h2:not(#ct-x){letter-spacing:-.02em}

/* pager: words, no arrows */
.pager a.pager__step>i[aria-hidden]{display:none}
.pager a.pager__step .pager__lbl:not(#ct-x){display:inline}
.pager a.pager__step:not(#ct-x){padding:0 18px;min-width:0}
html body .pager a:not(#ct-x),html body .pager span:not(.pager__gap):not(#ct-x){border-radius:14px;min-width:46px;height:46px;border-color:transparent;background:var(--m-surface);box-shadow:var(--m-shadow);transition:transform .2s var(--n-ease),box-shadow .2s var(--n-ease)}
html body .pager a:hover:not(#ct-x){transform:translateY(-2px);box-shadow:var(--m-shadow-h)}
html body .pager .current:not(#ct-x):not(#ct-y){background:#062448!important;color:#fff!important;box-shadow:0 10px 22px -10px rgba(6,36,72,.6)}
html[data-light=low] body .pager .current:not(#ct-x):not(#ct-y){background:#ee9aab!important;color:#0c1522!important;box-shadow:none}
@media (max-width:400px){.pager a.pager__step:not(#ct-x){padding:0 13px;font-size:.92rem}.pager .current:not(#ct-x){padding:0 12px;font-size:.92rem}.pager .current .pager__of:first-child{display:none}}

@media (max-width:700px){html body .chip:not(#ct-x):not(#ct-y){min-height:44px!important}html body .btn--sm:not(#ct-x){min-height:44px}}
@media (max-width:700px){.chapter__all:not(#ct-x){display:inline-flex;align-items:center;min-height:44px}}
/* ---------- 7. Article pages ---------- */
@media (min-width:900px){
  .ahead:not(#ct-x){padding-top:clamp(30px,4vw,56px);padding-bottom:30px}
  .ahead h1:not(#ct-x){font-size:clamp(2.5rem,1.3rem + 3.1vw,3.9rem);line-height:1.03;letter-spacing:-.038em}
  .ahead .wrap>.cover:not(#ct-x){border-radius:28px;box-shadow:0 0 0 1px rgba(6,36,72,.06),0 2px 4px rgba(6,36,72,.06),0 44px 70px -40px rgba(6,36,72,.55);transition:transform .6s var(--n-ease)}
  .ahead .wrap>.cover:hover{transform:rotate(0deg) scale(1.015)}
}
/* long article titles (studies) step down so they never tower */
@media (min-width:900px){
  .ahead h1.t-mid:not(#ct-x){font-size:clamp(2.2rem,1.3rem + 2.3vw,3.1rem);line-height:1.06;letter-spacing:-.032em}
  .ahead h1.t-long:not(#ct-x){font-size:clamp(1.9rem,1.25rem + 1.6vw,2.5rem);line-height:1.1;letter-spacing:-.028em}
}
.ahead .dek:not(#ct-x){font-size:clamp(1.14rem,1.04rem + .45vw,1.36rem);line-height:1.48}
/* body copy */
.prose h2:not(#ct-x){font-size:clamp(1.7rem,1.4rem + 1.1vw,2.3rem);letter-spacing:-.03em;line-height:1.1;margin:2.1em 0 .6em}
.prose h3:not(#ct-x){font-size:1.42rem;letter-spacing:-.022em;line-height:1.2;margin:1.8em 0 .45em}
.prose h4:not(#ct-x){font-size:1.14rem;letter-spacing:-.012em}
.prose a:not([class]):not(#ct-x){text-decoration-thickness:1.5px;text-underline-offset:4px;transition:text-decoration-color .2s,color .2s}
.prose a:not([class]):hover:not(#ct-x){text-decoration-color:currentColor}

/* at a glance numbers */
.prose :is(.stat-card,.mechanism-card):not(#ct-x):not(#ct-y){border-radius:22px;padding:20px 22px 22px;border-color:transparent!important;background:var(--m-surface);box-shadow:var(--m-shadow)!important}
.prose .stat-grid:not(#ct-x){gap:16px;margin:1.8em 0}
.prose .stat-number:not(#ct-x){font-family:var(--display);font-size:2.35rem;letter-spacing:-.035em;line-height:1;margin-bottom:8px;font-variant-numeric:tabular-nums}
.prose .stat-label:not(#ct-x){font-size:1rem;line-height:1.4}

/* on this page */
.aside nav.toc:not(#ct-x){border-radius:22px;border-color:transparent;background:var(--m-surface);box-shadow:var(--m-shadow)}
.aside .bookcard:not(#ct-x),.aside .minicta:not(#ct-x){border-radius:22px;border-color:transparent;box-shadow:var(--m-shadow)}

/* author */
.author:not(#ct-x){border-radius:26px;border-color:transparent;box-shadow:var(--m-shadow);padding:26px}

/* related */
.related h2:not(#ct-x){letter-spacing:-.03em}
@media (max-width:560px){.prose .stat-number:not(#ct-x){font-size:1.62rem;letter-spacing:-.03em}.prose :is(.stat-card,.mechanism-card):not(#ct-x):not(#ct-y){padding:16px 16px 18px;border-radius:18px}.prose .stat-grid:not(#ct-x){gap:12px}.prose .stat-label:not(#ct-x){font-size:.95rem}}
/* ---------- 8. Footer ---------- */
.ftr:not(#ct-x){margin-top:clamp(36px,5vw,72px);border-radius:44px 44px 0 0;padding-top:clamp(48px,5vw,72px);position:relative;overflow:hidden;isolation:isolate;
  background:radial-gradient(700px 380px at 100% 0%,rgba(89,165,191,.28),transparent 70%),radial-gradient(640px 360px at 0% 100%,rgba(217,101,122,.2),transparent 70%),linear-gradient(170deg,#0b2f59,#062448 55%,#051d3a)}
html[data-light=low] .ftr:not(#ct-x){background:radial-gradient(700px 380px at 100% 0%,rgba(89,165,191,.12),transparent 70%),linear-gradient(170deg,#101c2e,#0b1422)}
@media (max-width:700px){.ftr:not(#ct-x){border-radius:30px 30px 0 0}}
.ftr .ftr__h:not(#ct-x){color:#9fd0e2;letter-spacing:.1em;margin-bottom:16px}
.ftr ul:not(#ct-x){gap:11px;font-size:.98rem}
.ftr ul a{transition:color .2s,transform .3s var(--n-ease);display:inline-block}
@media (any-hover:hover){.ftr ul a:hover{color:#fff;transform:translateX(3px)}}
.ftr__social a:not(#ct-x){border-radius:50%;width:44px;height:44px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);transition:background-color .2s,transform .3s var(--n-ease)}
@media (any-hover:hover){.ftr__social a:hover:not(#ct-x){background:rgba(255,255,255,.2);transform:translateY(-3px)}}
.ftr__bottom:not(#ct-x){border-top:1px solid rgba(255,255,255,.1)!important}

/* ---------- 9. Phone: floating dock ---------- */
@media (max-width:800px){
  .tabbar:not(#ct-x){left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));padding:6px;border-radius:26px;border:0;
    background:rgba(255,253,253,.97);box-shadow:0 0 0 1px rgba(6,36,72,.07),0 2px 6px rgba(6,36,72,.08),0 18px 40px -14px rgba(6,36,72,.38)}
  html[data-light=low] .tabbar:not(#ct-x){background:rgba(16,27,42,.98);box-shadow:0 0 0 1px rgba(255,255,255,.08),0 18px 40px -14px rgba(0,0,0,.8)}
  .tabbar.is-hidden:not(#ct-x){transform:translateY(calc(100% + 24px + env(safe-area-inset-bottom)))}
  .tabbar a:not(#ct-x),.tabbar button:not(#ct-x){border-radius:20px;min-height:50px}
  .tabbar [aria-current]:not(.tabbar__sos):not(#ct-x){background:rgba(217,101,122,.1)}
  .tabbar__sos:not(#ct-x){margin:0 0 0 2px}
  .ftr:not(#ct-x){padding-bottom:calc(104px + env(safe-area-inset-bottom))}
}
/* ---------- 10. Older page types (finder, course, daily page, tools, products): same headline scale ---------- */
html body :is(.hsf-header,.ctc-hero,.ctd-hero,.ctw-hero,.ctd-archhero) h1:not(#ct-x):not(#ct-y){font-size:var(--step-4)!important;letter-spacing:-.034em!important;line-height:1.04!important;text-wrap:balance}
.pdp__info h1:not(#ct-x){font-size:clamp(1.9rem,1.3rem + 1.9vw,2.75rem);letter-spacing:-.034em;line-height:1.05}
.pdp__stage:not(#ct-x){border-radius:28px;border-color:transparent;box-shadow:var(--m-shadow)}
.pdp__tag:not(#ct-x){font-size:1.08rem;line-height:1.5}
.toolhead__grid img:not(#ct-x){filter:drop-shadow(0 24px 22px rgba(6,36,72,.18))}
@media (max-width:600px){html body .products .prod:not(#ct-x){grid-template-columns:96px minmax(0,1fr)!important}html body .prod .btn--amz:not(#ct-x):not(#ct-y){white-space:nowrap;font-size:.88rem!important;padding:0 14px!important}}
@media (max-width:380px){html body .products .prod:not(#ct-x){grid-template-columns:72px minmax(0,1fr)!important}}

/* shop: Amazon buttons stay on one line and keep clear of the card edge */
@media (min-width:901px){html body .products .btn--amz:not(#ct-x):not(#ct-y){white-space:nowrap!important;font-size:.9rem!important;padding:0 14px!important}}
@media (max-width:600px){html body .products .prod:not(#ct-x){grid-template-columns:84px minmax(0,1fr)!important;column-gap:12px!important}}
@media (max-width:380px){html body .products .prod:not(#ct-x){grid-template-columns:64px minmax(0,1fr)!important;column-gap:12px!important}}

/* larger text on phones: the holiday hat keeps its own size (it was being stretched to the logo's size) */
html[data-text] header .brand img.egg-bhat:not(#ct-x){width:20px!important;height:auto!important}
/* Learn page on phones: every chapter link is a full 44px tap target */
@media (max-width:700px){
  .chapter ul li:not(#ct-x){margin:0}
  .chapter ul li a:not(#ct-x){display:flex;align-items:center;min-height:44px;padding:4px 0}
  .chapter h2 a:not(#ct-x){display:inline-flex;align-items:center;min-height:44px}
}

/* larger text on small phones: nothing may push the page sideways */
@media (max-width:400px){
  html[data-text=l] .chapter header i:not(#ct-x),html[data-text=xl] .chapter header i:not(#ct-x){display:none}
  html[data-text=l] .chapter header>span:not(#ct-x),html[data-text=xl] .chapter header>span:not(#ct-x){margin-left:auto}
}
@media (max-width:340px){html[data-text=l] .chapter h2:not(#ct-x),html[data-text=xl] .chapter h2:not(#ct-x){font-size:22px}}
/* shop cards: when the label can't fit beside the picture, the Amazon button takes the full row */
@media (max-width:600px){
  html[data-text=l] body .products .prod>img:not(#ct-x),html[data-text=l] body .products .prod__link>img:not(#ct-x),html[data-text=xl] body .products .prod>img:not(#ct-x),html[data-text=xl] body .products .prod__link>img:not(#ct-x){grid-row:span 2}
  html[data-text=l] body .products .prod .btn--amz:not(#ct-x):not(#ct-y),html[data-text=xl] body .products .prod .btn--amz:not(#ct-x):not(#ct-y){grid-column:1/-1;justify-self:stretch;margin-top:10px!important}
}
@media (max-width:340px){
  html body .products .prod__link>img:not(#ct-x){grid-row:span 2}
  html body .products .prod .btn--amz:not(#ct-x):not(#ct-y){grid-column:1/-1;justify-self:stretch;margin-top:10px!important}
}
@media (max-width:340px){.rbar:not(#ct-x){flex-wrap:wrap;justify-content:center;border-radius:26px;row-gap:4px}}
@media (max-width:340px){
  html[data-text=l] body .chip:not(#ct-x):not(#ct-y),html[data-text=xl] body .chip:not(#ct-x):not(#ct-y),html[data-text=l] body .btn--sm:not(#ct-x),html[data-text=xl] body .btn--sm:not(#ct-x){font-size:13px!important;padding-inline:10px!important}
}
/* very narrow phones: the header fits at every text size */
@media (max-width:350px){
  header .hdr__in:not(#ct-x){width:calc(100% - 24px);gap:6px}
  header .brand:not(#ct-x){gap:8px;min-width:0}
  header .brand>img:not(.egg-bhat):not(#ct-x){width:38px!important;height:38px!important}
  header .brand>span:not(#ct-x){font-size:15px!important;white-space:nowrap}
  header .hdr__tools:not(#ct-x){gap:4px}
  header .hdr__tools :is(.icon-btn,.searchbtn):not(#ct-x):not(#ct-y){width:40px;height:40px;min-width:40px}
}
@media (max-width:350px){.toc-list a>span:not(#ct-x){white-space:normal;text-align:right;min-width:0}}

/* home doors: the site's own illustrated marks instead of line icons */
.hero .door:not(#ct-x)::before{width:54px;height:54px;border-radius:0;margin-bottom:6px;box-shadow:none;background:var(--dimg) center/contain no-repeat;filter:drop-shadow(0 6px 6px rgba(6,36,72,.16))}
.hero .door--hot::before{--dimg:url(img/ct-hub-acute-v2-128.webp)}
.hero .door:nth-child(2)::before{--dimg:url(img/ct-hub-start-v1-128.webp)}
.hero .door:nth-child(3)::before{--dimg:url(img/ct-hub-research-v2-128.webp)}
html[data-light=low] .hero .door:not(#ct-x)::before{box-shadow:none;filter:drop-shadow(0 6px 8px rgba(0,0,0,.4))}
@media (max-width:700px){.hero .door:not(#ct-x)::before{width:44px;height:44px;margin:0}.hero .door:not(#ct-x){grid-template-columns:44px 1fr}}

/* ---------- Tools: one level of boxes. The page frame and the app card were wrapping the question cards. ---------- */
html body .toolapp:not(#ct-x):not(#ct-y){background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:6px 0 40px!important}
html body .toolapp .ctc:not(#ct-x):not(#ct-y){background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:0!important}
html body .toolapp .ctc::before,html body .toolapp .ctc::after{display:none!important}
html body .ctc .ctc-pre:not(#ct-x):not(#ct-y){background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:0 0 22px!important}
html body .ctc .ctc-q:not(#ct-x):not(#ct-y),html body .ctc .ctc-res:not(#ct-x):not(#ct-y){box-shadow:var(--m-shadow)!important;border-color:transparent!important}
@media (max-width:700px){
  html body .ctc .ctc-q:not(#ct-x):not(#ct-y){padding:16px 16px 14px!important}
  html body .ctc .ctc-res:not(#ct-x):not(#ct-y){padding:20px 16px!important}
}
/* text fields were falling back to a monospace font for placeholders and dates */
html body .ctc :is(input.ctc-text,textarea.ctc-text,input[type=date]),html body .ctc :is(input.ctc-text,textarea.ctc-text)::placeholder{font-family:var(--font,"DM Sans",system-ui,sans-serif)!important}
/* night: progress track and question numbers need their own colors once the frame is gone */
html[data-light=low] .ctc .ctc-prog__bar{background:rgba(255,255,255,.12)!important}
html[data-light=low] .ctc .ctc-num{background:rgba(238,154,171,.16)!important;color:#ee9aab!important}

/* ---------- Home doors: icons line up. Phones: same spot in every card, centered top to bottom. Desktop: icon and text centered. ---------- */
html body .hero .door:not(#ct-x)::before{background-color:transparent!important;box-shadow:none!important}
.hero .door:nth-child(2)::before{background-size:92% auto!important}
@media (max-width:700px){
  html body .hero .door:not(#ct-x){grid-template-columns:48px 1fr;column-gap:16px;align-items:center}
  html body .hero .door:not(#ct-x)::before{width:48px;height:48px;margin:0;align-self:center;grid-row:1/span 3}
}
@media (min-width:701px){
  html body .hero .door:not(#ct-x){align-items:center;text-align:center}
  html body .hero .door:not(#ct-x)::before{align-self:center;margin:0 auto 10px}
  html body .hero .door:not(#ct-x) :is(b,span,i){text-align:center}
}
html body .hero .door--hot:not(#ct-x)::before{filter:drop-shadow(0 4px 6px rgba(0,0,0,.18))!important}
/* homepage topic list: one column on small tablets at the larger text sizes, so it never pushes the page sideways */
@media (max-width:860px){html:is([data-text=l],[data-text=xl]) .toc-list:not(#ct-x){columns:1}}
