/* ============================================================
   THE NAIJA BRIEF â€” production stylesheet
   Plain CSS3, mobile-first, no Tailwind required.
   Brand: Deep Navy #1A3A5C Â· Orange #E8501A Â· Green #2E7D32
   Font:  Inter (Google Fonts)
   ============================================================ */

/* ---------- 1. RESET & DESIGN TOKENS ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:none;background:none;color:inherit}

:root{
  --navy:#1A3A5C;
  --nav-bg: #13283F;         /* new: the exact dark navy from the image header */
  --nav-text: #FFFFFF;       /* new: white text for better contrast on dark bg */
  --navy-dark:#13283F;
  --orange:#E8501A;
  --orange-dark:#C7430F;
  --green:#2E7D32;

  --bg:#FAFAFA;
  --card:#FFFFFF;
  --text:#2C3E50;
  --muted:#6B7785;
  --border:#E5E9EE;
  --ticker-bg:#0F2238;

  --radius:10px;
  --shadow-sm:0 1px 2px rgba(0,0,0,.04);
  --shadow-md:0 4px 14px rgba(0,0,0,.08);
  --shadow-lg:0 12px 36px rgba(0,0,0,.16);

  --maxw:1200px;
  --nav-h:56px;
  --tab-h:42px;
}

body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:15px;line-height:1.55;color:var(--text);background:var(--bg);
  -webkit-font-smoothing:antialiased;
  padding-top:calc(var(--nav-h) + var(--tab-h));
}
@media (min-width:1024px){
  body{padding-top:var(--nav-h)}
}

.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 1rem}
.scrollbar-hide{scrollbar-width:none;-ms-overflow-style:none}
.scrollbar-hide::-webkit-scrollbar{display:none}

/* ---------- 2. NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-inner{
  max-width:var(--maxw);margin:0 auto;padding:0 1rem;
  height:var(--nav-h);display:flex;align-items:center;justify-content:space-between;gap:1rem;
}
.brand{display:flex;align-items:center;gap:.5rem}
.brand-mark{
  width:32px;height:32px;border-radius:6px;background:var(--orange);
  color:#fff;font-weight:800;font-size:14px;
  display:flex;align-items:center;justify-content:center;
  font-family:Georgia,serif;letter-spacing:-.5px;
}
.brand-text{display:flex;flex-direction:column;line-height:1;font-weight:700;font-size:11px;font-family:Georgia,serif;letter-spacing:.3px}
.brand-text .accent{color:var(--orange)}
.brand-footer .brand-mark{width:36px;height:36px}

.nav-links{display:none;gap:.25rem}
@media (min-width:1024px){.nav-links{display:flex}}
.nav-link{
  padding:.5rem .75rem;border-radius:6px;font-size:13px;font-weight:500;
  color:var(--text);transition:background .15s,color .15s;
}
.nav-link:hover{background:#F1F4F8;color:var(--navy)}
.nav-link.active{color:var(--orange);font-weight:600}


/* mobile dropdown when hamburger toggled */
.nav-links.mobile-open{
  display:flex;flex-direction:column;gap:0;
  position:absolute;top:var(--nav-h);left:0;right:0;
  background:#fff;border-bottom:1px solid var(--border);
  padding:.5rem 1rem 1rem;box-shadow:var(--shadow-md);
}
.nav-links.mobile-open .nav-link{padding:.75rem;border-bottom:1px solid var(--border)}

.nav-link {
  padding: .5rem .75rem; border-radius: 6px; font-size: 13px; font-weight: 500;
  color: var(--nav-text); transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-link.active { 
  color: var(--orange); 
  font-weight: 600; 
  background: rgba(232,80,26,0.15);   /* subtle orange highlight like in the image */
}

/* horizontal scrollable mobile tab bar */
.mobile-tabs{
  display:flex;gap:0;overflow-x:auto;
  height:var(--tab-h);align-items:center;
  background: var(--nav-bg);
  padding:0 .5rem;
}
@media (min-width:1024px){.mobile-tabs{display:none}}
.tab-link{
  flex-shrink:0;
  padding:.5rem .85rem;
  font-size:12.5px;
  font-weight:500;
  color: var(--nav-text);                    /* ← White text like nav-links */
  border-bottom:2px solid transparent;
  height:100%;
  display:flex;
  align-items:center;
  transition: color .15s;
}

.tab-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.tab-link.active{
  color:var(--orange); 
  border-bottom-color:var(--orange); 
  font-weight:600;
  background: rgba(232,80,26,0.15);   /* subtle orange highlight */
}

/* ---------- 3. BREAKING TICKER ---------- */

/* ---------- BREAKING NEWS TICKER (UPGRADED) ---------- */
.ticker {
  background: var(--ticker-bg);
  color: #fff;
  overflow: hidden;
  height: 42px;
}

.ticker-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.ticker-label {
  background: var(--orange);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .1em;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}

/* INDIVIDUAL ITEM */
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 13px;
}

/* CATEGORY TAG */
.ticker-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
}

.ticker-category.NEWS {
  background: #DC2626; /* pink */
  color: #fff;
}
/* OPTIONAL CATEGORY COLORS */
.ticker-category.POLITICS { background: #1A3A5C; }
.ticker-category.ECONOMY { background: #2E7D32; }
.ticker-category.SECURITY { background: #DC2626; }
.ticker-category.BUSINESS { background: #E8501A; }
.ticker-category.DIASPORA { background: #7B3FB0; }

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* ---------- 4. HERO ---------- */
.hero{
  background:var(--navy);color:#fff;
  padding:4rem 0 4.5rem;position:relative;overflow:hidden;
  background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.05) 1px,transparent 0);
  background-size:40px 40px;
}
.hero-inner{display:flex;flex-direction:column;max-width:760px}
.hero-pill{
  display:inline-flex;align-items:center;gap:.5rem;align-self:flex-start;
  background:rgba(232,80,26,.18);color:var(--orange);
  font-size:11px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  padding:.4rem 1rem;border-radius:99px;margin-bottom:1.5rem;
}
.hero h1{
  font-size:clamp(1.875rem,5vw,3.5rem);font-weight:800;
  line-height:1.1;letter-spacing:-.02em;margin-bottom:1rem;
}
.hero .accent{color:var(--orange)}
.hero-sub{font-size:.95rem;font-weight:500;color:rgba(255,255,255,.85);margin-bottom:.4rem}
.hero-desc{font-size:.875rem;color:rgba(255,255,255,.6);max-width:520px;margin-bottom:2rem;line-height:1.6}
.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:2.5rem}
.hero-stats{display:flex;flex-wrap:wrap;gap:1.5rem 2.5rem}
.hero-stats div{display:flex;flex-direction:column}
.hero-stats strong{font-size:1.6rem;font-weight:800}
.hero-stats span{font-size:11px;color:rgba(255,255,255,.5);font-weight:500}

/* ---------- 5. BUTTONS ---------- */
.btn-primary{
  display:inline-flex;align-items:center;gap:.4rem;
  background:var(--orange);color:#fff;font-weight:600;font-size:14px;
  padding:.75rem 1.5rem;border-radius:8px;
  box-shadow:var(--shadow-md);transition:opacity .15s;
}
.btn-primary:hover{opacity:.9}
.btn-outline{
  display:inline-flex;align-items:center;gap:.4rem;
  border:1px solid rgba(255,255,255,.3);color:#fff;
  font-weight:600;font-size:14px;padding:.75rem 1.5rem;border-radius:8px;
  transition:background .15s;
}
.btn-outline:hover{background:rgba(255,255,255,.1)}

/* ---------- 6. SECTIONS ---------- */
.main-stack{padding:2.5rem 1rem;display:flex;flex-direction:column;gap:3rem}
@media (min-width:640px){.main-stack{padding:3rem 1rem;gap:4rem}}

.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}
.section-title{
  font-size:1.05rem;font-weight:700;color:var(--text);
  border-left:4px solid var(--orange);padding-left:.75rem;line-height:1.2;
  margin-bottom:1.25rem;
}
@media (min-width:640px){.section-title{font-size:1.25rem}}
.section-head .section-title{margin-bottom:0}
.border-primary{border-left-color:var(--navy)}
.border-accent{border-left-color:var(--orange)}
.border-secondary{border-left-color:var(--green)}
.see-all{color:var(--orange);font-size:13px;font-weight:500}
.see-all:hover{text-decoration:underline}

/* ---------- 7. QUICK LINKS ---------- */
.quick-links{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}
@media (min-width:640px){.quick-links{grid-template-columns:repeat(4,1fr)}}
@media (min-width:1024px){.quick-links{grid-template-columns:repeat(8,1fr)}}
.quick-tile{
  background:var(--card);border:1px solid var(--border);border-radius:12px;
  padding:.75rem;text-align:center;transition:.15s;
}
.quick-tile:hover{box-shadow:var(--shadow-md);border-color:rgba(232,80,26,.3);transform:translateY(-2px)}
.quick-tile .ico{display:block;font-size:1.4rem;margin-bottom:.25rem}
.quick-tile .lbl{font-size:11px;font-weight:500}

/* ---------- 8. CARD GRID & NEWS CARD ---------- */
.card-grid{display:grid;grid-template-columns:1fr;gap:1rem}
@media (min-width:640px){.card-grid{grid-template-columns:repeat(2,1fr);gap:1.25rem}}
.card-grid.three{grid-template-columns:1fr}
@media (min-width:640px){.card-grid.three{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.card-grid.three{grid-template-columns:repeat(3,1fr)}}
.card-grid.two{grid-template-columns:1fr}
@media (min-width:640px){.card-grid.two{grid-template-columns:repeat(2,1fr)}}

.news-card{
  background:var(--card);border:1px solid var(--border);border-radius:12px;
  padding:1.25rem;display:flex;flex-direction:column;gap:.75rem;
  transition:.15s;
}
.news-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.news-card .meta-row{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.tag{font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  padding:.2rem .5rem;border-radius:4px;background:rgba(26,58,92,.1);color:var(--navy)}
.badge-sentiment{font-size:10px;font-weight:700;padding:.2rem .5rem;border-radius:4px;text-transform:uppercase}
.badge-sentiment.positive{background:rgba(46,125,50,.15);color:var(--green)}
.badge-sentiment.negative{background:rgba(220,38,38,.15);color:#DC2626}
.badge-sentiment.contested{background:rgba(232,80,26,.15);color:var(--orange)}
.badge-sentiment.neutral{background:#EDF0F4;color:var(--muted)}
.badge-source{font-size:10px;font-weight:700;padding:.2rem .5rem;border-radius:4px;background:#EDF0F4;color:var(--text)}
.news-card h3{font-size:15px;font-weight:700;line-height:1.35}
.news-card .summary{font-size:13px;color:var(--muted);line-height:1.55}
.news-card .foot{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);
  padding-top:.75rem;border-top:1px solid var(--border)}
.news-card a.title-link{color:var(--text)}
.news-card a.title-link:hover{color:var(--orange)}

/* ---------- 9. PANEL CARD ---------- */
.panel-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1.5rem}
.panel-card h3{font-size:1rem;font-weight:700;margin-bottom:.25rem}
.panel-card .date{font-size:12px;color:var(--muted);margin-bottom:1rem}
.panel-grid{display:grid;grid-template-columns:1fr;gap:.75rem}
@media (min-width:640px){.panel-grid{grid-template-columns:repeat(2,1fr)}}
.panelist{
  background:#F4F6F9;padding:.85rem 1rem;border-radius:0 8px 8px 0;
  border-left:4px solid var(--navy);
}
.panelist.green{border-left-color:var(--green)}
.panelist.orange{border-left-color:var(--orange)}
.panelist.purple{border-left-color:#7B3FB0}
.panelist .role{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.25rem}
.panelist .quote{font-size:13px;color:var(--muted);line-height:1.55;font-style:italic}

/* ---------- 10. PULSE / OPINION ---------- */
.pulse-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}
@media (min-width:1024px){.pulse-grid{grid-template-columns:repeat(4,1fr);gap:1rem}}
.pulse-tile{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1rem;text-align:center}
.pulse-tile .name{font-size:13px;font-weight:600}
.pulse-tile .pct{font-size:1.4rem;font-weight:700;color:var(--navy);margin-top:.25rem}
.bar{width:100%;height:6px;background:#EDF0F4;border-radius:99px;margin-top:.5rem;overflow:hidden}
.bar-fill{height:100%;background:var(--orange);border-radius:99px;transition:width .3s}
.trend{font-size:11px;font-weight:500;margin-top:.5rem}
.trend.rising{color:var(--green)}
.trend.declining{color:#DC2626}
.trend.stable{color:var(--muted)}

.opinion-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1.5rem}
.opinion-card h3{font-size:14px;font-weight:700;margin-bottom:1rem}
.cluster{margin-bottom:1rem}
.cluster .row{display:flex;justify-content:space-between;font-size:12px;margin-bottom:.25rem}
.cluster .row strong{font-weight:600}
.cluster .summary{font-size:11px;color:var(--muted);margin-top:.25rem}
.cluster .bar{height:8px}

/* ---------- 11. NEWSLETTER BANNER ---------- */
.newsletter-banner{background:var(--navy);color:#fff;border-radius:12px;padding:2rem 1.5rem;text-align:center}
.newsletter-banner h2{font-size:1.25rem;font-weight:700;margin-bottom:.5rem}
.newsletter-banner p{font-size:13px;color:rgba(255,255,255,.7);margin-bottom:1.25rem;max-width:480px;margin-left:auto;margin-right:auto}
.newsletter-banner form{display:flex;flex-direction:column;gap:.6rem;max-width:420px;margin:0 auto}
@media (min-width:640px){.newsletter-banner form{flex-direction:row}}
.newsletter-banner input{
  flex:1;padding:.65rem 1rem;border-radius:8px;font-size:14px;
  background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.2);
}
.newsletter-banner input::placeholder{color:rgba(255,255,255,.5)}
.newsletter-banner input:focus{outline:2px solid var(--orange);outline-offset:1px}
.newsletter-banner button{
  background:var(--orange);color:#fff;font-weight:600;font-size:14px;
  padding:.65rem 1.25rem;border-radius:8px;transition:opacity .15s;
}
.newsletter-banner button:hover{opacity:.9}

/* ---------- 12. PAGE HEADERS / GENERIC PAGES ---------- */
.page-head{background:var(--navy);color:#fff;padding:2.5rem 0}
.page-head h1{font-size:2rem;font-weight:800;margin-bottom:.4rem}
.page-head p{color:rgba(255,255,255,.7);font-size:14px}

.filter-bar{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.5rem;margin-bottom:.5rem}
.filter-pill{
  flex-shrink:0;padding:.4rem .9rem;border-radius:99px;
  font-size:12px;font-weight:500;background:#fff;border:1px solid var(--border);
  color:var(--text);cursor:pointer;transition:.15s;
}
.filter-pill:hover{border-color:var(--orange)}
.filter-pill.active{background:var(--navy);color:#fff;border-color:var(--navy)}

/* ---------- 13. ARTICLE PAGE ---------- */
.article-page{max-width:760px;padding:2rem 1rem 4rem}
.back-link{font-size:13px;color:var(--orange);font-weight:500}
.back-link:hover{text-decoration:underline}
.article-meta{display:flex;flex-wrap:wrap;gap:.4rem;margin:1.25rem 0 .75rem}
.article-page h1{font-size:clamp(1.5rem,4vw,2.25rem);font-weight:800;line-height:1.2;margin-bottom:.75rem}
.article-summary{font-size:1rem;color:var(--muted);line-height:1.6;margin-bottom:1.5rem}
.share-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;
  padding:.75rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);
  font-size:13px;color:var(--muted);margin-bottom:1.5rem}
.share-bar a,.share-bar button{
  font-size:12px;font-weight:600;padding:.4rem .8rem;border-radius:6px;
  background:#F4F6F9;color:var(--navy);transition:.15s;
}
.share-bar a:hover,.share-bar button:hover{background:var(--navy);color:#fff}
.article-body{position:relative;font-size:1rem;line-height:1.75;color:var(--text)}
.article-body p{margin-bottom:1.25rem}
.source-link{display:inline-block;margin-top:1.5rem;color:var(--orange);font-weight:600;font-size:14px}
.source-link:hover{text-decoration:underline}

/* ---------- 14. ABOUT / PROSE ---------- */
.about-page .prose{max-width:760px;margin:0 auto}
.prose h2{font-size:1.25rem;font-weight:700;margin:1.5rem 0 .5rem;color:var(--navy)}
.prose p{margin-bottom:1rem;line-height:1.7;color:var(--text)}

/* ---------- 15. FIGURES (PULSE) ---------- */
.figures-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}
@media (min-width:640px){.figures-grid{grid-template-columns:repeat(4,1fr)}}
.figure-tile{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:.85rem;text-align:center}
.figure-tile .name{font-size:13px;font-weight:600}
.figure-tile .trend{margin-top:.25rem;font-size:11px}


/* ---------- 17. NEWSLETTER POPUP ---------- */
.newsletter-popup{
  position:fixed;bottom:1rem;right:1rem;z-index:200;
  width:calc(100% - 2rem);max-width:360px;
  background:var(--card);border:1px solid var(--border);border-radius:14px;
  padding:1.25rem;box-shadow:var(--shadow-lg);
  animation:slide-up .4s ease-out;
}
@keyframes slide-up{
  from{transform:translateY(110%);opacity:0}
  to{transform:translateY(0);opacity:1}
}
.popup-close{position:absolute;top:.6rem;right:.75rem;font-size:1.25rem;color:var(--muted);line-height:1}
.popup-close:hover{color:var(--text)}
.popup-header{display:flex;align-items:center;gap:.65rem;margin-bottom:.75rem}
.popup-icon{width:32px;height:32px;border-radius:99px;background:rgba(232,80,26,.12);color:var(--orange);
  display:flex;align-items:center;justify-content:center;font-size:14px}
.popup-header h3{font-size:14px;font-weight:700}
.popup-text{font-size:12px;color:var(--muted);margin-bottom:1rem;line-height:1.55}
.popup-form{display:flex;gap:.5rem}
.popup-form input{flex:1;min-width:0;padding:.55rem .75rem;font-size:13px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text)}
.popup-form input:focus{outline:2px solid var(--orange);outline-offset:1px}
.popup-form button{background:var(--orange);color:#fff;font-weight:600;font-size:13px;padding:.55rem 1rem;border-radius:8px}
.popup-form button:hover{opacity:.9}

/* ---------- 18. QUOTE-CARD MODAL ---------- */


.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal{
  background:#fff;border-radius:14px;padding:1.5rem;
  max-width:500px;width:100%;box-shadow:var(--shadow-lg);
}
.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.modal-header h3{font-size:1rem;font-weight:700}
.modal-close{font-size:1.5rem;color:var(--muted);line-height:1}
.format-tabs{display:flex;gap:.5rem;margin-bottom:1rem}
.format-tabs button{
  flex:1;font-size:12px;font-weight:500;padding:.5rem .75rem;
  border-radius:8px;border:1px solid var(--border);color:var(--muted);transition:.15s;
}
.format-tabs button.active{border-color:var(--navy);background:rgba(26,58,92,.08);color:var(--navy)}
.format-tabs button:hover:not(.active){background:#F4F6F9}
.quote-preview{
  background:#000080;color:#fff;border-radius:8px;
  padding:1.5rem;margin-bottom:1rem;overflow:hidden;
  font-family:Georgia,serif;display:flex;flex-direction:column;
  min-height:160px;
}
.quote-preview .quote-text{font-size:14px;font-weight:700;line-height:1.4;margin-bottom:.5rem}
.quote-preview .quote-title{font-size:11px;color:rgba(255,255,255,.6);margin-bottom:auto}
.quote-preview .quote-foot{display:flex;justify-content:space-between;align-items:flex-end;margin-top:1rem;font-size:9px;color:rgba(255,255,255,.5)}

.modal .btn-primary{width:100%;justify-content:center;margin-top:.5rem;background:var(--navy)}
.modal .btn-primary:hover{background:var(--navy-dark)}

/* ---------- 19. FLOATING SHARE-CARD BUTTON ---------- */
.share-float {
  position: absolute;
  z-index: 250;
  background: #000080;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -100%);
  display: none !important;           /* Critical */
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  pointer-events: none;               /* Prevents accidental clicks while hidden */
}

/* Only show when hidden attribute is removed */
.share-float:not([hidden]) {
  display: inline-flex !important;
  pointer-events: auto;
  animation: fade-in 0.15s ease forwards;
}


@keyframes fade-in{from{opacity:0;transform:translate(-50%,-90%)}to{opacity:1;transform:translate(-50%,-100%)}}
.share-float:hover{background:#000060}


/* =========================
   TOP STORIES REDESIGN (images now uniform size + better content flow)
   ========================= */

.top-stories-section{
  margin-top: .25rem;
}

.top-stories-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1rem;
}

@media (min-width:640px){
  .top-stories-grid{
    grid-template-columns:repeat(2,1fr);
    gap:1.1rem;
  }
}

@media (min-width:1024px){
  .top-stories-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

.top-story-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.top-story-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
  border-color:rgba(232,80,26,.25);
}

/* IMAGE NOW FULL WIDTH OF THE COLUMN - height remains perfect */
.top-story-thumb{
  width:100%;                    /* ← full width of the card/column */
  height:110px;                  /* ← your perfect height */
  overflow:hidden;
  background:#E9EEF4;
  display:block;
}

.top-story-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}

.top-story-card:hover .top-story-thumb img{
  transform:scale(1.03);
}

.top-story-placeholder.small{
  width:100%;
  height:100%;
  font-size:1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(26,58,92,.12), rgba(232,80,26,.08));
  color:rgba(26,58,92,.35);
  font-family:Georgia,serif;
  font-weight:700;
  letter-spacing:-.06em;
}

/* Text content below the full-width image */
.top-story-card.horizontal{
  flex-direction:column;         /* stacked layout */
}

.top-story-card.horizontal .top-story-body{
  flex:1;
  padding:1rem 1rem 1.05rem;
  display:flex;
  flex-direction:column;
  gap:.8rem;
}

.top-story-body{
  padding:1rem 1rem 1.05rem;
  display:flex;
  flex-direction:column;
  gap:.8rem;
  flex:1;
}

.top-story-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  flex-wrap:wrap;
}

.story-category{
  display:inline-flex;
  align-items:center;
  padding:.24rem .55rem;
  border-radius:6px;
  background:rgba(26,58,92,.08);
  color:var(--navy);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.story-sources{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
}

.source-dots{
  display:inline-flex;
  gap:2px;
  align-items:center;
}

.source-dots i{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#CBD5E1;
  display:inline-block;
}

.source-dots i.on{
  background:var(--green);
}

.top-story-title{
  font-family:Georgia,serif;
  font-size:1.02rem;
  line-height:1.35;
  font-weight:700;
  color:var(--text);
}

.top-story-title a:hover{
  color:var(--orange);
}

/* BETTER CONTENT FLOW - summaries no longer get cut off */
.top-story-summary{
  font-size:13px;
  line-height:1.6;
  color:var(--muted);
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:auto;
}

.top-story-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding-top:.85rem;
  border-top:1px solid var(--border);
  margin-top:auto;
  font-size:11px;
  color:var(--muted);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
}

/* =========================
   MOBILE IMPROVEMENTS (only the parts that affect Top Stories)
   ========================= */

@media (max-width:639px){
  .main-stack{
    padding:1.4rem 1rem 3.5rem;
    gap:2.25rem;
  }

  .section-head{
    align-items:flex-end;
    margin-bottom:1rem;
  }

  .section-title{
    font-size:1rem;
    padding-left:.65rem;
  }

  .see-all{
    font-size:12px;
    white-space:nowrap;
  }

  .top-story-body{
    padding:.9rem;
  }

  .top-story-title{
    font-size:.98rem;
  }

  .top-story-summary{
    font-size:12.5px;
    -webkit-line-clamp:3;
  }

  .top-story-footer{
    font-size:10px;
  }

  .top-stories-grid{
    gap:.9rem;
  }

  /* Mobile image height stays perfect but slightly smaller */
  .top-story-thumb{
    height:92px;
  }
}

@media (max-width:480px){
  .top-story-meta-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .story-sources{
    font-size:10.5px;
  }

  .top-story-footer{
    flex-direction:column;
    align-items:flex-start;
    gap:.3rem;
  }
}


/* =========================
   INTELLIGENCE TRACKER REDESIGN
   ========================= */

.tracker-section{
  margin-top:.25rem;
}

.tracker-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1rem;
}

@media (min-width:640px){
  .tracker-grid{
    grid-template-columns:repeat(2,1fr);
    gap:1.1rem;
  }
}

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

.tracker-card{
  background:var(--card);
  border:1px solid #DDE5EE;
  border-radius:16px;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden;
}

.tracker-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
  border-color:rgba(46,125,50,.22);
}

.tracker-card-inner{
  padding:1rem 1rem .95rem;
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.tracker-card-top{
  display:flex;
  align-items:center;
  gap:.45rem;
  flex-wrap:wrap;
  margin-bottom:.9rem;
}

.tracker-topic{
  display:inline-flex;
  align-items:center;
  padding:.24rem .55rem;
  border-radius:6px;
  background:rgba(26,58,92,.08);
  color:var(--navy);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.tracker-strength{
  display:inline-flex;
  align-items:center;
  padding:.24rem .55rem;
  border-radius:999px;
  background:#F3F6FA;
  color:#7A8796;
  font-size:10px;
  font-weight:700;
}

.tracker-title{
  font-size:1rem;
  line-height:1.45;
  font-weight:700;
  color:var(--text);
  margin-bottom:.7rem;
}

.tracker-summary{
  font-size:13px;
  line-height:1.7;
  color:var(--muted);
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:6.8em;
}

.tracker-footer{
  margin-top:auto;
  padding-top:.85rem;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:flex-end;
}

.tracker-time{
  font-size:11px;
  color:#93A1B1;
  font-weight:600;
  text-transform:lowercase;
}

/* =========================
   SENTIMENT BADGES
   ========================= */

.sentiment-badge{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.25rem .6rem;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:capitalize;
}

/* POSITIVE (Green) */
.sentiment-badge.positive{
  background:rgba(46,125,50,.12);
  color:#2E7D32;
  border:1px solid rgba(46,125,50,.25);
}

/* NEGATIVE (Red) */
.sentiment-badge.negative{
  background:rgba(220,38,38,.12);
  color:#DC2626;
  border:1px solid rgba(220,38,38,.25);
}

/* NEUTRAL (Gray) */
.sentiment-badge.neutral{
  background:#EEF2F6;
  color:#6B7785;
  border:1px solid #E2E8F0;
}

/* CONTESTED (Orange) */
.sentiment-badge.contested{
  background:rgba(232,80,26,.12);
  color:#E8501A;
  border:1px solid rgba(232,80,26,.25);
}
/* =========================
   THE PANEL REDESIGN
   ========================= */

.panel-feature-card{
  display:grid;
  grid-template-columns:1fr;
  gap:1rem;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  padding:1rem;
}

@media (min-width:768px){
  .panel-feature-card{
    grid-template-columns:1.05fr .95fr;
    gap:1.25rem;
    padding:1.25rem;
  }
}

.panel-feature-copy{
  display:flex;
  flex-direction:column;
  gap:.85rem;
  justify-content:space-between;
}

.panel-kicker{
  display:inline-flex;
  width:max-content;
  padding:.25rem .6rem;
  border-radius:999px;
  background:rgba(26,58,92,.08);
  color:var(--navy);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.panel-feature-copy h3{
  font-size:1.15rem;
  line-height:1.35;
  font-weight:800;
  color:var(--text);
}

.panel-description{
  font-size:13px;
  line-height:1.7;
  color:var(--muted);
  max-width:44ch;
}

.panel-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem 1rem;
  font-size:11px;
  color:#90A0B1;
  font-weight:600;
  border-top:1px solid var(--border);
  padding-top:.75rem;
}

.panel-voices{
  display:grid;
  grid-template-columns:1fr;
  gap:.75rem;
}

.panel-voice{
  display:flex;
  gap:.75rem;
  align-items:flex-start;
  padding:.9rem;
  border-radius:14px;
  background:#F8FAFC;
  border:1px solid #E6EDF4;
}

.panel-voice-mark{
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--voice-color);
  margin-top:.3rem;
  flex-shrink:0;
  box-shadow:0 0 0 4px rgba(0,0,0,.03);
}

.panel-voice-body{
  display:flex;
  flex-direction:column;
  gap:.2rem;
}

.panel-voice-body strong{
  font-size:13px;
  font-weight:800;
  color:var(--text);
}

.panel-voice-body span{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--voice-color);
}

.panel-voice-body p{
  font-size:12.5px;
  line-height:1.6;
  color:var(--muted);
  margin-top:.15rem;
}

.panel-empty{
  padding:1rem;
  border:1px dashed var(--border);
  border-radius:14px;
  color:var(--muted);
  font-size:13px;
  background:#FBFCFE;
}

@media (max-width:640px){
  .panel-feature-copy h3{
    font-size:1.05rem;
  }

  .panel-description{
    max-width:none;
  }

  .panel-voice{
    padding:.8rem;
  }
}


/* =========================
   PULSE REDESIGN
   ========================= */

/* =========================
   PULSE INSIGHT CARD GRID
   ========================= */

.pulse-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .pulse-insight-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Card shell */
.pulse-insight-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}

.pulse-insight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Header */
.pic-header {
  margin-bottom: 1.1rem;
}

.pic-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.pic-subtitle {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}

/* Sparkline canvas area */
.pic-chart {
  position: relative;
  height: 80px;
  margin-bottom: 1.1rem;
}

.pic-chart canvas {
  display: block;
  width: 100% !important;
  height: 80px !important;
}

/* Footer row */
.pic-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
}

.pic-footer-col {
  display: flex;
  flex-direction: column;
  gap: .18rem;
}

.pic-footer-right {
  text-align: right;
}

.pic-footer-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* ====================== 2027 PULSE HEADER (Exact match to your image) ====================== */

/* ====================== 2027 PULSE HEADER - FULL CSS (Exact match to screenshot) ====================== */

/* ====================== 2027 PULSE HEADER - FINAL VERSION ====================== */

.pulse-header {
  background: var(--nav-bg);           /* #13283F */
  color: #fff;
  padding: 2.6rem 0 2.8rem;
  position: relative;
  overflow: hidden;
  margin-top: 24px;                    /* Small distance from navbar */
}

.pulse-header-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

/* LIVE PILL */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(232, 80, 26, 0.18);
  color: var(--orange);
  font-size: 11.2px;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 9999px;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(232, 80, 26, 0.25);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #E8501A;
  border-radius: 50%;
  animation: livePulse 2s infinite ease-in-out;
  box-shadow: 0 0 0 3px rgba(232, 80, 26, 0.3);
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

/* MAIN TITLE - FORCED WHITE */
.pulse-header h1 {
  font-size: clamp(2.25rem, 6vw, 3.55rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
  color: #ffffff !important;           /* Explicit white */
}

/* SUBTITLE - FORCED WHITE */
.pulse-subtitle {
  font-size: 1.05rem;
  line-height: 1.48;
  color: #ffffff !important;           /* Explicit white */
  max-width: 640px;
  margin: 0 auto 2rem;
  font-weight: 500;
}

/* DISCLAIMER BAR */
.pulse-disclaimer-bar {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.93);
  font-size: 13.5px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.warning-icon {
  color: #ffcc00;
  font-size: 1.25rem;
}

/* Mobile */
@media (max-width: 640px) {
  .pulse-header {
    padding: 2rem 0 2.25rem;
    margin-top: 20px;
  }
  
  .pulse-header h1 {
    font-size: 2.35rem;
  }
  
  .pulse-subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
}

/* Extra subtle polish (optional but recommended) */
.pulse-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
/* Trend value with direction color */
.pic-trend-value {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.pic-trend-value.up      { color: var(--green); }
.pic-trend-value.down    { color: #DC2626; }
.pic-trend-value.neutral { color: var(--muted); }

/* Sentiment label */
.pic-sentiment-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .pulse-insight-card {
    padding: 1.1rem 1.1rem 1rem;
  }

  .pic-title {
    font-size: 1rem;
  }

  .pic-chart {
    height: 64px;
  }

  .pic-chart canvas {
    height: 64px !important;
  }

  .pic-trend-value,
  .pic-sentiment-value {
    font-size: .9rem;
  }
}

/* =========================
   DIASPORA REDESIGN
   ========================= */

.diaspora-section{
  margin-top:.25rem;
}

.diaspora-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1rem;
}

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

.diaspora-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1rem 1.05rem;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex;
  flex-direction:column;
  gap:.8rem;
}

.diaspora-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
  border-color:rgba(46,125,50,.22);
}

.diaspora-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:.4rem;
}

.diaspora-tag{
  display:inline-flex;
  align-items:center;
  padding:.24rem .55rem;
  border-radius:6px;
  background:rgba(26,58,92,.08);
  color:var(--navy);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.diaspora-strength{
  display:inline-flex;
  align-items:center;
  padding:.24rem .55rem;
  border-radius:999px;
  background:#F3F6FA;
  color:#7A8796;
  font-size:10px;
  font-weight:700;
}

.diaspora-title{
  font-size:1rem;
  line-height:1.45;
  font-weight:700;
  color:var(--text);
}

.diaspora-title a{
  color:inherit;
  transition:color .15s ease;
}

.diaspora-title a:hover{
  color:var(--orange);
}

.diaspora-summary{
  font-size:13px;
  line-height:1.7;
  color:var(--muted);
}

.diaspora-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  font-size:11px;
  color:#93A1B1;
  border-top:1px solid var(--border);
  padding-top:.7rem;
  font-weight:600;
}

.diaspora-readmore{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  width:max-content;
  margin-top:.1rem;
  font-size:12px;
  font-weight:700;
  color:var(--orange);
  transition:transform .15s ease, color .15s ease;
}

.diaspora-readmore:hover{
  color:var(--orange-dark);
  transform:translateX(3px);
  text-decoration:underline;
}

@media (max-width:640px){
  .diaspora-card{
    padding:.95rem;
  }

  .diaspora-title{
    font-size:.98rem;
  }

  .diaspora-summary{
    font-size:12.5px;
  }
}



/* =========================
   OPINION INTELLIGENCE
   ========================= */

.opinion-section{
  margin-top:.25rem;
}

.opinion-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1rem 1.05rem;
  box-shadow:var(--shadow-sm);
  display:flex;
  flex-direction:column;
  gap:1rem;
}

.opinion-cluster{
  display:flex;
  flex-direction:column;
  gap:.65rem;
  padding-bottom:1rem;
  border-bottom:1px solid var(--border);
}

.opinion-cluster:last-child{
  padding-bottom:0;
  border-bottom:none;
}

.opinion-cluster-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.75rem;
  flex-wrap:wrap;
}

.opinion-label{
  font-size:13px;
  font-weight:800;
  color:var(--text);
  line-height:1.35;
}

.opinion-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  padding:.25rem .6rem;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
  background:#EEF2F6;
  color:var(--muted);
  border:1px solid #E2E8F0;
}

/* badge colors */
.opinion-badge.strong{
  background:rgba(46,125,50,.12);
  color:var(--green);
  border-color:rgba(46,125,50,.22);
}

.opinion-badge.moderate{
  background:rgba(232,80,26,.12);
  color:var(--orange);
  border-color:rgba(232,80,26,.22);
}

.opinion-badge.weak{
  background:rgba(220,38,38,.12);
  color:#DC2626;
  border-color:rgba(220,38,38,.22);
}

/* progress track */
.opinion-bar{
  width:100%;
  height:10px;
  background:#E9EEF3;
  border-radius:999px;
  overflow:hidden;
  position:relative;
}

/* solid fill with hard stop */
.opinion-fill{
  height:100%;
  width:0;
  position:relative;
  border-radius:999px 0 0 999px;
  transition:width .35s ease;
}

/* fill colors */
.opinion-fill.strong{
  background:var(--green);
}

.opinion-fill.moderate{
  background:var(--orange);
}

.opinion-fill.weak{
  background:#DC2626;
}

/* crisp stop edge */
.opinion-fill::after{
  content:'';
  position:absolute;
  right:0;
  top:0;
  width:2px;
  height:100%;
  background:#fff;
  opacity:.95;
}

.opinion-summary{
  font-size:13px;
  line-height:1.65;
  color:var(--muted);
}

@media (max-width:640px){
  .opinion-card{
    padding:.95rem;
  }

  .opinion-label{
    font-size:12.5px;
  }

  .opinion-summary{
    font-size:12.5px;
  }

  .opinion-bar{
    height:8px;
  }
}


.quote-preview{
  width:100%;
  background:#000080;
  border-radius:16px;
  padding:60px;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  position:relative;
  overflow:hidden;
  font-family: 'Georgia','Times New Roman',serif;
}

.quote-text{
  font-size:42px;
  font-weight:800;
  line-height:1.2;
  margin-top:40px;
}

.quote-title{
  font-size:18px;
  color:rgba(255,255,255,0.6);
  margin-top:20px;
  line-height:1.4;
}

.quote-foot{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-top:auto;
}

.quote-brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.quote-logo-box{
  width:70px;
  height:70px;
  background:#E8501A;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:28px;
}

.quote-brand-text{
  display:flex;
  flex-direction:column;
  font-weight:700;
  line-height:1.1;
}

.quote-brand-text span:last-child{
  color:#E8501A;
}

.quote-url{
  font-size:12px;
  color:rgba(255,255,255,0.7);
  max-width:40%;
  text-align:right;
  word-break:break-word;
}

.modal-backdrop[hidden] {
  display: none !important;
}



/* preview pages */




/* Toggle Button (smaller & cleaner) */
/* Toggle Button */
.nav-toggle {
  position: fixed;
  right: 0;
  top: 45%;
  z-index: 1000;          /* ← must exceed cards (transform stacking contexts)
                               and side-panel overlay (z-index:998) */
  background: #2c4a63;
  color: white;
  padding: 6px 5px;
  border-radius: 6px 0 0 6px;
  border: none;
  cursor: pointer;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 1px;
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 998;
}

/* Panel (reduced width) */
.side-panel {
  position: fixed;
  right: -260px;
  top: 50%;
  transform: translateY(-50%);   /* center vertically */

  width: 240px;
  max-height: 420px;             /* 🔥 controls the height */
  height: auto;                  /* no full stretch */

  background: #243f56;
  color: white;

  transition: 0.3s ease;
  z-index: 999;

  padding: 14px;
  border-radius: 12px 0 0 12px;  /* rounded like a floating card */

  display: flex;
  flex-direction: column;

  box-shadow: 0 10px 30px rgba(0,0,0,0.25); /* floating effect */
  overflow: hidden;
}

.side-panel.active {
  right: 0;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Header */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.panel-header h3 {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #9fb3c8;
}

#closePanel {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* Nav */
.nav-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.nav-list li {
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 5px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  transition: 0.2s ease;
}

.nav-list li span {
  font-size: 13px; /* smaller icons */
}

/* Hover */
.nav-list li:hover {
  background: rgba(255,255,255,0.08);
}

/* Highlight (orange) */
.nav-list li.highlight {
  background: #f05a1a;
}

/* Outline */
.nav-list li.outline {
  border: 1px solid #f05a1a;
}

/* Active */
.nav-list li.active {
  background: #f05a1a;
}

/* Responsive */
@media(max-width: 600px) {
  .side-panel {
    width: 200px;
  }
}


/* ====================== LATEST NEWS PAGE ====================== */
.page-head.latest-page {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 0;
}
.page-head.latest-page h1 {
  font-size: 2rem;
  font-weight: 800;
}
.page-head.latest-page p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
}

/* Filter pills - matches screenshot */
.filter-bar .topic-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.filter-bar .topic-tabs::-webkit-scrollbar { display: none; }

.filter-bar .topic-tabs a {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e5e9ee;
  color: #2c3e50;
  white-space: nowrap;
  transition: all .2s;
}
.filter-bar .topic-tabs a:hover {
  border-color: var(--orange);
}
.filter-bar .topic-tabs a.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Breaking special style */
.filter-bar .topic-tabs a[href*="Breaking"] {
  border: 2px solid #e53e3e;
  color: #e53e3e;
}
.filter-bar .topic-tabs a[href*="Breaking"].active {
  background: #e53e3e;
  color: #fff;
  border-color: #e53e3e;
}

/* ====================== NEW LATEST CARD ====================== */
/* ====================== LATEST NEWS CARD - UNIFORM IMAGE SIZE ====================== */

.latest-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;                    /* Makes all cards same height */
}

.latest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-top {
  background: var(--top-color);
  position: relative;
  min-height: 168px;               /* Consistent top area height */
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1rem;
}

.card-image-wrapper {
  position: absolute;
  inset: 0;                        /* Fill the entire card-top */
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;               /* This is the key - crops to same size */
  display: block;
}

/* Icon fallback when no image */
.card-top-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  font-size: 4.8rem;
  opacity: 0.13;
  pointer-events: none;
  z-index: 1;
}

/* Badges stay on top */
.category-badge {
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 6px;
  align-self: flex-start;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.source-count {
  margin-top: auto;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.source-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  display: inline-block;
}

.source-dots i.on {
  background: var(--green);
}

/* Card body */
.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: .75rem;
}

.card-body h3 a:hover { 
  color: var(--orange); 
}

.card-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;                    /* Pushes footer down */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}

/* Grid improvements */
.card-grid.three {
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .card-top {
    min-height: 145px;
  }
  .card-top-icon {
    font-size: 3.9rem;
  }
}
/* ====================== TRACKER PAGE (MATCHED TO SCREENSHOT) ====================== */


/* Page header */
.page-head.tracker-page {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 26px 0 18px;
}

.page-head.tracker-page .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-head.tracker-page h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  color: #1f4b7a;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.page-head.tracker-page p {
  font-size: 14px;
  color: #a3adc0;
  margin: 0;
  font-weight: 400;
}

/* Main container */
.main-stack {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 28px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0 14px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #d7dee8;
  background: #fff;
  color: #33506d;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.filter-pill:hover {
  transform: translateY(-1px);
  border-color: #c9d4e2;
}

.filter-pill.active {
  background: #1f4b7a;
  color: #fff;
  border-color: #1f4b7a;
  box-shadow: 0 6px 16px rgba(31, 75, 122, .18);
}

/* Layout */
.tracker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 18px;
  align-items: start;
}

/* Main feed */
.tracker-main {
  min-width: 0;
}

/* Event cards */
.tracker-event {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left-width: 3px;
  border-radius: 12px;
  padding: 10px 12px 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
  transition: box-shadow .2s ease, transform .2s ease;
}

.tracker-event:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.tracker-event.positive { border-left-color: #2f9e44; }
.tracker-event.neutral  { border-left-color: #748094; }
.tracker-event.negative { border-left-color: #e03131; }
.tracker-event.contested{ border-left-color: #f08c00; }

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 6px;
}

.event-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  color: #1f2f44;
  margin: 0;
}

.sentiment-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1;
  margin-top: 1px;
}

.sentiment-badge.positive { background: #ecfdf3; color: #2f9e44; }
.sentiment-badge.neutral  { background: #f1f5f9; color: #6b7280; }
.sentiment-badge.negative { background: #fef2f2; color: #e03131; }
.sentiment-badge.contested{ background: #fff7e6; color: #f08c00; }

.tracker-event p {
  margin: 0;
  color: #7b8797;
  font-size: 13px;
  line-height: 1.45;
  max-width: 96%;
}

/* Tags row */
.event-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 4px;
  background: #eef2f7;
  color: #32455c;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid #e1e7ef;
}

/* First tag looks like the category pill */
.tag:first-child {
  background: #e9eff7;
  color: #4a6786;
  border-color: #d9e3f0;
}

/* Share button */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #d9e1ea;
  color: #5d6b7d;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.share-btn:hover {
  background: #f8fafc;
}

.share-icon {
  font-size: 11px;
}

/* Meta row */
.event-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 11px;
  color: #8a95a7;
  font-weight: 600;
}

.event-meta .sources::before {
  content: "▣";
  font-size: 10px;
  margin-right: 6px;
  opacity: .7;
}

.time-ago {
  white-space: nowrap;
}

/* Sidebar */
.tracker-sidebar {
  position: relative;
  min-width: 0;
}

.sidebar-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 12px 10px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.sidebar-box h4 {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #d1d7e2;
}

.figures-box {
  padding-top: 14px;
  padding-bottom: 8px;
}

.figure-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
}

.figure-row + .figure-row {
  border-top: 1px solid #eef2f6;
}

.figure-circle {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #eef2f7;
  color: #b8c0cb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.figure-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.figure-info strong {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
}

.figure-title {
  font-size: 10px;
  color: #a3adba;
  margin-top: 3px;
}

.trend-arrow {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.trend-arrow.positive,
.trend-arrow.rising {
  color: #2f9e44;
}

.trend-arrow.negative,
.trend-arrow.falling {
  color: #e03131;
}

.trend-arrow.neutral {
  color: #94a3b8;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #dbe3ec;
  color: #4c647d;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.keyword:hover {
  background: #eef3f8;
}

.about-box p {
  margin: 0 0 10px;
  font-size: 12px;
  color: #7b8797;
  line-height: 1.5;
}

.small-link {
  color: #1f4b7a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.small-link:hover {
  text-decoration: underline;
}


/* Responsive */
@media (max-width: 1024px) {
  .tracker-layout {
    grid-template-columns: 1fr;
  }

  .tracker-sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-head.tracker-page h1 {
    font-size: 34px;
  }

  .main-stack {
    padding: 14px 16px 22px;
  }

  .page-head.tracker-page .container {
    padding: 0 16px;
  }

  .event-header h3 {
    font-size: 15px;
  }

  .tracker-event p {
    max-width: 100%;
  }

 
}

@media (max-width: 640px) {
  .filter-bar {
    gap: 8px;
  }

  .filter-pill {
    padding: 6px 12px;
    font-size: 11px;
  }

  .tracker-event {
    padding: 10px;
  }

  .sidebar-box {
    padding: 11px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   PANEL PAGE — MATCHES YOUR SCREENSHOT PERFECTLY
   ============================================= */

.page-head {
  padding: 1.5rem 0 0.9rem;
  text-align: center;
  margin-top: 20px; 
}

.page-head .container {
  max-width: 960px;
}

.page-head h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.page-head p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 720px;
  margin: 0.5rem auto 0;
}

.main-stack {
  display: grid;
  gap: 1.15rem;
  padding: 0.9rem 0 2.5rem;
  max-width: 980px;
}

.panel-card {
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.panel-card h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.28;
  margin: 0.75rem 0 0.9rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.panel-intro {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 1rem;
}

.panel-meta-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
}

.meta-tag,
.meta-badge {
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.meta-tag {
  background: #e5e9f0;
  color: var(--navy);
}

.meta-badge.positive {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.meta-date,
.meta-time {
  color: var(--muted);
  font-size: 0.72rem;
}

.disclosure-box,
.transparency-box {
  background: #f8fafc;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #374151;
}

.disclosure-box {
  margin-bottom: 0.9rem;
}

.transparency-box {
  margin-top: 1rem;
}

.transparency-box a.original-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.transparency-box a.original-link:hover {
  text-decoration: underline;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 700px) {
  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel-voice {
  background: #f8fafc;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  padding: 0.9rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-voice:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.voice-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.voice-info {
  flex: 1;
  min-width: 0;
}

.voice-role {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.voice-sub {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

.panel-voice p {
  font-size: 0.84rem;
  line-height: 1.58;
  color: #374151;
  margin: 0;
}

.empty-state {
  padding: 1.6rem 1rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 18px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .page-head {
    padding-top: 1.2rem;
  }

  .panel-card {
    padding: 0.95rem;
    border-radius: 16px;
  }

  .panel-meta-row {
    gap: 0.4rem;
  }

  .panel-voice {
    padding: 0.8rem;
  }

  .voice-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

.panel-page {
  max-width: 980px;
}


/* ====================== DIASPORA LENS HEADER ====================== */
.diaspora-lens-header {
  background: #1A3A5C;
  color: #fff;
  padding: 2rem 0 1.5rem;
  position: relative;
}

.diaspora-header-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.diaspora-header-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .4rem;
}

.diaspora-header-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 520px;
}

.gb-ng-flags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 8px;
}

.heart {
  color: #FFD700;
}

/* ====================== FILTER PILLS (exact match) ====================== */
.filter-bar {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .75rem;
  margin-bottom: 1.5rem;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
  flex-shrink: 0;
  padding: .55rem 1.1rem;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e5e9ee;
  color: #2c3e50;
  white-space: nowrap;
  transition: all .2s;
}

.filter-pill:hover {
  border-color: #E8501A;
}

.filter-pill.active {
  background: #1A3A5C;
  color: #fff;
  border-color: #1A3A5C;
}

/* ====================== FEATURED CARDS — EXACT VISUAL MATCH ====================== */
.featured-grid {
  gap: 1.5rem;
}

.featured-card {
  background: #fff;
  border: 1px solid #e5e9ee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.featured-top {
  height: 138px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-icon {
  font-size: 5.5rem;
  opacity: .09;
  pointer-events: none;
}

.featured-content {
  padding: 1.25rem 1.25rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-category-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(26,58,92,.08);
  color: #1A3A5C;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 6px;
  margin-bottom: .9rem;
}

.featured-content h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: .65rem;
}

.featured-content h3 a {
  color: inherit;
}

.featured-content h3 a:hover {
  color: #E8501A;
}

.featured-summary {
  font-size: 13.5px;
  line-height: 1.6;
  color: #6b7785;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Extra boxes (Immigration + Remittance) */
.featured-extra {
  background: #fff;
  border: 1px solid #e5e9ee;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.visa-box .visa-header {
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: .5rem;
}

.visa-box .visa-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
}

.enquire-btn {
  font-weight: 600;
  color: #E8501A;
  text-decoration: none;
}

.rates-box .rates-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #1A3A5C;
  margin-bottom: .75rem;
}

.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: .75rem;
}

.rate-row:last-child {
  margin-bottom: 0;
}

.rate-btn {
  font-weight: 600;
  color: #E8501A;
  text-decoration: none;
  font-size: 13px;
}

.affiliate-note {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  text-align: center;
  margin-top: .75rem;
}

/* Meta */
.featured-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7785;
  font-weight: 600;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e5e9ee;
}

.featured-source {
  font-weight: 700;
}

.featured-time {
  color: #94a3b8;
}

/* Responsive adjustments (matches mobile in image) */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 640px) {
  .featured-top {
    height: 110px;
  }
  .featured-icon {
    font-size: 4rem;
  }
}

/* =========================
   PULSE TEASER (was missing styles → columns broken)
   ========================= */

/* =========================
   2027 PULSE TEASER (colored progress bar + real data)
   ========================= */

.pulse-section .pulse-cards{
  display:grid;
  grid-template-columns:1fr;
  gap:1rem;
}
@media (min-width:640px){
  .pulse-section .pulse-cards{grid-template-columns:repeat(2,1fr);}
}
@media (min-width:1024px){
  .pulse-section .pulse-cards{grid-template-columns:repeat(4,1fr);}
}

.pulse-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1.25rem;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease;
  display:flex;
  flex-direction:column;
  gap:.75rem;
}
.pulse-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
}
.pulse-name{
  font-size:1.05rem;
  font-weight:700;
  color:var(--text);
}
.pulse-score{
  font-size:2rem;
  font-weight:800;
  color:var(--navy);
  line-height:1;
}
.pulse-bar{
  height:8px;
  background:#E9EEF3;
  border-radius:9999px;
  overflow:hidden;
  margin:4px 0;
}
.pulse-fill{
  height:100%;
  transition:width .35s ease;
  border-radius:9999px;
}

/* COLORED PROGRESS BARS */
.pulse-fill.strong  { background: var(--green); }     /* 70%+ → Green */
.pulse-fill.moderate{ background: var(--orange); }    /* 40–69% → Orange */
.pulse-fill.weak    { background: #DC2626; }          /* <40% → Red */

.pulse-trend{
  font-size:12px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:4px;
}
.pulse-trend.rising    { color:var(--green); }
.pulse-trend.declining { color:#DC2626; }
.pulse-trend.stable    { color:var(--muted); }


/* ---------- AUTH / LOGIN BUTTONS ---------- */

/* Make the desktop login link look like any other nav-link */
.nav-link.login-link,
.nav-link.user-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Mobile‑only login container (hidden on desktop) */
.nav-mobile-login {
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-mobile-login {
    display: none !important;   /* hidden when desktop nav is visible */
  }
}

.mobile-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;              /* pill shape */
  color: var(--nav-text);            /* white */
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Optional: little green dot for logged-in state */
.mobile-login-btn.logged-in {
  background: rgba(46, 125, 50, 0.2);
  border-color: rgba(46, 125, 50, 0.4);
}


/* ============== AUTH PAGES (Login / Register) ============== */

.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  background: var(--bg);
}

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 440px;
  padding: 2rem 1.75rem;
  margin-top: 1rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.auth-error {
  background: #fff0f0;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f9fafc;
  color: var(--text);
  transition: border 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 80, 26, 0.15);
  background: #fff;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.auth-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.auth-links a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem 1.25rem;
    margin-top: 0.5rem;
  }
  .auth-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    h1 { font-size: 28px !important; }
    .page-head { padding: 2rem 0; }
}


/* ========== User Status Bar ========== */
/* ========== User Status Bar ========== */
.user-bar {
    background: var(--navy);
    color: white;
    padding: 6px 0;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 10000;
}
.user-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.user-bar-msg strong {
    color: var(--orange);
}
.user-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-bar-btn {
    background: var(--orange);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.user-bar-btn:hover {
    background: #c04a1e;
}
.user-bar-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.user-bar-close:hover {
    color: white;
}