/* =========================================================
   World HIV Day — Modern v2 Design System
   ========================================================= */

:root{
  --ink:#111827;
  --ink-2:#1f2937;
  --muted:#667085;
  --line:#e7e9ee;
  --paper:#ffffff;
  --soft:#f6f8fa;
  --red:#e31d2b;
  --red-2:#c8101d;
  --navy:#0d1828;
  --navy-2:#15243a;
  --container:1280px;
  --r-xl:32px;
  --r-lg:24px;
  --r-md:18px;
  --shadow:0 20px 50px rgba(13,24,40,.08);
  --font:"IBM Plex Sans Thai","Inter",system-ui,sans-serif;
  --font-latin:Inter,"IBM Plex Sans Thai",system-ui,sans-serif;
  /* aliases for legacy templates */
  --accent:var(--red);
  --accent-hot:var(--red-2);
  --accent-soft:#fde8ea;
  --bg:#fff;
  --bg-soft:var(--soft);
  --ink-muted:var(--muted);
  --max:var(--container);
  --radius:var(--r-md);
  --radius-lg:var(--r-lg);
  --header-h:78px;
}

/* =========================================================
   1. Base
   ========================================================= */

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:#fff;
  line-height:1.55;
  min-height:100vh;
}

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

a{
  color:inherit;
  text-decoration:none;
}

button{
  font:inherit;
}

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

.skip-link{
  position:absolute;
  left:1rem;
  top:-4rem;
  z-index:1000;
  background:var(--red);
  color:#fff;
  padding:.6rem 1rem;
  border-radius:999px;
  font-weight:700;
}

.skip-link:focus{
  top:1rem;
}

.visually-hidden{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.container,
.wrap,
.leaflet{
  width:min(calc(100% - 40px),var(--container));
  margin-inline:auto;
}

.site-main{
  min-height:50vh;
}

/* =========================================================
   2. Buttons
   ========================================================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  padding:0 22px;
  border-radius:999px;
  font-weight:700;
  font-family:var(--font);
  font-size:.95rem;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition:.2s ease;
}

.btn-primary,
.btn-accent,
.btn-teal{
  background:var(--red);
  color:#fff;
  border-color:var(--red);
}

.btn-primary:hover,
.btn-accent:hover,
.btn-teal:hover{
  background:var(--red-2);
  border-color:var(--red-2);
  color:#fff;
  transform:translateY(-1px);
}

.btn-ghost{
  border-color:#cfd5dc;
  background:#fff;
  color:var(--ink);
}

.btn-ghost:hover{
  border-color:#aeb6bf;
  background:#fbfbfc;
  color:var(--ink);
}

.btn-on-red{
  background:#fff;
  color:var(--ink);
  border-color:#fff;
}

.btn-on-red:hover{
  background:#fff;
  color:var(--ink);
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(13,24,40,.18);
}

.btn-block{
  width:100%;
}

.btn-sm{
  min-height:40px;
  padding:0 16px;
  font-size:.88rem;
}

.text-link{
  font-weight:700;
  text-decoration:none;
  color:var(--red);
}

.text-link:hover{
  color:var(--red-2);
}

.text-arrow-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  margin-top:18px;
  color:var(--ink);
  text-decoration:none;
}

.text-arrow-link span{
  width:30px;
  height:30px;
  border:1px solid #cbd1d8;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-family:var(--font-latin);
  transition:.2s ease;
}

.text-arrow-link:hover span{
  border-color:var(--red);
  color:var(--red);
}

.arrow{
  font-family:var(--font-latin);
  font-size:18px;
}

/* =========================================================
   3. Header
   ========================================================= */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(17,24,39,.06);
}

.nav{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  color:var(--ink);
  text-decoration:none;
  flex-shrink:0;
}

.brand-mark{
  width:36px;
  height:44px;
  position:relative;
  transform:rotate(-12deg);
  flex-shrink:0;
}

.brand-mark::before,
.brand-mark::after{
  content:"";
  position:absolute;
  left:14px;
  top:2px;
  width:10px;
  height:38px;
  border-radius:12px;
  background:var(--red);
}

.brand-mark::before{transform:rotate(28deg)}
.brand-mark::after{transform:rotate(-28deg)}

.brand-copy{
  line-height:1.05;
}

.brand-copy small{
  display:block;
  font:700 10px/1.2 var(--font-latin);
  letter-spacing:.1em;
  margin-top:5px;
  color:var(--muted);
}

.brand-on-dark{
  color:#fff;
}

.brand-on-dark .brand-copy small{
  color:rgba(255,255,255,.55);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:30px;
  font-size:14px;
  font-weight:600;
}

.nav-links a{
  position:relative;
  color:var(--ink-2);
  text-decoration:none;
  white-space:nowrap;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:-10px;
  height:2px;
  background:var(--red);
  transition:.2s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{
  right:0;
}

.header-cta{
  background:var(--red);
  color:#fff;
  padding:12px 20px;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:none;
  transition:.2s ease;
  flex-shrink:0;
}

.header-cta:hover{
  background:var(--red-2);
  color:#fff;
  transform:translateY(-1px);
}

.menu-btn{
  display:none;
  border:0;
  background:none;
  font-size:26px;
  color:var(--ink);
  cursor:pointer;
  padding:6px;
  line-height:1;
}

.mobile-drawer{
  border-top:1px solid var(--line);
  background:#fff;
  padding:12px 0 20px;
}

.mobile-drawer[hidden]{
  display:none !important;
}

.mobile-drawer-inner{
  display:grid;
  gap:4px;
}

.mobile-drawer-inner a{
  display:block;
  padding:12px 0;
  color:var(--ink);
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid var(--line);
}

.mobile-drawer-inner a:hover,
.mobile-drawer-inner a[aria-current="page"]{
  color:var(--red);
}

.mobile-drawer-inner .btn{
  margin-top:12px;
  border-bottom:0;
  text-align:center;
}

/* =========================================================
   4. Hero
   ========================================================= */

.hero{
  padding:64px 0 28px;
  overflow:hidden;
  background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%);
}

.hero-grid{
  display:grid;
  grid-template-columns:.9fr 1.25fr;
  gap:48px;
  align-items:center;
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--red);
  font:700 12px/1 var(--font-latin);
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:22px;
}

.eyebrow::after{
  content:"";
  width:120px;
  height:1px;
  background:#f2aab0;
}

.hero-title,
.hero h1{
  font-size:clamp(52px,5.6vw,88px);
  line-height:.98;
  letter-spacing:-.055em;
  margin:0;
  font-weight:800;
  color:var(--ink);
}

.hero-title .accent,
.hero h1 .accent,
.accent{
  color:var(--red);
}

.hero-copy{
  margin-top:24px;
  color:#5e6877;
  max-width:570px;
  font-size:17px;
  line-height:1.8;
}

.countdown-card{
  margin-top:28px;
  background:#fff;
  border:1px solid #edf0f3;
  border-radius:20px;
  padding:16px 18px;
  width:min(100%,430px);
  box-shadow:0 14px 35px rgba(13,24,40,.05);
}

.countdown-label,
.countdown-card .label{
  color:var(--red);
  font-weight:700;
  font-size:12px;
  margin-bottom:10px;
}

.countdown{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
}

.count-item{
  position:relative;
  text-align:center;
}

.count-item:not(:last-child)::after{
  content:"";
  position:absolute;
  right:0;
  top:6px;
  height:38px;
  width:1px;
  background:#dfe3e8;
}

.count-item strong{
  display:block;
  font:700 28px/1 var(--font-latin);
  color:var(--ink);
}

.count-item span{
  display:block;
  font-size:11px;
  color:#7d8794;
  margin-top:7px;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

.hero-visual{
  position:relative;
  min-height:620px;
}

.hero-image{
  position:absolute;
  inset:0 0 0 20px;
  border-radius:42% 16px 16px 44%;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(255,255,255,.04),rgba(13,24,40,.08)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1600&q=88") center/cover;
}

.hero-image::before{
  content:"";
  position:absolute;
  left:47%;
  top:6%;
  width:260px;
  height:260px;
  border:34px solid var(--red);
  border-radius:50%;
  transform:translateX(-50%);
  opacity:.95;
}

.date-badge{
  position:absolute;
  right:18px;
  top:54px;
  width:150px;
  color:var(--ink);
}

.date-badge .day{
  font:800 78px/.9 var(--font-latin);
  color:#c70f1d;
  letter-spacing:-.06em;
}

.date-badge .month{
  font:700 14px/1 var(--font-latin);
  margin:8px 0 16px;
}

.date-badge p{
  font-size:12px;
  line-height:1.7;
  color:#505a68;
  margin:0;
}

.theme-card{
  position:absolute;
  right:-10px;
  bottom:28px;
  width:min(420px,54%);
  background:rgba(8,20,35,.96);
  color:#fff;
  border-radius:28px 28px 0 28px;
  padding:30px 32px;
  box-shadow:var(--shadow);
}

.theme-card small{
  display:block;
  color:#ff5c65;
  font:700 11px/1 var(--font-latin);
  letter-spacing:.08em;
  margin-bottom:16px;
}

.theme-card h3{
  font-size:28px;
  line-height:1.3;
  margin:0 0 10px;
}

.theme-card p{
  margin:0;
  color:#d7dce2;
  font-size:15px;
}

.circle-link,
.theme-card .circle-link{
  width:46px;
  height:46px;
  border-radius:50%;
  background:var(--red);
  color:#fff;
  display:grid;
  place-items:center;
  margin-top:22px;
  font-size:20px;
  text-decoration:none;
  transition:.2s ease;
}

.circle-link:hover{
  background:var(--red-2);
  transform:translateY(-1px);
}

/* =========================================================
   5. Topics
   ========================================================= */

.topics{
  padding:64px 0 76px;
  background:#f7f9fb;
  border-top:1px solid #eef1f4;
}

.topics-grid{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:40px;
  align-items:start;
}

.section-kicker{
  color:var(--red);
  font:700 11px/1 var(--font-latin);
  letter-spacing:.11em;
  text-transform:uppercase;
}

.section-title{
  font-size:36px;
  line-height:1.18;
  letter-spacing:-.04em;
  margin:18px 0 14px;
  font-weight:800;
  color:var(--ink);
}

.section-title-sm{
  font-size:28px;
  margin:12px 0 0;
}

.section-desc{
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
  margin:0;
}

.topic-cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.topic-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  border:1px solid #e8ebef;
  transition:.22s ease;
  text-decoration:none;
  color:inherit;
  display:block;
}

.topic-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(13,24,40,.07);
}

.topic-photo{
  height:145px;
  background-size:cover;
  background-position:center;
  background-color:#e8ebef;
}

.topic-body{
  padding:18px;
}

.topic-icon{
  width:36px;
  height:36px;
  border:1px solid #ffc3c7;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:var(--red);
  margin-top:-36px;
  background:#fff;
  position:relative;
  font-size:14px;
}

.topic-body h3{
  font-size:17px;
  line-height:1.4;
  margin:14px 0 6px;
  font-weight:700;
}

.topic-body p{
  font-size:12px;
  color:var(--muted);
  margin:0;
  line-height:1.65;
}

/* =========================================================
   6. Digest
   ========================================================= */

.digest{
  padding:64px 0 72px;
  background:#fff;
}

.digest-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
}

.digest-head .text-arrow-link{
  margin-top:0;
  flex-shrink:0;
}

.digest-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.digest-card{
  display:grid;
  gap:14px;
}

.digest-media{
  display:block;
  aspect-ratio:16/10;
  border-radius:var(--r-md);
  overflow:hidden;
  background:var(--soft);
  position:relative;
}

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

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

.thumb-fallback{
  display:block;
  width:100%;
  height:100%;
  min-height:10rem;
  background:
    linear-gradient(135deg,rgba(227,29,43,.12),rgba(13,24,40,.08)),
    linear-gradient(180deg,#eef1f4,#e2e6eb);
}

.digest-body h3{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.35;
  font-weight:700;
}

.digest-body h3 a{
  color:var(--ink);
  text-decoration:none;
}

.digest-body h3 a:hover{
  color:var(--red);
}

.digest-cat{
  display:inline-block;
  color:var(--red);
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:8px;
}

.digest-meta{
  margin:0;
  color:var(--muted);
  font-size:13px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}

/* =========================================================
   7. Campaign split (+ legacy home-cta)
   ========================================================= */

.campaign-split{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  min-height:360px;
}

.campaign-photo{
  background:
    linear-gradient(90deg,rgba(13,24,40,.1),rgba(13,24,40,.18)),
    url("https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&w=1400&q=88") center/cover;
}

.campaign-panel{
  position:relative;
  background:linear-gradient(135deg,#cf0e1c 0%,#9e0f18 100%);
  color:#fff;
  padding:52px 70px;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.campaign-panel::before{
  content:"";
  position:absolute;
  left:-82px;
  top:-20px;
  width:180px;
  height:180px;
  border-radius:50%;
  background:#cf0e1c;
}

.campaign-panel .inner{
  position:relative;
  z-index:2;
  max-width:650px;
}

.campaign-panel h2{
  font-size:34px;
  line-height:1.22;
  margin:0 0 12px;
  letter-spacing:-.03em;
  font-weight:800;
}

.campaign-panel p{
  color:#ffd9dc;
  margin:0 0 24px;
  max-width:590px;
}

.campaign-panel .btn:not(.btn-on-red){
  background:#fff;
  color:var(--ink);
}

/* Legacy red campaign band */
.home-cta{
  background:linear-gradient(135deg,#cf0e1c 0%,#9e0f18 100%);
  color:#fff;
  padding:48px 0;
}

.home-cta-inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.home-cta h2{
  margin:0 0 8px;
  font-size:28px;
  letter-spacing:-.03em;
  font-weight:800;
}

.home-cta p{
  margin:0;
  color:#ffd9dc;
  max-width:520px;
}

.home-cta .btn-accent,
.home-cta .btn-primary{
  background:#fff;
  color:var(--ink);
  border-color:#fff;
}

.home-cta .btn-accent:hover,
.home-cta .btn-primary:hover{
  background:#fff;
  color:var(--ink);
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(13,24,40,.18);
}

/* =========================================================
   8. Footer
   ========================================================= */

.site-footer{
  background:var(--navy);
  color:#fff;
  padding:64px 0 0;
  margin-top:0;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr;
  gap:70px;
  padding-bottom:48px;
}

.footer-about,
.site-footer p.footer-about{
  color:#aeb7c3;
  max-width:420px;
  font-size:14px;
  line-height:1.8;
  margin:18px 0 0;
}

.footer-col h4{
  font-size:14px;
  margin:0 0 18px;
  color:#fff;
  font-weight:700;
}

.footer-col a{
  display:block;
  color:#aeb7c3;
  font-size:13px;
  margin:10px 0;
  text-decoration:none;
}

.footer-col a:hover{
  color:#fff;
}

.footer-base{
  border-top:1px solid rgba(255,255,255,.1);
  padding:18px 0 28px;
}

.footer-base p{
  margin:0;
  color:#8b95a5;
  font-size:13px;
}

.footer-label{
  margin:0 0 .5rem;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--muted);
}

/* =========================================================
   9. Static pages
   ========================================================= */

.static-mast{
  position:relative;
  padding:2rem 0 2.25rem;
  background:
    radial-gradient(circle at 90% 10%,rgba(227,29,43,.08),transparent 38%),
    linear-gradient(180deg,#f6f8fa 0%,#fff 78%);
  border-bottom:1px solid var(--line);
  overflow:hidden;
}

.static-mast-inner > *{
  max-width:42rem;
}

.static-mast .eyebrow{
  margin-bottom:14px;
}

.static-crumbs{
  margin:0 0 .85rem;
}

.static-crumbs ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:.35rem .5rem;
  color:var(--muted);
  font-size:.86rem;
}

.static-crumbs li:not(:last-child)::after{
  content:"/";
  margin-left:.5rem;
  opacity:.55;
}

.static-crumbs a{
  color:var(--muted);
  text-decoration:none;
}

.static-crumbs a:hover{
  color:var(--red);
}

.static-mast-title{
  margin:0 0 .55rem;
  font-size:clamp(1.85rem,3.6vw,2.75rem);
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1.12;
  color:var(--ink);
}

.static-mast-lead{
  margin:0;
  color:var(--muted);
  font-size:1.05rem;
  line-height:1.7;
}

.static-desk{
  display:grid;
  gap:2rem;
  padding:2rem 0 3.25rem;
  width:min(calc(100% - 40px),var(--container));
  margin-inline:auto;
}

.static-desk.wrap,
.static-desk.container{
  width:min(calc(100% - 40px),var(--container));
}

.static-desk-stack{
  display:grid;
  gap:2.5rem;
}

.static-desk-main{
  min-width:0;
}

.static-desk-side{
  display:grid;
  gap:1rem;
  align-content:start;
}

.static-kicker{
  margin:0 0 .45rem;
  color:var(--red);
  font:700 11px/1 var(--font-latin);
  letter-spacing:.11em;
  text-transform:uppercase;
}

.static-copy{
  margin:0 0 1.25rem;
  color:var(--muted);
  font-size:1rem;
  line-height:1.65;
  max-width:34rem;
}

.static-statement{
  max-width:44rem;
  padding-bottom:.25rem;
  border-bottom:1px solid var(--line);
}

.static-statement-text{
  margin:0 0 1rem;
  font-size:clamp(1.25rem,2.4vw,1.6rem);
  font-weight:700;
  line-height:1.45;
  color:var(--ink);
}

.static-values{
  max-width:52rem;
}

.static-value-list{
  list-style:none;
  margin:.85rem 0 0;
  padding:0;
  display:grid;
  gap:.75rem;
}

.static-value-list li{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:.85rem;
  align-items:baseline;
  padding:.85rem 0;
  border-top:1px solid var(--line);
}

.static-value-list li:last-child{
  border-bottom:1px solid var(--line);
}

.static-value-list span{
  font-weight:800;
  color:var(--red);
  font-family:var(--font-latin);
}

.static-value-list strong{
  font-size:1.02rem;
  font-weight:700;
  color:var(--ink);
}

.static-topic-list{
  display:grid;
  margin-top:.75rem;
}

.static-topic-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:.85rem;
  align-items:center;
  padding:1rem 0;
  border-top:1px solid var(--line);
  text-decoration:none;
  color:inherit;
}

.static-topic-row:last-child{
  border-bottom:1px solid var(--line);
}

.static-topic-row:hover{
  color:var(--red);
}

.static-topic-num{
  font-weight:800;
  color:var(--red);
  font-family:var(--font-latin);
}

.static-topic-body{
  display:grid;
  gap:.2rem;
  min-width:0;
}

.static-topic-body strong{
  font-size:1.05rem;
  font-weight:800;
  color:var(--ink);
}

.static-topic-row:hover .static-topic-body strong{
  color:var(--red);
}

.static-topic-body span{
  color:var(--muted);
  font-size:.92rem;
  line-height:1.5;
}

.static-topic-go{
  color:var(--red);
  font-weight:800;
}

.static-topic-row:not(:has(.static-topic-num)){
  grid-template-columns:1fr auto;
}

.static-doc{
  min-width:0;
}

.static-doc-intro,
.static-doc-intro-block p{
  margin:0 0 .85rem;
  color:var(--muted);
  line-height:1.7;
  font-size:1.02rem;
}

.static-doc-intro-block p:last-child{
  margin-bottom:0;
}

.static-doc-section{
  padding:1.25rem 0;
  border-top:1px solid var(--line);
}

.static-doc-section h2,
.static-doc-intro-block h2{
  margin:0 0 .65rem;
  font-size:1.2rem;
  font-weight:800;
  display:flex;
  gap:.65rem;
  align-items:baseline;
}

.static-doc-num{
  color:var(--red);
  font-size:.95rem;
  font-family:var(--font-latin);
}

.static-doc-section p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.static-toc ol{
  margin:.5rem 0 0;
  padding-left:1.15rem;
  display:grid;
  gap:.55rem;
}

.static-toc a{
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
  font-size:.92rem;
  line-height:1.4;
}

.static-toc a:hover{
  color:var(--red);
}

.static-ref-list{
  margin:0;
  padding-left:1.15rem;
  display:grid;
  gap:.4rem;
  color:var(--muted);
}

.static-email{
  display:inline-block;
  margin:0 0 .75rem;
  font-size:clamp(1.55rem,3.2vw,2.2rem);
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.2;
  color:var(--ink);
  text-decoration:none;
  border-bottom:3px solid var(--red);
}

.static-email:hover{
  color:var(--red);
}

.static-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
}

.static-note{
  padding:1.15rem 1.2rem;
  background:var(--soft);
  border-left:3px solid var(--red);
  border-radius:0 var(--r-md) var(--r-md) 0;
}

.static-note-soft{
  background:#fff;
  border:1px solid var(--line);
  border-left:3px solid var(--line);
}

.static-note h2{
  margin:0 0 .45rem;
  font-size:1.05rem;
  font-weight:800;
}

.static-note p{
  margin:0 0 .65rem;
  color:var(--muted);
  font-size:.94rem;
  line-height:1.6;
}

.static-note p:last-child{
  margin-bottom:0;
}

.static-eeat-head{
  max-width:40rem;
  margin-bottom:1rem;
}

.static-eeat-head p:last-child{
  margin:.35rem 0 0;
  color:var(--muted);
}

.static-eeat-list{
  margin:0;
  display:grid;
  gap:1rem;
}

.static-eeat-list > div{
  padding-top:.85rem;
  border-top:1px solid var(--line);
}

.static-eeat-list dt{
  font-weight:800;
  margin:0 0 .25rem;
}

.static-eeat-list dd{
  margin:0;
  color:var(--muted);
  font-size:.94rem;
  line-height:1.6;
}

.static-faq-filters{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem 1rem;
  border-bottom:1px solid var(--line);
  margin-bottom:.25rem;
}

.static-faq-tab{
  appearance:none;
  border:0;
  background:transparent;
  padding:.65rem 0;
  font:inherit;
  font-weight:700;
  color:var(--muted);
  cursor:pointer;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
}

.static-faq-tab.is-active,
.static-faq-tab:hover{
  color:var(--red);
  border-bottom-color:var(--red);
}

.static-faq-list{
  display:grid;
}

.static-faq-item{
  border-bottom:1px solid var(--line);
  padding:.2rem 0;
}

.static-faq-item[hidden]{
  display:none;
}

.static-faq-item summary{
  list-style:none;
  cursor:pointer;
  padding:1rem 0;
  display:grid;
  gap:.25rem;
}

.static-faq-item summary::-webkit-details-marker{
  display:none;
}

.static-faq-cat{
  color:var(--red);
  font-size:.78rem;
  font-weight:800;
}

.static-faq-q{
  font-size:1.08rem;
  font-weight:800;
  color:var(--ink);
  line-height:1.35;
}

.static-faq-a{
  padding:0 0 1.15rem;
}

.static-faq-a p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
  max-width:40rem;
}

.knowledge-copy{
  margin:1rem 0;
  padding:.85rem 1rem 1rem;
  border:1px dashed var(--red);
  border-radius:var(--r-md);
  background:var(--accent-soft);
}

.knowledge-copy figcaption{
  margin:0 0 .45rem;
  font-size:.8rem;
  font-weight:700;
  color:var(--red);
}

.knowledge-copy pre{
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
  font-family:var(--font);
  font-size:.95rem;
  line-height:1.65;
  color:var(--ink);
}

.knowledge-table-wrap,
.table-scroll{
  overflow-x:auto;
  margin:1rem 0;
}

.knowledge-table-wrap table,
.prose table{
  width:100%;
  border-collapse:collapse;
  font-size:.95rem;
}

.knowledge-table-wrap th,
.knowledge-table-wrap td,
.prose th,
.prose td{
  border:1px solid var(--line);
  padding:.55rem .7rem;
  text-align:left;
}

.knowledge-table-wrap th,
.prose th{
  background:var(--soft);
}

.knowledge-figure{
  margin:1.25rem 0;
}

.knowledge-figure img{
  width:100%;
  border-radius:var(--r-md);
}

.knowledge-figure figcaption{
  margin-top:.5rem;
  color:var(--muted);
  font-size:.88rem;
}

@media (min-width:900px){
  .static-desk:not(.static-desk-stack){
    grid-template-columns:minmax(0,1.35fr) minmax(240px,.75fr);
    gap:2.5rem;
    align-items:start;
  }

  .static-desk:has(.static-toc){
    grid-template-columns:minmax(200px,.7fr) minmax(0,1.4fr);
  }

  .static-desk-side.static-toc{
    position:sticky;
    top:calc(var(--header-h) + 1rem);
  }

  .static-value-list{
    grid-template-columns:1fr 1fr;
    gap:0;
  }

  .static-value-list li:nth-child(odd){
    padding-right:1rem;
  }

  .static-value-list li:nth-child(even){
    padding-left:1rem;
    border-left:1px solid var(--line);
  }

  .static-eeat-list{
    grid-template-columns:1fr 1fr;
    gap:1.25rem 2rem;
  }
}

/* =========================================================
   10. Articles
   ========================================================= */

.page-intro{
  padding:2rem 0 1rem;
}

.page-intro h1,
.section-head h2,
.author-card h1{
  margin:0 0 .6rem;
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.2;
  font-size:clamp(1.7rem,3vw,2.35rem);
}

.section-lead{
  margin:0;
  color:var(--muted);
  max-width:40rem;
}

.section{
  padding:1.5rem 0 2.5rem;
}

.breadcrumbs{
  padding:1rem 0 0;
  font-size:.88rem;
}

.breadcrumbs ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
  color:var(--muted);
}

.breadcrumbs li:not(:last-child)::after{
  content:"/";
  margin-left:.35rem;
  opacity:.5;
}

.breadcrumbs a{
  text-decoration:none;
  color:var(--muted);
}

.breadcrumbs a:hover{
  color:var(--red);
}

.articles-layout{
  display:grid;
  gap:2rem;
}

.filter-rail{
  display:grid;
  gap:1.25rem;
  align-content:start;
}

.search-form{
  display:grid;
  gap:.55rem;
}

.search-form input{
  width:100%;
  min-height:2.6rem;
  padding:.55rem .75rem;
  border:1px solid var(--line);
  border-radius:999px;
  font:inherit;
  background:#fff;
}

.chip-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
}

.chip{
  display:inline-flex;
  align-items:center;
  padding:.4rem .85rem;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  text-decoration:none;
  font-size:.85rem;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
  border-radius:999px;
}

.chip:hover,
.chip.is-active,
.chip[aria-pressed="true"]{
  border-color:var(--red);
  background:var(--red);
  color:#fff;
}

.mag-grid,
.mag-grid-rest{
  display:grid;
  gap:1rem;
  grid-template-columns:1fr;
}

.mag-card{
  display:grid;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  overflow:hidden;
  transition:.22s ease;
}

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

.mag-card-media{
  aspect-ratio:16/10;
  background:var(--soft);
  overflow:hidden;
  display:block;
}

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

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

.mag-card-fallback{
  width:100%;
  height:100%;
  min-height:10rem;
  background:linear-gradient(135deg,#eef1f4,#e2e6eb);
}

.mag-card-body{
  padding:.9rem 1rem 1.1rem;
  display:grid;
  gap:.3rem;
}

.mag-card-kicker{
  margin:0;
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--red);
}

.mag-card-title{
  margin:0;
  font-size:1.05rem;
  font-weight:800;
  line-height:1.3;
}

.mag-card-title a{
  color:inherit;
  text-decoration:none;
}

.mag-card-title a:hover{
  color:var(--red);
}

.mag-card-excerpt,
.mag-card-meta{
  margin:0;
  color:var(--muted);
  font-size:.88rem;
}

.pagination{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  align-items:center;
  justify-content:center;
  margin-top:2rem;
}

.pagination a{
  color:var(--red);
  font-weight:700;
  text-decoration:none;
}

.article-layout{
  display:grid;
  gap:2rem;
  padding-bottom:2rem;
}

.article-header h1{
  margin:.55rem 0 .75rem;
  font-size:clamp(1.65rem,3.4vw,2.35rem);
  font-weight:800;
  letter-spacing:-.025em;
  line-height:1.2;
}

.byline{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin:0 0 1rem;
  min-width:0;
}

.byline-avatar{
  flex-shrink:0;
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
  background:var(--soft);
  box-shadow:0 0 0 2px #fff,0 0 0 3px var(--line);
}

.byline-avatar-fallback,
.article-author-avatar-fallback{
  display:grid;
  place-items:center;
  background:var(--red);
  color:#fff;
  font-size:.95rem;
  font-weight:800;
  text-transform:uppercase;
}

.byline-text{
  display:flex;
  flex-direction:column;
  gap:.12rem;
  min-width:0;
}

.byline-line{
  margin:0;
  font-size:.95rem;
  line-height:1.35;
  color:var(--muted);
}

.byline-name,
.byline-cat{
  font-weight:700;
  color:var(--red);
  text-decoration:none;
}

a.byline-name:hover,
a.byline-cat:hover{
  text-decoration:underline;
  text-underline-offset:.12em;
}

.byline-in{
  color:var(--muted);
  font-weight:400;
}

.byline-date{
  font-size:.84rem;
  color:var(--muted);
  line-height:1.35;
}

.article-header > .byline{
  margin:0 0 1.15rem;
}

.article-header > .byline .byline-avatar{
  width:52px;
  height:52px;
}

.article-header > .byline .byline-line{
  font-size:1rem;
}

.article-header > .byline .byline-name{
  font-weight:800;
}

.mag-card-body .byline,
.byline.byline-compact{
  margin:.35rem 0 0;
}

.mag-card-body .byline-avatar,
.byline.byline-compact .byline-avatar{
  width:34px;
  height:34px;
  box-shadow:0 0 0 1px var(--line);
}

.mag-card-body .byline-line,
.byline.byline-compact .byline-line{
  font-size:.84rem;
}

.mag-card-body .byline-date,
.byline.byline-compact .byline-date{
  font-size:.78rem;
}

.article-author-box{
  display:grid;
  gap:1.15rem;
  margin:2.25rem 0 1.5rem;
  padding:1.4rem 1.5rem;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:linear-gradient(180deg,#fff 0%,var(--soft) 100%);
  box-shadow:var(--shadow);
}

.article-author-avatar-link{
  display:inline-block;
  width:fit-content;
  border-radius:50%;
  line-height:0;
}

.article-author-avatar{
  width:5.5rem;
  height:5.5rem;
  border-radius:50%;
  object-fit:cover;
  background:#fff;
  box-shadow:0 0 0 3px #fff,0 0 0 5px var(--accent-soft),0 8px 20px rgba(0,0,0,.08);
}

.article-author-avatar-fallback{
  width:5.5rem;
  height:5.5rem;
  border-radius:50%;
  font-size:1.6rem;
}

.article-author-label{
  margin:0 0 .25rem;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--red);
}

.article-author-name{
  margin:0 0 .5rem;
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:-.02em;
}

.article-author-name a{
  color:inherit;
  text-decoration:none;
}

.article-author-name a:hover{
  color:var(--red);
}

.article-author-bio{
  margin:0 0 .85rem;
  color:var(--muted);
  font-size:.98rem;
  line-height:1.6;
  max-width:40rem;
}

.article-meta,
.eeat-byline,
.eeat-trust-notice{
  color:var(--muted);
  font-size:.9rem;
}

.eeat-trust-notice{
  padding:.7rem .85rem;
  background:var(--accent-soft);
  border-left:3px solid var(--red);
  border-radius:0 var(--r-md) var(--r-md) 0;
}

.article-detail{
  overflow:visible;
}

.article-main{
  min-width:0;
  max-width:100%;
}

.article-hero-img{
  margin:0 0 1.25rem;
  overflow:hidden;
  border-radius:var(--r-lg);
}

.article-hero-img img{
  width:100%;
  height:auto;
  display:block;
}

.prose,
.article-body{
  font-size:1.05rem;
  overflow:visible;
  max-width:100%;
  line-height:1.75;
  color:var(--ink-2);
}

.prose h2,
.article-body h2,
.topic-prose h2{
  font-weight:800;
  letter-spacing:-.02em;
  margin-top:2rem;
  color:var(--ink);
}

.prose a,
.article-body a{
  color:var(--red);
  text-decoration:underline;
  text-underline-offset:.12em;
}

.prose .wp-block-image,
.article-body .wp-block-image,
.prose figure,
.article-body figure{
  margin:1.25rem 0;
  max-width:100%;
}

.prose img,
.article-body img{
  border-radius:var(--r-md);
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
}

.prose .aligncenter,
.article-body .aligncenter{
  margin-left:auto;
  margin-right:auto;
}

.article-toc{
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:var(--r-md);
  padding:1rem 1.15rem;
  margin:1.2rem 0;
}

.article-ad{
  margin:1.5rem 0;
  padding:.75rem;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:var(--r-md);
  text-align:center;
}

.article-ad-top{
  margin:0 0 1.5rem;
}

.article-ad a,
.aside-promo{
  display:block;
  text-decoration:none;
}

.article-ad img,
.aside-promo img{
  width:100%;
  max-width:100%;
  height:auto;
  margin:0 auto;
  display:block;
  object-fit:contain;
}

.aside-promo-wrap{
  position:sticky;
  top:calc(var(--header-h) + .75rem);
  padding:.85rem;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:#fff;
}

.article-disclaimer{
  margin-top:2.4rem;
  padding:1.2rem;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:var(--soft);
}

.article-aside{
  display:grid;
  gap:1.2rem;
  align-content:start;
}

.aside-block{
  padding:1rem;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r-md);
}

.aside-list{
  margin:.55rem 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:.5rem;
}

.aside-list a{
  text-decoration:none;
  color:var(--ink);
  font-weight:600;
}

.aside-list a:hover{
  color:var(--red);
}

.related-block{
  margin-top:1rem;
  padding-top:2rem;
  border-top:1px solid var(--line);
}

.related-block h2{
  margin:0 0 1.15rem;
  font-weight:800;
}

.author-card,
.author-hero{
  display:grid;
  gap:1.15rem;
  padding:1.4rem;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:#fff;
  margin:1.5rem 0;
}

.author-avatar{
  width:5.75rem;
  height:5.75rem;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 0 0 3px #fff,0 0 0 5px var(--accent-soft),0 8px 20px rgba(0,0,0,.08);
}

.empty-note{
  padding:1.4rem;
  border:1px dashed var(--line);
  border-radius:var(--r-md);
  color:var(--muted);
  background:var(--soft);
}

.notfound{
  text-align:center;
  padding:5rem 0 6rem;
}

@media (min-width:560px){
  .article-author-box{
    grid-template-columns:auto 1fr;
    align-items:center;
  }
}

@media (min-width:640px){
  .author-card,
  .author-hero{
    grid-template-columns:auto 1fr;
    align-items:center;
  }
}

@media (min-width:720px){
  .mag-grid,
  .mag-grid-rest{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (min-width:900px){
  .articles-layout{
    grid-template-columns:220px 1fr;
  }
}

@media (min-width:960px){
  .article-layout{
    grid-template-columns:minmax(0,1fr) 280px;
  }
}

@media (min-width:1040px){
  .mag-grid,
  .mag-grid-rest{
    grid-template-columns:repeat(3,1fr);
  }
}

/* =========================================================
   11. Cookie consent
   ========================================================= */

.cookie-consent{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:9000;
  padding:.85rem 1rem;
  pointer-events:none;
}

.cookie-consent[hidden]{
  display:none !important;
}

.cookie-consent-inner{
  pointer-events:auto;
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:5rem;
  padding:1rem 1.25rem;
  background:var(--navy);
  color:#c5ccd6;
  border:1px solid var(--navy-2);
  border-left:4px solid var(--red);
  border-radius:var(--r-md);
  box-shadow:0 -12px 40px rgba(13,24,40,.28);
}

.cookie-consent-title{
  margin:0 0 .2rem;
  font-size:.95rem;
  font-weight:700;
  color:#fff;
}

.cookie-consent-desc{
  margin:0;
  font-size:.85rem;
  line-height:1.45;
  color:#aeb7c3;
  max-width:42rem;
}

.cookie-consent-desc a{
  color:#ff8a90;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:2px;
}

.cookie-consent-actions{
  display:flex;
  flex-shrink:0;
  flex-wrap:wrap;
  gap:.45rem;
}

.cookie-consent-actions .btn{
  min-height:2.35rem;
  padding:0 .95rem;
  font-size:.88rem;
}

.cookie-consent-actions .btn-ghost{
  background:transparent;
  border-color:rgba(255,255,255,.28);
  color:#fff;
}

.cookie-consent-actions .btn-ghost:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.5);
  color:#fff;
}

body.has-cookie-consent{
  padding-bottom:6.5rem;
}

/* =========================================================
   12. Responsive (~1100px / ~740px)
   ========================================================= */

@media (max-width:1100px){
  .nav-links{display:none}
  .menu-btn{display:block}
  .hero-grid{grid-template-columns:1fr}
  .hero-visual{min-height:560px}
  .topics-grid{grid-template-columns:1fr}
  .topic-cards{grid-template-columns:repeat(2,1fr)}
  .digest-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr;gap:40px}
  .footer-grid > :first-child{grid-column:1 / -1}
}

@media (max-width:740px){
  .container,
  .wrap,
  .leaflet,
  .static-desk{
    width:min(calc(100% - 28px),var(--container));
  }

  .nav{min-height:68px}
  .header-cta{display:none}
  .hero{padding-top:40px}
  .hero-title,
  .hero h1{font-size:48px}
  .hero-copy{font-size:15px}
  .hero-visual{min-height:460px}
  .hero-image{
    inset:0;
    border-radius:28px;
  }
  .date-badge{
    right:18px;
    top:22px;
    width:112px;
    background:rgba(255,255,255,.86);
    backdrop-filter:blur(8px);
    padding:14px;
    border-radius:16px;
  }
  .date-badge .day{font-size:48px}
  .date-badge p{display:none}
  .theme-card{
    left:16px;
    right:16px;
    bottom:16px;
    width:auto;
    padding:22px;
    border-radius:22px;
  }
  .theme-card h3{font-size:21px}

  .topic-cards{
    display:flex;
    overflow:auto;
    scroll-snap-type:x mandatory;
    padding-bottom:8px;
  }
  .topic-card{
    min-width:78vw;
    scroll-snap-align:start;
  }

  .digest-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .digest-grid{grid-template-columns:1fr}

  .campaign-split{grid-template-columns:1fr}
  .campaign-photo{min-height:280px}
  .campaign-panel{padding:40px 24px}
  .campaign-panel::before{display:none}
  .campaign-panel h2{font-size:26px}

  .home-cta-inner{flex-direction:column;align-items:flex-start}
  .footer-grid{grid-template-columns:1fr;gap:34px}

  .cookie-consent{padding:0}
  .cookie-consent-inner{
    flex-direction:column;
    align-items:stretch;
    gap:.85rem;
    min-height:0;
    border-radius:16px 16px 0 0;
    border-left:4px solid var(--red);
    border-right:0;
    border-bottom:0;
    padding:1rem 1.1rem 1.15rem;
  }
  .cookie-consent-actions{width:100%}
  .cookie-consent-actions .btn{flex:1}
  body.has-cookie-consent{padding-bottom:10rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
  }
}
