/* =====================================================================
   Modern layer (v3). Calm and clean like the 3D art: no borders or outline
   rings anywhere, frosted surfaces over a soft pastel light, solid capsule
   buttons with soft colored shadows, tinted fills instead of outlines.
   Loaded last. Night mode handled with html[data-light=low].
   ===================================================================== */
:root{
  --m-surface:rgba(255,255,255,.68);
  --m-tint:rgba(6,36,72,.055);          /* secondary buttons, chips, inputs */
  --m-tint-h:rgba(6,36,72,.095);
  --m-blur:saturate(180%) blur(24px);
  --m-shadow:0 1px 2px rgba(6,36,72,.03),0 18px 44px -26px rgba(6,36,72,.20);
  --m-shadow-h:0 2px 4px rgba(6,36,72,.04),0 26px 56px -28px rgba(6,36,72,.28);
  --navy-1:#0d2f5a;--coral-1:#c4566b;--r-l:28px;--r-xl:36px;
  --shadow-1:var(--m-shadow);--shadow-2:var(--m-shadow-h);
}
html[data-light=low]{
  --m-surface:rgba(30,44,66,.6);--m-tint:rgba(255,255,255,.07);--m-tint-h:rgba(255,255,255,.12);
  --m-shadow:0 18px 44px -26px rgba(0,0,0,.7);--m-shadow-h:0 26px 56px -28px rgba(0,0,0,.8);
}

/* ---------- ambient light ---------- */
body{background:
  radial-gradient(70vw 70vh at -5% -5%,rgba(254,190,200,.55),transparent 70%),
  radial-gradient(65vw 75vh at 105% 25%,rgba(150,208,232,.45),transparent 70%),
  radial-gradient(80vw 60vh at 40% 115%,rgba(214,204,246,.35),transparent 70%),
  var(--bg)!important;background-attachment:fixed!important}
html[data-light=low] body{background:
  radial-gradient(70vw 70vh at -5% -5%,rgba(120,60,90,.20),transparent 70%),
  radial-gradient(65vw 75vh at 105% 25%,rgba(40,90,130,.24),transparent 70%),var(--bg)!important}
.sec--tint{background:transparent!important}

/* ---------- no borders, anywhere they used to frame things ---------- */
:is(.card,.toolcard,.door,.newest__in,.signupband,.nlpop,.igtile,.shelf,.band,.hdr,.btn,.ct-btn,.ctc-btn,.ctc-go,.ct-amzbtn,.pdx__btn,.buybar__btn,.made__btn,.readsci,.hsf-visit__go,.hsf-nearme-btn,.hsf-clear,.hsf-more,.ctd-btn,.cta-btn,.attackbtn,.chip,.icon-btn,.searchbtn,.signup__row input,input[type=email],input[type=text],input[type=search],input[type=number],textarea,select){
  border-color:transparent!important;outline:0}
.toc-list a,.chapter,.shelf__p,.ftr__bottom{border-color:transparent!important}
.toc-list i,.chapter header i{border-bottom-color:rgba(6,36,72,.13)!important}
html[data-light=low] :is(.toc-list i,.chapter header i){border-bottom-color:rgba(255,255,255,.12)!important}

/* ---------- surfaces: frosted, borderless ---------- */
:is(.card,.toolcard,.door:not(.door--hot),.newest__in,.signupband,.igtile,.shelf){
  background:var(--m-surface)!important;-webkit-backdrop-filter:var(--m-blur);backdrop-filter:var(--m-blur);
  box-shadow:var(--m-shadow)!important}
:is(.card,.toolcard,.door,.newest__in,.igtile):hover{box-shadow:var(--m-shadow-h)!important}
:is(.card,.toolcard,.newest__in,.signupband,.shelf){border-radius:var(--r-l)!important}
.door{border-radius:24px!important}
.door--hot{background:linear-gradient(160deg,#123d70,#062448)!important;box-shadow:0 18px 40px -20px rgba(6,36,72,.7)!important}
.band{border-radius:var(--r-xl)!important;box-shadow:none!important}
.band--pink{background:linear-gradient(140deg,rgba(255,228,233,.85),rgba(255,210,219,.7))!important}
.band--blue{background:linear-gradient(140deg,rgba(232,246,251,.88),rgba(205,234,245,.72))!important}
.band--navy{background:linear-gradient(150deg,#123d70,#062448 70%)!important}
html[data-light=low] :is(.band--pink,.band--blue){background:rgba(30,44,66,.55)!important}
html[data-light=low] .band--navy{background:linear-gradient(150deg,#22355a,#16233a)!important}
html[data-light=low] .door--hot{background:linear-gradient(160deg,#33496c,#24354f)!important}

/* ---------- header ---------- */
.hdr{background:rgba(255,250,250,.66)!important;-webkit-backdrop-filter:saturate(180%) blur(22px);backdrop-filter:saturate(180%) blur(22px);box-shadow:none!important}
html[data-light=low] .hdr{background:rgba(12,21,34,.7)!important}

/* ---------- buttons: solid capsules, soft colored shadow, no outlines ---------- */
:is(.btn,.ct-btn,.ctc-btn,.ctc-go,.ct-amzbtn,.pdx__btn,.buybar__btn,.made__btn,.readsci,.hsf-visit__go,.hsf-nearme-btn,.hsf-clear,.hsf-more,.ctd-btn,.cta-btn,.attackbtn,.chip,.icon-btn,.searchbtn){
  transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s,background-color .18s,color .18s!important;background-image:none!important}
/* primary navy */
:is(.btn:not([class*="btn--"]),.btn--primary,.ctc-go,.hsf-visit__go,.ctc-btn:not(.alt):not(.coral),.attackbtn,.chip[aria-pressed=true],.chip[aria-current]){
  background-color:var(--navy-1)!important;color:#fff!important;box-shadow:0 8px 20px -10px rgba(6,36,72,.55)!important}
:is(.btn:not([class*="btn--"]),.btn--primary,.ctc-go,.hsf-visit__go,.ctc-btn:not(.alt):not(.coral),.attackbtn):hover{background-color:#17457f!important;box-shadow:0 12px 26px -12px rgba(6,36,72,.6)!important}
/* coral */
:is(.btn--coral,.ctc-btn.coral){background-color:var(--coral-1)!important;color:#fff!important;box-shadow:0 8px 20px -10px rgba(196,86,107,.6)!important}
:is(.btn--coral,.ctc-btn.coral):hover{background-color:#d0647a!important}
/* Amazon */
:is(.btn--amz,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn){background-color:#ffd23f!important;color:#062448!important;box-shadow:0 8px 20px -10px rgba(210,150,0,.55)!important}
:is(.btn--amz,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn):hover{background-color:#ffda5c!important}
/* secondary: tinted fill, no outline */
:is(.btn--ghost,.btn--white,.ctc-btn.alt,.readsci,.ct-btn,.hsf-clear,.hsf-nearme-btn,.hsf-more,.pdx__btn--alt,.chip:not([aria-pressed=true]):not([aria-current]),.icon-btn,.searchbtn){
  background-color:var(--m-tint)!important;color:var(--btn-navy,#062448)!important;box-shadow:none!important}
:is(.btn--ghost,.btn--white,.ctc-btn.alt,.readsci,.ct-btn,.hsf-clear,.hsf-nearme-btn,.hsf-more,.pdx__btn--alt,.chip:not([aria-pressed=true]):not([aria-current]),.icon-btn,.searchbtn):hover{background-color:var(--m-tint-h)!important}
/* secondary on colored or white surfaces: white fill instead of tint */
:is(.band--pink,.band--blue,.signupband,.newest__in,.nlpop) :is(.btn--ghost,.btn--white){background-color:rgba(255,255,255,.8)!important}
:is(.band--navy,.door--hot,.ctd-dark,.adlg,.ftr) :is(.btn--ghost,.btn--white){background-color:rgba(255,255,255,.14)!important;color:#fff!important}
.band--navy .btn--white{background-color:#fff!important;color:#062448!important}
/* motion */
:is(.btn,.ct-btn,.ctc-btn,.ctc-go,.ct-amzbtn,.pdx__btn,.buybar__btn,.made__btn,.readsci,.attackbtn,.chip,.icon-btn,.searchbtn):hover{transform:translateY(-1px)}
:is(.btn,.ct-btn,.ctc-btn,.ctc-go,.ct-amzbtn,.pdx__btn,.buybar__btn,.made__btn,.readsci,.attackbtn,.chip,.icon-btn,.searchbtn):active{transform:scale(.97)}
:is(.btn,.ct-btn,.ctc-btn,.ctc-go,.ct-amzbtn,.pdx__btn,.buybar__btn,.made__btn,.readsci,.attackbtn,.chip,.icon-btn,.searchbtn):focus-visible{outline:3px solid rgba(89,165,191,.7)!important;outline-offset:2px}
.icon-btn{border-radius:50%!important}
.searchbtn{border-radius:999px!important}
/* night */
html[data-light=low] :is(.btn:not([class*="btn--"]),.btn--primary,.ctc-go,.attackbtn){background-color:#3a5274!important}
html[data-light=low] :is(.chip[aria-pressed=true],.chip[aria-current]){background-color:#59a5bf!important;color:#08182c!important}
html[data-light=low] :is(.btn--coral,.ctc-btn.coral){background-color:#a8455a!important}
html[data-light=low] :is(.btn--amz,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn){background-color:#c9a434!important}
html[data-light=low] :is(.btn--ghost,.btn--white,.ctc-btn.alt,.readsci,.ct-btn,.hsf-clear,.hsf-nearme-btn,.hsf-more,.pdx__btn--alt,.chip:not([aria-pressed=true]):not([aria-current]),.icon-btn,.searchbtn){color:#e9dfe1!important}

/* ---------- inputs: tinted wells ---------- */
:is(.signup__row input,input[type=email],input[type=text],input[type=search],input[type=number],textarea,select):not(.sdlg input){
  background-color:var(--m-tint)!important;background-image:none!important;box-shadow:none!important}
:is(.signupband,.nlpop,.band--pink,.band--blue) :is(.signup__row input,input[type=email]){background-color:rgba(255,255,255,.85)!important}
:is(.signup__row input,input[type=email],input[type=text],input[type=search],input[type=number],textarea):not(.sdlg input):focus{box-shadow:0 0 0 3px rgba(89,165,191,.35)!important}
html[data-light=low] :is(.signupband,.nlpop) :is(.signup__row input,input[type=email]){background-color:rgba(255,255,255,.08)!important}

/* ---------- lists: spacing and soft hover instead of rules and dotted leaders ---------- */
.toc-list a{border-radius:14px;padding-left:10px!important;padding-right:10px!important;transition:background-color .15s}
.toc-list a:hover{background:none}

/* ---------- newsletter popup ---------- */
.nlpop{border-radius:30px!important;padding:24px 24px 14px!important;background:rgba(255,255,255,.8)!important;
  -webkit-backdrop-filter:saturate(190%) blur(26px);backdrop-filter:saturate(190%) blur(26px);box-shadow:0 30px 70px -28px rgba(6,36,72,.45)!important}
.nlpop::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:radial-gradient(80% 60% at 100% 0%,rgba(150,208,232,.35),transparent 60%),radial-gradient(70% 60% at 0% 100%,rgba(254,190,200,.4),transparent 60%)}
.nlpop__top img{width:64px;height:64px}
.nlpop__x{border-radius:50%!important;background:var(--m-tint)!important}
html[data-light=low] .nlpop{background:rgba(24,36,54,.88)!important}
html[data-light=low] .nlpop::before{opacity:.25}

@media (prefers-reduced-transparency:reduce){:is(.card,.toolcard,.door,.newest__in,.signupband,.nlpop,.hdr,.shelf){-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:var(--surface)!important}}
@media (prefers-reduced-motion:reduce){:is(.btn,.chip,.attackbtn,.icon-btn,.searchbtn):hover{transform:none}}

/* search dialog: one clean frosted sheet, bare input */
.sdlg input{background:none!important;box-shadow:none!important;border:0!important;outline:none!important}
.sdlg__box{border-radius:30px!important;border:0!important;background:rgba(255,255,255,.86)!important;-webkit-backdrop-filter:saturate(190%) blur(28px);backdrop-filter:saturate(190%) blur(28px);box-shadow:0 40px 90px -30px rgba(6,36,72,.5)!important}
html[data-light=low] .sdlg__box{background:rgba(22,33,50,.9)!important}
.sdlg__in{border-bottom-color:rgba(6,36,72,.06)!important}
html[data-light=low] .sdlg__in{border-bottom-color:rgba(255,255,255,.06)!important}
.sdlg__in button,.sdlg .icon-btn{border:0!important;border-radius:50%!important;background:var(--m-tint)!important;box-shadow:none!important}

/* context buttons need more weight than the shared secondary rule */
html body :is(.btn,.ct-btn,.ctc-btn,.readsci,.chip,.pdx__btn,.hsf-clear,.hsf-more,.hsf-nearme-btn).btn,
html body :is(.btn,.ct-btn,.ctc-btn,.readsci,.chip,.pdx__btn,.hsf-clear,.hsf-more,.hsf-nearme-btn){border-color:transparent!important}
html body :is(.band--navy,.door--hot,.ctd-dark,.adlg,.ftr) :is(.btn--ghost,.btn--white).btn.btn{background-color:rgba(255,255,255,.16)!important;color:#fff!important;box-shadow:none!important}
html body .band--navy .btn--white.btn.btn{background-color:#fff!important;color:#062448!important;box-shadow:0 8px 20px -10px rgba(0,0,0,.45)!important}
html body :is(.band--navy,.door--hot,.ctd-dark,.adlg,.ftr) :is(.btn--ghost,.btn--white).btn.btn:hover{background-color:rgba(255,255,255,.26)!important}
html body .band--navy .btn--white.btn.btn:hover{background-color:#f1f4f8!important}
html body :is(.band--pink,.band--blue,.signupband,.newest__in,.nlpop) :is(.btn--ghost,.btn--white).btn.btn{background-color:rgba(255,255,255,.82)!important}
html[data-light=low] body :is(.band--pink,.band--blue,.signupband,.newest__in,.nlpop) :is(.btn--ghost,.btn--white).btn.btn{background-color:rgba(255,255,255,.12)!important;color:#f2e8ea!important}
html[data-light=low] body :is(.band--pink,.band--blue,.signupband,.newest__in,.nlpop) :is(.btn--ghost,.btn--white).btn.btn:hover{background-color:rgba(255,255,255,.2)!important}
/* no borders in any state, including hover and focus */
html body :is(.btn,.ct-btn,.ctc-btn,.ctc-go,.ct-amzbtn,.pdx__btn,.buybar__btn,.made__btn,.readsci,.hsf-visit__go,.hsf-nearme-btn,.hsf-clear,.hsf-more,.ctd-btn,.cta-btn,.attackbtn,.chip,.icon-btn,.searchbtn,.card,.toolcard,.door,.newest__in,.igtile,.signupband,.shelf,input,textarea,select):is(:hover,:focus,:active,:focus-within,[class]){border-color:transparent!important}
/* fields on navy (footer, dark panels) */
html body :is(.ftr,.band--navy,.door--hot,.adlg) :is(input[type=email],input[type=text],.signup__row input){background-color:rgba(255,255,255,.12)!important;color:#fff!important}
html body :is(.ftr,.band--navy,.door--hot,.adlg) :is(input[type=email],input[type=text],.signup__row input)::placeholder{color:rgba(255,255,255,.62)!important}
/* final word on borders: id-weight selector so no older day or night rule can bring one back */
html body :is(.btn,.ct-btn,.ctc-btn,.ctc-go,.ct-amzbtn,.pdx__btn,.buybar__btn,.made__btn,.readsci,.hsf-visit__go,.hsf-nearme-btn,.hsf-clear,.hsf-more,.ctd-btn,.cta-btn,.attackbtn,.chip,.icon-btn,.searchbtn,.pushbtn,.card,.toolcard,.door,.newest__in,.igtile,.signupband,.shelf,.band,.nlpop,.signup__row input):not(#ct-x):not(#ct-y){border-style:none!important;border-color:transparent!important}
html body #hsf-root .hsf-search #hsf-clear.hsf-clear.hsf-clear,html body #hsf-root #hsf-nearme.hsf-nearme-btn.hsf-nearme-btn{border:0!important}
/* hover and press: no brightness filters; Amazon gold deepens slightly instead of going neon */
html body :is(.btn,.ct-btn,.ctc-btn,.ctc-go,.ct-amzbtn,.pdx__btn,.buybar__btn,.made__btn,.readsci,.attackbtn,.chip,.icon-btn,.searchbtn):is(:hover,:active,:focus){filter:none!important}
html body :is(.btn--amz,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn):is(:hover,:focus-visible){background-color:#f4c430!important}
html body :is(.btn--amz,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn):active{background-color:#e8b923!important}
html[data-light=low] body :is(.btn--amz,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn):is(:hover,:active){background-color:#b8952c!important}

/* ---------- topic list leaders sit on the text's middle ---------- */
.toc-list i,.chapter header i{transform:none!important;align-self:center;height:0}

/* ---------- legacy pages (products, course, daily science, glossary, finder, shortage) ---------- */
/* cards and panels: frosted, borderless */
html body :is(.rev,.ctch__card,.card2,.cta-card,.cta-avoid,.nolav,.ctlab__panel,.ctlab__card,.ctc-card,.ctc-warn,.cte-card,.cte-cta,.ctsh-chart,.ctsh-cta,.ctsh-tw,.hsf-search-card,.hsf-visit,.hsf-disclaimer,.hsf-card,.hsf-note,.hsf-dir,.hsf-faq,.hsf-seo-intro,.tims-aside__box,.ct-card,.ct-media-card,.ct-daily,.ct-morelink,.ct-backlink,.appx,.author,.pdp__stage,.hook,.ed,.tool,.lead,.fw,.pc,.sp,.l,.stb,.sec.ctlab__card,div.sec,.r.c1,.r.c2,.r.c3,.cmp-scroll):not(#ct-x):not(#ct-y){
  border-style:none!important;border-color:transparent!important;
  background-color:var(--m-surface)!important;-webkit-backdrop-filter:var(--m-blur);backdrop-filter:var(--m-blur);
  box-shadow:var(--m-shadow)!important;border-radius:24px!important}
/* accordions: soft rows, no outline */
html body main details:not(#ct-x):not(#ct-y){border-style:none!important;background-color:var(--m-surface)!important;box-shadow:var(--m-shadow)!important;border-radius:20px!important}
html body main summary.tocs:not(#ct-x){border-style:none!important}
/* small chips and filters: tinted, no outline */
html body :is(.hsf-badge,.g,.pdp__th,.hsf-recfilter,.hsf-ptfilter,.hsf-ofpfilter,.hsf-ucnsfilter):not(#ct-x):not(#ct-y){border-style:none!important;background-color:var(--m-tint)!important;box-shadow:none!important}
html body .pdp__th.is-on:not(#ct-x),html body .pdp__th[aria-selected=true]:not(#ct-x),html body .pdp__th[aria-current]:not(#ct-x){box-shadow:0 0 0 2px #59a5bf!important}
html body img.av:not(#ct-x){border-style:none!important;box-shadow:0 6px 14px -8px rgba(6,36,72,.4)}
html body #hsf-map:not(#ct-x){border-style:none!important;border-radius:24px!important;box-shadow:var(--m-shadow)!important}
html body main a:not([class]):not(#ct-x){border-color:currentColor}
html body .ctlab__t:not(#ct-x){border-collapse:collapse}
html[data-light=low] body main details:not(#ct-x){background-color:rgba(30,44,66,.6)!important}

/* specialist quotes on product pages: bigger and easier to read */
html body .revlbl:not(#ct-x){font-size:1rem!important;letter-spacing:.02em;margin-bottom:12px!important}
html body .rev:not(#ct-x){padding:26px 26px 22px!important}
html body .rev p:not(#ct-x){font-size:1.06rem!important;line-height:1.55!important;font-style:normal!important;color:var(--navy,#062448)!important}
html body .rev .qm:not(#ct-x){font-size:3.2rem!important;line-height:.6!important;display:block;height:26px;color:#e08b9c!important;font-family:Georgia,serif}
html body .rev .a:not(#ct-x){font-size:.98rem!important}
html body .rev .a span:not(#ct-x){font-size:.86rem!important}
html[data-light=low] body .rev p:not(#ct-x){color:#e9dfe1!important}

/* product shelf: slow, smooth lift with the shadow easing out underneath */
.shelf__item img{transition:transform .8s cubic-bezier(.22,1,.36,1)!important;will-change:transform}
.shelf__item::after{transition:transform .8s cubic-bezier(.22,1,.36,1),opacity .8s cubic-bezier(.22,1,.36,1)}
:is(.shelf__item:hover,.shelf__p:hover .shelf__item) img{transform:translateY(-10px) rotate(-1.5deg)!important}
:is(.shelf__item:hover,.shelf__p:hover .shelf__item)::after{transform:scale(.8);opacity:.6}
@media (prefers-reduced-motion:reduce){.shelf__item img,.shelf__item::after{transition:none!important}}

/* topic leaders: the coral line visibly sweeps left to right */
.toc-list i::after,.chapter header i::after{transition:transform .85s cubic-bezier(.65,0,.35,1)!important;transform-origin:left center!important}

/* lamp tip sits above the lamp on every screen */
html body .hero__art .hs-lamp::after{left:-2%!important;bottom:calc(100% + 10px)!important}
html body .hero__art .hs-lamp:is(.is-tip,:focus-visible)::after{transform:translate(0,0) scale(1) rotate(var(--tiprot,-2deg))!important}
html body .hero__art .hs-lamp::after{left:0!important;transform-origin:20% 120%!important}
/* lamp tip: just above the lamp shade. On touch screens the tap area is larger than the lamp, so offset into it */
html body .hero__art .hs-lamp::after{left:0!important;bottom:calc(100% + 8px)!important}
@media (max-width:800px),(pointer:coarse){html body .hero__art .hs-lamp::after{left:29%!important;bottom:calc(80% + 8px)!important}}
/* Amazon buttons: one consistent gold with navy text in every state and on every page */
html body :is(.btn--amz,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn):not(#ct-x):not(#ct-y){color:#062448!important;-webkit-text-fill-color:#062448;background-color:#ffd23f!important;background-image:none!important;text-shadow:none!important}
html body :is(.btn--amz,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn):not(#ct-x):not(#ct-y):is(:hover,:focus-visible){background-color:#f4c430!important;color:#062448!important}
html body :is(.btn--amz,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn):not(#ct-x):not(#ct-y) *{color:inherit!important;-webkit-text-fill-color:inherit}
html[data-light=low] body :is(.btn--amz,.pdx__btn:not(.pdx__btn--alt),.buybar__btn,.ct-amzbtn,.made__btn):not(#ct-x):not(#ct-y){background-color:#c9a434!important}
/* Today in Migraine Science header art: fits its own column, never over the headline */
html body.page-id-653 .ctd-hero img.ctd-hero__logo.ct-hero-skip{width:100%!important;max-width:100%!important;height:100%!important;object-fit:contain}
@media (max-width:700px){html body.page-id-653 .ctd-hero__in{grid-template-columns:minmax(0,1fr) 92px!important;column-gap:14px!important}
  html body.page-id-653 .ctd-hero__stage{width:92px!important;height:100px!important}}
