:root{
    --bg:#0b1220;
    --bg-soft:#111a2e;
    --surface:#ffffff;
    --surface-2:#f6f8fc;
    --text:#0f172a;
    --muted:#64748b;
    --line:#e5e7eb;
    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --accent:#7c3aed;
    --shadow:0 24px 64px rgba(15,23,42,.08);
    --radius:24px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
    margin:0;
    font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--text);
    background:linear-gradient(180deg,#f8fbff 0,#f5f7fb 100%);
}

img{max-width:100%;display:block}

a{color:var(--primary)}
a:hover{color:var(--primary-dark)}

code{
    background:#eef2ff;
    color:#3730a3;
    padding:.15rem .35rem;
    border-radius:8px;
}

.site-header{
    backdrop-filter:blur(18px);
    background:rgba(11,18,32,.78);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.app-navbar{
    background:rgba(11,18,32,.82);
    backdrop-filter:blur(22px);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.app-navbar .navbar-brand{margin-right:1rem}

.site-logo{
    height:auto;
    width:152px;
}

.app-navbar .navbar-toggler{border-color:rgba(255,255,255,.25)}

.app-navbar .navbar-nav .nav-link{
    color:rgba(255,255,255,.82);
    font-weight:600;
    padding:.85rem 1rem;
    position:relative;
}

.app-navbar .navbar-nav .nav-link.active,
.app-navbar .navbar-nav .nav-link:hover{
    color:#fff;
}

.app-navbar .nav-link::after{
    content:"";
    position:absolute;
    left:1rem;
    right:1rem;
    bottom:.55rem;
    height:2px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--primary),var(--accent));
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .22s ease;
}

.app-navbar .nav-link:hover::after,
.app-navbar .nav-link.active::after{
    transform:scaleX(1);
}

.app-navbar .search-form .form-control{
    border-radius:999px 0 0 999px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
}

.app-navbar .search-form .form-control::placeholder{
    color:rgba(255,255,255,.6);
}

.app-navbar .search-form .btn{
    border-radius:0 999px 999px 0;
}

.btn-primary{
    background:linear-gradient(135deg,var(--primary),var(--accent));
    border:none;
    box-shadow:0 16px 32px rgba(37,99,235,.24);
}

.btn-primary:hover{
    background:linear-gradient(135deg,var(--primary-dark),var(--accent));
}

.btn-soft{
    background:#eef2ff;
    border:1px solid #dbeafe;
    color:#1e3a8a;
}

.btn-soft:hover{
    background:#dbeafe;
    color:#1e3a8a;
}

.nav-mega-menu{
    width:min(920px,92vw);
    padding:1rem;
    border-radius:20px;
    background:#fff;
}

.mega-card{
    display:flex;
    flex-direction:column;
    gap:.5rem;
    background:var(--surface-2);
    border:1px solid var(--line);
    border-radius:20px;
    padding:1rem;
    text-decoration:none;
    color:var(--text);
    height:100%;
}

.mega-card:hover{
    transform:translateY(-2px);
    box-shadow:var(--shadow);
}

.mega-chip,
.topic-chip,
.topic-pill{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    font-size:.75rem;
    font-weight:700;
    letter-spacing:.02em;
    text-transform:uppercase;
    padding:.6rem .7rem;
    border-radius:999px;
    background:#dbeafe;
    color:#1d4ed8;
}

.topic-pill{
    background:#ede9fe;
    color:#6d28d9;
    text-transform:none;
}

.hero-section{padding-top:1rem}

.hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr);
    gap:2rem;
    align-items:stretch;
}

.hero-title{
    font-size:clamp(2.4rem,4vw,4.25rem);
    font-weight:800;
    line-height:1.05;
    letter-spacing:-.04em;
    margin:0 0 1rem;
}

.hero-text{
    font-size:1.08rem;
    line-height:1.8;
    color:var(--muted);
    max-width:66ch;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:.9rem;
    margin-top:1.5rem;
}

.hero-surface{
    background:linear-gradient(160deg,#10192f,#18284b);
    color:#fff;
    border-radius:32px;
    padding:1.5rem;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1rem;
    box-shadow:0 30px 80px rgba(11,18,32,.35);
}

.hero-highlight{
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    border-radius:24px;
    padding:1.15rem;
    display:flex;
    flex-direction:column;
    gap:.3rem;
}

.hero-highlight strong{
    font-size:2rem;
    font-weight:800;
}

.hero-highlight span{
    color:rgba(255,255,255,.76);
}

.hero-highlight.wide{grid-column:1/-1}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin-bottom:1.5rem;
}

.section-title{
    font-size:clamp(1.6rem,2vw,2.2rem);
    font-weight:800;
    letter-spacing:-.03em;
    margin:0;
}

.eyebrow{
    display:inline-block;
    font-size:.8rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:var(--primary);
    margin-bottom:.7rem;
}

/* topic cards */
.topic-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1rem;
}

.topic-card{
    display:flex;
    flex-direction:column;
    gap:.75rem;
    background:var(--surface);
    border:1px solid rgba(148,163,184,.18);
    border-radius:24px;
    padding:1rem;
    text-decoration:none;
    color:var(--text);
    box-shadow:var(--shadow);
    min-width:0;
    height:100%;
}

.topic-card:hover{transform:translateY(-3px)}

.topic-card strong{
    font-size:1rem;
    line-height:1.3;
}

.topic-card p{
    margin:0;
    color:var(--muted);
    line-height:1.6;
    font-size:.95rem;
}

.topic-card-icon{
    width:40px;
    height:40px;
    border-radius:16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#dbeafe,#ede9fe);
    color:#1d4ed8;
    font-size:1.05rem;
}

.post-card{
    background:var(--surface);
    border:1px solid rgba(148,163,184,.18);
    border-radius:28px;
    overflow:hidden;
    box-shadow:var(--shadow);
    height:100%;
    display:flex;
    flex-direction:column;
}

.post-card-media{
    display:block;
    aspect-ratio:16/10;
    overflow:visible;
    background:#dbe4f0;
}

.post-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .45s ease;
}

.post-card:hover .post-card-media img{transform:scale(1.04)}

.post-card-body{
    padding:1.25rem 1.25rem 1.35rem;
    display:flex;
    flex-direction:column;
    gap:.85rem;
    height:100%;
}

.post-card-meta{
    display:flex;
    flex-wrap:wrap;
    gap:.65rem;
    font-size:.82rem;
    color:var(--muted);
    align-items:center;
}

.post-card h3{
    font-size:1.2rem;
    line-height:1.35;
    font-weight:800;
    margin:0;
}

.post-card h3 a{
    text-decoration:none;
    color:var(--text);
}

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

.post-card-link{
    margin-top:auto;
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    font-weight:700;
    text-decoration:none;
}

.page-hero,
.article-panel,
.search-card{
    background:var(--surface);
    border:1px solid rgba(148,163,184,.18);
    border-radius:28px;
    box-shadow:var(--shadow);
}

.page-hero{padding:1.5rem 1.6rem}
.page-hero.compact{padding:1.4rem 1.5rem}

.topic-filters{
    display:flex;
    flex-wrap:wrap;
    gap:.6rem;
    margin:0 0 1.2rem;
}

.article-grid{
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(300px,.68fr);
    gap:2rem;
    align-items:start;
}

.article-main{min-width:0}
.article-side{display:grid;gap:1rem}

.article-hero{
    background:var(--surface);
    border:1px solid rgba(148,163,184,.18);
    border-radius:32px;
    box-shadow:var(--shadow);
    padding:1.5rem;
}

.article-kicker{
    display:flex;
    flex-wrap:wrap;
    gap:.65rem;
    align-items:center;
    color:var(--muted);
    font-size:.9rem;
    margin-bottom:1rem;
}

.article-hero h1{
    font-size:clamp(2rem,3vw,3.3rem);
    line-height:1.08;
    letter-spacing:-.04em;
    font-weight:800;
    margin:0 0 1rem;
}

.article-lead{
    font-size:1.1rem;
    line-height:1.9;
    color:var(--muted);
    margin:0;
}

.article-author-row{
    margin-top:1.4rem;
    padding-top:1rem;
    border-top:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    gap:1rem;
    align-items:center;
}

.article-media{
    margin-top:1.5rem;
    overflow:hidden;
    border-radius:28px;
    background:#dbe4f0;
}

.article-body-wrap{
    display:grid;
    grid-template-columns:minmax(220px,.42fr) minmax(0,1fr);
    gap:1.5rem;
    margin-top:1.5rem;
}

.article-panel{padding:1.25rem 1.3rem}

.sticky-panel,
.toc-panel{
    position:sticky;
    top:104px;
}

.article-content{
    background:var(--surface);
    border:1px solid rgba(148,163,184,.18);
    border-radius:32px;
    box-shadow:var(--shadow);
    padding:1.8rem;
}

.article-content > *:first-child{margin-top:0}
.article-content > *:last-child{margin-bottom:0}

.prose p,
.prose li{
    font-size:1.03rem;
    line-height:1.95;
    color:#23324d;
}

.prose h2,
.prose h3{
    font-weight:800;
    letter-spacing:-.02em;
    scroll-margin-top:120px;
}

.prose h2{
    font-size:1.7rem;
    margin:2rem 0 .9rem;
}

.prose h3{
    font-size:1.3rem;
    margin:1.6rem 0 .75rem;
}

.prose ul,
.prose ol{
    padding-left:1.3rem;
}

.article-toc{
    display:flex;
    flex-direction:column;
    gap:.65rem;
}

.toc-link{
    text-decoration:none;
    color:var(--muted);
    font-size:.96rem;
    line-height:1.4;
    padding:.35rem 0;
    border-bottom:1px dashed rgba(148,163,184,.18);
}

.toc-link:last-child{border-bottom:0}

.toc-link:hover{color:var(--primary)}

.toc-link.active{
    color:var(--primary-dark);
    font-weight:700;
}

.toc-h3{
    padding-left:1rem;
    font-size:.92rem;
}

.share-links{
    display:flex;
    gap:.65rem;
    flex-wrap:wrap;
}

.stacked-links{
    display:flex;
    flex-direction:column;
    gap:.75rem;
}

.stacked-links a{
    text-decoration:none;
    color:var(--text);
    font-weight:600;
}

.stacked-links a:hover{color:var(--primary)}

.app-breadcrumb{
    padding:.85rem 1rem;
    border-radius:20px;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(12px);
    border:1px solid rgba(148,163,184,.16);
}

.app-breadcrumb .breadcrumb-item,
.app-breadcrumb .breadcrumb-item a{
    color:var(--muted);
    text-decoration:none;
}

.app-breadcrumb .breadcrumb-item.active{
    color:var(--text);
    font-weight:700;
}

.search-page-form .form-control{
    border-radius:20px 0 0 20px;
    padding:1rem 1.1rem;
}

.search-page-form .btn{
    border-radius:0 20px 20px 0;
}

.search-card-body{padding:1.4rem}

.site-footer{
    margin-top:4rem;
    padding:3rem 0 2rem;
    background:#08101d;
    color:rgba(255,255,255,.82);
}

.footer-grid{
    display:grid;
    grid-template-columns:minmax(0,1.3fr) 1fr 1fr;
    gap:2rem;
}

.footer-brand img{
    width:150px;
    height:auto;
}

.footer-copy{
    margin-top:1rem;
    color:rgba(255,255,255,.64);
    line-height:1.8;
    max-width:42ch;
}

.site-footer h2{
    font-size:1rem;
    font-weight:800;
    color:#fff;
    margin-bottom:1rem;
}

.footer-links{
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    flex-direction:column;
    gap:.65rem;
}

.footer-links a{
    color:rgba(255,255,255,.72);
    text-decoration:none;
}

.footer-links a:hover{color:#fff}

.footer-bottom{
    display:flex;
    justify-content:space-between;
    gap:1rem;
    flex-wrap:wrap;
    padding-top:1.5rem;
    margin-top:2rem;
    border-top:1px solid rgba(255,255,255,.1);
    color:rgba(255,255,255,.55);
}

.list-status{
    margin-top:1rem;
    color:var(--muted);
    text-align:center;
}

.load-sentinel{height:2px}
.muted{color:var(--muted)}

.alert-light{
    background:var(--surface);
    border-radius:20px;
}

#reading-bar{
    position:fixed;
    top:0;
    left:0;
    height:3px;
    width:0;
    z-index:2000;
    background:linear-gradient(90deg,var(--primary),var(--accent));
    box-shadow:0 0 18px rgba(37,99,235,.32);
}

.article-breadcrumb-shell{
    padding:1rem 0 .25rem;
    position:relative;
    z-index:4;
}

.story-hero{
    position:relative;
    min-height:clamp(420px,68vh,760px);
    overflow:hidden;
    background:#0b1220;
}

.story-hero-media,
.story-hero-media img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}

.story-hero-media img{
    object-fit:cover;
    transform:scale(1.03);
}

.story-hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(11,18,32,.16) 0%,rgba(11,18,32,.48) 35%,rgba(11,18,32,.94) 100%);
}

.story-hero-inner{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    min-height:clamp(420px,68vh,760px);
    padding-bottom:3.2rem;
}

.story-kickers{
    display:flex;
    flex-wrap:wrap;
    gap:.7rem;
    margin-bottom:1rem;
    padding-top: 10px;
}

.story-chip,
.topic-pill-hero{
    display:inline-flex;
    align-items:center;
    padding:.55rem .9rem;
    border-radius:999px;
    font-size:.76rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    border:1px solid rgba(255,255,255,.12);
}

.story-chip{
    background:rgba(255,255,255,.1);
    color:#fff;
}

.topic-pill-hero{
    background:#ede9fe;
    color:#4c1d95;
}

.story-title{
    font-size:clamp(2.35rem,5vw,4.6rem);
    line-height:1.02;
    letter-spacing:-.055em;
    font-weight:800;
    color:#fff;
    margin:0 0 1rem;
}

.story-lead{
    max-width:64ch;
    color:rgba(255,255,255,.82);
    font-size:1.12rem;
    line-height:1.9;
    padding-left:1.15rem;
    border-left:4px solid rgba(255,255,255,.35);
    margin:0 0 1.75rem;
}

.story-meta-row{
    display:flex;
    align-items:center;
    gap:1rem;
    justify-content:space-between;
    flex-wrap:wrap;
    padding-top:1.15rem;
    border-top:1px solid rgba(255,255,255,.12);
}

.story-author-card{
    display:flex;
    align-items:center;
    gap:.9rem;
    color:#fff;
}

.story-author-avatar{
    width:52px;
    height:52px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    font-weight:800;
    font-size:1.1rem;
    box-shadow:0 20px 35px rgba(37,99,235,.3);
}

.story-author-card strong{
    display:block;
    font-size:1rem;
}

.story-author-card div div{
    font-size:.86rem;
    color:rgba(255,255,255,.7);
}

.story-meta-stats{
    display:flex;
    flex-wrap:wrap;
    gap:1rem;
}

.story-meta-stats p{
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    padding:.68rem .9rem;
    backdrop-filter:blur(12px);
    border-radius:999px;
    color:rgba(255,255,255,.86);
    font-size:.9rem;
}

.story-meta-stats span{
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    padding:.68rem .9rem;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(12px);
    border-radius:999px;
    color:rgba(255,255,255,.86);
    font-size:.9rem;
}

.article-share-rail{
    position:fixed;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:.8rem;
    z-index:30;
}

.article-share-label{
    font-size:.62rem;
    letter-spacing:.22em;
    text-transform:uppercase;
    color:var(--muted);
    writing-mode:vertical-rl;
    transform:rotate(180deg);
}

.article-share-rail .soc-btn,
.article-share-rail .like-btn{
    width:44px;
    height:44px;
    border-radius:16px;
    border:1px solid rgba(148,163,184,.18);
    background:rgba(255,255,255,.92);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--text);
    box-shadow:var(--shadow);
    text-decoration:none;
}

.article-share-rail .like-btn{
    height:54px;
    flex-direction:column;
    gap:.1rem;
}

.article-share-rail .like-btn span{
    font-size:.62rem;
    color:var(--muted);
}

.article-share-rail .soc-btn:hover,
.article-share-rail .like-btn:hover,
.article-share-rail .like-btn.liked{
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    border-color:transparent;
}

.article-share-rail .like-btn.liked span,
.article-share-rail .like-btn:hover span{
    color:rgba(255,255,255,.8);
}

.story-main-section{
    padding:4rem 0 5rem;
}

.story-layout{
    display:grid;
    grid-template-columns:minmax(0,1.28fr) minmax(320px,.72fr);
    gap:2rem;
    align-items:start;
}

.story-article-main{min-width:0}
.story-sidebar{display:grid;gap:1rem}

.story-intro-grid{
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(280px,.8fr);
    gap:1rem;
    margin-bottom:1.5rem;
}

.story-note-card,
.story-content-card,
.story-toc-card,
.story-author-panel,
.story-share-panel,
.story-sidebar-panel{
    background:var(--surface);
    border:1px solid rgba(148,163,184,.18);
    border-radius:28px;
    box-shadow:var(--shadow);
}

.story-note-card{padding:1.45rem 1.5rem}

.story-note-card h2,
.story-panel-head h2{
    font-size:1.35rem;
    line-height:1.2;
    font-weight:800;
    letter-spacing:-.03em;
    margin:0 0 .65rem;
}

.story-note-card p{
    margin:0;
    color:var(--muted);
    line-height:1.82;
}

.story-quick-facts{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.75rem;
    margin-top:1.15rem;
}

.story-quick-facts span{
    display:flex;
    align-items:center;
    gap:.55rem;
    padding:.85rem .95rem;
    background:var(--surface-2);
    border-radius:18px;
    color:#334155;
    font-size:.92rem;
    font-weight:600;
}

.story-panel-head{
    display:flex;
    flex-direction:column;
    gap:.2rem;
    margin-bottom:1rem;
}

.story-toc-card{padding:1.35rem 1.4rem}

.story-toc-card .article-toc{
    max-height:260px;
    overflow:auto;
    padding-right:.35rem;
}

.story-content-card{padding:1.65rem}

.story-content .lead{font-size:1.14rem}

.story-content blockquote{
    margin:1.6rem 0;
    padding:1.15rem 1.2rem;
    border-left:4px solid var(--primary);
    background:#eff6ff;
    border-radius:0 20px 20px 0;
    color:#1e3a8a;
}

.story-content img{
    border-radius:24px;
    box-shadow:0 18px 34px rgba(15,23,42,.12);
    margin:1.5rem auto;
}

.story-content a{
    font-weight:700;
    text-decoration-thickness:2px;
    text-underline-offset:2px;
}

.story-bottom-panels{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1rem;
    margin-top:1.5rem;
}

.story-author-panel,
.story-share-panel,
.story-sidebar-panel{
    padding:1.35rem 1.4rem;
}

.story-sidebar-panel .stacked-links a{
    padding:.9rem 1rem;
    border-radius:16px;
    background:var(--surface-2);
    border:1px solid rgba(148,163,184,.14);
}

.story-sidebar-panel .stacked-links a:hover{
    background:#eef2ff;
    border-color:#dbeafe;
}

.article-panel.sticky-panel.story-sidebar-panel{top:108px}

.prose p,
.prose li{
    font-size:1.04rem;
    line-height:1.95;
    color:#24324b;
}

.prose h2{
    font-size:1.95rem;
    margin:2.25rem 0 1rem;
    position:relative;
    padding-top:.15rem;
}

.prose h2::before{
    content:"";
    position:absolute;
    left:0;
    top:-.65rem;
    width:66px;
    height:4px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--primary),var(--accent));
}

.prose h3{
    font-size:1.4rem;
    margin:1.85rem 0 .85rem;
}

.prose ul li::marker,
.prose ol li::marker{
    color:var(--primary);
}

.share-links .btn{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
}

.lang-switch-modern{
    display:inline-flex;
    align-items:center;
    gap:.35rem;
    padding:.3rem;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.06);
    border-radius:999px;
    backdrop-filter:blur(14px);
}

.lang-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:46px;
    padding:.48rem .8rem;
    border-radius:999px;
    text-decoration:none;
    font-size:.8rem;
    font-weight:800;
    letter-spacing:.06em;
    color:rgba(255,255,255,.72);
    transition:all .2s ease;
}

.lang-pill:hover{
    color:#fff;
    background:rgba(255,255,255,.08);
}

.lang-pill.is-active{
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    box-shadow:0 10px 24px rgba(37,99,235,.28);
}

.map-section-head{margin-bottom:1rem}

.home-desktop-map-section{padding:1.25rem 0 2rem}

.home-desktop-map-card{
    border-radius:28px;
    overflow:hidden;
    background:var(--surface);
    border:1px solid rgba(148,163,184,.18);
    box-shadow:var(--shadow);
}

.home-desktop-map{
    width:100%;
    height:560px;
}

.map-popup-card{width:240px}

.map-popup-card img{
    width:100%;
    height:132px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:.85rem;
}

.map-popup-body{
    display:flex;
    flex-direction:column;
    gap:.45rem;
}

.map-popup-topic{
    display:inline-flex;
    align-self:flex-start;
    padding:.28rem .65rem;
    border-radius:999px;
    background:rgba(37,99,235,.08);
    color:var(--primary);
    font-size:.72rem;
    font-weight:700;
}

.map-popup-card h5{
    margin:0;
    font-size:1rem;
    line-height:1.35;
    color:var(--text);
}

.map-popup-link{
    font-size:.85rem;
    font-weight:700;
    color:var(--primary);
}

.map-empty-state{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:560px;
    color:var(--muted);
    font-weight:600;
    background:var(--surface);
}

.nav-topic-panel{
    display:grid;
    grid-template-columns:minmax(250px,.9fr) minmax(0,1.4fr);
    gap:1rem;
    padding:1rem;
    min-width:min(980px,94vw);
    border-radius:28px;
    background:linear-gradient(180deg,#ffffff 0,#f8fbff 100%);
}

.nav-topic-hero{
    padding:1.15rem;
    background:linear-gradient(160deg,#0f172a,#1e3a8a);
    border-radius:24px;
    color:#fff;
    display:flex;
    flex-direction:column;
    gap:.85rem;
    min-height:100%;
}

.nav-topic-hero h2{
    margin:0;
    font-size:1.5rem;
    line-height:1.1;
    font-weight:800;
    letter-spacing:-.03em;
}

.nav-topic-hero p{
    margin:0;
    color:rgba(255,255,255,.78);
    line-height:1.75;
}

.nav-topic-actions{
    display:flex;
    flex-wrap:wrap;
    gap:.65rem;
    margin-top:auto;
}

.nav-topic-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.85rem;
}

.nav-topic-card{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:start;
    gap:.9rem;
    padding:1rem;
    background:var(--surface);
    border:1px solid rgba(148,163,184,.18);
    border-radius:22px;
    color:var(--text);
    text-decoration:none;
    box-shadow:0 14px 34px rgba(15,23,42,.06);
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nav-topic-card:hover{
    transform:translateY(-3px);
    border-color:#c7d2fe;
    box-shadow:0 22px 42px rgba(15,23,42,.1);
}

.nav-topic-icon{
    width:46px;
    height:46px;
    border-radius:16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#dbeafe,#ede9fe);
    color:#1d4ed8;
    font-size:1.05rem;
    flex-shrink:0;
}

.nav-topic-copy{
    display:flex;
    flex-direction:column;
    gap:.25rem;
    min-width:0;
}

.nav-topic-copy strong{
    font-size:1rem;
    line-height:1.3;
}

.nav-topic-copy small{
    font-size:.84rem;
    line-height:1.6;
    color:var(--muted);
}

.nav-topic-arrow{
    color:#94a3b8;
    padding-top:.1rem;
}

.app-navbar .navbar-nav .nav-link.nav-topics-toggle{
    background:none;
    border:0;
    display:inline-flex;
    align-items:center;
    gap:.55rem;
}

.app-navbar .navbar-nav .nav-link.nav-topics-toggle i{
    font-size:.8rem;
    transition:transform .2s ease;
}

.nav-mega{position:relative}

.nav-mega-menu{
    display:none;
    position:absolute;
    top:calc(100% + 12px);
    right:0;
    z-index:1080;
    border:1px solid rgba(148,163,184,.18);
    box-shadow:0 32px 80px rgba(15,23,42,.22);
}

.nav-mega.is-open .nav-mega-menu{display:grid}

.nav-mega.is-open .nav-topics-toggle i{transform:rotate(180deg)}

.hero-surface-editorial{
    grid-template-columns:1fr;
    align-content:start;
}

.hero-surface-editorial .hero-highlight strong{
    font-size:1.35rem;
    line-height:1.25;
}

.hero-surface-editorial .hero-highlight p{
    margin:0;
    color:rgba(255,255,255,.78);
    line-height:1.75;
}

.hero-kicker{
    display:inline-flex;
    align-self:flex-start;
    padding:.42rem .7rem;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    color:#dbeafe;
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin-bottom:.35rem;
}

.story-content img.article-gallery-image{
    cursor:zoom-in;
    border-radius:22px;
    box-shadow:0 18px 48px rgba(15,23,42,.12);
}

.story-content figure:has(img.article-gallery-image){
    display:grid;
    gap:.75rem;
}

.story-lightbox{
    position:fixed;
    inset:0;
    background:rgba(5,10,20,.88);
    backdrop-filter:blur(10px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:clamp(16px,3vw,32px);
    z-index:2000;
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
}

.story-lightbox.is-open{
    opacity:1;
    pointer-events:auto;
}

.story-lightbox-dialog{
    position:relative;
    max-width:min(96vw,1480px);
    max-height:90vh;
    width:100%;
    display:grid;
    grid-template-rows:minmax(0,1fr) auto;
    gap:1rem;
}

.story-lightbox-media{
    min-height:0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.story-lightbox-media img{
    max-width:100%;
    max-height:76vh;
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:24px;
    box-shadow:0 28px 80px rgba(0,0,0,.35);
}

.story-lightbox-caption{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    color:#e2e8f0;
    text-align:center;
    font-size:.98rem;
    line-height:1.7;
}

.story-lightbox-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:52px;
    height:52px;
    border:0;
    border-radius:999px;
    background:rgba(15,23,42,.72);
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:1.1rem;
    box-shadow:0 18px 40px rgba(0,0,0,.24);
}

.story-lightbox-btn:hover,
.story-lightbox-close:hover{
    background:rgba(37,99,235,.88);
}

.story-lightbox-prev{left:16px}
.story-lightbox-next{right:16px}

.story-lightbox-close{
    position:absolute;
    top:0;
    right:0;
    width:48px;
    height:48px;
    border:0;
    border-radius:999px;
    background:rgba(15,23,42,.72);
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

/* responsive */
@media (max-width: 1399.98px){
    .article-share-rail{display:none!important}
}

@media (max-width: 1199.98px){
    .hero-grid,
    .article-grid,
    .article-body-wrap,
    .footer-grid{
        grid-template-columns:1fr;
    }

    .topic-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .article-toc-wrap{order:2}
    .sticky-panel,.toc-panel{position:static}

    .story-layout,
    .story-intro-grid{
        grid-template-columns:1fr;
    }

    .story-sidebar{order:3}
    .story-quick-facts{grid-template-columns:1fr}
    .story-content-card{padding:1.35rem}

    .lang-switch-modern{
        margin-top:.25rem;
        align-self:flex-start;
    }

    .nav-topic-panel{
        grid-template-columns:1fr;
        min-width:100%;
    }

    .nav-topic-grid{
        grid-template-columns:1fr;
    }

    .nav-topic-hero{padding:1rem}

    .nav-mega-menu{
        position:static;
        top:auto;
        right:auto;
        width:100%;
        margin-top:.85rem;
    }

    .nav-mega.is-open .nav-mega-menu{display:grid}

    .app-navbar .navbar-nav .nav-link.nav-topics-toggle{
        width:100%;
        justify-content:space-between;
        padding-left:1rem;
        padding-right:1rem;
    }

    .story-lightbox-btn{
        width:46px;
        height:46px;
    }

    .story-lightbox-prev{left:8px}
    .story-lightbox-next{right:8px}
}

@media (max-width: 991.98px){
    .topic-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 767.98px){
    .hero-surface{grid-template-columns:1fr}

    .article-hero,
    .article-content,
    .article-panel,
    .page-hero{
        padding:1.15rem;
    }

    .article-author-row,
    .section-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .story-hero-inner{padding-bottom:2rem}
    .story-title{max-width:none}
    .story-lead{
        font-size:1rem;
        padding-left:.9rem;
    }

    .story-bottom-panels{
        grid-template-columns:1fr;
    }

    .story-meta-row{align-items:flex-start}

    .story-content-card,
    .story-note-card,
    .story-toc-card,
    .story-author-panel,
    .story-share-panel,
    .story-sidebar-panel{
        border-radius:24px;
    }

    .site-logo{width:136px}

    .app-navbar .search-form .form-control{
        font-size:.95rem;
    }
}

.topic-card-top{
    display:flex;
    align-items:flex-start;
    gap:.85rem;
}
.topic-card-heading{
    display:flex;
    flex-direction:column;
    gap:.45rem;
    min-width:0;
}

.home-intro-card{
    background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
    border:1px solid rgba(148,163,184,.18);
    border-radius:32px;
    box-shadow:var(--shadow);
    padding:clamp(1.35rem,2vw,2.4rem);
}

.home-intro-kicker{
    display:inline-block;
    font-size:.85rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--primary);
    margin-bottom:.9rem;
}

.home-intro-card h1{
    margin:0 0 1rem;
    font-size:clamp(2rem,4vw,3.1rem);
    line-height:1.08;
    letter-spacing:-.04em;
}

.home-intro-copy{
    max-width:92ch;
}

.home-intro-copy p{
    margin:0 0 1rem;
    color:var(--muted);
    line-height:1.8;
    font-size:1rem;
}

.home-intro-copy p strong{
    color:var(--text);
}

.topic-grid-home{
    margin-top:.25rem;
}

.home-section-chip{
    margin-bottom:.35rem;
}

.home-feature-card,
.home-ideas-featured-card{
    display:flex;
    flex-direction:column;
}

.home-feature-media,
.home-ideas-article-media{
    display:block;
    overflow:hidden;
    border-radius:24px;
    margin-bottom:1rem;
    background:#dbe4f0;
}

.home-feature-media img,
.home-ideas-article-media img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .35s ease;
}

.home-feature-media{
    aspect-ratio:16/9;
}

.home-feature-media:hover img,
.home-ideas-article:hover img{
    transform:scale(1.03);
}

.home-ideas-article{
    text-decoration:none;
    color:inherit;
    display:flex;
    flex-direction:column;
    gap:1rem;
}

.home-ideas-article-media{
    aspect-ratio:16/10;
    margin-bottom:0;
}

.home-ideas-article-body{
    display:flex;
    flex-direction:column;
    gap:.7rem;
}

.home-ideas-article-body strong{
    font-size:1.15rem;
    line-height:1.35;
}

.home-ideas-article-body p{
    margin:0;
    color:var(--muted);
    line-height:1.7;
}

.story-meta-row-enhanced{
    align-items:stretch;
}

.story-published-card{
    display:flex;
    flex-direction:column;
    gap:.75rem;
    padding:1rem 1.1rem;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.14);
    border-radius:22px;
    backdrop-filter:blur(14px);
    min-width:min(100%,320px);
}

.story-published-label{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    width:max-content;
    font-size:.76rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:rgba(255,255,255,.72);
}

.story-published-label::before{
    content:'';
    width:8px;
    height:8px;
    border-radius:999px;
    background:#f59e0b;
    box-shadow:0 0 0 6px rgba(245,158,11,.18);
}

@media (max-width: 767.98px){
    .topic-grid,
    .topic-grid-home{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .home-intro-card{
        border-radius:24px;
        padding:1.2rem;
    }

    .home-intro-card h1{
        font-size:1.8rem;
    }

    .home-intro-copy p{
        font-size:.98rem;
        line-height:1.72;
    }

    .story-published-card{
        width:100%;
        min-width:0;
    }
}

@media (max-width: 479.98px){
    .topic-grid,
    .topic-grid-home{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:.85rem;
    }

    .topic-card{
        border-radius:20px;
        padding:.9rem;
    }

    .topic-card p{
        font-size:.88rem;
        line-height:1.5;
    }
}


/* ===== Mobile navbar fixes ===== */
.app-navbar .navbar-toggler.custom-toggler{
    border:1.5px solid rgba(255,255,255,.88)!important;
    border-radius:14px;
    background:rgba(255,255,255,.05);
    padding:.62rem .72rem;
    box-shadow:0 0 0 1px rgba(255,255,255,.05) inset;
    height: 36px;
}

.app-navbar .navbar-toggler.custom-toggler:focus{
    box-shadow:0 0 0 .18rem rgba(255,255,255,.16);
}

.app-navbar .navbar-toggler .navbar-toggler-icon{
    background-image:none;
    width:1.35rem;
    height:2px;
    background:#fff;
    border-radius:999px;
    position:relative;
    display:block;
}

.app-navbar .navbar-toggler .navbar-toggler-icon::before,
.app-navbar .navbar-toggler .navbar-toggler-icon::after{
    content:"";
    position:absolute;
    left:0;
    width:100%;
    height:2px;
    border-radius:999px;
    background:#fff;
}

.app-navbar .navbar-toggler .navbar-toggler-icon::before{top:-6px}
.app-navbar .navbar-toggler .navbar-toggler-icon::after{top:6px}

@media (max-width: 1199.98px){
    .app-navbar .navbar-collapse{
        margin-top:.9rem;
        padding:1rem;
        border-radius:26px;
        background:linear-gradient(180deg,rgba(5,16,38,.98) 0%,rgba(8,22,49,.98) 100%);
        border:1px solid rgba(255,255,255,.08);
        box-shadow:0 24px 60px rgba(2,8,23,.28);
        max-height:calc(100dvh - 108px);
        overflow-y:auto;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch;
    }

    .app-navbar .navbar-nav,
    .app-navbar .navbar-nav .nav-item,
    .app-navbar .navbar-nav .nav-link,
    .app-navbar .navbar-nav .nav-link.nav-topics-toggle,
    .app-navbar .search-form{
        width:100%;
    }

    .app-navbar .navbar-nav{
        align-items:stretch!important;
        gap:.2rem;
    }

    .app-navbar .navbar-nav .nav-link,
    .app-navbar .navbar-nav .nav-link.nav-topics-toggle{
        padding:.9rem 0;
    }

    .app-navbar .nav-link::after{
        left:0;
        right:0;
    }

    .nav-topic-panel{
        min-width:0;
        width:100%;
        padding:.85rem;
        border-radius:24px;
    }

    .nav-topic-hero{
        padding:1rem;
    }

    .nav-topic-grid{
        grid-template-columns:1fr;
    }

    .nav-topic-card{
        padding:.95rem;
        border-radius:20px;
    }
}

@media (max-width: 767.98px){
    .site-logo{
        width:110px;
    }

    .app-navbar .navbar-collapse{
        padding:.95rem;
        max-height:calc(100dvh - 92px);
    }

    .nav-topic-panel{
        padding:.7rem;
        gap:.75rem;
    }

    .nav-topic-hero h2{
        font-size:1.28rem;
    }

    .nav-topic-hero p{
        font-size:.95rem;
        line-height:1.6;
    }

    .nav-topic-copy small{
        font-size:.88rem;
        line-height:1.55;
    }
}
