/* ============================================================
   Suwa News — Stylesheet
   Theme: Professional Medical — teal + navy + clean white
   Mobile-first, SEO-ready
   ============================================================ */

/* ── Design tokens ────────────────────────────────────────── */
:root {
    --primary:       #0A7B6E;
    --primary-dark:  #065F55;
    --primary-light: #0D9E8E;
    --navy:          #1A2E3B;
    --slate:         #2C4A5A;
    --mid:           #5B7A8A;
    --teal-light:    #E6F5F3;
    --mint:          #F0FAF8;
    --border:        #C8E0DC;
    --white:         #FFFFFF;
    --alert-red:     #C0392B;
    --announce-blue: #1F6F9A;
    --gold:          #E67E22;
    --text:          #1A2A2E;
    --text-muted:    #5B7A8A;
    --font-main:     'Inter', sans-serif;
    --font-si:       'Noto Sans Sinhala', sans-serif;
    --radius:        8px;
    --shadow-sm:     0 1px 4px rgba(10,123,110,.07);
    --shadow-md:     0 3px 14px rgba(10,123,110,.12);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-main);
    background: var(--mint);
    color: var(--text);
    overflow-x: hidden;
    margin: 0;
    line-height: 1.7;
    font-size: 15px;
}
/* Sinhala font switch */
body.lang-si,
body.lang-si p,
body.lang-si h1, body.lang-si h2, body.lang-si h3,
body.lang-si h4, body.lang-si h5, body.lang-si h6,
body.lang-si .strip-title,
body.lang-si .hero-title { font-family: var(--font-si); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

/* ── Utility bar ──────────────────────────────────────────── */
.util-bar {
    background: var(--navy);
    padding: 5px 0;
    font-size: .76rem;
}
.util-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem; }
.util-editor {
    color: rgba(255,255,255,.55);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.util-editor i  { color: var(--primary-light); }
.util-editor strong { color: rgba(255,255,255,.85); font-style: normal; }
.util-date { color: rgba(255,255,255,.45); }
.util-lang-switch {
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.08);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    transition: background .2s, color .2s;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.util-lang-switch:hover { background: var(--primary); color: #fff; }

/* ── Masthead ─────────────────────────────────────────────── */
.masthead {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 12px rgba(10,123,110,.08);
    padding: .75rem 0;
}
.brand-link { text-decoration: none; display: inline-block; }
.brand-main {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -.4px;
}
.brand-accent { color: var(--primary); }
.brand-si {
    color: var(--text-muted);
    font-size: .7em;
    font-weight: 500;
    margin-left: .4rem;
    vertical-align: middle;
}
.brand-by {
    font-size: .78rem;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 500;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.brand-by i { color: var(--primary); }
/* Search in masthead */
.search-form .search-input {
    border: 1.5px solid var(--border);
    border-radius: 24px 0 0 24px;
    padding: .42rem 1rem;
    font-size: .88rem;
    background: var(--mint);
    color: var(--text);
    transition: border-color .2s;
}
.search-form .search-input:focus {
    border-color: var(--primary);
    box-shadow: none;
    outline: none;
    background: #fff;
}
.search-form .btn-search {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 24px 24px 0;
    padding: .42rem 1.1rem;
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s;
}
.search-form .btn-search:hover { background: var(--primary-dark); }

/* ── Navigation (Bootstrap 5 overrides) ───────────────────── */
.site-nav {
    background: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(10,123,110,.28);
}
.site-nav .navbar-toggler {
    border-color: rgba(255,255,255,.4);
    padding: .3rem .6rem;
}
.site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.site-nav .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-size: .84rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .4rem .75rem !important;
    border-radius: 4px;
    transition: color .2s, background .2s;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active,
.site-nav .nav-link:focus { color: #fff !important; background: rgba(255,255,255,.18); }
.site-nav .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .35rem 0;
    margin-top: .35rem;
    background: #fff;
    min-width: 200px;
}
.site-nav .dropdown-item {
    font-size: .86rem;
    padding: .45rem 1rem;
    color: var(--text);
    transition: background .15s, color .15s;
}
.site-nav .dropdown-item:hover { background: var(--teal-light); color: var(--primary-dark); }
.site-nav .navbar-collapse { padding-top: 0; }

/* Mobile nav: collapse panel */
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        background: var(--primary-dark);
        margin: 0 -12px;
        padding: .5rem 1rem;
        border-top: 1px solid rgba(255,255,255,.15);
    }
    .site-nav .dropdown-menu {
        background: rgba(255,255,255,.08);
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }
    .site-nav .dropdown-item {
        color: rgba(255,255,255,.8);
        padding: .4rem .75rem;
        font-size: .82rem;
    }
    .site-nav .dropdown-item:hover { background: rgba(255,255,255,.12); color: #fff; }
}

/* ── Main content wrapper ─────────────────────────────────── */
.main-content { padding: 0 0 2rem; }

/* ── Hero strip ───────────────────────────────────────────── */
.hero-strip { padding: 1rem 0 0; }
.hero-card-link { display: block; text-decoration: none; height: 100%; }
.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow-md);
}
.hero-card-lg { min-height: 340px; }
.hero-card-sm { min-height: 160px; }
.hero-img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.hero-card:hover .hero-img { transform: scale(1.03); }
.hero-img-placeholder {
    width: 100%;
    min-height: inherit;
    background: linear-gradient(135deg, var(--slate), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.15);
    font-size: 3rem;
}
.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(10,20,26,.92) 0%, rgba(10,20,26,.5) 60%, transparent 100%);
    padding: 1.5rem 1.25rem 1.1rem;
}
.cat-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .5rem;
}
.cat-badge.sm { font-size: .63rem; padding: 1px 7px; }
.hero-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin: .35rem 0 .4rem;
}
.hero-title.sm { font-size: 1rem; margin: .2rem 0 .25rem; }
.hero-excerpt { color: rgba(255,255,255,.72); font-size: .88rem; line-height: 1.55; margin-bottom: .5rem; }
.hero-meta { font-size: .76rem; color: rgba(255,255,255,.5); display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Section headers ──────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}
.section-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.section-title i { font-size: .9em; }

/* ── Article strips ───────────────────────────────────────── */
.article-strips { display: flex; flex-direction: column; gap: .75rem; }
.article-strip {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.article-strip:hover { border-left-color: var(--primary); box-shadow: var(--shadow-md); }

.strip-img-wrap {
    width: 170px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
    background: var(--teal-light);
    position: relative;
}
.strip-img-wrap .strip-img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.article-strip:hover .strip-img { transform: scale(1.04); }
.strip-img-placeholder {
    width: 170px;
    min-height: 120px;
    flex-shrink: 0;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: 2rem;
    text-decoration: none;
}
.strip-body {
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}
.strip-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-bottom: .3rem;
}
.strip-cat {
    font-size: .69rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
}
.strip-cat:hover { color: var(--primary-dark); }
.strip-title {
    font-size: .97rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin: 0 0 .35rem;
}
.strip-title a { color: inherit; }
.strip-title a:hover { color: var(--primary); }
.strip-excerpt {
    font-size: .83rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.strip-meta-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-top: .5rem;
    font-size: .74rem;
    color: var(--text-muted);
}
.strip-read-more {
    font-size: .74rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-left: auto;
    white-space: nowrap;
}
.strip-read-more:hover { color: var(--primary-dark); }

/* ── Type badges ──────────────────────────────────────────── */
.type-badge {
    display: inline-block;
    font-size: .63rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .07em;
    line-height: 1.4;
}
.type-badge.breaking { background: var(--alert-red); color: #fff; }
.type-badge.press    { background: var(--announce-blue); color: #fff; }

/* ── Lang badges ──────────────────────────────────────────── */
.lang-badge {
    display: inline-block;
    font-size: .58rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--gold);
    color: #fff;
    vertical-align: middle;
    margin-left: 4px;
    white-space: nowrap;
}
.lang-badge-only    { background: var(--gold); }
.lang-badge-primary { background: #9CA3AF; font-weight: 500; }

/* ── Sidebar widgets ──────────────────────────────────────── */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary);
}
.widget-title {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--teal-light);
    padding: .6rem 1rem;
    margin: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .45rem;
}
.widget-cat-list {
    list-style: none;
    margin: 0;
    padding: .35rem 0;
}
.widget-cat-list li a {
    display: block;
    padding: .42rem 1rem;
    font-size: .86rem;
    color: var(--text);
    border-left: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.widget-cat-list li a:hover,
.widget-cat-list li a.active {
    background: var(--teal-light);
    color: var(--primary-dark);
    border-left-color: var(--primary);
}

/* ── Editor card ──────────────────────────────────────────── */
.editor-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary);
    text-align: center;
}
.editor-avatar {
    width: 72px; height: 72px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .75rem;
    color: var(--primary);
    font-size: 1.7rem;
    overflow: hidden;
    border: 3px solid var(--primary);
}
.editor-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.editor-info { text-align: center; }
.editor-name  { font-size: .96rem; font-weight: 700; color: var(--navy); margin-bottom: .2rem; }
.editor-role  { font-size: .72rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.editor-org   { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; font-style: italic; }

/* ── Medical disclaimer ───────────────────────────────────── */
.medical-disclaimer {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-left: 4px solid #F9A825;
    border-radius: var(--radius);
    padding: .85rem 1rem;
    font-size: .82rem;
    color: #5D4037;
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    line-height: 1.6;
}
.disclaimer-icon { color: #F9A825; flex-shrink: 0; margin-top: .1rem; font-size: 1rem; }
.disclaimer-text { flex: 1; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination-wrap { display: flex; justify-content: center; }
.pagination .page-link { color: var(--primary); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-link:hover { background: var(--teal-light); color: var(--primary-dark); }

/* ── Article detail page ──────────────────────────────────── */
.article-breadcrumb .breadcrumb { margin: 0; padding: 0; background: none; }
.article-breadcrumb .breadcrumb-item a { color: var(--primary); font-size: .84rem; }
.article-breadcrumb .breadcrumb-item.active { color: var(--text-muted); font-size: .84rem; }
.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

.article-detail {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.article-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--navy);
    margin: .5rem 0 1rem;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    font-size: .8rem;
    color: var(--text-muted);
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}
.article-cat {
    font-size: .72rem;
    font-weight: 700;
    color: var(--white);
    background: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
}
.article-cat:hover { background: var(--primary-dark); color: #fff; }
.article-featured-img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    max-height: 440px;
    object-fit: cover;
    display: block;
}
.article-excerpt {
    background: var(--teal-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 6px 6px 0;
    padding: .85rem 1.1rem;
    font-size: .95rem;
    color: var(--slate);
    font-style: italic;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}
.article-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text);
}
.article-content p { margin-bottom: 1.1rem; }
.article-content h2, .article-content h3 {
    color: var(--navy);
    margin: 1.75rem 0 .8rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--teal-light);
}
.article-content h2 { font-size: 1.3rem; }
.article-content h3 { font-size: 1.1rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: .35rem; }
.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--teal-light);
    padding: .75rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 1.2rem 0;
    color: var(--slate);
    font-style: italic;
}
.article-content img { border-radius: 6px; margin: 1rem 0; max-width: 100%; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .9rem; }
.article-content th, .article-content td { padding: .5rem .75rem; border: 1px solid var(--border); }
.article-content th { background: var(--teal-light); font-weight: 600; }

.author-credit {
    background: var(--teal-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    font-size: .88rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
}

/* ── Share bar ────────────────────────────────────────────── */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.1rem;
    background: var(--teal-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}
.share-label { font-size: .8rem; font-weight: 700; color: var(--slate); margin-right: .2rem; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: .85rem;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
    color: #fff;
}
.share-btn:hover { opacity: .88; transform: scale(1.1); color: #fff; }
.share-btn[data-network="facebook"] { background: #1877F2; }
.share-btn[data-network="twitter"]  { background: #000; }
.share-btn[data-network="whatsapp"] { background: #25D366; }
.share-btn[data-network="linkedin"] { background: #0A66C2; }
.share-btn[data-network="copy"]     { background: var(--slate); }
.share-btn[data-network="telegram"] { background: #229ED9; }
.share-btn[data-network="email"]    { background: #6C757D; }
.share-btn.copied { background: var(--primary); }

/* ── Related posts ────────────────────────────────────────── */
.related-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
    height: 100%;
}
.related-card:hover { box-shadow: var(--shadow-md); }
.related-img { width: 100%; height: 130px; object-fit: cover; display: block; }
.related-body { padding: .75rem; }
.related-title { font-size: .86rem; font-weight: 700; line-height: 1.4; margin: 0 0 .35rem; }
.related-title a { color: var(--text); }
.related-title a:hover { color: var(--primary); }
.related-date { font-size: .73rem; color: var(--text-muted); }

/* ── Login ────────────────────────────────────────────────── */
.login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    box-shadow: 0 8px 32px rgba(10,123,110,.13);
    border-top: 4px solid var(--primary);
}
.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.login-icon {
    width: 62px; height: 62px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .85rem;
    color: var(--primary);
    font-size: 1.5rem;
}
.login-header h4 { font-weight: 800; color: var(--navy); margin-bottom: .25rem; }
/* Override Bootstrap form controls */
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(10,123,110,.18); }
.btn-primary, .btn-primary:active { background: var(--primary) !important; border-color: var(--primary) !important; font-weight: 600; }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary:hover { background: var(--primary) !important; color: #fff !important; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.65);
    padding: 2.5rem 0 0;
    margin-top: 3rem;
    border-top: 4px solid var(--primary);
}
.footer-brand-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.footer-brand-by {
    font-size: .76rem;
    color: rgba(255,255,255,.4);
    font-style: italic;
    margin-top: .15rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.footer-tagline { font-size: .83rem; color: rgba(255,255,255,.4); margin: 0; }
.footer-editor  { font-size: .82rem; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: .4rem; }
.footer-editor strong { color: var(--primary-light); }
.footer-heading {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: .75rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .38rem; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: .85rem 0;
    margin-top: 2rem;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}
.footer-lang-switch {
    color: rgba(255,255,255,.6);
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: color .2s;
}
.footer-lang-switch:hover { color: var(--primary-light); }

/* ── Breadcrumb global ────────────────────────────────────── */
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item a { color: var(--primary); font-size: .85rem; }
.breadcrumb-item.active { color: var(--text-muted); font-size: .85rem; }

/* ── Alert overrides ──────────────────────────────────────── */
.alert { border-radius: var(--radius); }

/* ============================================================
   RESPONSIVE — Mobile-first
   ============================================================ */

/* ── ≤ 575px (small phones) ───────────────────────────────── */
@media (max-width: 575.98px) {
    body { font-size: 14px; }

    /* Util bar */
    .util-bar { display: none; }   /* hidden on very small — saves vertical space */

    /* Masthead */
    .masthead { padding: .6rem 0; }
    .brand-main { font-size: 1.35rem; }
    .brand-si   { display: none; }  /* hide bilingual echo on tiny screens */
    .brand-by   { font-size: .72rem; }

    /* Hero */
    .hero-card-lg { min-height: 240px; }
    .hero-card-sm { min-height: 130px; }
    .hero-title   { font-size: 1.05rem; }
    .hero-overlay { padding: 1rem .85rem .8rem; }

    /* Article strip — stack image on top */
    .article-strip { flex-direction: column; }
    .strip-img-wrap { width: 100%; height: 180px; }
    .strip-img-wrap .strip-img { min-height: 180px; }
    .strip-img-placeholder { width: 100%; height: 180px; min-height: 180px; }
    .strip-body { padding: .75rem .85rem; }
    .strip-read-more { margin-left: 0; }

    /* Article detail */
    .article-detail { padding: 1rem; }
    .article-title { font-size: 1.25rem; }
    .article-content { font-size: .95rem; }

    /* Share bar */
    .share-bar { padding: .7rem .85rem; }

    /* Login */
    .login-card { padding: 1.5rem 1.1rem; }

    /* Footer */
    .site-footer { padding: 1.75rem 0 0; margin-top: 2rem; }
    .footer-brand-main { font-size: 1.1rem; }

    /* Hide date in util-bar (already hidden above) */
    .util-date { display: none; }
}

/* ── 576px–767px (large phones / small tablets) ───────────── */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Util bar — compact */
    .util-bar .container { justify-content: flex-end; }
    .util-editor { display: none; }

    /* Strip */
    .strip-img-wrap { width: 130px; }
    .strip-img-wrap .strip-img { min-height: 110px; }
    .strip-img-placeholder { width: 130px; min-height: 110px; }

    /* Article detail */
    .article-detail { padding: 1.25rem; }
    .article-title  { font-size: 1.4rem; }
}

/* ── 768px–991px (tablets) ────────────────────────────────── */
@media (min-width: 768px) and (max-width: 991.98px) {
    .strip-img-wrap { width: 150px; }
    .strip-img-placeholder { width: 150px; }
    .hero-card-lg { min-height: 290px; }
}

/* ── ≥ 992px (desktop) ────────────────────────────────────── */
@media (min-width: 992px) {
    .brand-main { font-size: 1.85rem; }
    .hero-title { font-size: 1.45rem; }
    .hero-title.sm { font-size: 1.1rem; }
    .article-title { font-size: 1.75rem; }
}

/* ── Touch-friendly tap targets ───────────────────────────── */
@media (pointer: coarse) {
    .widget-cat-list li a { padding: .55rem 1rem; }
    .nav-link { min-height: 44px; display: flex; align-items: center; }
    .share-btn { width: 42px; height: 42px; font-size: .95rem; }
    .strip-read-more { padding: .25rem 0; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Health Story Cards (AI digest) ──────────────────────────── */
.health-stories-list { display: flex; flex-direction: column; }
.health-story-card {
    background: #fff; border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    margin-bottom: 1.25rem; overflow: hidden;
    position: relative; display: flex; flex-direction: column;
}
.hsc-num {
    position: absolute; top: 1rem; left: 1rem;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary, #0A7B6E); color: #fff;
    font-size: .9rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2); z-index: 2;
}
.hsc-body { padding: .9rem 1.1rem .9rem 3.9rem; }
.hsc-thumb { margin: 0 -1.1rem 1rem -3.9rem; max-height: 200px; overflow: hidden; }
.hsc-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.hsc-headline { font-size: 1.05rem; font-weight: 700; color: #1a2e3b; line-height: 1.35; margin: 0 0 .6rem; }
.hsc-summary { font-size: .9rem; line-height: 1.8; color: #444; margin: 0 0 .85rem; }
.hsc-sources {
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
    padding: .6rem 1.1rem .7rem 3.9rem;
    background: #f8fafb; border-top: 1px solid #edf2f4;
    margin: 0 -1.1rem; margin-left: -3.9rem;
}
.hsc-src-label { font-size: .72rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.hsc-chip {
    display: inline-flex; align-items: center;
    background: #fff; border: 1px solid #dde3e8; color: #555;
    padding: 3px 10px; border-radius: 20px; text-decoration: none;
    font-size: .76rem; font-weight: 600;
    transition: background .15s, border-color .15s, color .15s;
}
.hsc-chip:hover { background: var(--primary,#0A7B6E); border-color: var(--primary,#0A7B6E); color: #fff; }

/* ── Archive cards ────────────────────────────────────────────── */
.health-archive-card {
    display: block; background: #fff; border-radius: 8px; padding: 1.1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07); text-decoration: none; color: inherit;
    border: 2px solid transparent; border-left: 4px solid var(--primary,#0A7B6E);
    transition: border-color .2s, box-shadow .2s;
}
.health-archive-card:hover { border-color: var(--primary,#0A7B6E); box-shadow: 0 4px 16px rgba(10,123,110,.12); color: inherit; }
.hac-edition { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary,#0A7B6E); margin-bottom: .35rem; }
.hac-date { font-size: .95rem; font-weight: 700; color: #1a2e3b; margin-bottom: .2rem; }
.hac-count { font-size: .78rem; color: #888; }
.hac-arrow { text-align: right; color: var(--primary,#0A7B6E); margin-top: .3rem; }
.health-run-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--primary,#0A7B6E); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    .hsc-body { padding: .85rem .9rem .85rem 3.5rem; }
    .hsc-num { width: 32px; height: 32px; font-size: .78rem; top: .85rem; left: .85rem; }
    .hsc-thumb { margin: 0 -.9rem 1rem -3.5rem; }
    .hsc-sources { padding: .55rem .9rem .65rem 3.5rem; margin: 0 -.9rem; margin-left: -3.5rem; }
}
