/* CLEAR Hub – shared styles (navigation, page layout, cards, footer) */

:root{
    --navy:#05402f;           /* deep green from the logo: headings, footer, buttons */
    --green:#3b7a0e;          /* text/buttons on light backgrounds (AA contrast) */
    --green-dark:#2a5a09;
    --green-bright:#5aa30a;   /* logo green: accents */
    --green-tint:#eaf3df;
    --sky:#86d8f8;            /* logo blue */
    --bg:#f5f6f1;
    --text:#222;
    --muted:#555;
    --focus:#1a56db;
    --header-h:76px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

@font-face{
    font-family:"Noto Sans Bengali";
    font-style:normal;
    font-weight:400;
    font-display:swap;
    src:url("../fonts/noto-sans-bengali-bengali-400-normal.woff2") format("woff2");
    unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CF7,U+200C-200D,U+25CC;
}

@font-face{
    font-family:"Noto Sans Bengali";
    font-style:normal;
    font-weight:700;
    font-display:swap;
    src:url("../fonts/noto-sans-bengali-bengali-700-normal.woff2") format("woff2");
    unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CF7,U+200C-200D,U+25CC;
}

body{
    font-family:Arial,Helvetica,"Noto Sans Bengali",sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.5;
}

a{
    color:var(--green);
}

:focus-visible{
    outline:3px solid var(--focus);
    outline-offset:2px;
}

.container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

.skip-link{
    position:absolute;
    left:-9999px;
    top:0;
    z-index:2000;
    background:#fff;
    color:#000;
    padding:10px 14px;
}

.skip-link:focus{
    left:10px;
    top:10px;
}

/* ---------- Header / navigation (light header to suit the dark-green logo) ---------- */

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:#fff;
    color:var(--navy);
    border-bottom:1px solid #dfe6e1;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.header-bar{
    max-width:1280px;
    margin:0 auto;
    padding:0 20px;
    min-height:var(--header-h);
    display:flex;
    align-items:center;
    gap:14px;
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:var(--navy);
    flex-shrink:0;
}

.brand__wide{
    display:block;
    height:56px;
    width:auto;
}

.brand__square,
.brand__text{
    display:none;
}

.brand__text{
    font-weight:bold;
    font-size:20px;
    line-height:1;
}

.nav-toggle{
    display:none;
    background:none;
    border:1px solid #cdd8d1;
    color:var(--navy);
    font-size:26px;
    line-height:1;
    width:46px;
    height:46px;
    cursor:pointer;
    border-radius:10px;
}

.primary-nav{
    margin-left:auto;
}

.primary-nav ul,
.footer-links{
    list-style:none;
}

.primary-nav > ul{
    display:flex;
    align-items:stretch;
    min-height:var(--header-h);
}

.nav-item{
    position:relative;
}

.nav-row{
    display:flex;
    align-items:center;
    height:var(--header-h);
}

.nav-link{
    display:flex;
    align-items:center;
    height:100%;
    padding:0 14px;
    color:var(--navy);
    text-decoration:none;
    font-weight:bold;
    font-size:15px;
    box-shadow:inset 0 -4px 0 transparent;
    transition:.2s;
}

.has-sub .nav-link{
    padding-right:2px;
}

.nav-link.is-trail{
    box-shadow:inset 0 -4px 0 var(--green-bright);
}

.nav-item:hover > .nav-row,
.nav-item.open > .nav-row{
    background:var(--green-tint);
}

.sub-toggle{
    background:none;
    border:none;
    color:var(--navy);
    cursor:pointer;
    width:28px;
    height:100%;
    font-size:14px;
}

.sub-toggle span{
    display:inline-block;
    transition:transform .2s;
}

.nav-item.open .sub-toggle span{
    transform:rotate(180deg);
}

/* Language switch */

.lang-switch{
    display:inline-flex;
    border:1.5px solid var(--navy);
    border-radius:999px;
    overflow:hidden;
    margin-left:6px;
    flex-shrink:0;
}

.lang-switch button{
    background:none;
    border:none;
    color:var(--navy);
    font-size:14px;
    font-weight:bold;
    padding:7px 13px;
    cursor:pointer;
    font-family:inherit;
}

.lang-switch button[aria-pressed="true"]{
    background:var(--navy);
    color:#fff;
}

/* Dropdown panel (desktop) */

.dropdown{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    min-width:290px;
    background:#fff;
    color:var(--text);
    border:1px solid #dfe6e1;
    border-top:none;
    border-radius:0 0 12px 12px;
    box-shadow:0 14px 30px rgba(0,0,0,.18);
    padding:8px;
}

.dropdown--wide{
    min-width:430px;
}

.dropdown.align-right{
    left:auto;
    right:0;
}

.nav-item.open > .dropdown{
    display:block;
}

.sub{
    list-style:none;
}

.sub-link{
    display:block;
    padding:9px 12px;
    border-radius:8px;
    color:var(--text);
    text-decoration:none;
    font-size:15px;
}

.sub-link:hover{
    background:var(--green-tint);
    color:var(--green-dark);
}

.sub-link.is-trail{
    font-weight:bold;
    color:var(--green-dark);
}

.sub--l1 > li > .sub-link{
    font-weight:bold;
}

.sub--l2{
    margin:0 0 6px 14px;
    padding-left:6px;
    border-left:2px solid #cfe0c2;
}

.sub--l2 .sub-link{
    font-size:14px;
    font-weight:normal;
    color:#444;
}

.sub--l2 .sub-link.is-trail{
    font-weight:bold;
    color:var(--green-dark);
}

.sub-desc{
    display:block;
    font-size:12.5px;
    font-weight:normal;
    color:#555;
    line-height:1.4;
    margin-top:2px;
}

/* Mobile and tablet navigation */

@media (max-width:1099px){

    :root{
        --header-h:68px;
    }

    .nav-toggle{
        display:inline-flex;
        align-items:center;
        justify-content:center;
    }

    .primary-nav{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        right:0;
        margin-left:0;
        background:#fff;
        border-top:1px solid #dfe6e1;
        box-shadow:0 14px 24px rgba(0,0,0,.15);
        max-height:calc(100vh - var(--header-h));
        overflow-y:auto;
        padding:8px 14px 18px;
    }

    .primary-nav.open{
        display:block;
    }

    .primary-nav > ul{
        flex-direction:column;
        min-height:0;
    }

    .lang-switch{
        margin-left:auto;
    }

    .nav-row{
        height:auto;
        border-bottom:1px solid #e6ece8;
    }

    .nav-link{
        flex:1;
        padding:14px 10px;
        font-size:16px;
        box-shadow:none;
    }

    .nav-link.is-trail{
        color:var(--green);
        box-shadow:none;
    }

    .sub-toggle{
        width:52px;
        height:48px;
    }

    .dropdown,
    .dropdown--wide{
        position:static;
        min-width:0;
        background:#f2f7ec;
        border:none;
        box-shadow:none;
        border-radius:8px;
        margin:6px 0 8px;
    }

    .sub-link,
    .sub--l2 .sub-link{
        padding:11px 12px;
    }
}

@media (max-width:600px){

    .brand__wide{
        display:none;
    }

    .brand__square{
        display:block;
        height:44px;
        width:auto;
    }

    .brand__text{
        display:block;
    }

    .header-bar{
        padding:0 14px;
        gap:10px;
    }
}

/* ---------- Breadcrumb ---------- */

.breadcrumb{
    max-width:1200px;
    margin:0 auto;
    padding:18px 20px 0;
    font-size:14px;
    color:var(--muted);
}

.breadcrumb ol{
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    gap:4px;
}

.breadcrumb li + li::before{
    content:"›";
    margin-right:4px;
    color:#888;
}

.breadcrumb a{
    color:var(--green-dark);
}

/* ---------- Hero / page headings ---------- */

.hero,
.page-hero{
    text-align:center;
    padding:50px 20px 30px;
}

.hero{
    padding:70px 20px;
}

.hero h1,
.page-hero h1{
    font-size:clamp(2rem,5vw,3.5rem);
    margin-bottom:16px;
    color:var(--navy);
}

.hero h1{
    font-size:clamp(2.5rem,6vw,4.5rem);
    margin-bottom:20px;
}

.hero p,
.page-hero p{
    max-width:700px;
    margin:auto;
    color:var(--muted);
    line-height:1.8;
    font-size:18px;
}

.section-title{
    text-align:center;
    color:var(--navy);
    margin:30px 20px 0;
    font-size:1.6rem;
}

/* ---------- Cards ---------- */

.card-container,
.card-grid{
    max-width:1100px;
    margin:auto;
    padding:20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.card{
    position:relative;
    background:#fff;
    padding:32px 28px;
    border-radius:15px;
    text-decoration:none;
    color:var(--text);
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.12);
    transition:.3s;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 25px rgba(0,0,0,.15);
}

.card-icon{
    font-size:3.5rem;
    margin-bottom:12px;
}

.card h2,
.card h3{
    margin-bottom:12px;
    color:var(--navy);
}

.card p{
    color:var(--muted);
    line-height:1.7;
}

/* whole card is clickable through its title link */
.card-link{
    color:inherit;
    text-decoration:none;
}

.card-link::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:15px;
}

.card-link:focus-visible{
    outline:none;
}

.card-link:focus-visible::after{
    outline:3px solid var(--focus);
    outline-offset:2px;
}

.chips{
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    margin-top:16px;
    position:relative;
    z-index:1;
}

.chips a{
    display:inline-block;
    padding:5px 12px;
    border-radius:999px;
    background:var(--green-tint);
    color:var(--green-dark);
    text-decoration:none;
    font-size:14px;
    font-weight:bold;
}

.chips a:hover{
    background:#c8e6c9;
}

/* ---------- Features (home) ---------- */

.features{
    max-width:1200px;
    margin:40px auto;
    padding:20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.feature{
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.feature h3{
    margin-bottom:15px;
    color:var(--navy);
}

.feature p{
    color:var(--muted);
    line-height:1.6;
}

/* ---------- Placeholder pages ---------- */

.placeholder{
    max-width:760px;
    margin:10px auto 40px;
    padding:36px 28px;
    text-align:center;
    background:#fff;
    border:2px dashed #b8c4b9;
    border-radius:16px;
}

.placeholder__icon{
    font-size:3rem;
}

.placeholder h2{
    color:var(--navy);
    margin:8px 0 10px;
}

.placeholder p{
    color:var(--muted);
    line-height:1.7;
}

.details{
    max-width:760px;
    margin:0 auto 40px;
    padding:0 20px;
}

.details h2{
    color:var(--navy);
    margin-bottom:12px;
    font-size:1.3rem;
}

.details dl{
    display:grid;
    grid-template-columns:minmax(120px,200px) 1fr;
    background:#fff;
    border-radius:12px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    overflow:hidden;
}

.details dt,
.details dd{
    padding:12px 16px;
    border-bottom:1px solid #eef0f3;
}

.details dt{
    font-weight:bold;
    color:var(--navy);
    background:#fafbfc;
}

.details dd{
    color:var(--muted);
    font-style:italic;
}

.video-frame{
    max-width:760px;
    margin:10px auto 40px;
    aspect-ratio:16/9;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:var(--navy);
    color:#fff;
    border-radius:16px;
    text-align:center;
    padding:20px;
}

.video-frame span{
    font-size:3.5rem;
}

.video-frame p{
    color:#d1d5db;
}

@media (prefers-reduced-motion:reduce){
    html{
        scroll-behavior:auto;
    }

    *{
        transition:none !important;
    }

    .card:hover{
        transform:none;
    }
}

/* ================= Language notice ================= */

.lang-notice{
    max-width:1200px;
    margin:14px auto 0;
    padding:12px 18px;
    background:#fff8e1;
    border:1px solid #f0d98a;
    border-radius:10px;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    color:#5d4a00;
    width:calc(100% - 40px);
}

.lang-notice__btn{
    background:var(--navy);
    color:#fff;
    border:none;
    border-radius:8px;
    padding:8px 14px;
    cursor:pointer;
    font-size:14px;
}

/* ================= Content components ================= */

.prose{
    max-width:760px;
    margin:0 auto;
    padding:0 20px 20px;
    line-height:1.8;
}

.prose h2{
    color:var(--navy);
    margin:34px 0 10px;
    font-size:1.5rem;
    line-height:1.3;
}

.prose h3{
    color:var(--navy);
    margin:22px 0 8px;
    font-size:1.15rem;
}

.prose p,
.prose li{
    color:#333;
}

.prose p + p{
    margin-top:12px;
}

.prose ul,
.prose ol{
    padding-left:24px;
    margin:10px 0;
}

.prose li{
    margin-bottom:6px;
}

.wide{
    max-width:1100px;
    margin:0 auto;
    padding:0 20px 20px;
}

.draft-tag{
    display:inline-block;
    background:#fff3cd;
    color:#6b4e00;
    border:1px solid #f0d98a;
    border-radius:999px;
    padding:3px 12px;
    font-size:13px;
    font-weight:bold;
    margin-bottom:12px;
}

.draft-note{
    max-width:760px;
    margin:0 auto 24px;
    padding:12px 16px;
    background:#fff8e1;
    border-left:5px solid #f0b429;
    border-radius:8px;
    color:#5d4a00;
    font-size:15px;
}

.meta{
    display:flex;
    flex-wrap:wrap;
    gap:6px 18px;
    justify-content:center;
    color:var(--muted);
    font-size:14px;
    margin-top:14px;
}

.tag{
    display:inline-block;
    padding:3px 10px;
    border-radius:999px;
    background:var(--green-tint);
    color:var(--green-dark);
    font-size:13px;
    font-weight:bold;
    margin:0 4px 4px 0;
}

.callout{
    background:#fff;
    border-left:5px solid var(--green);
    border-radius:10px;
    padding:16px 20px;
    margin:20px 0;
    box-shadow:0 2px 8px rgba(0,0,0,.07);
}

.callout h3{
    margin:0 0 6px;
}

.source-list{
    list-style:none;
    padding:0 !important;
}

.source-list li{
    padding:10px 14px;
    background:#fff;
    border-radius:8px;
    margin-bottom:8px;
    box-shadow:0 1px 5px rgba(0,0,0,.06);
}

/* Filters */

.filters{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    margin:0 20px 24px;
}

.filter-btn{
    border:2px solid var(--navy);
    background:#fff;
    color:var(--navy);
    padding:7px 16px;
    border-radius:999px;
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
}

.filter-btn[aria-pressed="true"]{
    background:var(--green);
    border-color:var(--green);
    color:#fff;
}

.empty-state{
    text-align:center;
    color:var(--muted);
    padding:20px;
}

/* Article list */

.article-list{
    max-width:900px;
    margin:0 auto;
    padding:0 20px;
    display:grid;
    gap:20px;
}

.article-item{
    position:relative;
    background:#fff;
    border-radius:14px;
    padding:24px 26px;
    box-shadow:0 4px 14px rgba(0,0,0,.1);
    transition:.3s;
}

.article-item:hover{
    transform:translateY(-3px);
}

.article-item h2{
    font-size:1.3rem;
    margin:6px 0 8px;
    color:var(--navy);
}

.article-item p{
    color:var(--muted);
    line-height:1.7;
}

.article-item .meta{
    justify-content:flex-start;
    margin-top:10px;
}

/* Three levels */

.levels{
    max-width:760px;
    margin:10px auto 30px;
    padding:0 20px;
}

.levels__tabs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:14px;
}

.levels__tabs button{
    border:2px solid var(--navy);
    background:#fff;
    color:var(--navy);
    border-radius:999px;
    padding:9px 18px;
    font-weight:bold;
    font-size:15px;
    cursor:pointer;
}

.levels__tabs button[aria-selected="true"]{
    background:var(--navy);
    color:#fff;
}

.levels__panel{
    background:#fff;
    border-radius:14px;
    padding:22px 26px;
    box-shadow:0 3px 12px rgba(0,0,0,.09);
    line-height:1.8;
}

.levels__panel p + p,
.levels__panel ul,
.levels__panel ol{
    margin-top:10px;
}

.levels__panel ul,
.levels__panel ol{
    padding-left:22px;
}

.levels__panel li{
    margin-bottom:6px;
}

/* Question list */

.qa{
    display:grid;
    gap:14px;
    margin:10px 0 24px;
}

.qa div{
    background:#fff;
    border-radius:12px;
    padding:14px 18px;
    box-shadow:0 2px 8px rgba(0,0,0,.07);
}

.qa dt{
    font-weight:bold;
    color:var(--navy);
    margin-bottom:4px;
}

.qa dd{
    color:#333;
    line-height:1.7;
}

/* Stat tiles and bars */

.stat-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:16px;
    margin:16px 0 24px;
}

.stat{
    background:#fff;
    border-radius:14px;
    padding:20px;
    text-align:center;
    box-shadow:0 3px 12px rgba(0,0,0,.09);
}

.stat strong{
    display:block;
    font-size:2rem;
    color:var(--green-dark);
    line-height:1.2;
}

.stat span{
    color:var(--muted);
    font-size:14px;
}

.bars{
    background:#fff;
    border-radius:14px;
    padding:20px 22px;
    box-shadow:0 3px 12px rgba(0,0,0,.09);
    margin:16px 0 24px;
}

.bars h3{
    margin:0 0 14px;
}

.bar-row{
    display:grid;
    grid-template-columns:150px 1fr 56px;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
    font-size:14px;
}

.bar{
    height:16px;
    background:#e5e7eb;
    border-radius:999px;
    overflow:hidden;
}

.bar i{
    display:block;
    height:100%;
    background:var(--green);
    border-radius:999px;
}

.bar i.alt{
    background:#b45309;
}

.bar-row b{
    text-align:right;
}

@media (max-width:600px){
    .bar-row{
        grid-template-columns:1fr 56px;
    }

    .bar-row span{
        grid-column:1 / -1;
    }

    .bar-row .bar{
        grid-column:1;
    }
}

/* Timeline (news) */

.timeline{
    list-style:none;
    max-width:760px;
    margin:0 auto;
    padding:0 20px;
    border-left:3px solid #cfe3d1;
    margin-left:max(20px,calc(50% - 380px));
}

.timeline li{
    position:relative;
    background:#fff;
    border-radius:12px;
    padding:16px 20px;
    margin:0 0 18px 18px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.timeline li::before{
    content:"";
    position:absolute;
    left:-31px;
    top:22px;
    width:13px;
    height:13px;
    border-radius:50%;
    background:var(--green);
    border:3px solid var(--bg);
}

.timeline time{
    font-size:13px;
    font-weight:bold;
    color:var(--green-dark);
}

.timeline h2{
    font-size:1.1rem;
    margin:4px 0 6px;
    color:var(--navy);
}

.timeline p{
    color:#444;
    line-height:1.7;
}

/* Numbered steps */

.steps{
    list-style:none;
    counter-reset:step;
    padding:0 !important;
}

.steps li{
    counter-increment:step;
    position:relative;
    background:#fff;
    border-radius:12px;
    padding:14px 18px 14px 58px;
    margin-bottom:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.07);
}

.steps li::before{
    content:counter(step);
    position:absolute;
    left:16px;
    top:12px;
    width:28px;
    height:28px;
    border-radius:50%;
    background:var(--green);
    color:#fff;
    font-weight:bold;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Tables */

.table-wrap{
    overflow-x:auto;
    margin:14px 0 24px;
}

table.plain{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.07);
    font-size:15px;
}

table.plain th,
table.plain td{
    text-align:left;
    padding:11px 14px;
    border-bottom:1px solid #eef0f3;
    vertical-align:top;
}

table.plain th{
    background:var(--navy);
    color:#fff;
}

.two-col{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:18px;
    margin:16px 0 24px;
}

.mini-card{
    background:#fff;
    border-radius:14px;
    padding:20px;
    box-shadow:0 3px 12px rgba(0,0,0,.09);
}

.mini-card h3{
    margin:0 0 6px !important;
    color:var(--navy);
}

.mini-card p{
    color:#444;
    line-height:1.7;
}

.btn{
    display:inline-block;
    background:var(--green);
    color:#fff;
    text-decoration:none;
    font-weight:bold;
    padding:10px 18px;
    border-radius:8px;
}

.btn:hover{
    background:var(--green-dark);
}

.btn[aria-disabled="true"]{
    background:#9aa3ad;
    cursor:not-allowed;
}

.pill{
    display:inline-block;
    padding:2px 10px;
    border-radius:999px;
    background:#eef0f3;
    color:#444;
    font-size:12px;
    font-weight:bold;
}

[hidden]{
    display:none !important;
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
}

/* ================= Footer (four sections: logo, contact, social, back to top) ================= */

.site-footer{
    text-align:left;
    background:#fff;
    color:var(--navy);
    border-top:4px solid var(--green-bright);
    padding:28px 0 18px;
    margin-top:40px;
}

.site-footer a{
    color:var(--navy);
}

.footer-grid{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:20px 34px;
}

.footer-brand{
    display:flex;
    align-items:center;
    gap:12px;
    flex:1 1 260px;
}

.footer-brand img{
    display:block;
    width:48px;
    height:48px;
}

.footer-brand p{
    font-size:14px;
    color:var(--muted);
    max-width:28ch;
    line-height:1.4;
}

.footer-link{
    font-weight:bold;
    text-decoration:none;
    padding:8px 4px;
    display:inline-block;
    border-bottom:2px solid transparent;
}

.footer-link:hover{
    border-bottom-color:var(--green-bright);
}

.social-list{
    list-style:none;
    display:flex;
    gap:10px;
}

.social-btn{
    width:42px;
    height:42px;
    border-radius:50%;
    background:var(--navy);
    color:#fff !important;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s;
}

a.social-btn:hover{
    background:var(--green);
    transform:translateY(-2px);
}

.social-btn.is-off{
    background:#cfd8d3;
    color:#fff !important;
    cursor:default;
}

.footer-base{
    margin-top:20px;
    padding-top:14px;
    border-top:1px solid #e1e8e3;
    text-align:center;
    font-size:13.5px;
    color:var(--muted);
}

.footer-base a{
    color:var(--green-dark);
}

@media (max-width:700px){
    .footer-grid{
        justify-content:center;
        text-align:center;
    }

    .footer-brand{
        flex-basis:100%;
        justify-content:center;
    }
}

/* ================= Page lead text & videos ================= */

.page-hero .lead{
    font-size:1.3rem;
    font-weight:bold;
    color:var(--green-dark);
    margin-bottom:12px;
}

.video-embed{
    position:relative;
    max-width:760px;
    margin:10px auto 14px;
    aspect-ratio:16/9;
    background:linear-gradient(135deg,var(--navy),#14532d);
    border-radius:16px;
    overflow:hidden;
}

.video-embed iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
}

.video-embed__play{
    position:absolute;
    inset:0;
    width:100%;
    border:none;
    background:none;
    color:#fff;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-family:inherit;
    font-size:1.1rem;
    padding:20px;
}

.video-embed__play .icon{
    width:76px;
    height:76px;
    border-radius:50%;
    background:#fff;
    color:var(--navy);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
    padding-left:6px;
}

.video-embed__play small{
    color:#d1d5db;
    font-size:13px;
}

.video-note{
    max-width:760px;
    margin:0 auto 30px;
    padding:0 20px;
    font-size:14px;
    color:var(--muted);
    text-align:center;
}

.avatar{
    width:84px;
    height:84px;
    border-radius:50%;
    background:#e5e7eb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2.4rem;
    margin:0 auto 12px;
}

.flow{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:12px;
    margin:16px 0 24px;
    counter-reset:flow;
}

.flow > div{
    position:relative;
    background:#fff;
    border-top:5px solid var(--green);
    border-radius:12px;
    padding:16px;
    box-shadow:0 3px 12px rgba(0,0,0,.09);
}

.flow h3{
    margin:0 0 6px !important;
    font-size:1rem !important;
}

.flow p,
.flow li{
    font-size:14px;
    line-height:1.5;
    color:#444;
}

.flow ul{
    padding-left:18px !important;
    margin:0 !important;
}

/* ================= Contact page ================= */

.contact-grid{
    max-width:1100px;
    margin:0 auto;
    padding:0 20px 20px;
    display:grid;
    grid-template-columns:1fr 1.25fr;
    gap:28px;
    align-items:start;
}

@media (max-width:820px){
    .contact-grid{
        grid-template-columns:1fr;
    }
}

.contact-card{
    background:#fff;
    border-radius:14px;
    padding:20px 22px;
    box-shadow:0 3px 12px rgba(0,0,0,.09);
    margin-bottom:18px;
}

.contact-card h2{
    font-size:1.05rem;
    color:var(--navy);
    margin-bottom:6px;
}

.contact-card .tbd,
.map-empty{
    color:#8a5a00;
    font-style:italic;
}

.map-empty{
    padding:26px;
    border:2px dashed #b8c4b9;
    border-radius:10px;
    text-align:center;
}

.map-frame{
    display:block;
    width:100%;
    height:300px;
    border:0;
    border-radius:10px;
}

.form{
    background:#fff;
    border-radius:14px;
    padding:24px;
    box-shadow:0 3px 12px rgba(0,0,0,.09);
}

.form h2{
    color:var(--navy);
    margin-bottom:14px;
    font-size:1.3rem;
}

.field{
    margin-bottom:16px;
}

.field label{
    display:block;
    font-weight:bold;
    color:var(--navy);
    margin-bottom:5px;
}

.field .hint{
    font-weight:normal;
    color:var(--muted);
    font-size:13px;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea{
    width:100%;
    font:inherit;
    padding:11px 12px;
    border:1.5px solid #9fb0a5;
    border-radius:8px;
    background:#fff;
    color:var(--text);
}

.field textarea{
    min-height:140px;
    resize:vertical;
}

.field [aria-invalid="true"]{
    border-color:#b3261e;
}

.error{
    color:#b3261e;
    font-size:14px;
    margin-top:5px;
}

.field--check label{
    display:flex;
    gap:10px;
    align-items:flex-start;
    font-weight:normal;
    color:var(--text);
}

.field--check input{
    margin-top:4px;
    width:18px;
    height:18px;
    flex-shrink:0;
}

.hp{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
}

button.btn{
    border:none;
    cursor:pointer;
    font:inherit;
    font-weight:bold;
}

button.btn:disabled{
    background:#9aa3ad;
    cursor:not-allowed;
}

.form-status{
    margin-top:16px;
    padding:12px 16px;
    border-radius:8px;
    display:none;
}

.form-status:focus{
    outline:3px solid var(--focus);
}

.form-status--ok,
.form-status--error,
.form-status--warn{
    display:block;
}

.form-status--ok{
    background:#e6f4e6;
    color:#1b5e20;
}

.form-status--error{
    background:#fdecea;
    color:#b3261e;
}

.form-status--warn{
    background:#fff8e1;
    color:#5d4a00;
}

/* ================= How-to button ================= */

.howto{
    margin-top:18px;
}

.howto__btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:var(--green-tint);
    color:var(--green-dark);
    border:1.5px solid var(--green);
    border-radius:999px;
    padding:9px 18px;
    font-weight:bold;
    text-decoration:none;
    font-size:15px;
}

.howto__btn:hover{
    background:var(--green);
    color:#fff;
}

/* ================= Story & comic library ================= */

.anchor-nav{
    display:flex;
    justify-content:center;
    gap:10px;
    margin:6px 20px 10px;
    flex-wrap:wrap;
}

.anchor-nav a{
    padding:9px 22px;
    border:2px solid var(--navy);
    border-radius:999px;
    text-decoration:none;
    color:var(--navy);
    font-weight:bold;
    background:#fff;
}

.anchor-nav a:hover{
    background:var(--navy);
    color:#fff;
}

.lib-section{
    max-width:1100px;
    margin:0 auto;
    padding:10px 20px 20px;
    scroll-margin-top:90px;
}

.lib-section > h2{
    color:var(--navy);
    font-size:1.7rem;
    margin:26px 0 6px;
}

.lib-section > p.lib-intro{
    color:var(--muted);
    margin-bottom:18px;
    max-width:70ch;
}

.story-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:22px;
}

.story-card{
    background:#fff;
    border-radius:14px;
    box-shadow:0 4px 14px rgba(0,0,0,.1);
    padding:22px 24px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.story-card h3{
    color:var(--navy);
    font-size:1.2rem;
    line-height:1.3;
}

.story-card p{
    color:#444;
    line-height:1.7;
}

.story-card__actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:6px;
}

.btn--ghost{
    background:#fff;
    color:var(--green-dark);
    border:1.5px solid var(--green) !important;
}

.btn--ghost:hover{
    background:var(--green-tint);
}

.btn--dark{
    background:var(--navy);
}

.btn--dark:hover{
    background:#0a5a43;
}

.story-card__interactive{
    background:var(--green-tint);
    border-radius:10px;
    padding:14px 16px;
}

.story-card__interactive h4{
    color:var(--navy);
    margin-bottom:8px;
}

.story-card__interactive ul{
    list-style:none;
    display:grid;
    gap:8px;
}

.story-card__interactive a{
    display:flex;
    align-items:center;
    gap:8px;
    background:#fff;
    border-radius:8px;
    padding:10px 12px;
    font-weight:bold;
    text-decoration:none;
    color:var(--green-dark);
}

.story-card__interactive a:hover{
    background:var(--green);
    color:#fff;
}

.drive-frame{
    width:100%;
    height:520px;
    border:1px solid #cfd8d3;
    border-radius:10px;
    background:#fff;
}

.drive-note{
    font-size:13px;
    color:var(--muted);
}

.source-tag{
    font-size:13px;
    color:var(--muted);
}

/* ================= Related / interlinked tools ================= */

.related{
    max-width:1000px;
    margin:10px auto 20px;
    padding:0 20px;
}

.related h2{
    text-align:center;
    color:var(--navy);
    font-size:1.3rem;
    margin-bottom:14px;
}

.related__grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:14px;
}

.related__grid a{
    display:block;
    background:#fff;
    border-radius:12px;
    padding:16px;
    text-decoration:none;
    color:var(--navy);
    box-shadow:0 2px 10px rgba(0,0,0,.09);
    border-top:4px solid var(--green-bright);
    transition:.2s;
}

.related__grid a:hover{
    transform:translateY(-3px);
}

.related__grid strong{
    display:block;
    margin-bottom:4px;
}

.related__grid span{
    font-size:13.5px;
    color:var(--muted);
    line-height:1.4;
}


/* ============================================================================================
   DESIGN v2 (Nov 2026) – warm paper background, deep-green ink, lime accent, serif headings,
   pill navigation, soft rounded cards. Based on the new CLEAR Hub homepage design.
   These rules come last on purpose and override the earlier look.
   ============================================================================================ */

:root{
    --ink:#153f38;
    --navy:#153f38;
    --paper:#f7f5ec;
    --bg:#f7f5ec;
    --card:#fffdf6;
    --line:#d7ddd2;
    --accent:#dbef96;
    --green-tint:#eaf0df;
    --moss:#728b45;
    --text:#153f38;
    --muted:#52665c;
    --focus:#bd600a;
    --header-h:84px;
    --serif:Georgia,"Times New Roman","Noto Sans Bengali",serif;
    --sans:system-ui,-apple-system,"Segoe UI",Roboto,Arial,"Noto Sans Bengali",sans-serif;
}

body{
    font-family:var(--sans);
    font-size:17px;
    line-height:1.65;
    background:var(--paper);
    color:var(--ink);
}

h1,h2,h3,h4{ line-height:1.15; font-weight:500; }
h1,h2{ font-family:var(--serif); }
a{ color:var(--ink); text-underline-offset:4px; }
a:hover{ color:#0b2a25; }

.eyebrow{
    display:block;
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:12px;
    font-weight:700;
    color:var(--ink);
    margin-bottom:10px;
}

/* ---------- Header ---------- */
.site-header{
    background:var(--paper);
    border-bottom:1px solid var(--line);
    box-shadow:none;
}
.header-bar{ max-width:1320px; padding:10px 32px; gap:14px; }
.brand__wide{ height:60px; }

.primary-nav > ul{ align-items:center; min-height:0; gap:2px; }
.nav-row{ height:auto; border-radius:24px; }
.nav-link{
    height:auto;
    padding:10px 12px;
    font-weight:500;
    font-size:14.5px;
    border-radius:24px;
    box-shadow:none;
}
.has-sub .nav-link{ padding-right:2px; }
.nav-link.is-trail{ box-shadow:none; }
.nav-item:hover > .nav-row,
.nav-item.open > .nav-row{ background:var(--green-tint); }
.nav-row:has(.is-trail){ background:var(--ink); }
.nav-row:has(.is-trail) .nav-link,
.nav-row:has(.is-trail) .sub-toggle{ color:#fff; }
.sub-toggle{ height:38px; width:26px; border-radius:0 24px 24px 0; }

.dropdown{
    top:calc(100% + 8px);
    background:var(--card);
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow:0 18px 36px rgba(21,63,56,.16);
}
.dropdown::before{ content:""; position:absolute; left:0; right:0; top:-10px; height:10px; }
.sub-link{ color:var(--ink); }
.sub-link:hover{ background:var(--green-tint); color:var(--ink); }
.sub-link.is-trail,.sub--l2 .sub-link.is-trail{ color:var(--ink); }
.sub--l2{ border-left-color:var(--line); }
.sub--l2 .sub-link{ color:var(--ink); }
.sub-desc{ color:var(--muted); }

.lang-switch{ border-color:var(--ink); }

.search-toggle{
    display:inline-flex; align-items:center; gap:8px;
    background:transparent; color:var(--ink);
    border:1px solid #69877d; border-radius:999px;
    padding:8px 14px; font:inherit; font-size:14px; font-weight:500; cursor:pointer;
    flex-shrink:0;
}
.search-toggle:hover,.search-toggle[aria-expanded="true"]{ background:var(--ink); color:#fff; border-color:var(--ink); }

.header-search{ border-top:1px solid var(--line); background:var(--card); }
.header-search form{ max-width:1320px; margin:0 auto; padding:12px 32px; display:flex; gap:10px; }
.header-search input{
    flex:1; min-width:0; padding:11px 16px; font:inherit; font-size:16px;
    border:1px solid #69877d; border-radius:999px; background:#fff; color:var(--ink);
}

/* ---------- Buttons, tags, pills ---------- */
.btn{
    display:inline-block;
    background:var(--ink);
    color:#fff;
    border:1px solid var(--ink);
    border-radius:30px;
    padding:12px 22px;
    font-size:14px;
    font-weight:500;
    text-decoration:none;
    cursor:pointer;
    font-family:inherit;
    line-height:1.3;
}
.btn:hover{ background:#0b2a25; color:#fff; }
.btn.light,.btn--ghost{ background:transparent; color:var(--ink); }
.btn.light:hover,.btn--ghost:hover{ background:var(--green-tint); color:var(--ink); }
.btn--dark{ background:var(--ink); color:#fff; }

.howto__btn{
    background:var(--accent); color:var(--ink); border:1px solid var(--ink);
    font-weight:600; font-size:14px; padding:9px 18px;
}
.howto__btn:hover{ background:var(--ink); color:#fff; }

.tag,.pill{
    display:inline-block;
    font-size:11px; letter-spacing:1px; text-transform:uppercase; font-weight:600;
    background:#eaf0df; color:var(--ink);
    padding:4px 9px; border-radius:20px;
}

/* ---------- Page headings ---------- */
.hero,.page-hero{
    text-align:left;
    max-width:1200px;
    margin:0 auto;
    padding:46px 32px 26px;
}
.page-hero h1,.hero h1{
    font-family:var(--serif);
    font-size:clamp(2.2rem,5vw,3.6rem);
    letter-spacing:-1.2px;
    margin:0 0 16px;
    color:var(--ink);
}
.page-hero p,.hero p{
    max-width:760px; margin:0; color:var(--ink); font-size:1.15rem; line-height:1.65;
}
.page-hero .lead{ font-size:1.2rem; }
.breadcrumb{ max-width:1200px; padding:20px 32px 0; color:var(--muted); font-size:13.5px; }
.breadcrumb a{ color:var(--ink); }
.breadcrumb li + li::before{ color:var(--moss); }

.section-title{
    text-align:left; max-width:1200px; margin:34px auto 0; padding:34px 32px 0;
    border-top:1px solid var(--line); font-family:var(--serif); font-size:clamp(1.6rem,3vw,2.2rem); color:var(--ink);
}

/* ---------- Cards ---------- */
.card-container,.card-grid{ max-width:1200px; padding:20px 32px; gap:22px; }
.wide{ max-width:1200px; padding:0 32px 20px; }
.card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow:none;
    padding:26px;
    text-align:left;
    color:var(--ink);
}
.card:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(21,63,56,.10); border-color:#9fb596; }
.card-icon{
    width:54px; height:54px; border-radius:50%;
    background:var(--accent);
    display:grid; place-items:center;
    font-size:1.55rem; margin-bottom:14px;
}
.card h2,.card h3{ color:var(--ink); font-family:var(--sans); font-size:1.35rem; font-weight:500; margin:0 0 10px; }
.card p{ color:var(--ink); font-size:15px; line-height:1.6; }
.card-link::after{ border-radius:12px; }
.chips{ justify-content:flex-start; }
.chips a{ background:var(--green-tint); color:var(--ink); font-weight:500; font-size:13px; }
.chips a:hover{ background:var(--accent); }

.feature{ background:var(--card); border:1px solid var(--line); box-shadow:none; }

/* ---------- Content components ---------- */
.prose h2{ font-family:var(--serif); font-size:1.7rem; color:var(--ink); }
.prose h3{ color:var(--ink); }
.prose p,.prose li{ color:var(--ink); }
.callout{ background:var(--card); border:1px solid var(--line); border-left:5px solid var(--moss); box-shadow:none; border-radius:12px; }
.source-list li,.article-item,.mini-card,.contact-card,.form,.stat,.story-card,.related__grid a{
    background:var(--card); border-color:var(--line); box-shadow:none;
}
.related h2{ font-family:var(--serif); }
.details{ color:var(--ink); }
.draft-note{ border-radius:12px; }

/* ---------- Footer (ink band) ---------- */
.site-footer{
    background:var(--ink);
    color:#fff;
    border-top:0;
    margin-top:60px;
    padding:30px 0 18px;
}
.site-footer .container{ max-width:1320px; padding:0 32px; }
.site-footer a{ color:#fff; }
.footer-brand img{ width:170px; height:auto; }
.footer-brand p{ color:#cfe0d4; }
.footer-link{ font-weight:500; }
.footer-link:hover{ border-bottom-color:var(--accent); }
.social-btn{ background:var(--accent); color:var(--ink) !important; }
a.social-btn:hover{ background:#fff; }
.social-btn.is-off{ background:rgba(255,255,255,.14); color:#cfe0d4 !important; }
.footer-base{ border-top-color:rgba(255,255,255,.2); color:#cfe0d4; }
.footer-base a{ color:var(--accent); }

/* ---------- Home page ---------- */
.home-wrap{ max-width:1200px; margin:0 auto; padding:34px 32px 10px; }
.home-layout{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,3fr); gap:22px; grid-template-areas:"focus sidebar" "topics collaborators"; }
.home-focus,.home-panel{ border:1px solid var(--line); border-radius:14px; padding:clamp(20px,3vw,36px); }
.home-focus{ grid-area:focus; display:flex; flex-direction:column; justify-content:flex-start; background:#dfeade; }
.home-focus h1{ font-family:var(--serif); font-size:clamp(34px,5vw,62px); letter-spacing:-1.5px; margin:14px 0 20px; }
.home-focus p{ max-width:50ch; margin:0 0 12px; }
.home-focus .notice{ font-size:14px; }
.home-panel{ background:var(--card); }
.home-panel h2{ font-size:clamp(24px,3vw,32px); margin:8px 0 12px; }
.home-panel p{ margin:0 0 12px; }
.actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:14px; }
.notice{ font-size:14px; color:var(--muted); }
.home-topics{ grid-area:topics; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.home-topics .home-panel{ padding:clamp(14px,2vw,22px); display:flex; flex-direction:column; align-items:flex-start; }
.home-topics h2{ font-size:clamp(20px,2.1vw,28px); }
.home-topics a{ margin-top:auto; }
.home-sidebar{ grid-area:sidebar; display:grid; grid-template-rows:auto auto auto; gap:22px; align-content:start; }
.home-collaborators{ grid-area:collaborators; }
.collaborator-types{ display:flex; gap:7px; flex-wrap:wrap; padding:0; list-style:none; margin:0 0 14px; }
.collaborator-types li{ background:#eaf0df; border-radius:20px; padding:4px 10px; font-size:13px; }

.quick{ margin-top:22px; padding-top:22px; border-top:1px solid rgba(21,63,56,.18); }
.quick h2{ font-family:var(--sans); font-size:14px; letter-spacing:1.5px; text-transform:uppercase; font-weight:700; margin:0 0 12px; }
.quick ul{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.quick a{
    display:flex; gap:12px; align-items:center; text-decoration:none;
    background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 16px;
}
.quick a:hover{ border-color:var(--ink); }
.quick .q-ico{ width:40px; height:40px; border-radius:50%; background:var(--accent); display:grid; place-items:center; font-size:1.2rem; flex-shrink:0; }
.quick strong{ display:block; font-weight:600; line-height:1.25; }
.quick small{ display:block; color:var(--muted); font-size:13.5px; line-height:1.35; }

.gallery{ list-style:none; padding:0; margin:0 0 12px; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.gallery li{ aspect-ratio:1; border:1px dashed #9fb596; border-radius:10px; display:grid; place-items:center; text-align:center; font-size:12px; color:var(--muted); background:#f3f6ea; padding:4px; }

#home-feedback label{ display:block; font-size:14px; }
#home-feedback textarea,.journey-panel textarea,.journey-panel select{
    width:100%; border:1px solid #69877d; border-radius:7px; padding:8px; font:inherit; color:var(--ink); background:#fff; resize:vertical;
}
#home-feedback .btn{ margin-top:8px; }
#feedback-status:empty{ display:none; }
.feedback-view{ white-space:pre-wrap; overflow-wrap:anywhere; }

/* ---------- Audience picker ("How would you like to explore?") ---------- */
.audience-picker{
    max-width:1200px; margin:0 auto 10px; padding:clamp(16px,3vw,26px);
    border:1px solid var(--line); border-radius:14px; background:#eaf0df;
}
.audience-wrap{ max-width:1200px; margin:0 auto; padding:6px 32px 0; }
.audience-intro{ display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; }
.audience-intro h2{ font-size:clamp(22px,3vw,30px); margin:4px 0 12px; }
.audience-options{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.audience-options button{
    padding:12px 15px; text-align:left; background:var(--card); color:var(--ink);
    border:1px solid #718c7f; border-radius:9px; font:inherit; cursor:pointer;
}
.audience-options strong,.audience-options span{ display:block; }
.audience-options span{ font-size:14px; margin-top:3px; }
.audience-picker button[aria-pressed="true"]{ background:var(--ink); color:#fff; }
.audience-picker .btn.light[aria-pressed="true"]{ background:var(--ink); color:#fff; }
#audience-status{ margin:10px 0 0; }
.aud-empty{ max-width:1200px; margin:0 auto; padding:10px 32px; }

/* ---------- Search page ---------- */
.search-form{ display:flex; gap:10px; max-width:760px; margin:0 0 14px; }
.search-form input{ flex:1; min-width:0; padding:13px 18px; font:inherit; font-size:17px; border:1px solid #69877d; border-radius:999px; background:#fff; color:var(--ink); }
.result-list{ list-style:none; padding:0; margin:0; display:grid; gap:14px; }
.result{ background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px 22px; }
.result h3{ margin:6px 0 6px; font-size:1.25rem; }
.result h3 a{ text-decoration:none; }
.result h3 a:hover{ text-decoration:underline; }
.result p{ margin:0; font-size:15px; }
.result mark{ background:var(--accent); color:var(--ink); border-radius:3px; padding:0 2px; }

/* ---------- Journey page ---------- */
.journey-panel{ margin:0 auto 18px; max-width:860px; }
.journey-panel fieldset{ border:0; padding:0; margin:14px 0; }
.journey-panel legend{ font-weight:700; margin-bottom:7px; }
.journey-panel label{ display:block; padding:5px 0; }
.journey-panel select,.journey-panel textarea{ display:block; width:min(100%,560px); margin-bottom:12px; }
.journey-panel details{ border-bottom:1px solid var(--line); padding:14px 0; }
.journey-panel summary{ cursor:pointer; font-weight:600; }
.journey-panel .btn{ margin-top:8px; }
.journey-wrap{ padding:0 32px 20px; }

/* ---------- Responsive ---------- */
@media (max-width:1099px){
    :root{ --header-h:72px; }
    .header-bar{ padding:8px 18px; }
    .primary-nav{ background:var(--paper); border-top:1px solid var(--line); box-shadow:0 14px 24px rgba(21,63,56,.14); }
    .nav-row,.nav-row:has(.is-trail){ background:none; border-radius:0; border-bottom:1px solid var(--line); }
    .nav-row:has(.is-trail) .nav-link,.nav-row:has(.is-trail) .sub-toggle{ color:var(--ink); }
    .nav-link{ padding:14px 10px; font-size:16px; border-radius:0; }
    .nav-link.is-trail{ color:var(--ink); font-weight:700; }
    .sub-toggle{ border-radius:0; height:48px; width:52px; }
    .dropdown,.dropdown--wide{ background:#eef2e3; border:none; border-radius:10px; box-shadow:none; }
    .dropdown::before{ display:none; }
    .search-toggle{ margin-left:auto; }
    .lang-switch{ margin-left:0; }
    .header-search form{ padding:12px 18px; }
}
@media (max-width:1180px){
    .search-toggle__text{ display:none; }
    .search-toggle{ padding:9px 11px; }
}
@media (max-width:850px){
    .home-layout{ grid-template-columns:1fr; grid-template-areas:"focus" "topics" "sidebar" "collaborators"; }
    .home-sidebar{ grid-template-columns:1fr; }
    .home-wrap{ padding:22px 18px 10px; }
    .hero,.page-hero{ padding:34px 18px 20px; }
    .breadcrumb{ padding:16px 18px 0; }
    .wide,.card-container,.card-grid,.audience-wrap,.aud-empty,.section-title{ padding-left:18px; padding-right:18px; }
    .site-footer .container{ padding:0 18px; }
}
@media (max-width:620px){
    .home-topics{ grid-template-columns:1fr; }
    .audience-options{ grid-template-columns:1fr; }
    .search-form{ flex-wrap:wrap; }
    .brand__square{ height:44px; }
}

/* buttons that are real <button> elements keep the pill look */
button.btn{ border:1px solid var(--ink); font:inherit; font-size:14px; font-weight:500; }
button.btn.light,button.btn--ghost{ background:transparent; color:var(--ink); }
button.btn:disabled{ background:#9aa3ad; border-color:#9aa3ad; color:#fff; }

/* home grid: left = focus + topics + collaborators, right = three stacked panels */
.home-layout{ grid-template-areas:"focus sidebar" "topics sidebar" "collaborators sidebar"; grid-template-rows:auto auto 1fr; }
.home-focus,.home-topics,.home-collaborators{ align-self:start; }
@media (max-width:850px){
    .home-layout{ grid-template-rows:none; grid-template-areas:"focus" "topics" "sidebar" "collaborators"; }
}

/* alignment: everything sits on the same 1200px column as the page title */
.container{ max-width:1200px; padding:0 32px; }
.container .card-grid,.container .card-container{ padding-left:0; padding-right:0; }
.anchor-nav{ max-width:1200px; margin:0 auto; padding:6px 32px 10px; justify-content:flex-start; }
.lib-section{ max-width:1200px; margin-left:auto; margin-right:auto; padding-left:32px; padding-right:32px; }
.related{ max-width:1200px; padding-left:32px; padding-right:32px; }
@media (max-width:850px){
    .container,.anchor-nav,.lib-section,.related{ padding-left:18px; padding-right:18px; }
}

@media (max-width:480px){
    .header-bar{ padding:8px 12px; gap:8px; }
    .brand__text{ font-size:18px; }
    .lang-switch button{ padding:6px 10px; }
    .nav-toggle{ width:42px; height:42px; }
    .search-toggle{ padding:8px 10px; }
}
@media (max-width:380px){
    .brand__text{ display:none; }
}
