/*
 * Article pages: posts, health conditions, guides and medicines (template-parts/article/).
 * Builds on the tokens in site.css. Everything is scoped to .sh-article and .sh-more, so other
 * templates keep their old look until they are redesigned. Rules: DESIGN.md.
 */

/* ---------- Frame ---------- */

.sh-article {
    --sh-measure: 680px;        /* the reading column */
    --sh-gap: 48px;
    --sh-sticky-top: 96px;      /* below the compact header */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px clamp(56px, 7vw, 96px);
    color: var(--sh-ink);
}
.sh-article__header,
.sh-article__media,
.sh-article__body,
.sh-article__footer { max-width: var(--sh-measure); margin-left: auto; margin-right: auto; }

@media (min-width: 1200px) {
    .sh-article__body--toc {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, var(--sh-measure)) minmax(0, 1fr);
        column-gap: var(--sh-gap);
        max-width: none;
    }
    .sh-article__body--toc > .sh-article__aside { grid-column: 1; grid-row: 1; }
    .sh-article__body--toc > .sh-article__content { grid-column: 2; grid-row: 1; }
}
@media (max-width: 575.98px) {
    .sh-article { padding-left: 16px; padding-right: 16px; }
}

.sh-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sh-article .sh-icon { display: block; flex: none; width: 20px; height: 20px; }

/* ---------- Header ---------- */

.sh-article__header { padding-top: clamp(28px, 4.5vw, 60px); }

/* Topic trail from Yoast: the home link and the page itself are left out */
.sh-crumbs { margin: 0 0 14px; color: var(--tone-ink); font-size: .9rem; font-weight: 600; line-height: 1.5; }
.sh-crumbs > span { display: inline-flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.sh-crumbs > span > span:first-child,
.sh-crumbs > span > i:first-of-type,
.sh-crumbs > span > i:last-of-type,
.sh-crumbs .breadcrumb_last { display: none; }
.sh-crumbs i { margin: 0 .55em; color: var(--sh-muted); font-size: .68em; opacity: .7; }
.sh-crumbs a { color: inherit; text-decoration: none; }
.sh-crumbs a:hover { text-decoration: underline; text-underline-offset: .22em; }
.sh-crumbs > span > span:nth-child(3) > a::before {
    content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 10px 1px 0; border-radius: 50%;
    background: var(--tone); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); vertical-align: middle;
}

.sh-article__title {
    margin: 0; color: var(--sh-ink);
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; line-height: 1.35;
    text-wrap: balance;
}
.sh-article__lead {
    margin: 14px 0 0; color: var(--sh-ink-2);
    font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); line-height: 1.75;
    text-wrap: pretty;
}

/* Who wrote it and who medically reviewed it */
.sh-byline { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; }
.sh-byline__faces { display: flex; flex: none; }
.sh-byline__faces > * { display: block; flex: none; }
.sh-byline__faces > * + * { margin-left: -12px; }
.sh-byline__faces img {
    display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    background: var(--sh-surface-2); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--sh-line);
}
.sh-byline__initial {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--tone-tint); color: var(--tone-ink); font-size: 1.05rem; font-weight: 600; line-height: 1;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--sh-line);
}
.sh-byline__text { min-width: 0; color: var(--sh-ink-2); font-size: .95rem; line-height: 1.6; }
.sh-byline__line { margin: 0; }
.sh-byline__line + .sh-byline__line { margin-top: 2px; }
.sh-article .sh-byline__text a { color: var(--sh-ink); font-weight: 600; text-decoration: none; }
.sh-article .sh-byline__text a:hover { text-decoration: underline; text-underline-offset: .22em; }
.sh-byline__review { display: flex; align-items: center; gap: 6px; color: var(--sh-emerald-ink); }
.sh-byline__review .sh-icon { width: 18px; height: 18px; }
.sh-byline__review .sh-icon--check-badge { width: 19px; height: 19px; color: var(--sh-emerald-ink); }
.sh-article .sh-byline__review a { color: var(--sh-emerald-ink); }
.sh-article .sh-byline__text .sh-byline__more { margin-left: 4px; color: var(--sh-muted); font-weight: 400; text-decoration: underline dotted; text-underline-offset: .22em; }
.sh-article .sh-byline__text .sh-byline__more::before { content: none; }
.sh-byline__contributors { margin-top: 4px; }

/* Last updated, and sharing */
.sh-article__meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
    margin: 24px 0 0; padding: 12px 0; border-top: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line);
}
.sh-article__facts { margin: 0; color: var(--sh-muted); font-size: .9rem; line-height: 1.6; }
.sh-article__facts > span { display: inline-block; }
.sh-article__facts > span + span::before { content: "·"; margin: 0 .5em; }
@media (max-width: 575.98px) {
    .sh-article__facts > span { display: block; }
    .sh-article__facts > span + span::before { content: none; }
}

/* ---------- Share buttons ---------- */

.sh-article .sh-share { display: flex; align-items: center; gap: 12px; margin: 0; }
.sh-share__label { color: var(--sh-muted); font-size: .88rem; }
.sh-article .sh-share__list { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sh-share__item { margin: 0; }
.sh-article .sh-share__btn {
    display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
    border: 1px solid var(--sh-line); border-radius: 50%; background: #fff; color: var(--sh-ink-2);
    cursor: pointer; text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
/* The old share styles draw Font Awesome icons in front of these links (Messenger with !important) */
.sh-article .social-share a.sh-share__btn::before,
.sh-article .social-share a.sh-share__btn::after { content: none !important; }
.sh-article .sh-share__btn .sh-icon { width: 18px; height: 18px; }
.sh-article .sh-share__btn:hover { border-color: currentColor; color: var(--sh-ink); }
.sh-article .sh-share__btn--facebook:hover { color: #1877f2; }
.sh-article .sh-share__btn--whatsapp:hover { color: #128c4b; }
.sh-article .sh-share__btn--messenger:hover { color: #0a7cff; }
.sh-share__item--phone { display: none; }
@media (max-width: 575.98px) {
    .sh-share__item--phone { display: block; }
    .sh-share__item--desktop { display: none; }
    .sh-share__label { display: none; }
}

/* "Link copied" note */
.sh-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 2000;
    padding: 10px 18px; border-radius: 12px; background: #1d1d1f; color: #fff;
    font-size: .95rem; line-height: 1.5; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
    transition: opacity .25s ease, transform .25s var(--sh-ease);
}
.sh-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Video or photo under the header ---------- */

.sh-article__media { position: relative; margin-top: 28px; overflow: hidden; border-radius: var(--sh-radius-lg); background: var(--sh-surface-2); }
.sh-article__media img { display: block; width: 100%; height: auto; }
.sh-article__media--video { aspect-ratio: 16 / 9; background: #000; }
.sh-article__media--video .youtube-lazyload,
.sh-article__media--video .youtube-lazyload > a,
.sh-article__media--video iframe { display: block; position: relative; width: 100%; height: 100%; border: 0; background: #000; }
.sh-article__media--video .youtube-lazyload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-article__play {
    position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
    background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5.6v12.8a.8.8 0 0 0 1.2.7l10.2-6.4a.8.8 0 0 0 0-1.4L9.2 4.9a.8.8 0 0 0-1.2.7Z'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform .3s var(--sh-ease), background-color .3s ease;
}
.sh-article__media a:hover .sh-article__play { transform: scale(1.06); background-color: rgba(0, 0, 0, .72); }

/* ---------- Contents list ---------- */

.sh-article__aside { display: none; }
.sh-toc__heading { margin: 0 0 10px; color: var(--sh-muted); font-size: .82rem; font-weight: 600; line-height: 1.5; }
.sh-article .sh-toc .sh-toc__list { margin: 0; padding: 0; list-style: none; }
.sh-article .sh-toc .sh-toc__item { display: block; margin: 0; padding: 0; }
.sh-article .sh-toc .sh-toc__link {
    display: block; color: var(--sh-ink-2); font-size: .93rem; line-height: 1.5;
    text-decoration: none; background: none; transition: color .2s ease, border-color .2s ease;
}
.sh-article .sh-toc .sh-toc__link:hover { color: var(--sh-ink); }

/* Wide screens: a quiet list beside the text that follows the reader */
@media (min-width: 1200px) {
    .sh-article__aside { display: block; }
    .sh-toc--side {
        position: sticky; top: var(--sh-sticky-top);
        max-height: calc(100vh - var(--sh-sticky-top) - 24px); overflow-y: auto;
        padding: 2px 4px 24px 0; scrollbar-width: thin;
    }
    .sh-toc--side .sh-toc__list { border-left: 1px solid var(--sh-line); }
    .sh-toc--side .sh-toc__link { margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; }
    .sh-toc--side .sh-toc__link[aria-current="true"] { border-left-color: var(--tone-ink); color: var(--sh-ink); font-weight: 600; }
}
.sh-toc__next { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--sh-line); }
.sh-toc__next .sh-toc__heading { margin-bottom: 4px; }
.sh-article .sh-toc__next-link { display: block; color: var(--sh-blue); font-size: .93rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.sh-article .sh-toc__next-link:hover { text-decoration: underline; text-underline-offset: .22em; }

/* Smaller screens: folds open inside the text, before the first section */
.sh-article .entry-content .sh-toc--inline {
    margin: 1.7em 0 2em; padding: 0; border: 1px solid var(--sh-line); border-radius: var(--sh-radius);
    background: #fff; box-shadow: var(--sh-shadow);
}
.sh-article .entry-content .sh-toc__summary {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px;
    cursor: pointer; list-style: none; font-size: 1rem; line-height: 1.5;
}
.sh-article .entry-content .sh-toc__summary::-webkit-details-marker { display: none; }
.sh-article .entry-content .sh-toc__summary .sh-toc__heading { margin: 0; color: var(--sh-ink); font-size: 1rem; }
.sh-toc__count { color: var(--sh-muted); font-size: .9rem; }
.sh-article .entry-content .sh-toc__summary .sh-icon { margin-left: auto; color: var(--sh-muted); transition: transform .3s var(--sh-ease); }
.sh-article .entry-content .sh-toc--inline[open] .sh-toc__summary .sh-icon { transform: rotate(180deg); }
.sh-article .entry-content .sh-toc--inline .sh-toc__list { margin: 0 18px 12px; padding: 0; border-top: 1px solid var(--sh-line); }
.sh-article .entry-content .sh-toc--inline .sh-toc__link { padding: 10px 0; border-bottom: 1px solid var(--sh-line); }
.sh-article .entry-content .sh-toc--inline .sh-toc__item:last-child .sh-toc__link { border-bottom: 0; }
@media (min-width: 1200px) {
    .sh-article__body--toc .entry-content .sh-toc--inline { display: none; }
}

/* ---------- The text ---------- */

.sh-article__body { margin-top: clamp(28px, 4vw, 44px); }
.sh-article .entry-content {
    position: relative; padding-top: 0;
    color: var(--sh-ink); font-size: 1.125rem; line-height: 1.85;
    overflow-wrap: break-word;
}
@media (max-width: 575.98px) {
    .sh-article .entry-content { font-size: 1.0625rem; line-height: 1.8; }
}
.sh-article .entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.sh-article .entry-content > :last-child { margin-bottom: 0; }
.sh-article .entry-content :is(strong, b) { font-weight: 600; }

.sh-article .entry-content h2 {
    margin: 2.1em 0 .55em; color: var(--sh-ink);
    font-size: clamp(1.36rem, 1.2rem + .6vw, 1.6rem); font-weight: 600; line-height: 1.45;
}
.sh-article .entry-content h3 {
    margin: 1.7em 0 .45em; color: var(--sh-ink);
    font-size: 1.22rem; font-weight: 600; line-height: 1.5;
}
.sh-article .entry-content h4 { margin: 1.4em 0 .4em; font-size: 1.08rem; font-weight: 600; line-height: 1.55; }
.sh-article .entry-content > :is(h2, h3, h4):first-child { margin-top: 0; }
.sh-article .entry-content :is(h2, h3) + :is(h3, h4) { margin-top: .6em; }
.sh-article .entry-content :is(h2, h3, h4) strong { font-weight: 600; }

/* Lists: dots and Bengali numbers in the topic's colour */
.sh-article .entry-content :is(ul, ol) { margin-top: 0; padding-inline-start: 1.45em; }
.sh-article .entry-content li { margin: 0 0 .5em; padding-inline-start: .2em; }
.sh-article .entry-content li > :is(ul, ol) { margin: .5em 0 0; }
.sh-article .entry-content ul > li::marker { color: var(--tone-ink); }
.sh-article .entry-content ol > li::marker { color: var(--tone-ink); font-weight: 600; }

/* Links: blue, with a light underline that firms up on hover */
.sh-article .entry-content a {
    color: var(--sh-blue); background: none;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em;
    text-decoration-color: rgba(21, 101, 192, .35);
    transition: text-decoration-color .2s ease;
}
.sh-article .entry-content a:hover { text-decoration-color: currentColor; }

/* Citation numbers: open the sources list below */
.sh-article .entry-content sup { top: -.5em; font-size: .7em; line-height: 0; }
.sh-article .entry-content a.inline-citation { padding: 0 .1em; text-decoration: none; font-weight: 600; }

/* Pictures and their captions */
.sh-article .entry-content :is(.wp-block-image, figure.wp-block-image) { margin: 1.9em 0; }
.sh-article .entry-content .wp-block-image img { max-width: 100%; height: auto; border-radius: var(--sh-radius); }
.sh-article .entry-content figcaption {
    margin: .7em 0 0; padding: 0; border: 0;
    color: var(--sh-muted); font-size: .88rem; line-height: 1.6; text-align: center;
}
.sh-article .entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
@media (min-width: 768px) {
    .sh-article .entry-content .alignright { float: right; max-width: 45%; margin: .35em 0 1em 1.6em; }
    .sh-article .entry-content .alignleft { float: left; max-width: 45%; margin: .35em 1.6em 1em 0; }
}

/* Tables: hairlines, a soft header row, and sideways scrolling on small screens */
.sh-article .entry-content .wp-block-table {
    margin: 1.9em 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--sh-line); border-radius: var(--sh-radius); background: #fff;
}
.sh-article .entry-content .wp-block-table table { width: 100%; margin: 0; border-collapse: collapse; font-size: .97rem; line-height: 1.65; }
.sh-article .entry-content .wp-block-table :is(th, td) {
    padding: .75em 1em; border: 0; border-bottom: 1px solid var(--sh-line);
    text-align: left; vertical-align: top;
}
.sh-article .entry-content .wp-block-table th { background: #f6f6f4; color: var(--sh-ink); font-weight: 600; vertical-align: bottom; }
.sh-article .entry-content .wp-block-table.aligncenter :is(th, td) { text-align: center; }
.sh-article .entry-content .wp-block-table tr:last-child > td { border-bottom: 0; }
.sh-article .entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) > td { background: #fafaf8; }
.sh-article .entry-content .wp-block-table figcaption { margin: 0; padding: .7em 1em; border-top: 1px solid var(--sh-line); text-align: left; }

/* Videos inside the text */
.sh-article .entry-content .wp-block-embed { margin: 1.9em 0; }
.sh-article .entry-content .wp-block-embed__wrapper { position: relative; overflow: hidden; border-radius: var(--sh-radius); background: #000; }
.sh-article .entry-content .wp-block-embed iframe,
.sh-article .entry-content .wp-block-embed .rll-youtube-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
/* A video YouTube no longer lets other sites play: a card that opens it on YouTube (article-functions.php) */
.sh-article .entry-content .wp-block-embed--link .wp-block-embed__wrapper { overflow: visible; background: none; }
.sh-article .entry-content a.sh-video-out {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px;
    border: 1px solid var(--sh-line); border-radius: var(--sh-radius); background: var(--sh-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
    color: var(--sh-ink); text-decoration: none; transition: box-shadow .2s ease, border-color .2s ease;
}
.sh-article .entry-content a.sh-video-out:hover { border-color: rgba(21, 101, 192, .3); box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 16px 36px rgba(16, 24, 40, .1); }
.sh-video-out__mark { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--sh-mist); color: #ff0000; }
.sh-video-out__mark .sh-icon { width: 26px; height: 26px; }
.sh-video-out__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sh-video-out__title { color: var(--sh-blue); font-weight: 600; line-height: 1.5; }
.sh-video-out__note { color: var(--sh-muted); font-size: .88rem; line-height: 1.5; }
.sh-video-out > .sh-icon { flex: none; width: 20px; height: 20px; color: var(--sh-muted); }

/* Quotes, rules and columns */
.sh-article .entry-content blockquote,
.sh-article .entry-content .wp-block-quote {
    margin: 1.8em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--tone);
    color: var(--sh-ink-2); font-size: 1.08em;
}
.sh-article .entry-content hr { margin: 2.4em auto; border: 0; border-top: 1px solid var(--sh-line); opacity: 1; }
.sh-article .entry-content .wp-block-columns { gap: 0 2em; }

/* Ads: room around them; slots Google leaves empty take no space (Google's own advice). Google marks them
   "unfilled", or "unfill-optimized" when it holds an ad back on purpose (a 368px blank on phones, October 2026). */
.sh-article .banner-container { margin: 2.2em 0; }
.sh-article ins.adsbygoogle[data-ad-status^="unfill"] { display: none !important; }
.sh-article .banner-container:has(> ins.adsbygoogle[data-ad-status^="unfill"]) { margin: 0; }

/* Plain groups are only containers: their contents keep the text's rhythm */
.sh-article .entry-content :where(.wp-block-group, .wp-block-group__inner-container) > :where(*) { margin-top: 0; margin-bottom: 1.15em; }

/* ---------- Callouts (the editors' block styles) ---------- */

.sh-article .entry-content :is(
    .is-style-info, .is-style-warning, .is-style-alert, .is-style-danger, .is-style-medical-emergency,
    .is-style-see-doctor, .is-style-dos, .is-style-donts, .is-style-tips, .is-style-misconception,
    .is-style-quick-question, .is-style-collapse, .has-background
) {
    --c-bg: var(--sh-duck-egg-tint);
    --c-ink: var(--sh-emerald-ink);
    --c-line: rgba(62, 107, 107, .16);
    position: relative; clear: both;
    margin: 1.9em 0 !important; padding: 1.15em 1.35em !important;
    border: 1px solid var(--c-line); border-radius: var(--sh-radius); background: var(--c-bg);
    font-size: 1.04rem; line-height: 1.8;
}
.sh-article .entry-content :is(.is-style-warning, .has-warning-background-color, .has-luminous-vivid-amber-background-color) {
    --c-bg: var(--sh-butterscotch-tint); --c-ink: var(--sh-butterscotch-ink); --c-line: rgba(133, 95, 29, .16);
}
.sh-article .entry-content :is(.is-style-alert, .is-style-danger, .is-style-donts) {
    --c-bg: var(--sh-coral-tint); --c-ink: var(--sh-coral-ink); --c-line: rgba(150, 74, 50, .16);
}
.sh-article .entry-content :is(.is-style-tips, .is-style-misconception, .is-style-quick-question) {
    --c-bg: var(--sh-smoke-tint); --c-ink: var(--sh-smoke-ink); --c-line: rgba(86, 100, 106, .16);
}
.sh-article .entry-content :is(.has-primary-background-color, .has-pale-cyan-blue-background-color) {
    --c-bg: var(--sh-app-blue-tint); --c-ink: var(--sh-app-blue-ink); --c-line: rgba(7, 67, 151, .14);
    color: var(--sh-ink);
}
/* Boxes coloured by hand (shades of yellow, one pink, one blue) join the palette */
.sh-article .entry-content .has-background:is([style*="background-color:#ff"], [style*="background-color:#f8"]) {
    --c-bg: var(--sh-butterscotch-tint); --c-ink: var(--sh-butterscotch-ink); --c-line: rgba(133, 95, 29, .16);
    background-color: var(--c-bg) !important;
}
.sh-article .entry-content .has-background[style*="background-color:#ffcece"] {
    --c-bg: var(--sh-coral-tint); --c-ink: var(--sh-coral-ink); --c-line: rgba(150, 74, 50, .16);
}
.sh-article .entry-content .has-background[style*="background-color:#b3e2ff"] {
    --c-bg: var(--sh-app-blue-tint); --c-ink: var(--sh-app-blue-ink); --c-line: rgba(7, 67, 151, .14);
    background-color: var(--c-bg) !important;
}

.sh-article .entry-content :is(.wp-block-group, .has-background) > :first-child,
.sh-article .entry-content :is(.wp-block-group, .has-background) > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.sh-article .entry-content :is(.wp-block-group, .has-background) > :last-child,
.sh-article .entry-content :is(.wp-block-group, .has-background) > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.sh-article .entry-content :is(.wp-block-group, .has-background) :is(h2, h3) { margin: 0 0 .5em; color: var(--c-ink, var(--sh-ink)); font-size: 1.18rem; line-height: 1.5; }
.sh-article .entry-content :is(.wp-block-group, .has-background) > * { margin-top: 0; margin-bottom: .85em; }
.sh-article .entry-content :is(.wp-block-group, .has-background) :is(ul, ol) { margin-bottom: .85em; }

.sh-article .entry-content :is(
    .is-style-info, .is-style-warning, .is-style-alert, .is-style-danger, .is-style-medical-emergency,
    .is-style-see-doctor, .is-style-tips, .is-style-misconception, .is-style-quick-question, .has-background
) li::marker { color: var(--c-ink); }

/* Paragraph-style callouts (a single p with a block style) */
.sh-article .entry-content p:is(.is-style-info, .is-style-warning, .is-style-alert) { padding: .95em 1.25em !important; }

/* The urgent ones carry a small badge on their top edge */
.sh-article .entry-content :is(.is-style-medical-emergency, .is-style-see-doctor) { margin-top: 2.6em !important; padding-top: 1.75em !important; }
.sh-article .entry-content :is(.is-style-medical-emergency, .is-style-see-doctor)::before,
.sh-article .entry-content :is(.is-style-medical-emergency, .is-style-see-doctor)::after {
    content: ""; position: absolute; top: -18px; left: 20px; width: 36px; height: 36px; padding: 0; border-radius: 50%;
    font-size: 0;
}
.sh-article .entry-content :is(.is-style-medical-emergency, .is-style-see-doctor)::before { background: var(--c-ink); box-shadow: 0 0 0 4px #fff; }
.sh-article .entry-content :is(.is-style-medical-emergency, .is-style-see-doctor)::after {
    background: #fff; -webkit-mask: var(--c-icon) center / 19px no-repeat; mask: var(--c-icon) center / 19px no-repeat;
}

/* Medical emergency: the one place the page turns red */
.sh-article .entry-content .is-style-medical-emergency {
    --c-bg: #fdeeec; --c-ink: #b42318; --c-line: rgba(180, 35, 24, .45);
    --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4.5M12 17h.01'/%3E%3Cpath d='M10.3 3.9 1.9 18a2 2 0 0 0 1.7 3h16.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3C/svg%3E");
    border-width: 1.5px;
}
/* When to see a doctor: white, with a butterscotch edge and a stethoscope */
.sh-article .entry-content .is-style-see-doctor {
    --c-bg: #fff; --c-ink: var(--sh-butterscotch-ink); --c-line: var(--sh-butterscotch);
    --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3H4a1.5 1.5 0 0 0-1.5 1.5V9a5.5 5.5 0 0 0 11 0V4.5A1.5 1.5 0 0 0 12 3h-1'/%3E%3Cpath d='M8 14.5v1a5.5 5.5 0 0 0 11 0V12'/%3E%3Ccircle cx='19' cy='10' r='2'/%3E%3C/svg%3E");
    border-width: 1.5px; box-shadow: var(--sh-shadow);
}

/* Do and don't lists: a tick or a cross on each point */
.sh-article .entry-content :is(.is-style-dos, .is-style-donts) > ul { padding-inline-start: 0; list-style: none; }
.sh-article .entry-content :is(.is-style-dos, .is-style-donts) > ul > li { position: relative; padding-inline-start: 1.9em; }
.sh-article .entry-content :is(.is-style-dos, .is-style-donts) > ul > li::before {
    content: ""; position: absolute; left: 0; top: .32em; width: 1.2em; height: 1.2em; background: var(--c-ink);
    -webkit-mask: var(--c-mark) center / contain no-repeat; mask: var(--c-mark) center / contain no-repeat;
}
.sh-article .entry-content .is-style-dos {
    --c-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.sh-article .entry-content .is-style-donts {
    --c-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m7 7 10 10M17 7 7 17'/%3E%3C/svg%3E");
}
.sh-article .entry-content .is-style-donts h3 { position: static; display: block; padding: 0; background: none; }
.sh-article .entry-content .is-style-donts li { text-indent: 0; }
.sh-article .entry-content :is(.is-style-dos, .is-style-donts) li::before { content: none; }
.sh-article .entry-content :is(.is-style-dos, .is-style-donts) li ul { list-style: disc; padding-inline-start: 1.3em; }

/* ---------- FAQ (Yoast block): one question at a time ---------- */

.sh-article .entry-content .schema-faq { margin: 1.4em 0 2em; border-top: 1px solid var(--sh-line); }
.sh-article .entry-content .schema-faq-section { margin: 0; padding: 0; border-bottom: 1px solid var(--sh-line); }
.sh-article .entry-content .schema-faq-question {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 16px 2px; color: var(--sh-ink); font-size: 1.06rem; font-weight: 600; line-height: 1.6;
    cursor: pointer;
}
.sh-article .entry-content .schema-faq-question::before { content: none; }
.sh-article .entry-content .schema-faq-question::after {
    content: ""; flex: none; width: 20px; height: 20px; margin-top: .2em; background: var(--sh-muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: rotate(180deg); transition: transform .3s var(--sh-ease);
}
.sh-article .entry-content .schema-faq-question.collapsed::after { transform: none; }
.sh-article .entry-content .schema-faq-question:focus-visible { outline: 3px solid var(--sh-blue); outline-offset: 3px; border-radius: 6px; }
.sh-article .entry-content .schema-faq-answer { margin: -4px 0 0; padding: 0 2px 18px; color: var(--sh-ink-2); }
.sh-article .entry-content .schema-faq-answer > p:last-child { margin-bottom: 0; }

/* ---------- End of the article ---------- */

.sh-article__footer { margin-top: clamp(36px, 5vw, 56px); }
.sh-article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.sh-article .sh-tag a {
    display: inline-flex; padding: 4px 14px; border: 1px solid var(--sh-line); border-radius: 999px;
    background: #fff; color: var(--sh-ink-2); font-size: .88rem; line-height: 1.6; text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.sh-article .sh-tag a:hover { border-color: var(--tone-ink); color: var(--sh-ink); }
.sh-article__share-end { padding: 14px 0; border-top: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); }

/* Sources: folded away until asked for (the citation numbers open it too) */
.sh-sources { margin: 0; }
.sh-sources__title { margin: 0; font-size: 1rem; }
.sh-sources__toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
    padding: 16px 0; border: 0; border-bottom: 1px solid var(--sh-line); background: none;
    color: var(--sh-ink); font: inherit; font-size: 1.06rem; font-weight: 600; line-height: 1.5;
    text-align: left; cursor: pointer;
}
.sh-sources__count { color: var(--sh-muted); font-weight: 400; }
.sh-sources__toggle .sh-icon { color: var(--sh-muted); transform: rotate(180deg); transition: transform .3s var(--sh-ease); }
.sh-sources__toggle.collapsed .sh-icon { transform: none; }
.sh-article #sources-list {
    margin: 16px 0 0; padding-inline-start: 1.6em;
    color: var(--sh-ink-2); font-size: .9rem; line-height: 1.7; overflow-wrap: anywhere;
}
.sh-article #sources-list .sources__item { margin-bottom: .7em; }
.sh-article #sources-list .sources__item::marker { color: var(--sh-muted); }

/* ---------- After the article: previous and next, related reading ---------- */

.sh-more { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); border-top: 1px solid var(--sh-line); }
.sh-more__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 575.98px) { .sh-more__inner { padding: 0 16px; } }

.sh-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.sh-pager__link {
    display: flex; flex-direction: column; gap: 6px; padding: 16px 20px;
    border: 1px solid var(--sh-line); border-radius: var(--sh-radius); background: #fff;
    color: var(--sh-ink); text-decoration: none; box-shadow: var(--sh-shadow);
    transition: transform .3s var(--sh-ease), box-shadow .3s var(--sh-ease);
}
.sh-pager__link:hover { color: var(--sh-ink); transform: translateY(-2px); box-shadow: var(--sh-shadow-hover); }
.sh-pager__link--next { grid-column: 2; align-items: flex-end; text-align: right; }
.sh-pager__label { display: inline-flex; align-items: center; gap: 6px; color: var(--sh-muted); font-size: .86rem; }
.sh-pager__label .sh-icon { width: 16px; height: 16px; }
.sh-pager__title {
    display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    font-size: 1.02rem; font-weight: 600; line-height: 1.55;
}
@media (max-width: 575.98px) {
    .sh-pager { grid-template-columns: 1fr; }
    .sh-pager__link--next { grid-column: 1; }
}

.sh-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.sh-related__title { margin: 0; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); font-weight: 600; line-height: 1.4; }
.sh-related__all { flex: none; color: var(--sh-blue); font-weight: 600; text-decoration: none; }
.sh-related__all:hover { color: var(--sh-blue-deep); }
.sh-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sh-related .sh-card { margin: 0; min-width: 0; }
.sh-related .sh-card__link {
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
    border-radius: var(--sh-radius); background: #fff; color: inherit; text-decoration: none;
    box-shadow: var(--sh-shadow); transition: transform .35s var(--sh-ease), box-shadow .35s var(--sh-ease);
}
.sh-related .sh-card__link:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--sh-shadow-hover); }
.sh-related .sh-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sh-surface-2); }
.sh-related .sh-card__img,
.sh-related .sh-card__img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--sh-ease); }
.sh-related .sh-card__img img { position: static; }
.sh-related .sh-card__link:hover .sh-card__img { transform: scale(1.04); }
.sh-related .sh-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 24px; }
.sh-related .sh-card__label { color: var(--tone-ink, var(--sh-emerald-ink)); font-size: .88rem; font-weight: 600; line-height: 1.5; }
.sh-related .sh-card__title {
    display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    margin: 0; color: var(--sh-ink); font-size: 1.1rem; font-weight: 600; line-height: 1.5;
}
@media (max-width: 991.98px) {
    .sh-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .sh-related__grid { grid-template-columns: 1fr; gap: 0; }
    .sh-related .sh-card__link {
        flex-direction: row; align-items: center; gap: 14px; padding: 14px 0;
        border-bottom: 1px solid var(--sh-line); border-radius: 0; background: none; box-shadow: none;
    }
    .sh-related .sh-card__link:hover { transform: none; box-shadow: none; }
    .sh-related .sh-card:last-child .sh-card__link { border-bottom: 0; }
    .sh-related .sh-card__media { flex: none; width: 92px; aspect-ratio: 1 / 1; border-radius: var(--sh-radius-sm); }
    .sh-related .sh-card__body { padding: 0; gap: 4px; }
    .sh-related .sh-card__title { font-size: 1.02rem; }
}

body.single #main:has(> .sh-article) { margin-bottom: 0; }

/* ---------- Step-by-step plans (the 12-week weight loss plan): template-parts/article/plan.php ---------- */

/* Numbered steps joined by a line, in the topic's colour; a step lights up under the pointer */
.sh-plan { margin: clamp(26px, 4vw, 40px) 0 0; padding: 0; list-style: none; }
.sh-plan__step { position: relative; margin: 0; padding: 0; }
.sh-plan__step:not(:last-child)::before {
    content: ""; position: absolute; left: 39px; top: 64px; bottom: -14px; width: 2px; border-radius: 1px;
    background: var(--tone); pointer-events: none;
}
.sh-plan__link {
    display: flex; align-items: flex-start; gap: 18px; padding: 18px 20px; border-radius: var(--sh-radius);
    color: var(--sh-ink); text-decoration: none; transition: background-color .25s ease;
}
.sh-article .sh-plan__link, .sh-more .sh-plan__link { color: var(--sh-ink); text-decoration: none; }
a.sh-plan__link:hover { background: var(--tone-tint); }
.sh-plan__num {
    display: grid; flex: none; place-items: center; width: 40px; height: 40px; border: 2px solid var(--tone); border-radius: 50%;
    background: #fff; color: var(--tone-ink); font-size: 1.08rem; font-weight: 600; line-height: 1;
}
.sh-plan__text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; padding-top: 6px; }
.sh-plan__title { font-size: 1.12rem; font-weight: 600; line-height: 1.5; }
.sh-plan__topics { color: var(--sh-muted); font-size: .95rem; line-height: 1.65; }
.sh-plan .sh-icon { width: 20px; height: 20px; margin-top: 10px; color: #b9b9c0; transition: transform .3s var(--sh-ease), color .2s ease; }
a.sh-plan__link:hover .sh-icon { color: var(--tone-ink); transform: translateX(2px); }
.sh-plan__step.is-current .sh-plan__link { background: var(--tone-tint); }
.sh-plan__step.is-current .sh-plan__num { border-color: var(--tone-ink); background: var(--tone-ink); color: #fff; }
.sh-plan__here {
    flex: none; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: #fff;
    color: var(--tone-ink); font-size: .82rem; font-weight: 600; line-height: 1.5;
}
@media (max-width: 575.98px) {
    .sh-plan__link { gap: 14px; padding: 14px 12px; }
    .sh-plan__num { width: 36px; height: 36px; font-size: 1rem; }
    .sh-plan__step:not(:last-child)::before { left: 29px; top: 56px; bottom: -10px; }
    .sh-plan__text { padding-top: 4px; }
    .sh-plan__title { font-size: 1.06rem; }
    .sh-plan__topics { font-size: .92rem; }
    .sh-plan__here { display: none; }
}

/* At the end of a step: the whole plan, under the plan's name, in the pager's column */
.sh-plan-more { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.sh-plan-more:last-child { margin-bottom: 0; }
.sh-plan-more__title { margin: 0; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 600; line-height: 1.45; }
.sh-plan-more__title a { display: inline-flex; align-items: center; gap: 6px; color: var(--sh-ink); text-decoration: none; }
.sh-plan-more__title a:hover { color: var(--sh-ink); }
.sh-plan-more__title .sh-icon { width: 22px; height: 22px; color: #b9b9c0; transition: transform .3s var(--sh-ease), color .2s ease; }
.sh-plan-more__title a:hover .sh-icon { color: var(--tone-ink); transform: translateX(2px); }
.sh-plan-more .sh-plan { margin-top: 14px; }

/* ---------- Motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
    .sh-article *, .sh-more * { transition: none !important; }
    .sh-related .sh-card__link:hover, .sh-pager__link:hover { transform: none; }
    .sh-related .sh-card__link:hover .sh-card__img { transform: none; }
    a.sh-plan__link:hover .sh-icon, .sh-plan-more__title a:hover .sh-icon { transform: none; }
}

@media print {
    .sh-topbar, #masthead, .sh-article__aside, .sh-share, .banner-container, .sh-more, #site-footer, .prognroll-bar { display: none !important; }
    .sh-article { max-width: none; padding: 0; }
    .sh-article .entry-content { font-size: 11.5pt; line-height: 1.7; }
    .sh-article #sources-list { display: block !important; }
    .sh-article .entry-content .sh-toc--inline { display: none; }
    .sh-article .entry-content a { color: inherit; text-decoration: none; }
}

/* Hover cards: a writer's or reviewer's name, a linked condition, a source number (article.js, card-functions.php).
   White, 14px corners and the lifted shadow, like the site's cards; the byline's round portrait, larger. */
.sh-hovercard {
    --tone-tint: var(--sh-duck-egg-tint); --tone-ink: var(--sh-emerald-ink);
    position: absolute; z-index: 1020; box-sizing: border-box; width: 330px; max-width: calc(100vw - 32px);
    padding: 16px 18px; background: #fff; border: 1px solid var(--sh-line); border-radius: 14px; box-shadow: var(--sh-shadow-hover);
    color: var(--sh-ink-2); font-size: .92rem; line-height: 1.6; text-align: left;
    opacity: 0; transform: translateY(-4px); pointer-events: none;
    transition: opacity .2s var(--sh-ease), transform .2s var(--sh-ease);
}
.sh-hovercard--above { transform: translateY(4px); }
.sh-hovercard.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.sh-hovercard[hidden] { display: none; }
.sh-hovercard__head { display: flex; align-items: center; gap: 14px; }
.sh-hovercard__photo { flex: none; }
.sh-hovercard__photo img {
    display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
    background: var(--sh-surface-2); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--sh-line);
}
.sh-hovercard__photo .sh-byline__initial { width: 56px; height: 56px; font-size: 1.35rem; }
.sh-hovercard__who { min-width: 0; }
.sh-hovercard__name { display: block; color: var(--sh-ink); font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.sh-hovercard__role { display: block; margin-top: 2px; color: var(--sh-muted); font-size: .86rem; line-height: 1.5; }
.sh-hovercard .sh-hovercard__fact { margin: 2px 0 0; font-size: .88rem; }
.sh-hovercard .sh-hovercard__head + .sh-hovercard__fact { margin-top: 12px; }
.sh-hovercard__fact > span:first-child { color: var(--sh-muted); }
.sh-hovercard .sh-hovercard__counts { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--sh-line); font-size: .88rem; }
.sh-hovercard .sh-hovercard__title { margin: 0; color: var(--sh-ink); font-size: 1.02rem; font-weight: 600; line-height: 1.45; }
.sh-hovercard .sh-hovercard__text {
    display: -webkit-box; margin: 6px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.sh-hovercard .sh-hovercard__label { margin: 0 0 4px; color: var(--sh-muted); font-size: .82rem; font-weight: 600; }
.sh-hovercard__source { font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.sh-hovercard__source[lang="en"] { line-height: 1.55; }
.sh-hovercard__source a { color: var(--sh-blue); text-decoration: underline; text-decoration-color: rgba(21, 101, 192, .35); text-underline-offset: .2em; }
.sh-hovercard .sh-hovercard__more {
    display: inline-block; margin-top: 10px; color: var(--sh-blue); font-size: .92rem; font-weight: 600; text-decoration: none;
}
.sh-hovercard .sh-hovercard__more:hover { color: var(--sh-blue-deep); text-decoration: underline; text-underline-offset: .2em; }
@media (prefers-reduced-motion: reduce) {
    .sh-hovercard, .sh-hovercard--above { transform: none; transition: none; }
}
@media print {
    .sh-hovercard { display: none !important; }
}

/* ---------- A tool set into an article ---------- */
/* A calculator in an article's text is a separate object, not more of the article (owner, 9 October 2026,
   after BBC News's calculators): a mist panel with a rule in the tool's colour along its top, the tool's
   icon and "হেলথ টুল" above it, a question for its heading, and a link to the tool's own page below
   (inc/tool-functions.php). The panel keeps the text's side edges. */
.sh-article .sh-embed {
    margin: 2.25em 0; padding: 20px 20px 16px;
    background: var(--sh-mist); border-radius: var(--sh-radius);
    box-shadow: inset 0 4px 0 var(--tone-ink);
}
.sh-article .sh-embed__kicker {
    display: flex; align-items: center; gap: 8px; margin: 2px 0 12px;
    color: var(--tone-ink); font-size: .88rem; font-weight: 600; line-height: 1.5;
}
.sh-article .sh-embed__icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; }
.sh-article .sh-embed__icon svg { width: 18px; height: 18px; }
/* The calculators come with page margins and gutters of their own; inside the panel they sit flush */
.sh-article .sh-embed > [id$="-calculator"] { margin: 0 !important; padding-left: 0; padding-right: 0; max-width: none; }
.sh-article .sh-embed__foot { margin: 12px 0 0; font-size: .92rem; line-height: 1.6; }
.sh-article .sh-embed__foot a { color: var(--sh-blue); font-weight: 600; text-decoration: none; }
.sh-article .sh-embed__foot a:hover { color: var(--sh-blue-deep); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 575.98px) { .sh-article .sh-embed { padding: 16px 12px 12px; } }
