/* Health library pages (Diseases & Conditions, Treatments & Procedures): navy hero shared with diagnostics, KIH brand colours throughout. */
.dc-page { color: var(--ink); }
.dc-page h2 { color: var(--ink); font-size: clamp(1.6rem, 2.2vw, 2.4rem); font-weight: 600; line-height: 1.2; margin-bottom: 1rem; }
.dc-page p { font-size: .95rem; line-height: 1.8; }
.dc-page a:focus-visible, .dc-page button:focus-visible, .dc-page select:focus-visible, .dc-page summary:focus-visible { outline: 2px solid var(--kih-blue); outline-offset: 3px; }
/* Same section rhythm as the Kulsum Story page. */
.dc-section { padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(2.25rem, 4vw, 3.5rem); }

/* Buttons */
.dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.3rem; border: 1px solid transparent; border-radius: 12px; font-size: .9rem; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.dc-btn-primary { border-color: var(--kih-red); background: var(--kih-red); color: #fff; }
.dc-btn-primary:hover { border-color: var(--kih-red-dark); background: var(--kih-red-dark); color: #fff; }
.dc-btn-outline { border-color: rgba(255, 255, 255, .75); color: #fff; }
.dc-btn-outline:hover { background: #fff; color: var(--kih-blue-dark); }
.dc-btn-light { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; }
.dc-btn-light:hover { background: #fff; color: var(--kih-blue-dark); }

/* Hero */
.dc-hero { position: relative; isolation: isolate; overflow: hidden; background: #063b74; }
.dc-hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.dc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 30, 60, .97) 0%, rgba(6, 46, 86, .91) 38%, rgba(6, 46, 86, .55) 68%, rgba(6, 46, 86, .25) 100%); }
.dc-hero-copy { max-width: 760px; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.dc-hero h1 { color: #fff; font-size: clamp(2.25rem, 4vw, 3.75rem); font-weight: 600; line-height: 1.08; margin-bottom: .75rem; }
.dc-hero p { color: #e0ebf7; margin-bottom: 0; }
/* Condition and treatment pages: breadcrumb and title only. */
.dc-hero-compact .dc-hero-copy { padding: clamp(1.5rem, 3vw, 2.25rem) 0; }
.dc-hero-compact .dc-breadcrumb { margin-bottom: .6rem; }
.dc-hero-compact h1 { margin-bottom: 0; font-size: clamp(1.75rem, 3vw, 2.6rem); }
/* Keep the artwork at the scale of the taller heroes and crop it, instead of shrinking it to the short band. */
.dc-hero-compact .dc-hero-art { top: 50%; bottom: auto; height: 280px; transform: translateY(-50%); }
.dc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1rem; color: #bcd3ec; font-size: .82rem; }
.dc-breadcrumb a { color: #fff; font-weight: 600; text-decoration: none; }
.dc-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dc-breadcrumb .bi { font-size: .7rem; }
.dc-hero a:focus-visible, .dc-hero button:focus-visible, .dc-hero input:focus-visible { outline-color: #fff; }

/* Hero search */
.dc-search { display: flex; align-items: center; gap: .5rem; max-width: 620px; margin-top: 1.75rem; padding: .4rem .4rem .4rem 1.1rem; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(3, 30, 60, .25); }
.dc-search > .bi { color: var(--muted); font-size: 1.05rem; }
.dc-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: .95rem; }
.dc-search input:focus { outline: none; }
.dc-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 18px 40px rgba(3, 30, 60, .25); }
.dc-search button { min-height: 44px; padding: .5rem 1.2rem; border: 0; border-radius: 10px; background: var(--kih-red); color: #fff; font-size: .88rem; font-weight: 600; cursor: pointer; }
.dc-search button:hover { background: var(--kih-red-dark); }

/* A–Z letters */
.dc-browse { border-bottom: 1px solid var(--line); background: #fff; }
.dc-az { display: flex; flex-wrap: wrap; gap: .35rem; padding: 1rem 0; }
.dc-az a, .dc-az span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-size: .9rem; font-weight: 700; }
.dc-az a { border: 1px solid #cfdcec; background: #fff; color: var(--kih-blue); text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.dc-az a:hover { border-color: var(--kih-blue); background: var(--kih-blue); color: #fff; }
.dc-az a.is-empty { border-color: transparent; background: transparent; color: #b8c6d6; pointer-events: none; }
.dc-az span { color: #c3cfdc; }
@media (min-width: 768px) { .dc-az { justify-content: center; gap: .6rem; } }

/* Toolbar and groups */
.dc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.dc-page .dc-count { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.dc-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.dc-filter label { color: var(--ink); font-size: .85rem; font-weight: 600; }
.dc-filter select { min-height: 44px; min-width: 230px; padding: .5rem 2.25rem .5rem .9rem; border: 1px solid #cfdcec; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23102a43' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 12px; color: var(--ink); font-size: .9rem; appearance: none; }
.dc-clear { min-height: 44px; padding: .5rem .9rem; border: 0; background: transparent; color: var(--kih-red); font-size: .85rem; font-weight: 600; cursor: pointer; }
.dc-clear:hover { text-decoration: underline; }
.dc-group { scroll-margin-top: 150px; }
.dc-group + .dc-group { margin-top: 2rem; }
.dc-letter { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; color: var(--kih-blue); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.dc-letter::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dc-card { display: flex; flex-direction: column; height: 100%; padding: 1.35rem 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.dc-card:hover { color: inherit; border-color: var(--kih-blue); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.dc-card h4 { margin: 0 0 .35rem; color: var(--ink); font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.dc-page .dc-aka { margin: 0 0 .5rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.dc-page .dc-desc { display: -webkit-box; margin: 0 0 .9rem; overflow: hidden; color: #3a5068; font-size: .88rem; line-height: 1.65; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }
.dc-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.dc-chips span { padding: .2rem .6rem; border-radius: 999px; background: var(--kih-blue-soft); color: var(--kih-blue); font-size: .72rem; font-weight: 600; }
.dc-card-go { display: inline-flex; align-items: center; align-self: flex-end; gap: .4rem; margin-top: auto; color: var(--kih-red); font-size: .82rem; font-weight: 600; }
.dc-card > :last-child { margin-bottom: 0; }
.dc-empty { max-width: 520px; margin: 1rem auto 0; padding: 2rem 1.5rem; border: 1px dashed #cfdcec; border-radius: 18px; text-align: center; }
@media (min-width: 768px) { .dc-empty { max-width: 760px; } }
.dc-empty > .bi { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1rem; border-radius: 16px; background: var(--kih-blue-soft); color: var(--kih-blue); font-size: 1.5rem; }
.dc-empty h3 { font-size: 1.2rem; font-weight: 600; }
.dc-page .dc-empty p { color: #3a5068; }
.dc-page .dc-disclaimer { display: flex; gap: .6rem; margin: 2rem 0 0; padding: 1rem 1.2rem; border-radius: 12px; background: #f4f7fc; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.dc-disclaimer .bi { flex-shrink: 0; margin-top: .1rem; color: var(--kih-blue); }
.dc-disclaimer a { color: var(--kih-red); font-weight: 600; }

/* Closing call to action */
.dc-cta { padding-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.dc-cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 24px; background: radial-gradient(circle at 100% 0%, rgba(229, 27, 62, .35), transparent 42%), linear-gradient(120deg, #031e3c 0%, #063b74 55%, #09519e 100%); }
.dc-cta-panel h2 { color: #fff; margin-bottom: .5rem; }
.dc-page .dc-cta-panel p { margin: 0; color: #d3e2f3; }
.dc-cta-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: .75rem; }
.dc-cta-panel a:focus-visible { outline-color: #fff; }

/* Detail page */
.dc-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
.dc-content { color: #2c4560; }
.dc-content h2, .dc-content h3 { scroll-margin-top: 150px; margin: 2rem 0 .75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); color: var(--ink); font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
.dc-content > h2:first-child, .dc-content > h3:first-child, .dc-content .detail-rich-content > h2:first-child, .dc-content .detail-rich-content > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.dc-content p { margin-bottom: .9rem; font-size: .98rem; line-height: 1.85; }
.dc-content ul, .dc-content ol { margin: 0 0 1rem; padding: 0; list-style: none; }
.dc-content li { position: relative; margin-bottom: .45rem; padding-left: 1.5rem; font-size: .96rem; line-height: 1.7; }
.dc-content ul li::before { content: ""; position: absolute; top: .62em; left: .2rem; width: 8px; height: 8px; border-radius: 50%; background: var(--kih-blue); }
.dc-content ol { counter-reset: dc-item; }
.dc-content ol li { counter-increment: dc-item; }
.dc-content ol li::before { content: counter(dc-item) "."; position: absolute; left: 0; color: var(--kih-blue); font-weight: 700; }
.dc-content img { max-width: 100%; height: auto; border-radius: 12px; }
.dc-related { margin-top: 2.5rem; }
.dc-related h2 { font-size: 1.35rem; }
.dc-related-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.dc-related-list a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border: 1px solid #cfdcec; border-radius: 999px; background: #fff; color: var(--kih-blue); font-size: .88rem; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.dc-related-list a:hover { border-color: var(--kih-blue); background: var(--kih-blue); color: #fff; }
.dc-side { display: grid; gap: 1rem; }
.dc-toc { padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.dc-toc h2, .dc-toc summary { margin: 0 0 .75rem; color: var(--ink); font-size: 1rem; font-weight: 700; }
.dc-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: dc-toc; }
.dc-toc li { counter-increment: dc-toc; }
.dc-toc a { display: flex; gap: .6rem; padding: .45rem 0; color: #3a5068; font-size: .88rem; line-height: 1.45; text-decoration: none; }
.dc-toc a::before { content: counter(dc-toc, decimal-leading-zero); color: #9fb3c8; font-size: .75rem; font-weight: 700; line-height: 1.9; }
.dc-toc a:hover { color: var(--kih-blue); }
.dc-toc-mobile { display: none; margin-bottom: 1.5rem; }
.dc-toc-mobile summary { margin: 0; cursor: pointer; list-style: none; }
.dc-toc-mobile summary::-webkit-details-marker { display: none; }
.dc-toc-mobile summary::after { content: "\F282"; float: right; font-family: bootstrap-icons; transition: transform .2s ease; }
.dc-toc-mobile[open] summary { margin-bottom: .5rem; }
.dc-toc-mobile[open] summary::after { transform: rotate(180deg); }
.dc-care { padding: 1.4rem 1.4rem 1.5rem; border-radius: 20px; background: linear-gradient(145deg, #031e3c 0%, #063b74 55%, #09519e 100%); color: #fff; }
.dc-care h2 { margin-bottom: .5rem; color: #fff; font-size: 1.15rem; }
.dc-page .dc-care p { margin-bottom: 1rem; color: #d3e2f3; font-size: .88rem; line-height: 1.65; }
.dc-care-list { display: grid; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.dc-care-list a { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; transition: background-color .2s ease; }
.dc-care-list a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.dc-care-list span { flex: 1; min-width: 0; }
.dc-care-list .bi-arrow-right { font-size: .85rem; opacity: .75; }
.dc-care > :last-child { margin-bottom: 0; }

/* Our doctors row below a condition or treatment (cards come from doctors.css) */
.dc-doctors { padding: clamp(2rem, 4vw, 3rem) 0; background: #f6f9fd; }
.dc-doctors-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.dc-doctors-head h2 { margin: 0 0 .3rem; }
.dc-page .dc-doctors-head p { margin: 0; color: var(--muted); }
.dc-doctors-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
@media (max-width: 575.98px) { .dc-doctors-tools { justify-content: space-between; width: 100%; } }
.dc-care a:focus-visible { outline-color: #fff; }
@media (min-width: 992px) { .dc-side { position: sticky; top: 150px; } }

@media (max-width: 1199.98px) {
    .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .dc-detail-layout { grid-template-columns: 1fr; }
    .dc-toc-desktop { display: none; }
    .dc-toc-mobile { display: block; }
}
@media (max-width: 767.98px) {
    .dc-hero::before { background: rgba(3, 30, 60, .82); }
    .dc-az { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
    .dc-az a, .dc-az span { flex: 0 0 36px; width: 36px; height: 36px; }
    .dc-toolbar { align-items: stretch; flex-direction: column; }
    .dc-filter select { flex: 1; min-width: 0; }
    .dc-grid { grid-template-columns: 1fr; }
    .dc-cta-panel { flex-direction: column; align-items: flex-start; }
    .dc-cta-actions { width: 100%; }
    .dc-cta-actions .dc-btn { flex: 1 1 auto; }
}
@media (max-width: 575.98px) {
    .dc-page p { font-size: .88rem; line-height: 1.75; }
    .dc-search { padding-left: .9rem; }
    .dc-search button { padding: .5rem .9rem; }
    .dc-filter label { width: 100%; }
    .dc-content p, .dc-content li { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
    .dc-card, .dc-btn, .dc-az a, .dc-related-list a, .dc-care-list a { transition: none; }
    .dc-card:hover { transform: none; }
}

/* Stroke Risk Assessment tool */
.sr-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.sr-facts li { display: inline-flex; align-items: center; gap: .45rem; color: #d3e2f3; font-size: .88rem; font-weight: 500; }
.sr-facts .bi { color: #fff; }
.sr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
.sr-card { padding: clamp(1.4rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.sr-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }
.sr-card-head h2 { margin: 0; }
.dc-page .sr-progress-text { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.sr-progress { height: 6px; margin-bottom: 1.5rem; overflow: hidden; border-radius: 999px; background: var(--kih-blue-soft); }
.sr-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--kih-blue); transition: width .3s ease; }
.sr-question { min-width: 0; margin: 0; padding: 1.25rem 0; border: 0; border-top: 1px dashed var(--line); }
/* Floated full-width legend keeps the fieldset's dashed top border above the title instead of through it. */
.sr-question legend { display: flex; align-items: center; gap: .65rem; float: left; width: 100%; margin: 0 0 .25rem; padding: 0; color: var(--ink); font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.sr-num { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--kih-blue); color: #fff; font-size: .8rem; font-weight: 700; }
.dc-page .sr-help { clear: left; margin: 0 0 .85rem 2.4rem; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.sr-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-left: 2.4rem; }
.sr-option { position: relative; display: flex; cursor: pointer; }
.sr-option input { position: absolute; opacity: 0; pointer-events: none; }
.sr-option span { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 52px; padding: .65rem .9rem; border: 1px solid #cfdcec; border-radius: 12px; background: #fff; color: var(--ink); font-size: .88rem; font-weight: 500; line-height: 1.4; transition: border-color .2s ease, background-color .2s ease; }
.sr-option .bi { flex-shrink: 0; color: #cfdcec; font-size: 1rem; transition: color .2s ease; }
.sr-option:hover span { border-color: var(--kih-blue); }
.sr-option input:checked + span { border-color: var(--kih-blue); background: var(--kih-blue-soft); }
.sr-option input:checked + span .bi { color: var(--kih-blue); }
.sr-option input:focus-visible + span { outline: 2px solid var(--kih-blue); outline-offset: 2px; }
.dc-page .sr-missing { margin: .5rem 0 0; padding: .75rem 1rem; border-radius: 10px; background: var(--kih-red-soft); color: var(--kih-red); font-size: .88rem; font-weight: 600; }
.sr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.sr-reset { padding: .5rem 0; border: 0; background: transparent; color: var(--muted); font-size: .88rem; font-weight: 600; cursor: pointer; }
.sr-reset:hover { color: var(--kih-blue); text-decoration: underline; }

/* Stroke Risk Assessment result: the top bar and badge take the level colour. */
.sr-result { position: relative; margin-top: 1.5rem; overflow: hidden; outline: none; }
.sr-result::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--sr-tone, var(--kih-blue)); }
.sr-result[data-level="high"] { --sr-tone: #d7263d; --sr-soft: #fff0f3; }
.sr-result[data-level="caution"] { --sr-tone: #b86e00; --sr-soft: #fff5e3; }
.sr-result[data-level="low"] { --sr-tone: #1a7f4b; --sr-soft: #e8f7ee; }
.dc-page .sr-level { display: inline-block; margin: 0 0 .6rem; padding: .3rem .8rem; border-radius: 999px; background: var(--sr-soft); color: var(--sr-tone); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sr-result h2 { margin-bottom: .5rem; }
.dc-page .sr-message { color: #2c4560; }
.sr-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.sr-count { padding: 1rem; border-radius: 14px; text-align: center; }
.sr-count strong { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.sr-count span { font-size: .8rem; font-weight: 600; }
.sr-count-high { background: #fff0f3; color: #d7263d; }
.sr-count-caution { background: #fff5e3; color: #b86e00; }
.sr-count-low { background: #e8f7ee; color: #1a7f4b; }
.sr-advice { margin-top: 1rem; }
.sr-advice h3 { margin-bottom: .6rem; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.sr-advice ul { margin: 0; padding: 0; list-style: none; }
.sr-advice li { position: relative; margin-bottom: .55rem; padding-left: 1.4rem; color: #2c4560; font-size: .9rem; line-height: 1.65; }
.sr-advice li::before { content: ""; position: absolute; top: .6em; left: .15rem; width: 8px; height: 8px; border-radius: 50%; background: var(--kih-blue); }
.sr-advice strong { color: var(--ink); }
.sr-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.sr-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--kih-blue); font-size: .9rem; font-weight: 600; text-decoration: none; }
.sr-link:hover { color: var(--kih-blue); text-decoration: underline; text-underline-offset: 4px; }

/* Stroke Risk Assessment side cards */
.sr-side { display: grid; gap: 1rem; }
.sr-fast, .sr-tips { padding: 1.4rem; border-radius: 20px; }
.sr-fast { border: 1px solid #f6c7d0; background: var(--kih-red-soft); }
.sr-fast h2, .sr-tips h2 { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; font-size: 1.1rem; }
.sr-fast h2 .bi { color: var(--kih-red); }
.sr-fast ul { display: grid; gap: .45rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.sr-fast li { display: flex; align-items: center; gap: .7rem; color: #2c4560; font-size: .88rem; }
.sr-fast li strong { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--kih-red); color: #fff; font-size: .9rem; }
.sr-fast em { color: var(--ink); font-style: normal; font-weight: 600; }
.dc-page .sr-fast p { margin: 0; color: #2c4560; font-size: .85rem; line-height: 1.65; }
.sr-fast a { color: var(--kih-red); font-weight: 700; }
.sr-tips { background: linear-gradient(145deg, #031e3c 0%, #063b74 55%, #09519e 100%); color: #fff; }
.sr-tips h2 { color: #fff; }
.sr-tips ol { margin: 0; padding: 0; list-style: none; counter-reset: sr-tip; }
.sr-tips li { position: relative; margin-bottom: .55rem; padding-left: 2rem; color: #d3e2f3; font-size: .88rem; line-height: 1.55; counter-increment: sr-tip; }
.sr-tips li::before { content: counter(sr-tip); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: .72rem; font-weight: 700; }
@media (min-width: 992px) { .sr-side { position: sticky; top: 150px; } }
@media (max-width: 991.98px) { .sr-layout { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) {
    .sr-options { grid-template-columns: 1fr; margin-left: 0; }
    .dc-page .sr-help { margin-left: 0; }
}
@media (max-width: 575.98px) {
    .sr-counts { gap: .5rem; }
    .sr-count { padding: .75rem .5rem; }
    .sr-count strong { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .sr-progress span, .sr-option span, .sr-option .bi { transition: none; } }

/* Heart Risk Assessment: shares the stroke tool layout, adds number inputs, yes/no rows and a score gauge. */
.sr-options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.sr-options.hr-options-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sr-options-2.hr-options-wide { max-width: none; }
.hr-options-5 .sr-option span, .hr-yn .sr-option span, .hr-units .sr-option span { justify-content: center; }
.hr-yn .sr-option span, .hr-units .sr-option span { min-height: 40px; padding: .4rem .75rem; }
.hr-fields.hr-measure { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(150px, .9fr); max-width: 640px; }
.hr-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.hr-units .sr-option span { min-height: 48px; font-weight: 600; }
.hr-diet { display: grid; gap: .5rem; margin-left: 2.4rem; }
.hr-diet-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.25rem; padding: .5rem .5rem .5rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }
.dc-page .hr-diet-row p { margin: 0; color: var(--ink); font-size: .88rem; line-height: 1.5; }
.hr-yn { display: grid; flex-shrink: 0; grid-template-columns: repeat(2, 76px); gap: .4rem; }
.hr-pts { display: inline-block; margin-left: .45rem; padding: .1rem .55rem; border-radius: 999px; background: var(--sr-soft); color: var(--sr-tone); font-size: .72rem; font-weight: 700; vertical-align: .1em; }
.hr-factor-text { display: block; }
.hr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: 520px; margin: .75rem 0 0 2.4rem; }
.hr-fields[hidden] { display: none; }
.hr-field { display: grid; gap: .35rem; color: var(--ink); font-size: .85rem; font-weight: 600; }
.hr-input { display: flex; align-items: center; min-height: 48px; border: 1px solid #cfdcec; border-radius: 12px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.hr-input:focus-within { border-color: var(--kih-blue); box-shadow: 0 0 0 .2rem rgba(9, 81, 158, .14); }
.hr-input input { flex: 1; min-width: 0; height: 46px; padding: 0 .9rem; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-size: .95rem; font-weight: 500; }
.hr-input input:focus { outline: none; }
.hr-input em { padding: 0 .9rem 0 .25rem; color: var(--muted); font-size: .8rem; font-style: normal; font-weight: 600; white-space: nowrap; }
.dc-page .hr-subq { margin: 1rem 0 .6rem 2.4rem; color: var(--ink); font-size: .9rem; font-weight: 600; }
.hr-page .sr-question .sr-options { margin-top: .1rem; }
/* Short questions sit in pairs on desktop; the age input fills its column. */
@media (min-width: 992px) {
    .hr-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
    /* Answers line up at the bottom of the pair even when one help text wraps to more lines;
       .hr-row-top keeps them at the top when one side has more rows of answers. */
    .hr-row > .sr-question { display: flex; flex-direction: column; }
    .hr-row:not(.hr-row-top) > .sr-question > :last-child { margin-top: auto; }
    .hr-row .hr-fields { grid-template-columns: 1fr; }
    .hr-row .hr-input { min-height: 52px; }
    .hr-row .hr-input input { height: 50px; }
}
.sr-question.is-invalid .sr-option span, .sr-question.is-invalid .hr-input { border-color: var(--kih-red); }
.sr-question.is-invalid legend .sr-num { background: var(--kih-red); }
.hr-gauge { margin: 1.25rem 0 .5rem; }
/* Score bands on a 0-48 scale: low 0-9, moderate 10-15, high 16+. */
.hr-gauge-track { position: relative; height: 12px; overflow: hidden; border-radius: 999px; background: linear-gradient(90deg, #e8f7ee 0 20.83%, #fff5e3 20.83% 33.33%, #fff0f3 33.33% 100%); }
.hr-gauge-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--sr-tone, var(--kih-blue)); transition: width .5s ease; }
.hr-gauge-scale { position: relative; height: 1.1rem; margin-top: .4rem; color: var(--muted); font-size: .72rem; font-weight: 600; }
.hr-gauge-scale span { position: absolute; top: 0; left: var(--at, 0); transform: translateX(-50%); }
.hr-gauge-scale span:first-child { transform: none; }
.hr-gauge-scale span:last-child { right: 0; left: auto; transform: none; }
.dc-page .hr-model { margin: .75rem 0 0; color: var(--muted); font-size: .85rem; }
.hr-signs li { align-items: flex-start; }
.hr-signs li .bi { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--kih-red); color: #fff; font-size: .95rem; }
.hr-signs li span { padding-top: .3rem; }
@media (max-width: 767.98px) {
    .hr-fields, .hr-diet { margin-left: 0; }
    .dc-page .hr-subq { margin-left: 0; }
    .sr-options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sr-options.hr-options-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hr-options-5 .sr-option span { padding: .6rem .4rem; }
    .hr-options-5 .sr-option .bi { display: none; }
    .sr-options-2.hr-options-wide { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .hr-fields.hr-measure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hr-measure .hr-field:last-child { grid-column: 1 / -1; }
    .hr-diet-row { flex-direction: column; align-items: stretch; padding: .75rem; }
    .hr-yn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) { .hr-fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hr-input, .hr-gauge-track span { transition: none; } }

/* Diabetes Risk Assessment: reuses the heart tool; AUSDRISK bands are low 0-5, intermediate 6-11, high 12+ on a 0-36 scale. */
.dr-page .hr-gauge-track { background: linear-gradient(90deg, #e8f7ee 0 16.67%, #fff5e3 16.67% 33.33%, #fff0f3 33.33% 100%); }
.dr-odds { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: .75rem 0 1rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--sr-soft); }
.dr-odds strong { color: var(--sr-tone); font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.dr-odds span { color: var(--ink); font-size: .95rem; font-weight: 500; }
.hr-fields.dr-measure { grid-template-columns: minmax(0, 1fr) minmax(150px, .9fr); max-width: 440px; }
@media (max-width: 575.98px) { .dr-measure .hr-field:last-child { grid-column: auto; } }

/* Ideal Weight Calculator: height and weight with unit toggles, a BMI gauge with a pin, and the formula table. */
.bw-optional { padding: .15rem .6rem; border-radius: 999px; background: var(--kih-blue-soft); color: var(--kih-blue); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bw-measure { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(170px, 1fr); gap: .75rem; max-width: 560px; margin-left: 2.4rem; }
.bw-inputs[hidden] { display: none; }
.bw-inputs-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.bw-result:not([data-level]) { --sr-tone: var(--kih-blue); --sr-soft: var(--kih-blue-soft); }
.bw-bmi { margin: 1.25rem 0; padding: 1.1rem 1.2rem 1rem; border-radius: 14px; background: var(--sr-soft); }
.bw-bmi[hidden] { display: none; }
.dc-page .bw-bmi-head p { margin: 0; }
.dc-page .bw-bmi-head p:first-child { color: var(--ink); font-size: .95rem; font-weight: 600; }
.bw-bmi-head strong { margin-left: .35rem; color: var(--sr-tone); font-size: 1.5rem; }
.dc-page .bw-bmi-head .bw-bmi-advice { margin-top: .35rem; color: #2c4560; font-size: .9rem; line-height: 1.6; }
.bw-gauge { margin-top: 1.1rem; }
.bw-gauge-track { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #fde7c2 0 17.5%, #bfe8cf 17.5% 40%, #fde7c2 40% 50%, #f9c9d2 50% 100%); }
.bw-gauge-pin { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; border: 4px solid #fff; border-radius: 50%; background: var(--sr-tone); box-shadow: 0 2px 6px rgba(3, 30, 60, .3); transform: translate(-50%, -50%); transition: left .5s ease; }
.bw-formulas { margin-top: 1.25rem; }
.bw-formulas[hidden] { display: none; }
.bw-formulas h3 { margin-bottom: .6rem; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.bw-table { width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.bw-table th, .bw-table td { padding: .65rem .95rem; border-bottom: 1px solid var(--line); text-align: left; }
.bw-table thead th { background: #f6f9fd; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bw-table tbody th { color: var(--ink); font-weight: 500; }
.bw-table td, .bw-table thead th:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.bw-table .bw-average th, .bw-table .bw-average td { border-bottom: 0; background: var(--kih-blue-soft); color: var(--kih-blue); font-weight: 700; }
.bw-bands { padding: 1.4rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.bw-bands h2 { margin-bottom: .9rem; font-size: 1.1rem; }
.bw-bands ul { display: grid; gap: .45rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.bw-bands li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .8rem; border-radius: 10px; font-size: .88rem; }
.bw-bands li span { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 500; }
.bw-bands li span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--band); }
.bw-bands li strong { color: var(--band); font-weight: 700; white-space: nowrap; }
.bw-band-under, .bw-band-over { --band: #b86e00; background: #fff5e3; }
.bw-band-healthy { --band: #1a7f4b; background: #e8f7ee; }
.bw-band-obese { --band: #d7263d; background: #fff0f3; }
.dc-page .bw-bands p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
@media (max-width: 767.98px) { .bw-measure { margin-left: 0; } }
@media (max-width: 575.98px) { .bw-measure { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bw-gauge-pin { transition: none; } }

/* Metabolic Health Calculator: activity options with a description line, result tiles and the side card. */
.sr-options.mh-activity { grid-template-columns: 1fr; max-width: 640px; }
.mh-activity .sr-option span { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .1rem .6rem; padding: .7rem .95rem; }
.mh-activity .sr-option .bi { grid-row: span 2; }
.mh-activity strong { color: var(--ink); font-size: .9rem; font-weight: 600; }
.mh-activity small { color: var(--muted); font-size: .8rem; }
.mh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.mh-stats li { display: grid; align-content: start; gap: .15rem; padding: 1rem .75rem; border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.mh-stats span { color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mh-stats strong { color: var(--ink); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.mh-stats small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.mh-stats .mh-stat-main { border-color: var(--kih-blue); background: var(--kih-blue-soft); }
.mh-stats .mh-stat-main strong { color: var(--kih-blue); }
.bw-table .mh-goal-warning { color: var(--kih-red); font-size: .82rem; }
.mh-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.mh-card h2 { margin-bottom: .9rem; font-size: 1.1rem; }
.mh-card ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.mh-card li { display: flex; align-items: flex-start; gap: .7rem; color: #2c4560; font-size: .88rem; line-height: 1.55; }
.mh-card li .bi { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--kih-blue-soft); color: var(--kih-blue); font-size: .95rem; }
.mh-card li span { padding-top: .2rem; }
.mh-card strong { color: var(--ink); font-weight: 600; }
/* On phones each tile becomes a row: label and note on the left, number on the right. */
@media (max-width: 575.98px) {
    .mh-stats { grid-template-columns: 1fr; gap: .5rem; }
    .mh-stats li { grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; padding: .75rem 1rem; text-align: left; }
    .mh-stats strong { grid-column: 2; grid-row: 1 / span 2; font-size: 1.4rem; }
}

/* Health Library hub: topic cards, tool cards on a tinted band, and latest articles. */
.hl-head { max-width: 720px; margin-bottom: 1.5rem; }
.dc-page .hl-head h2 { margin-bottom: .35rem; }
.dc-page .hl-head p { margin: 0; color: var(--muted); }
.hl-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; max-width: none; }
.hl-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.hl-topic { display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, #fff 0%, #f4f8fd 100%); color: inherit; text-decoration: none; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.hl-topic:hover { color: inherit; border-color: var(--kih-blue); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.hl-icon { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; margin-bottom: 1.1rem; border-radius: 16px; background: var(--kih-blue); color: #fff; font-size: 1.5rem; }
.hl-icon-sm { width: 44px; height: 44px; margin-bottom: .9rem; border-radius: 12px; background: var(--kih-blue-soft); color: var(--kih-blue); font-size: 1.2rem; }
.hl-topic h3 { margin-bottom: .5rem; color: var(--ink); font-size: 1.3rem; font-weight: 600; }
.dc-page .hl-topic p { margin-bottom: 1.25rem; color: #3a5068; font-size: .92rem; line-height: 1.7; }
.hl-topic-foot, .hl-tool-foot { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.hl-topic-foot .dc-card-go, .hl-tool-foot .dc-card-go { margin: 0 0 0 auto; }
.hl-count { padding: .25rem .7rem; border-radius: 999px; background: var(--kih-blue-soft); color: var(--kih-blue); font-size: .75rem; font-weight: 700; }
.hl-meta { color: var(--muted); font-size: .78rem; font-weight: 600; }
.hl-tools-section { background: #f6f9fd; }
.hl-article img { width: calc(100% + 2.8rem); max-width: none; height: auto; aspect-ratio: 16 / 9; margin: -1.35rem -1.4rem 1rem; border-radius: 17px 17px 0 0; object-fit: cover; }
.hl-article .hl-meta { margin-bottom: .35rem; }
@media (max-width: 991.98px) { .hl-topic { padding: 1.4rem; } }
@media (max-width: 767.98px) { .hl-topics { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hl-topic { transition: none; } .hl-topic:hover { transform: none; } }
