/* 1.35.110 — cortisol article: editorial parity with the approved prolactin article.
   Only article-scoped rules; no global changes, no medical content changes. */
.cort-page{
 --ct-ink:#24322c;--ct-muted:#667069;--ct-olive:#6f7d58;--ct-olive-dark:#526044;
 --ct-line:#ded9ce;--ct-cream:#f7f3ea;--ct-card:#fffdf8;--ct-sage:#e7eee5;
 --ct-gold:#c49d66;
 background:var(--ct-cream);color:var(--ct-ink);
 overflow:visible; /* important: sticky must not have a scrolling ancestor */
}
.cort-page :is(h1,h2,h3){color:var(--ct-ink);letter-spacing:-.035em}
.cort-page p{color:#4f5b54}
.cort-page .cort-container{width:min(1240px,calc(100% - 40px));margin-inline:auto}
/* Hero matches the reference article: spacious editorial typography and a separate image layer. */
.cort-page .cort-hero{min-height:620px;background:#f7f2e9;border-bottom:1px solid rgba(111,125,88,.18)}
.cort-page .cort-hero::before{
 background-image:linear-gradient(90deg,rgba(248,243,234,.99) 0%,rgba(248,243,234,.97) 37%,rgba(248,243,234,.79) 49%,rgba(248,243,234,.22) 66%,rgba(248,243,234,0) 77%),var(--cort-hero-image);
 background-size:100% 100%,auto 100%;background-position:center,right center;
}
.cort-page .cort-hero__inside{min-height:620px;padding:26px 0 56px}
.cort-page .cort-crumbs{font-size:.85rem;color:#778178}
.cort-page .cort-hero__text{padding-top:66px;max-width:660px}
.cort-page .cort-hero h1{font-size:clamp(2.6rem,4.2vw,4.25rem);line-height:1.055;font-weight:500;letter-spacing:-.045em;margin:17px 0 23px}
.cort-page .cort-hero__text>p{font-size:1.12rem;line-height:1.69;color:#4d5a52}
.cort-page .cort-eyebrow,.cort-page .cort-heading>span,.cort-page .cort-panel-label{font-size:.73rem;letter-spacing:.14em;color:#526044}
.cort-page .cort-hero__links>a{border-color:rgba(82,96,68,.2);background:rgba(255,253,248,.72);border-radius:999px;color:#526044}
.cort-page .cort-hero__links>a:hover{background:#e7eee5}
/* Main column: match the reference content width and section rhythm. */
.cort-page .cort-shell{
 display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:44px;
 align-items:start;padding:56px 0 90px;
 overflow:visible;min-height:0;
}
.cort-page .cort-main{min-width:0;overflow:visible}
.cort-page .cort-section{padding:44px 0 48px;border-color:var(--ct-line);scroll-margin-top:104px}
.cort-page .cort-section:first-child{padding-top:0}
.cort-page .cort-heading{margin-bottom:23px}
.cort-page .cort-heading h2{font-size:clamp(1.95rem,3vw,2.85rem);font-weight:500;line-height:1.13;margin-top:9px}
.cort-page .cort-intro{font-size:1.08rem;line-height:1.78;color:#4f5b54!important}
/* Unified paper, borders, shadows and radii of semantic illustrations. */
.cort-page :is(.cort-overview__facts>div,.cort-functions article,.cort-test-grid article,.cort-scenarios article,.cort-low__type,.cort-symptoms__list>div,.cort-timeline li,.cort-related a,.cort-faq details,.cort-sources li,.cort-route__results){background-color:var(--ct-card);border-color:var(--ct-line);border-radius:24px;box-shadow:0 12px 35px rgba(54,62,55,.045)}
.cort-page :is(.cort-overview__focus,.cort-axis,.cort-rhythm__chart,.cort-tabs,.cort-deep,.cort-contrast>div,.cort-symptoms__figure,.cort-route fieldset){border-color:var(--ct-line);border-radius:26px}
.cort-page .cort-overview__focus{background:linear-gradient(145deg,#667658,#526044);border:0;color:#fffdf8;box-shadow:0 18px 38px rgba(53,68,49,.13)}
.cort-page .cort-overview__focus :is(h3,p,span){color:#fffdf8}
.cort-page .cort-overview__focus>a{color:#fff;border-color:#e6e9dc}
.cort-page .cort-overview__focus::after{border-color:rgba(255,255,255,.07)}
.cort-page .cort-overview__facts>div{padding:18px}
.cort-page .cort-note{background:#edf1e7;border-color:#d7ddcf}
.cort-page .cort-scenarios article:nth-child(2){background:#f4f0e7}
.cort-page .cort-scenarios article:nth-child(3),.cort-page .cort-low__type:nth-child(2){background:#e7eee5}
.cort-page .cort-urgent{border-color:#e5cfc7;background:#f4e8e3}
.cort-page .cort-urgent strong{color:#814d41}
.cort-page .cort-tabs{background:var(--ct-card)}
.cort-page .cort-tablist{background:#e7ece1;border-color:var(--ct-line)}
.cort-page .cort-tablist button[aria-selected=true]{background:var(--ct-card);color:#526044}
/* Sidebar: same card hierarchy as the prolactin reference. Sticky applies to the
   grid item for the whole long article; ONLY the contents list scrolls. */
.cort-page .cort-aside{
 position:sticky;top:86px;align-self:start;display:grid;grid-auto-rows:max-content;gap:14px;
 overflow:visible;overflow-x:visible;overflow-y:visible;max-height:none;height:auto;
 min-width:0;padding:0;margin:0;
}
.cort-page .cort-aside__card{
 min-width:0;padding:20px 21px;background:rgba(255,253,248,.96);
 border:1px solid var(--ct-line);border-radius:24px;
 box-shadow:0 12px 35px rgba(54,62,55,.06);
}
.cort-page .cort-aside__eyebrow{
 display:block;color:#526044;font-size:.72rem;line-height:1.4;
 font-weight:800;letter-spacing:.14em;text-transform:uppercase;
}
.cort-page .cort-aside__card h2{
 margin:7px 0 14px;color:#3b4b3d;
 font:500 1.25rem/1.2 Georgia,'Times New Roman',serif;
 letter-spacing:-.015em;
}
.cort-page .cort-aside__toc{padding:16px 18px 18px}
.cort-page .cort-aside__toc h2{font-size:1.18rem;margin:4px 0 10px}
.cort-page .cort-aside__toc nav{
 display:grid;gap:0;max-height:154px;overflow-y:auto;overflow-x:hidden;
 overscroll-behavior-y:contain;scrollbar-width:thin;
 scrollbar-color:#c2ccbc transparent;padding-right:4px;
}
.cort-page .cort-aside__toc nav a{
 display:block;text-decoration:none;font-size:.81rem;line-height:1.3;
 padding:5px 9px 5px 11px;border-radius:0 9px 9px 0;
 border-left:2px solid #dddccf;color:#697169;overflow-wrap:break-word;
}
.cort-page .cort-aside__toc nav a:hover,.cort-page .cort-aside__toc nav a.is-active{
 background:#edf1e6;border-left-color:#6f7d58;color:#526044;
}
.cort-page .cort-aside__toc nav a.is-active{font-weight:700}
.cort-page .cort-aside__author{padding:19px 20px 20px;background:linear-gradient(155deg,#fffdf8,#f8f6ef)}
.cort-page .cort-aside__author-head{display:grid;grid-template-columns:48px minmax(0,1fr);gap:15px;align-items:center}
.cort-page .cort-aside__shield{
 width:48px;height:48px;display:grid;place-items:center;
 background:transparent;border:0;border-radius:0;box-shadow:none;color:#667b59;
}
.cort-page .cort-aside__shield svg{display:block;width:42px;height:42px;max-width:none}
.cort-page .cort-aside__author-head h2{font-size:1.1rem;line-height:1.19;margin:5px 0 0;overflow-wrap:break-word}
.cort-page .cort-aside__author-person{
 display:grid;gap:2px;padding:13px 0 10px;margin-top:15px;
 border-top:1px solid var(--ct-line);border-bottom:0;
}
.cort-page .cort-aside__author-person strong{font-size:1rem;line-height:1.35;color:#4a5842}
.cort-page .cort-aside__author-person small{font-size:.89rem;line-height:1.45;color:#70786d}
.cort-page .cort-aside__author-date{padding:7px 0 0;font-size:.82rem;line-height:1.45;color:#858b80}
.cort-page .cort-aside__helper{background:linear-gradient(150deg,#e7ece1,#f3ece5)}
.cort-page .cort-aside__helper h2{font-size:1.17rem;margin:7px 0 12px}
.cort-page .cort-aside__helper p{font-size:.86rem;line-height:1.6;margin:0;color:#59635b}
.cort-page .cort-aside__related a{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:10px 0;border-top:1px solid var(--ct-line);color:#425744;font-size:.84rem;line-height:1.45;text-decoration:none;font-weight:700}
.cort-page .cort-aside__related a:hover{color:#526044}
@media (max-width:1140px) and (min-width:861px){
 .cort-page .cort-container{width:calc(100% - 46px)}
 .cort-page .cort-shell{grid-template-columns:minmax(0,1fr) 260px;gap:24px}
 .cort-page .cort-hero h1{font-size:clamp(2.3rem,4vw,3.7rem)}
 .cort-page .cort-aside__card{padding:16px}
 .cort-page .cort-aside__author-head{grid-template-columns:42px minmax(0,1fr);gap:10px}
 .cort-page .cort-aside__shield{width:42px;height:42px}
 .cort-page .cort-aside__shield svg{width:37px;height:37px}
 .cort-page .cort-aside__eyebrow{font-size:.67rem}
}
@media (max-height:840px) and (min-width:861px){
 .cort-page .cort-aside{gap:10px;max-height:calc(100dvh - 96px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c2ccbc transparent;padding:0 4px 5px 0}
 .cort-page .cort-aside__toc nav{max-height:118px}
}
@media (max-width:860px){
 .cort-page .cort-container{width:calc(100% - 30px)}
 .cort-page .cort-shell{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:23px 0 54px}
 .cort-page .cort-aside{position:static;display:block;grid-row:1;max-height:none;overflow:visible;padding:0;margin:0 0 20px}
 .cort-page .cort-aside__toc,.cort-page .cort-aside__helper,.cort-page .cort-aside__related{display:none}
 .cort-page .cort-aside__author{display:block;padding:17px 19px}
 .cort-page .cort-aside__author-head{grid-template-columns:44px minmax(0,1fr);gap:12px}
 .cort-page .cort-aside__shield{width:44px;height:44px}
 .cort-page .cort-aside__shield svg{width:36px;height:36px}
 .cort-page .cort-hero,.cort-page .cort-hero__inside{min-height:520px}
 .cort-page .cort-hero__text{padding-top:28px}
 .cort-page .cort-hero::before{background-image:linear-gradient(90deg,rgba(248,243,234,.98),rgba(248,243,234,.82) 61%,rgba(248,243,234,.55)),var(--cort-hero-image)}
 .cort-page .cort-section{padding:36px 0 41px}
}
@media (max-width:650px){
 .cort-page .cort-container{width:calc(100% - 26px)}
 .cort-page .cort-hero,.cort-page .cort-hero__inside{min-height:0}
 .cort-page .cort-hero__inside{padding:18px 0 34px}
 .cort-page .cort-hero__text{padding-top:0}
 .cort-page .cort-hero h1{font-size:clamp(2.13rem,8.2vw,2.7rem)}
 .cort-page .cort-hero__text>p{font-size:.97rem}
 .cort-page .cort-section{padding:31px 0 36px;scroll-margin-top:70px}
 .cort-page .cort-heading h2{font-size:clamp(1.66rem,7.1vw,2.16rem)}
 .cort-page .cort-overview__focus{padding:22px}
 .cort-page .cort-aside__card{padding:16px}
}
@media (prefers-reduced-motion:reduce){.cort-page .cort-aside__toc nav{scroll-behavior:auto}}

/* 1.35.109 — precise author-card hierarchy from the approved prolactin article. */
@media(min-width:861px){
 .cort-page .cort-aside{
   top:86px;gap:12px;
   max-height:calc(100vh - 98px);
   max-height:calc(100dvh - 98px);
   overflow-x:hidden;overflow-y:auto;
   overscroll-behavior:contain;
   scrollbar-width:thin;scrollbar-color:#c2ccbc transparent;
   padding-right:3px;
 }
 .cort-page .cort-aside__toc{padding:15px 19px 15px;}
 .cort-page .cort-aside__toc h2{margin:5px 0 9px;font-size:1.19rem;}
 .cort-page .cort-aside__toc nav{max-height:154px;scroll-padding-block:8px;}
 .cort-page .cort-aside__toc nav a{padding:5px 9px 5px 11px;font-size:.80rem;line-height:1.27;}
 .cort-page .cort-aside__author{
   padding:22px 21px 20px;
   border-radius:24px;
   background:#fffefa;
 }
 .cort-page .cort-aside__author-head{
   grid-template-columns:56px minmax(0,1fr);
   gap:14px;
   align-items:center;
   min-height:105px;
 }
 .cort-page .cort-aside__shield{
   width:54px;height:54px;align-self:center;
   border:0;background:transparent;border-radius:0;box-shadow:none;
   color:#596e4f;
 }
 .cort-page .cort-aside__shield svg{width:43px;height:43px;max-width:none;}
 .cort-page .cort-aside__author .cort-aside__eyebrow{
   font-size:.72rem;line-height:1.35;font-weight:800;
   letter-spacing:.145em;color:#526044;
 }
 .cort-page .cort-aside__author-head h2{
   margin:7px 0 0;
   font:500 1.20rem/1.13 Georgia,'Times New Roman',serif;
   letter-spacing:-.017em;color:#303a32;
 }
 .cort-page .cort-aside__author-person{
   display:grid;gap:4px;margin-top:15px;
   padding:15px 0 0;
   border-top:1px solid #dedccf;border-bottom:0;
 }
 .cort-page .cort-aside__author-person strong{
   font-size:1.04rem;line-height:1.32;font-weight:700;color:#4a5842;
 }
 .cort-page .cort-aside__author-person small{
   font-size:.93rem;line-height:1.4;color:#727a70;
 }
 .cort-page .cort-aside__author-date{
   padding:19px 0 0;
   font-size:.84rem;line-height:1.45;color:#858980;
 }
 .cort-page .cort-aside__helper{padding:17px 20px;}
 .cort-page .cort-aside__helper h2{margin:6px 0 8px;font-size:1.15rem;}
 .cort-page .cort-aside__helper p{font-size:.82rem;line-height:1.53;}
 .cort-page .cort-aside__related{padding:16px 20px;}
 .cort-page .cort-aside__related h2{margin:6px 0 10px;}
 .cort-page .cort-aside__related a{padding:8px 0;font-size:.80rem;}
}
@media(min-width:861px) and (max-width:1140px){
 .cort-page .cort-aside__author{padding:18px 16px;}
 .cort-page .cort-aside__author-head{grid-template-columns:44px minmax(0,1fr);gap:10px;min-height:100px;}
 .cort-page .cort-aside__shield{width:44px;height:44px;}
 .cort-page .cort-aside__shield svg{width:37px;height:37px;}
 .cort-page .cort-aside__author .cort-aside__eyebrow{font-size:.67rem;letter-spacing:.1em;}
 .cort-page .cort-aside__author-head h2{font-size:1.1rem;}
 .cort-page .cort-aside__author-person strong{font-size:.92rem;}
 .cort-page .cort-aside__author-person small{font-size:.82rem;}
 .cort-page .cort-aside__author-date{font-size:.78rem;}
}
@media(min-width:861px) and (max-height:840px){
 /* Sidebar remains sticky; scrolling the rail is needed only when the window is short. */
 .cort-page .cort-aside{max-height:calc(100dvh - 98px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding-right:4px;scrollbar-width:thin;}
 .cort-page .cort-aside__toc nav{max-height:118px;}
}
@media(max-width:860px){
 .cort-page .cort-aside__author{
   border-radius:22px;background:#fffefa;
   padding:18px 19px;
 }
 .cort-page .cort-aside__author-head{grid-template-columns:48px minmax(0,1fr);gap:12px;}
 .cort-page .cort-aside__shield{width:46px;height:46px;background:transparent;border:0;border-radius:0;}
 .cort-page .cort-aside__shield svg{width:39px;height:39px;}
 .cort-page .cort-aside__author-head h2{margin-top:5px;font-size:1.13rem;}
 .cort-page .cort-aside__author-person{margin-top:13px;padding-top:13px;border-top:1px solid #dedccf;}
 .cort-page .cort-aside__author-date{padding-top:13px;}
}
@media(prefers-reduced-motion:reduce){
 .cort-page .cort-aside__toc nav{scroll-behavior:auto;}
}


/* 1.35.111 — right rail: mirror the approved prolactin article, including
   51vh contents list and original card paddings; keep the complete rail sticky. */
@media (min-width:861px){
 .cort-page .cort-shell{grid-template-columns:minmax(0,1fr) 320px;gap:44px;align-items:start;overflow:visible}
 .cort-page .cort-aside{
   position:sticky;top:96px;align-self:start;
   display:grid;grid-auto-rows:max-content;gap:14px;
   min-width:0;margin:0;padding:0 4px 0 0;
   height:auto;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);
   overflow-x:hidden;overflow-y:auto;
   scrollbar-width:thin;scrollbar-color:#cbd3c3 transparent;
   overscroll-behavior-y:contain;
 }
 .cort-page .cort-aside__card{
   padding:22px;border-radius:24px;background:rgba(255,253,248,.94);
   border:1px solid #ded9ce;box-shadow:0 12px 35px rgba(54,62,55,.06)
 }
 .cort-page .cort-aside__card h2{
   font:500 1.3rem/1.2 Georgia,'Times New Roman',serif;
   margin:7px 0 15px;
 }
 .cort-page .cort-aside__toc{padding:22px}
 .cort-page .cort-aside__toc h2{font-size:1.3rem;margin:7px 0 15px}
 .cort-page .cort-aside__toc nav{
   display:grid;gap:0;
   height:auto;min-height:0;max-height:51vh;max-height:51dvh;
   overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;
   padding-right:4px;scrollbar-width:thin;scrollbar-color:#cbd3c3 transparent;
 }
 .cort-page .cort-aside__toc nav a{
   padding:6px 10px 6px 11px;line-height:1.35;font-size:.81rem;
 }
 .cort-page .cort-aside__author{
   padding:22px;border-radius:24px;background:linear-gradient(155deg,#fff,#f4f4ec);
 }
 .cort-page .cort-aside__author-head{
   min-height:0;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:center;
 }
 .cort-page .cort-aside__author-person{margin-top:14px;padding:13px 0 0;border-top:1px solid #dfddd2;border-bottom:0;gap:3px}
 .cort-page .cort-aside__author-date{padding-top:0;margin-top:8px;font-size:.8625rem;line-height:1.45}
 .cort-page .cort-aside__helper{padding:22px;background:linear-gradient(150deg,#e7ece1,#f3ece5)}
 .cort-page .cort-aside__helper h2{font-size:1.3rem;margin:7px 0 15px}
 .cort-page .cort-aside__helper p{font-size:.88rem;line-height:1.6}
 .cort-page .cort-aside__related{padding:22px;background:rgba(255,253,248,.94)}
 .cort-page .cort-aside__related h2{font-size:1.3rem;margin:7px 0 15px}
 .cort-page .cort-aside__related a{padding:10px 0;font-size:.86rem}
}
/* The reference article moves the sidebar below the text at narrower widths.
   The cortisol article retains its approved mobile author-only presentation. */
@media (min-width:861px) and (max-width:1140px){
 .cort-page .cort-shell{grid-template-columns:minmax(0,1fr) 260px;gap:24px}
 .cort-page .cort-aside__card{padding:20px}
 .cort-page .cort-aside__toc{padding:20px}
 .cort-page .cort-aside__author{padding:20px}
 .cort-page .cort-aside__author-head{grid-template-columns:48px minmax(0,1fr);gap:12px;min-height:0}
 .cort-page .cort-aside__helper,.cort-page .cort-aside__related{padding:20px}
}
@media (max-width:860px){
 .cort-page .cort-aside{position:static;max-height:none;overflow:visible;padding:0;margin:0 0 20px}
 .cort-page .cort-aside__toc,.cort-page .cort-aside__helper,.cort-page .cort-aside__related{display:none}
}

/* 1.35.112 — no nested scrollbar in the article's right rail.
   The whole sidebar is sticky while the article scrolls; once its grid
   container ends it follows the ordinary DOCUMENT scroll. */
@media (min-width:861px){
 .cort-page .cort-shell{
   align-items:start;
   overflow:visible;
 }
 .cort-page .cort-aside{
   position:sticky;
   top:88px;
   align-self:start;
   display:grid;
   grid-auto-rows:max-content;
   gap:14px;
   height:max-content;
   max-height:none;
   overflow:visible;
   overscroll-behavior:auto;
   scrollbar-width:auto;
   padding:0;
   margin:0;
 }
 .cort-page .cort-aside__toc nav{
   display:grid;
   max-height:none;
   height:auto;
   min-height:0;
   overflow:visible;
   overscroll-behavior:auto;
   padding-right:0;
   scroll-behavior:auto;
 }
}
@media (max-width:860px){
 .cort-page .cort-aside{position:static;height:auto;max-height:none;overflow:visible;}
}
