/* 3.1.0-rc2 — canonical owners for shared desktop detail systems. */

/* Header / MegaMenu: JS owns state; this file owns desktop geometry. */
@media (min-width:1024px){
  .medilove-new3-preview .mlnh-site-header__inner{box-sizing:border-box;margin-inline:auto;max-width:1280px;padding-inline:var(--hd-gutter);position:relative;width:calc(100% - (2 * var(--hd-gutter)))}
  .medilove-new3-preview .mlnh-new3-desktop-nav,.medilove-new3-preview .mlnh-new3-desktop-nav>ul,.medilove-new3-preview .mlnh-new3-desktop-nav .mlnh-mega-item{position:static}
  .medilove-new3-preview .mlnh-mega-trigger::before{content:"";height:12px;left:0;position:absolute;right:0;top:100%}
  .medilove-new3-preview .mlnh-mega-menu{left:0;max-height:calc(100dvh - 96px);overflow-y:auto;padding:0;right:0;top:100%;transform:none;width:auto}
  .medilove-new3-preview .mlnh-mega-menu__inner{margin:0;max-width:none;padding:28px 32px;width:100%}
}

/* Shared DetailShell: one canonical two-column rail and sticky anchor. */
:is(.medilove-editorial-article .mlnh-editorial-article-grid,.mlnh-editorial-shell--entity .mlnh-editorial-entity-grid){column-gap:48px;display:grid;grid-template-columns:minmax(0,1fr) 320px;position:relative}
:is(.medilove-editorial-article .mlnh-editorial-article-grid,.mlnh-editorial-shell--entity .mlnh-editorial-entity-grid)>.mlnh-editorial-region-rail{align-self:stretch;grid-column:2;min-width:0;padding-bottom:56px}
:is(.medilove-editorial-article,.mlnh-editorial-shell--entity) .mlnh-editorial-region-rail--clinical{grid-row:1;padding-top:44px}
:is(.medilove-editorial-article,.mlnh-editorial-shell--entity) .mlnh-editorial-region-rail--toc{grid-row:2}
:is(.medilove-editorial-article,.mlnh-editorial-shell--entity) .mlnh-editorial-region-rail--related{grid-row:3;padding-bottom:72px}
:is(.medilove-editorial-article,.mlnh-editorial-shell--entity) .mlnh-editorial-region-rail__sticky{position:sticky;top:144px}

.medilove-editorial-article{overflow-x:clip}
.medilove-editorial-article .mlnh-single-shell{max-width:1280px}
.medilove-editorial-article .mlnh-editorial-shell--article{display:block;max-width:none;padding:0;position:relative}
.medilove-editorial-article .mlnh-editorial-region{grid-column:1;min-width:0;padding-bottom:56px}
.medilove-editorial-article .mlnh-editorial-region--opening{grid-row:1;padding-top:44px}
.medilove-editorial-article .mlnh-editorial-region--body{grid-row:2}
.medilove-editorial-article .mlnh-editorial-region--end{grid-row:3;padding-bottom:72px}
.medilove-editorial-article .mlnh-editorial-article-hero{border:0;display:block;padding:0 0 28px}
.medilove-editorial-article .mlnh-editorial-article-hero h1{font-size:clamp(2.5rem,3.65vw,3rem);max-width:24ch}
.medilove-editorial-article .mlnh-single-article__meta{margin-top:18px}
.medilove-editorial-article .mlnh-editorial-key-takeaway{margin:0 0 30px}
.medilove-editorial-article .mlnh-single-article__featured{margin:0 0 38px;max-height:none;overflow:hidden}
.medilove-editorial-article .mlnh-single-article__featured img{aspect-ratio:auto;display:block;height:auto;max-height:520px;object-fit:contain;width:100%}
.medilove-editorial-article .mlnh-single-article__content{max-width:800px}
.medilove-editorial-article .mlnh-single-article__content>h2:first-child{margin-top:0}
.medilove-editorial-article .mlnh-context-panel{background:#fbfdff;border:1px solid var(--hd-line);border-radius:16px;box-shadow:none;padding:24px;width:100%}
.medilove-editorial-article .mlnh-context-panel>h2,.medilove-editorial-article .mlnh-editorial-toc__header>p{font-family:Montserrat,"Noto Sans SC",sans-serif;font-size:1.1875rem;font-weight:600;margin:0 0 20px}
.medilove-editorial-article .mlnh-editorial-toc{overflow:hidden;padding:0;position:relative}
.medilove-editorial-article .mlnh-editorial-toc__header{padding:24px 24px 0}
.medilove-editorial-article .mlnh-editorial-toc__body{max-height:min(58vh,520px);padding:12px 24px 24px 32px}
.medilove-editorial-article .mlnh-editorial-toc__header button b{display:none}
.medilove-editorial-article .mlnh-editorial-toc__links a{border-left:2px solid transparent}
.medilove-editorial-article .mlnh-editorial-toc__links a.is-active{border-left-color:var(--hd-red)}
.medilove-editorial-article .mlnh-context-related__list{display:grid;gap:26px}
.medilove-editorial-article .mlnh-context-related__list>a{align-items:center;border:0;display:grid;gap:16px;grid-template-columns:88px minmax(0,1fr);padding:0}
.medilove-editorial-article .mlnh-context-related__media{height:82px;margin:0;width:88px}
.medilove-editorial-article .mlnh-context-related__copy{gap:5px}
.medilove-editorial-article .mlnh-context-related__copy small{margin:0}
.medilove-editorial-article .mlnh-context-related__copy strong{margin:0}
.medilove-editorial-article .mlnh-article-disclaimer--shell{display:block;margin-top:40px}

/* Topic, Condition and Symptom pages use the same three-region system. */
.mlnh-editorial-shell--entity{display:block;max-width:none;padding:0;position:relative}
.mlnh-editorial-shell--entity .mlnh-editorial-region{background:#fff;border-color:var(--hd-line);border-style:solid;grid-column:1;min-width:0;padding:0 38px}
.mlnh-editorial-shell--entity .mlnh-editorial-region--opening{border-radius:18px 18px 0 0;border-width:1px 1px 0;grid-row:1;margin-top:44px;padding-top:38px}
.mlnh-editorial-shell--entity .mlnh-editorial-region--body{border-width:0 1px;grid-row:2}
.mlnh-editorial-shell--entity .mlnh-editorial-region--end{border-radius:0 0 18px 18px;border-width:0 1px 1px;grid-row:3;padding-bottom:40px}
.mlnh-editorial-shell--entity .mlnh-context-panel{background:#fbfdff;border:1px solid var(--hd-line);border-radius:16px;box-shadow:none;padding:24px;width:100%}
.mlnh-editorial-shell--entity .mlnh-context-panel>h2,.mlnh-editorial-shell--entity .mlnh-editorial-toc__header>p{font-family:Montserrat,"Noto Sans SC",sans-serif;font-size:1.1875rem;font-weight:600;margin:0 0 20px}
.mlnh-editorial-shell--entity .mlnh-editorial-toc{overflow:hidden;padding:0;position:relative}
.mlnh-editorial-shell--entity .mlnh-editorial-toc__header{border-left:0;padding:24px 24px 0}
.mlnh-editorial-shell--entity .mlnh-editorial-toc__body{max-height:min(58vh,520px);padding:12px 24px 24px 32px}
.mlnh-editorial-shell--entity .mlnh-editorial-toc__links a{border-left:2px solid transparent}
.mlnh-editorial-shell--entity .mlnh-editorial-toc__links a.is-active{border-left-color:var(--hd-red)}
.mlnh-editorial-shell--entity .mlnh-context-related__list{display:grid;gap:26px}
.mlnh-editorial-shell--entity .mlnh-context-related__list>a{align-items:center;border:0;display:grid;gap:16px;grid-template-columns:88px minmax(0,1fr);padding:0}
.mlnh-editorial-shell--entity .mlnh-context-related__media{height:82px;margin:0;width:88px}
.mlnh-editorial-shell--entity .mlnh-context-related__copy{gap:5px}
.mlnh-editorial-shell--entity .mlnh-entity-content-section{background:transparent;border:0;border-radius:0;box-shadow:none;margin:0 0 44px;max-width:800px;padding:0}
.mlnh-editorial-shell--entity .mlnh-entity-content-section:first-child h2{margin-top:0}
.mlnh-detail-reading-surface>:first-child>h2{border-top:0;margin-top:0;padding-top:0}
.mlnh-editorial-shell--entity .mlnh-entity-content-section.is-urgent{background:#fff4f5;border:1px solid #f3c7cd;border-left:4px solid var(--hd-red);border-radius:16px;padding:26px 24px}
.mlnh-editorial-shell--entity .mlnh-entity-content-section.is-urgent>h2{border-top:0;margin:0 0 14px;padding-top:0}
.mlnh-editorial-shell--entity .mlnh-entity-consultation{border-radius:16px;margin-bottom:44px}
.mlnh-editorial-shell--entity .mlnh-entity-category-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.mlnh-editorial-shell--entity .mlnh-entity-category-grid article{display:flex;flex-direction:column}
.mlnh-editorial-shell--entity .mlnh-entity-category-grid .mlnh-text-link{color:var(--hd-blue-strong);margin-top:22px;text-decoration:none}
.mlnh-editorial-shell--entity .mlnh-entity-category-grid .mlnh-text-link:is(:hover,:focus-visible){color:var(--hd-red)}
.mlnh-editorial-shell--entity .mlnh-entity-discovery{grid-column:1;grid-row:4;margin-top:40px}
.mlnh-editorial-shell--entity .mlnh-entity-discovery{background:#fff;border:1px solid var(--hd-line);border-radius:18px;padding:32px 38px}
.mlnh-editorial-shell--entity .mlnh-entity-discovery>h2{margin:0 0 24px}
.mlnh-editorial-shell--entity .mlnh-entity-discovery__group+.mlnh-entity-discovery__group{border-top:1px solid var(--hd-line);margin-top:22px;padding-top:22px}
.mlnh-editorial-shell--entity .mlnh-entity-discovery__group h3{font-family:"Source Sans 3",sans-serif;font-size:.8125rem;letter-spacing:.05em;margin:0 0 10px;text-transform:uppercase}
.mlnh-editorial-shell--entity .mlnh-entity-discovery__group ul{display:grid;gap:8px;list-style:none;margin:0;padding:0}
.mlnh-editorial-shell--entity .mlnh-entity-discovery .mlnh-detail-tags{margin:0}
.mlnh-editorial-shell--entity .mlnh-editorial-progress-end{grid-column:1;grid-row:5}

/* Health Topic body: all editorial sections stay in one left-column row. */
.mlnh-editorial-shell--topic .mlnh-editorial-region--topic{border-width:1px;border-radius:18px;grid-row:1;padding-bottom:40px}
.mlnh-editorial-shell--topic .mlnh-editorial-region-rail--topic-toc{grid-row:1;padding-bottom:72px;padding-top:44px}
.mlnh-editorial-shell--topic .mlnh-editorial-progress-end{grid-row:2}
.mlnh-topic-section{border-top:1px solid var(--hd-line);padding:44px 0}
.mlnh-topic-section:first-child{border-top:0;padding-top:0}
.mlnh-topic-section:last-child{padding-bottom:0}
.mlnh-topic-section>h2,.mlnh-topic-section-heading h2{color:var(--hd-navy);font-size:clamp(1.55rem,2.4vw,2rem);line-height:1.2;margin:0 0 24px}
.mlnh-topic-prose{font-size:1.0625rem;line-height:1.7;max-width:760px}.mlnh-topic-prose>:first-child{margin-top:0}.mlnh-topic-prose>:last-child{margin-bottom:0}
.mlnh-topic-card-rail{display:grid;gap:16px;grid-auto-columns:minmax(245px,46%);grid-auto-flow:column;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 2px 14px;scroll-snap-type:inline mandatory}
.mlnh-topic-interest-card{background:var(--hd-surface-soft);border:1px solid var(--hd-line);border-radius:16px;min-height:170px;padding:24px;scroll-snap-align:start}.mlnh-topic-interest-card h3{font-size:1.1rem;margin:0 0 10px}.mlnh-topic-interest-card p{color:var(--hd-muted);line-height:1.55;margin:0}
.mlnh-topic-questions .mlnh-entity-faq{display:grid;gap:12px}.mlnh-topic-questions .mlnh-entity-faq details{border:1px solid var(--hd-line);border-radius:16px;padding:0 20px}.mlnh-topic-questions .mlnh-entity-faq summary{color:var(--hd-navy);cursor:pointer;font-size:1.0625rem;font-weight:600;padding:18px 0}.mlnh-topic-questions .mlnh-entity-faq details>div{color:var(--hd-muted);line-height:1.6;padding:0 0 18px}
.mlnh-topic-section-heading{align-items:end;display:flex;gap:20px;justify-content:space-between;margin-bottom:24px}.mlnh-topic-section-heading h2{margin:0}.mlnh-topic-section-heading a{color:var(--hd-blue-strong);font-weight:600;text-decoration:none;white-space:nowrap}
.mlnh-topic-article-grid,.mlnh-topic-entity-grid{display:grid;gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}.mlnh-topic-article-grid .mlnh-archive-card{height:100%}
.mlnh-topic-entity-grid .mln2-related-entity-card{border-radius:16px;grid-template-columns:minmax(0,1fr) auto;min-height:150px;padding:22px}.mlnh-topic-entity-grid .mln2-related-entity-card>span,.mlnh-topic-entity-grid .mln2-related-entity-card>h3,.mlnh-topic-entity-grid .mln2-related-entity-card>p{grid-column:1}.mlnh-topic-entity-grid .mln2-related-entity-card>b{align-self:end;grid-column:2;grid-row:1/4}
.mlnh-topic-screening{background:#f3f9fc;border:1px solid #cfe4ef;border-radius:16px;margin:20px 0;padding:30px}.mlnh-topic-screening-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.mlnh-topic-screening-grid>a{align-items:center;background:#fff;border:1px solid var(--hd-line);border-radius:16px;color:var(--hd-ink);display:grid;gap:14px;grid-template-columns:minmax(0,1fr) auto;padding:20px;text-decoration:none}.mlnh-topic-screening-grid h3{font-size:1rem;margin:0}.mlnh-topic-screening-grid p{color:var(--hd-muted);font-size:.9375rem;line-height:1.5;margin:5px 0 0}.mlnh-topic-screening-grid b{color:var(--hd-red)}
.mlnh-topic-final-guidance{background:#f7fafc;border:1px solid var(--hd-line);border-radius:16px;margin-top:20px;padding:30px}

/* One canonical DetailTOC progress track: the card's outer left edge. */
:is(.mlnh-editorial-shell--article,.mlnh-editorial-shell--entity,.mlnh-editorial-shell--package) .mlnh-editorial-toc{border-left-color:#dbe5ef}
:is(.mlnh-editorial-shell--article,.mlnh-editorial-shell--entity,.mlnh-editorial-shell--package) .mlnh-editorial-toc__header{border-left:0}
:is(.mlnh-editorial-shell--article,.mlnh-editorial-shell--entity,.mlnh-editorial-shell--package) .mlnh-editorial-toc__progress{bottom:-1px;display:block;left:-1px;pointer-events:none;position:absolute;top:-1px;width:3px;z-index:2}
:is(.mlnh-editorial-shell--article,.mlnh-editorial-shell--entity,.mlnh-editorial-shell--package) .mlnh-editorial-toc__progress i{background:var(--hd-red);display:block;height:calc(var(--reading-progress,0) * 100%);width:100%}

/* Package DetailShell: one reading canvas and one ordered context rail. */
.mlnh-editorial-shell--package.mlnh-screening-single__layout{align-items:start;display:grid;gap:48px;grid-template-columns:minmax(0,1fr) 320px}
.mlnh-editorial-shell--package .mlnh-detail-reading-surface{background:#fff;border:1px solid var(--hd-line);border-radius:18px;box-shadow:none;min-width:0;padding:38px}
.mlnh-editorial-shell--package .mlnh-detail-reading-surface>:is(section,div){max-width:none}
.mlnh-editorial-shell--package .mlnh-screening-detail-card,.mlnh-editorial-shell--package .mlnh-package-purpose-grid>.mlnh-screening-detail-card{background:transparent;border:0;border-radius:0;box-shadow:none;margin:0 0 44px;padding:0}
.mlnh-editorial-shell--package .mlnh-package-purpose-grid{display:block}
.mlnh-editorial-shell--package .mlnh-package-purpose-grid>.mlnh-screening-detail-card+.mlnh-screening-detail-card{border-top:1px solid var(--hd-line);padding-top:36px}
.mlnh-editorial-shell--package .mlnh-package-preparation,.mlnh-editorial-shell--package .mlnh-package-related-articles,.mlnh-editorial-shell--package .mlnh-screening-limits{margin-bottom:44px}
.mlnh-editorial-shell--package .mlnh-package-detail-rail{background:transparent;border:0;border-radius:0;box-shadow:none;margin:0;padding:0}
.mlnh-editorial-shell--package .mlnh-package-detail-rail__sticky{display:grid;gap:24px;position:sticky;top:144px}
.mlnh-editorial-shell--package .mlnh-context-panel{background:#fbfdff;border:1px solid var(--hd-line);border-radius:16px;box-shadow:none;padding:24px;width:100%}
.mlnh-editorial-shell--package .mlnh-editorial-toc{overflow:hidden;padding:0;position:relative}
.mlnh-editorial-shell--package .mlnh-editorial-toc__header{border-left:0;padding:24px 24px 0}
.mlnh-editorial-shell--package .mlnh-editorial-toc__body{max-height:min(58vh,520px);padding:12px 24px 24px 32px}
.mlnh-editorial-shell--package .mlnh-editorial-toc__links a{border-left:2px solid transparent}
.mlnh-editorial-shell--package .mlnh-editorial-toc__links a.is-active{border-left-color:var(--hd-red)}
.mlnh-editorial-shell--package .mlnh-package-at-a-glance h2,.mlnh-editorial-shell--package .mlnh-package-related-options h2,.mlnh-editorial-shell--package .mlnh-package-ask-panel h2{font-size:1.1875rem;margin:0 0 18px}
.mlnh-editorial-shell--package .mlnh-package-at-a-glance h3{font-size:1.125rem;margin:8px 0 12px}
.mlnh-editorial-shell--package .mlnh-package-related-options ul{display:grid;gap:14px;list-style:none;margin:0;padding:0}
.mlnh-editorial-shell--package .mlnh-package-related-options li+li{border-top:1px solid var(--hd-line);padding-top:14px}
.mlnh-editorial-shell--package .mlnh-package-related-options a{display:grid;gap:4px;text-decoration:none}
.mlnh-editorial-shell--package .mlnh-package-related-options span{color:var(--hd-muted);font-size:.875rem;line-height:1.45}
.mlnh-entity-overview-panel dl{display:grid;gap:12px;margin:0}
.mlnh-entity-overview-panel dl>div{align-items:center;border-top:1px solid var(--hd-line);display:flex;justify-content:space-between;padding-top:12px}
.mlnh-entity-overview-panel dt{color:var(--hd-muted)}
.mlnh-entity-overview-panel dd{color:var(--hd-navy);font-family:Montserrat,sans-serif;font-weight:600;margin:0}
.mlnh-entity-overview-panel p{color:var(--hd-muted);line-height:1.55;margin:0}
.mlnh-entity-overview-panel p+p{margin-top:12px}

@media (max-width:1279px) and (min-width:1024px){
  :is(.medilove-editorial-article .mlnh-editorial-article-grid,.mlnh-editorial-shell--entity .mlnh-editorial-entity-grid){grid-template-columns:minmax(0,1fr) 300px;column-gap:40px}
}

@media (max-width:1023px){
  .medilove-editorial-article .mlnh-editorial-article-grid{display:flex;flex-direction:column}
  .medilove-editorial-article .mlnh-editorial-region,.medilove-editorial-article .mlnh-editorial-region-rail{padding-bottom:32px;padding-top:0}
  .medilove-editorial-article .mlnh-editorial-region--opening{order:1;padding-top:30px}
  .medilove-editorial-article .mlnh-editorial-region-rail--clinical{order:2}
  .medilove-editorial-article .mlnh-editorial-region-rail--toc{order:3}
  .medilove-editorial-article .mlnh-editorial-region--body{order:4}
  .medilove-editorial-article .mlnh-editorial-region--end{order:5}
  .medilove-editorial-article .mlnh-editorial-region-rail--related{order:6;padding-bottom:52px}
  .medilove-editorial-article .mlnh-editorial-region-rail__sticky{position:static}
  .mlnh-editorial-shell--entity .mlnh-editorial-entity-grid{display:flex;flex-direction:column}
  .mlnh-editorial-shell--entity .mlnh-editorial-region,.mlnh-editorial-shell--entity .mlnh-editorial-region-rail{padding-bottom:32px;padding-top:0}
  .mlnh-editorial-shell--entity .mlnh-editorial-region--opening{order:1;padding-top:30px}
  .mlnh-editorial-shell--entity .mlnh-editorial-region-rail--clinical{order:2}
  .mlnh-editorial-shell--entity .mlnh-editorial-region-rail--toc{order:3}
  .mlnh-editorial-shell--entity .mlnh-editorial-region--body{order:4}
  .mlnh-editorial-shell--entity .mlnh-editorial-region--end{order:5}
  .mlnh-editorial-shell--entity .mlnh-editorial-region-rail--related{order:6;padding-bottom:52px}
  .mlnh-editorial-shell--entity .mlnh-editorial-region-rail__sticky{position:static}
	.mlnh-editorial-shell--topic .mlnh-editorial-region--topic{order:1}
	.mlnh-editorial-shell--topic .mlnh-editorial-region-rail--topic-toc{order:2;padding-bottom:32px;padding-top:0}
	.mlnh-topic-article-grid,.mlnh-topic-entity-grid{grid-template-columns:1fr}
	.mlnh-editorial-shell--package.mlnh-screening-single__layout{display:flex;flex-direction:column}
	.mlnh-editorial-shell--package .mlnh-package-detail-rail__sticky{position:static}
}

@media (max-width:767px){
  .medilove-editorial-article .mlnh-editorial-article-hero h1{font-size:clamp(2rem,9vw,2.375rem)}
}

@media (max-width:767px){.mlnh-topic-section{padding:36px 0}.mlnh-topic-card-rail{grid-auto-columns:minmax(250px,88%)}.mlnh-topic-section-heading{align-items:start;display:grid;gap:10px}.mlnh-topic-screening{padding:24px 20px}.mlnh-topic-screening-grid{grid-template-columns:1fr}}
