/* =====================================================================
   Nation Voice Digest — design tokens
   Ink navy masthead + warm gold rule, serif headlines / sans body,
   broadsheet grid. Category colour comes from the database per-category.
===================================================================== */
:root {
  --ink: #14283D;
  --ink-2: #1E3A5F;
  --gold: #C89B3C;
  --paper: #F6F4EF;
  --paper-line: #E4E0D6;
  --white: #FFFFFF;
  --text: #23272E;
  --muted: #6B7280;
  --border: #E3E6EA;
  --danger: #A6403A;
  --radius: 3px;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

h1, h2, h3, h4, h5 { font-family: var(--serif); margin: 0; line-height: 1.2; font-weight: 700; }

/* ---------------------------------------------------------------------
   Top utility bar
--------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #C9D3DE;
  font-size: 12.5px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.topbar .date { letter-spacing: .02em; }
.topbar .social { display: flex; gap: 14px; align-items: center; }
.topbar .social a { color: #C9D3DE; opacity: .85; }
.topbar .social a:hover { opacity: 1; color: var(--gold); }
.topbar .admin-link { color: #C9D3DE; border-left: 1px solid rgba(255,255,255,.18); padding-left: 14px; }
.topbar .admin-link:hover { color: var(--gold); }

/* ---------------------------------------------------------------------
   Breaking ticker
--------------------------------------------------------------------- */
.ticker {
  background: var(--gold);
  color: var(--ink);
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  height: 38px;
}
.ticker-label {
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 0 16px;
  height: 38px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}
.ticker-track-wrap { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
  width: max-content;
}
.ticker-track a {
  padding: 0 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.ticker-track a:hover { text-decoration: underline; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

/* ---------------------------------------------------------------------
   Masthead
--------------------------------------------------------------------- */
.masthead {
  padding: 26px 0 18px;
  text-align: center;
  border-bottom: 4px solid var(--ink);
}
.masthead .logo {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.masthead .logo span { color: var(--gold); }
.masthead .tagline {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 4px;
  letter-spacing: .03em;
}

/* ---------------------------------------------------------------------
   Nav
--------------------------------------------------------------------- */
.nav {
  background: var(--ink-2);
  position: relative;
  z-index: 30;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 13px 16px;
  color: #EDEFF2;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  border-right: 1px solid rgba(255,255,255,.08);
}
.nav-list > li:first-child > a { border-left: 1px solid rgba(255,255,255,.08); }
.nav-list > li > a:hover, .nav-list > li.active > a { background: var(--gold); color: var(--ink); }
.nav-list .sub {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 12px 24px rgba(0,0,0,.15);
  border-top: 3px solid var(--gold);
}
.nav-list li:hover .sub { display: block; }
.nav-list .sub a {
  display: block;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-list .sub a:hover { background: var(--paper); color: var(--ink-2); }
.nav-toggle {
  display: none;
  background: none; border: 0; color: #fff; font-size: 22px; padding: 10px 16px; cursor: pointer;
}

@media (max-width: 900px) {
  .nav .container { flex-direction: column; align-items: stretch; padding: 0; }
  .nav-toggle { display: block; align-self: flex-end; }
  .nav-list { display: none; flex-direction: column; width: 100%; }
  .nav-list.open { display: flex; }
  .nav-list > li > a { border: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-list .sub { position: static; box-shadow: none; display: none; }
  .nav-list li.open .sub { display: block; }
}

/* ---------------------------------------------------------------------
   Category pill / tag
--------------------------------------------------------------------- */
.tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 9px;
  border-radius: var(--radius);
  color: var(--white);
}

/* ---------------------------------------------------------------------
   Layout: main + sidebar
--------------------------------------------------------------------- */
.page-body {
  padding: 48px 0 70px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}
@media (max-width: 940px) { .layout { grid-template-columns: 1fr; } }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 20px;
  padding-bottom: 8px;
}
.section-heading h2 { font-size: 21px; color: var(--ink); }
.section-heading .view-more { font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.section-heading .view-more:hover { color: var(--gold); }

/* ---------------------------------------------------------------------
   Hero (homepage)
--------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; margin-bottom: 44px; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.hero-main img { width: 100%; height: 420px; object-fit: cover; opacity: .92; }
.hero-main .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,20,32,.92) 0%, rgba(10,20,32,.25) 55%, rgba(10,20,32,0) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
}
.hero-main .tag-pill { margin-bottom: 10px; width: fit-content; }
.hero-main h1 { font-size: 30px; color: #fff; }
.hero-main h1 a:hover { text-decoration: underline; }
.hero-main .meta { color: #C9D3DE; font-size: 12.5px; margin-top: 10px; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side-item { display: flex; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.hero-side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-side-item img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.hero-side-item .tag-pill { font-size: 10px; padding: 2px 7px; margin-bottom: 6px; }
.hero-side-item h3 { font-size: 14.5px; }
.hero-side-item h3 a:hover { color: var(--ink-2); }
.hero-side-item .meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-main img { height: 280px; }
}

/* ---------------------------------------------------------------------
   Category filter tabs (homepage "Latest" block)
--------------------------------------------------------------------- */
.tabs-bar { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; padding-bottom: 12px; }
.tab-btn {
  background: var(--paper); border: 1px solid var(--paper-line); color: var(--text);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 20px; cursor: pointer;
  font-family: var(--sans);
}
.tab-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .tab-panel.active { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tab-panel.active { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Article cards
--------------------------------------------------------------------- */
.card { display: flex; flex-direction: column; }
.card img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); }
.card .tag-pill { margin: 10px 0 6px; width: fit-content; }
.card h3 { font-size: 15px; }
.card h3 a:hover { color: var(--ink-2); }
.card .meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.row-list { display: flex; flex-direction: column; gap: 18px; }
.row-item { display: flex; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.row-item:last-child { border: 0; padding-bottom: 0; }
.row-item img { width: 130px; height: 96px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.row-item h3 { font-size: 16px; margin-bottom: 6px; }
.row-item h3 a:hover { color: var(--ink-2); }
.row-item p { font-size: 13.5px; color: var(--muted); margin: 0 0 6px; }
.row-item .meta { font-size: 11.5px; color: var(--muted); }

.category-block { margin-bottom: 44px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Sidebar widgets
--------------------------------------------------------------------- */
.widget { margin-bottom: 34px; }
.widget-title {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px;
}
.mini-list { display: flex; flex-direction: column; gap: 14px; }
.mini-item { display: flex; gap: 10px; align-items: flex-start; }
.mini-item .rank { font-family: var(--serif); font-size: 20px; color: var(--paper-line); width: 26px; flex-shrink: 0; }
.mini-item img { width: 64px; height: 56px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.mini-item h4 { font-size: 13.5px; line-height: 1.35; }
.mini-item h4 a:hover { color: var(--ink-2); }
.mini-item .meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 12.5px; padding: 6px 12px; background: var(--paper); border: 1px solid var(--paper-line);
  border-radius: 20px; color: var(--text);
}
.tag-cloud a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.newsletter-box { background: var(--ink); color: #fff; padding: 22px; border-radius: var(--radius); }
.newsletter-box h4 { font-family: var(--serif); font-size: 16px; margin-bottom: 6px; }
.newsletter-box p { font-size: 12.5px; color: #C9D3DE; margin: 0 0 14px; }
.newsletter-box form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-box input[type=email] {
  flex: 1; min-width: 140px; padding: 10px 12px; border: 0; border-radius: var(--radius); font-size: 13px;
}
.newsletter-box button {
  background: var(--gold); border: 0; color: var(--ink); font-weight: 700; padding: 10px 16px;
  border-radius: var(--radius); cursor: pointer; font-family: var(--sans); font-size: 13px;
}
.newsletter-box .note { font-size: 11.5px; margin-top: 10px; color: #A9B6C4; }

/* ---------------------------------------------------------------------
   Single post
--------------------------------------------------------------------- */
.post-header { max-width: 760px; margin: 0 auto 26px; text-align: left; }
.post-header .tag-pill { margin-bottom: 12px; }
.post-header h1 { font-size: 34px; color: var(--ink); margin-bottom: 12px; }
.post-header .excerpt { font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.post-header .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; }
.post-hero-img { max-width: 900px; margin: 0 auto 28px; }
.post-hero-img img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); }
.post-content { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.75; }
.post-content p { margin: 0 0 20px; }
.post-content h2, .post-content h3 { color: var(--ink); margin: 30px 0 14px; }
.post-tags { max-width: 760px; margin: 30px auto 0; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Category page header
--------------------------------------------------------------------- */
.cat-header { margin-bottom: 30px; }
.cat-header h1 { font-size: 28px; color: var(--ink); }
.cat-header .sub-links { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.cat-header .sub-links a { font-size: 12.5px; padding: 5px 12px; background: var(--paper); border-radius: 20px; }

/* ---------------------------------------------------------------------
   Contact page
--------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.contact-info p { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px;
}
.btn-primary {
  background: var(--ink); color: #fff; border: 0; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; cursor: pointer; font-size: 14px;
}
.btn-primary:hover { background: var(--ink-2); }

.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 20px; }
.alert-success { background: #EAF6EE; color: #1E6F3C; border: 1px solid #BFE3C9; }
.alert-error { background: #FDECEC; color: #8E2C2C; border: 1px solid #F3B9B9; }

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #C9D3DE; padding: 50px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid .logo { font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 10px; }
.footer-grid .logo span { color: var(--gold); }
.footer-grid p { font-size: 13px; line-height: 1.6; color: #A9B6C4; max-width: 320px; }
.footer-col h5 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: #C9D3DE; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 12px; color: #8C9AAB; flex-wrap: wrap; gap: 10px; }
.footer-bottom .links { display: flex; gap: 18px; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------------------------------------------------------------------
   Misc
--------------------------------------------------------------------- */
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--paper); border-radius: var(--radius); }
.pagination { display: flex; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 13px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; }
.pagination a:hover { background: var(--paper); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
/* =========================================================
   Nation Voice Digest — Masthead
   ========================================================= */

.masthead {
    background: #ffffff;
    padding: 18px 20px 16px;
    text-align: center;
}

.masthead-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
}

.site-logo {
    display: block;
    width: 680px;
    max-width: 90vw;
    height: auto;
    max-height: 190px;
    object-fit: contain;
}

.masthead-info {
    text-align: center;
    margin-top: 8px;
}

.masthead-info .tagline {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    letter-spacing: 0.15px;
}

.masthead-date {
    margin-top: 3px;
    font-size: 14px;
    color: #162b40;
}

/* Mobile */
@media (max-width: 700px) {
    .masthead {
        padding: 12px 12px 14px;
    }

    .site-logo {
        width: 520px;
        max-width: 94vw;
        max-height: 130px;
    }

    .masthead-info .tagline,
    .masthead-date {
        font-size: 12px;
    }
}
/* NVD LOGO MASTHEAD OVERRIDE */

header.masthead {
    padding: 12px 20px 10px !important;
    background: #fff !important;
    border-bottom: 4px solid #14283D !important;
}

header.masthead .masthead-inner {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

header.masthead .logo-link {
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    text-decoration: none !important;
    line-height: 0 !important;
}

header.masthead img.site-logo {
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    height: auto !important;
    max-height: 170px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

header.masthead .masthead-info {
    margin-top: 3px !important;
    text-align: center !important;
}

header.masthead .masthead-info .tagline {
    margin: 0 !important;
    font-size: 13px !important;
    color: #6B7280 !important;
}

header.masthead .masthead-date {
    margin-top: 2px !important;
    font-size: 13px !important;
    color: #14283D !important;
}

@media (max-width: 700px) {
    header.masthead {
        padding: 10px 10px 8px !important;
    }

    header.masthead .logo-link,
    header.masthead img.site-logo {
        max-width: 94vw !important;
        max-height: 125px !important;
    }
}

/* =====================================================================
   NATION VOICE DIGEST — DESKTOP EDITORIAL REDESIGN
   Final visual layer. Mobile rules remain below/alongside the original
   stylesheet and can be refined separately after desktop approval.
===================================================================== */
:root {
  --max: 1380px;
  --page-gutter: 28px;
  --navy-deep: #0d2135;
  --navy: #14283D;
  --navy-soft: #1e3a5f;
  --gold: #c89b3c;
  --gold-soft: #e8d3a3;
  --red: #a92e2e;
  --line: #dfe3e7;
  --paper: #f7f6f2;
  --shadow-soft: 0 8px 28px rgba(20,40,61,.08);
  --shadow-card: 0 12px 34px rgba(20,40,61,.12);
}

body {
  background: #fff;
  color: #202832;
}

.container {
  max-width: var(--max);
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* TOP BAR */
.topbar {
  height: 34px;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.topbar .container {
  height: 34px;
  font-size: 11px;
}
.topbar .date { color: #d8e0e8; }
.topbar .social { gap: 16px; }
.topbar .social a { color: #aebdca; }

/* BREAKING NEWS TICKER */
.ticker {
  height: 42px;
  background: var(--gold);
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.ticker-inner { height: 42px; }
.ticker-label {
  height: 42px;
  min-width: 118px;
  justify-content: center;
  padding: 0 18px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 11px;
  letter-spacing: .1em;
  position: relative;
}
.ticker-label::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d94a42;
  margin-left: 9px;
  box-shadow: 0 0 0 3px rgba(217,74,66,.15);
}
.ticker-track-wrap { height: 42px; }
.ticker-track {
  height: 42px;
  align-items: center;
  animation-duration: 36s;
}
.ticker-track a {
  padding: 0 30px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .005em;
}
.ticker-track a::after {
  content: '•';
  color: var(--red);
  margin-left: 30px;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* MASTHEAD */
header.masthead {
  padding: 24px 20px 19px !important;
  background: #fff !important;
  border-bottom: 1px solid #cfd5db !important;
  position: relative;
}
header.masthead::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  background: var(--navy);
}
header.masthead .masthead-inner {
  max-width: 1380px !important;
}
header.masthead .logo-link {
  max-width: 610px !important;
}
header.masthead img.site-logo {
  max-width: 610px !important;
  max-height: 145px !important;
}
header.masthead .masthead-info { margin-top: 7px !important; }
header.masthead .masthead-info .tagline {
  font-size: 12px !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6d7782 !important;
}
header.masthead .masthead-date {
  font-size: 11px !important;
  color: #536273 !important;
  margin-top: 4px !important;
}

/* NAVIGATION */
.nav {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 14px rgba(13,33,53,.09);
}
.nav .container {
  justify-content: center;
}
.nav-list > li > a {
  padding: 13px 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .035em;
  border-right: 1px solid rgba(255,255,255,.10);
}
.nav-list > li:first-child > a { border-left: 1px solid rgba(255,255,255,.10); }
.nav-list > li > a:hover,
.nav-list > li.active > a {
  background: var(--gold);
  color: var(--navy-deep);
}
.nav-list .sub {
  min-width: 220px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
}

/* MAIN CONTENT */
.page-body {
  padding: 46px 0 72px;
}
.layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 52px;
}

/* SECTION HEADINGS */
.section-heading {
  margin-bottom: 22px;
  padding-bottom: 11px;
  border-bottom: 1px solid #bcc5ce;
  position: relative;
}
.section-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 70px;
  height: 3px;
  background: var(--gold);
}
.section-heading h2 {
  font-size: 23px;
  letter-spacing: -.01em;
}
.section-heading .view-more {
  font-size: 11px;
  letter-spacing: .08em;
}

/* HOMEPAGE HERO */
.hero {
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, .88fr);
  gap: 28px;
  margin-bottom: 50px;
}
.hero-main {
  min-height: 470px;
  border-radius: 0;
  box-shadow: var(--shadow-card);
}
.hero-main img {
  height: 470px;
  opacity: .95;
}
/* Supports both the old selector and the current homepage class. */
.hero-main .overlay,
.hero-main .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,22,36,.96) 0%, rgba(8,22,36,.60) 36%, rgba(8,22,36,.08) 76%, rgba(8,22,36,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
}
.hero-main .tag-pill,
.hero-main .hero-overlay .tag-pill {
  margin-bottom: 12px;
  width: fit-content;
  font-size: 10px;
  letter-spacing: .09em;
  padding: 5px 9px;
}
.hero-main h1,
.hero-main .hero-overlay h1 {
  max-width: 820px;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.04;
  letter-spacing: -.025em;
  color: #fff;
}
.hero-main .meta,
.hero-main .hero-overlay .meta {
  margin-top: 13px;
  font-size: 12px;
  color: #d4dde5;
}
.hero-side {
  gap: 0;
  border-top: 3px solid var(--navy);
}
.hero-side-item {
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.hero-side-item:first-child { padding-top: 15px; }
.hero-side-item img {
  width: 124px;
  height: 86px;
  border-radius: 0;
}
.hero-side-item h3 {
  font-size: 17px;
  line-height: 1.18;
}
.hero-side-item .tag-pill {
  margin-bottom: 7px;
  font-size: 9px;
  padding: 3px 7px;
}
.hero-side-item .meta {
  margin-top: 7px;
  font-size: 10.5px;
}

/* CURRENT HOMEPAGE TAB CLASS COMPATIBILITY */
.category-tabs,
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-bottom: 1px solid #c2c9d0;
  margin-bottom: 24px;
  padding-bottom: 11px;
}
.category-tab,
.tab-btn {
  appearance: none;
  border: 1px solid #d6dce2;
  background: #fff;
  color: #52606d;
  border-radius: 2px;
  padding: 8px 13px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .045em;
  cursor: pointer;
  transition: all .18s ease;
}
.category-tab:hover,
.tab-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.category-tab.active,
.tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* CURRENT HOMEPAGE POST GRID */
.posts-grid,
.tab-panel.active {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}
.post-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 0;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: #c9d0d7;
  box-shadow: var(--shadow-soft);
}
.post-card > a:first-child,
.post-card .post-card-image {
  display: block;
}
.post-card img {
  width: 100%;
  height: 205px;
  object-fit: cover;
}
.post-card-content {
  padding: 17px 18px 19px;
}
.post-card-content .tag-pill {
  margin-bottom: 9px;
  font-size: 9px;
  padding: 4px 7px;
}
.post-card-content h3,
.post-card h3 {
  font-size: 19px;
  line-height: 1.16;
  letter-spacing: -.01em;
}
.post-card-content h3 a:hover { color: var(--navy-soft); }
.post-card-content .excerpt,
.post-card .excerpt {
  margin-top: 9px;
  color: #687482;
  font-size: 12.5px;
  line-height: 1.55;
}
.post-card-content .meta,
.post-card .meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf0f2;
  color: #87919c;
  font-size: 10.5px;
}

/* GENERIC CARD COMPATIBILITY */
.card {
  min-width: 0;
}
.card img {
  height: 190px;
  border-radius: 0;
}
.card h3 { font-size: 18px; line-height: 1.18; }

/* SIDEBAR */
.widget {
  margin-bottom: 34px;
  padding-bottom: 27px;
  border-bottom: 1px solid #dfe3e7;
}
.widget:last-child { border-bottom: 0; }
.widget-title {
  font-size: 19px;
  padding-bottom: 10px;
  margin-bottom: 17px;
  border-bottom: 1px solid #c2c9d0;
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 45px;
  height: 3px;
  background: var(--gold);
}
.mini-list { gap: 17px; }
.mini-item { gap: 12px; }
.mini-item .rank {
  color: #cfd5db;
  font-size: 23px;
  width: 25px;
}
.mini-item img {
  width: 78px;
  height: 62px;
  border-radius: 0;
}
.mini-item h4 { font-size: 14px; line-height: 1.28; }

.newsletter-box {
  border-radius: 0;
  padding: 25px;
  background: var(--navy-deep);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-soft);
}
.newsletter-box h4 { font-size: 20px; }
.newsletter-box p { font-size: 12px; line-height: 1.55; }

/* TAGS */
.tag-cloud { gap: 6px; }
.tag-cloud a {
  border-radius: 2px;
  background: #fff;
  border: 1px solid #d9dee3;
  padding: 6px 9px;
  font-size: 11px;
}

/* CATEGORY PAGES */
.cat-header {
  padding: 24px 0 19px;
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid #cbd2d9;
  margin-bottom: 32px;
}
.cat-header h1 {
  font-size: 36px;
  letter-spacing: -.02em;
}

/* SINGLE ARTICLE */
.post-header {
  max-width: 900px;
  margin-bottom: 30px;
}
.post-header h1 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: -.028em;
}
.post-header .excerpt {
  font-size: 18px;
  line-height: 1.55;
}
.post-hero-img {
  max-width: 1080px;
  margin-bottom: 34px;
}
.post-hero-img img {
  height: 560px;
  border-radius: 0;
}
.post-content {
  max-width: 780px;
  font-size: 18px;
  line-height: 1.82;
}

/* CONTACT */
.contact-grid { gap: 60px; }

/* FOOTER */
.site-footer {
  margin-top: 75px;
  padding-top: 58px;
  background: var(--navy-deep);
  border-top: 4px solid var(--gold);
}
.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 65px;
  padding-bottom: 42px;
}
.footer-grid .logo { font-size: 24px; }
.footer-grid p { font-size: 12px; }
.footer-col h5 { font-size: 11px; letter-spacing: .11em; }
.footer-col ul { gap: 8px; }
.footer-col a { font-size: 12px; }
.footer-social { gap: 8px; }
.footer-social a { width: 30px; height: 30px; }

/* PAGINATION */
.pagination a,
.pagination span {
  border-radius: 2px;
  padding: 8px 12px;
}

/* DESKTOP WIDTH SAFETY */
@media (min-width: 1200px) {
  .posts-grid,
  .tab-panel.active { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Keep the current mobile behavior intact for now. */
@media (max-width: 900px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .posts-grid,
  .tab-panel.active { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .posts-grid,
  .tab-panel.active { grid-template-columns: 1fr; }
}
/* =========================================================
   Nation Voice Digest — MOBILE UI
   Final mobile layer
========================================================= */

@media (max-width: 760px) {

  /* ---------- GLOBAL ---------- */

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 14px;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* ---------- TOP BAR ---------- */

  .topbar .container {
    height: 34px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar {
    font-size: 10.5px;
  }

  .topbar .date {
    white-space: nowrap;
  }

  .topbar .social {
    gap: 8px;
  }

  .topbar .social a {
    display: none;
  }

  .topbar .social .admin-link {
    display: inline-block;
    padding-left: 8px;
  }

  /* ---------- BREAKING NEWS ---------- */

  .ticker-inner {
    height: 36px;
  }

  .ticker-label {
    height: 36px;
    padding: 0 11px;
    font-size: 10px;
    letter-spacing: .04em;
    flex-shrink: 0;
  }

  .ticker-track a {
    padding: 0 20px;
    font-size: 12px;
    font-weight: 600;
  }

  .ticker-track {
    animation-duration: 26s;
  }

  /* ---------- MASTHEAD ---------- */

  header.masthead {
    padding: 10px 10px 9px !important;
    border-bottom: 3px solid var(--ink) !important;
  }

  header.masthead .masthead-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  header.masthead .logo-link,
  header.masthead img.site-logo {
    width: 100% !important;
    max-width: 340px !important;
    max-height: 105px !important;
  }

  header.masthead .masthead-info {
    margin-top: 3px !important;
  }

  header.masthead .masthead-info .tagline {
    font-size: 10px !important;
    letter-spacing: .02em;
    line-height: 1.35;
  }

  header.masthead .masthead-date {
    margin-top: 2px !important;
    font-size: 10px !important;
  }

  /* ---------- NAVIGATION ---------- */

  .nav {
    width: 100%;
  }

  .nav .container {
    padding: 0;
  }

  .nav-toggle {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    text-align: right;
    font-size: 22px;
  }

  .nav-list {
    width: 100%;
  }

  .nav-list > li > a {
    padding: 12px 16px;
    font-size: 13px;
  }

  .nav-list .sub a {
    padding: 10px 20px;
    font-size: 12.5px;
  }

  /* ---------- PAGE BODY ---------- */

  .page-body {
    padding: 24px 0 42px;
  }

  /* ---------- MAIN + SIDEBAR ---------- */

  .layout {
    display: block;
  }

  .layout > main,
  .layout > aside {
    width: 100%;
    min-width: 0;
  }

  /* ---------- SECTION HEADINGS ---------- */

  .section-heading {
    margin-bottom: 15px;
    padding-bottom: 7px;
    border-bottom-width: 2px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .section-heading .view-more {
    font-size: 10px;
  }

  /* ---------- HERO / LEAD STORY ---------- */

  .hero {
    display: block;
    margin-bottom: 30px;
  }

  .hero-main {
    width: 100%;
    border-radius: 4px;
  }

  .hero-main img {
    width: 100%;
    height: 260px;
    object-fit: cover;
  }

  .hero-main .overlay,
  .hero-main .hero-overlay {
    padding: 18px;
  }

  .hero-main h1 {
    font-size: 24px;
    line-height: 1.18;
  }

  .hero-main .meta {
    font-size: 11px;
    margin-top: 7px;
  }

  .hero-main .tag-pill {
    font-size: 9px;
    padding: 3px 7px;
    margin-bottom: 7px;
  }

  /* ---------- HERO SECONDARY STORIES ---------- */

  .hero-side {
    margin-top: 18px;
    gap: 0;
  }

  .hero-side-item {
    padding: 13px 0;
    gap: 12px;
  }

  .hero-side-item img {
    width: 100px;
    height: 72px;
  }

  .hero-side-item h3 {
    font-size: 14px;
    line-height: 1.3;
  }

  .hero-side-item .meta {
    font-size: 10.5px;
  }

  /* ---------- CATEGORY TABS ---------- */

  .tabs-bar,
  .category-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 7px;
    margin-bottom: 18px;
    padding-bottom: 9px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tabs-bar::-webkit-scrollbar,
  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn,
  .category-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 11.5px;
  }

  /* ---------- POST GRIDS ---------- */

  .posts-grid,
  .tab-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }

  .grid4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }

  /* ---------- POST CARDS ---------- */

  .post-card,
  .card {
    min-width: 0;
  }

  .post-card img,
  .card img {
    width: 100%;
    height: 125px;
    object-fit: cover;
    border-radius: 4px;
  }

  .post-card-content {
    padding: 9px 0 0;
  }

  .post-card .tag-pill,
  .card .tag-pill {
    font-size: 8.5px;
    padding: 3px 6px;
    margin: 0 0 5px;
  }

  .post-card h3,
  .card h3 {
    font-size: 14px;
    line-height: 1.28;
  }

  .post-card .meta,
  .card .meta {
    font-size: 10px;
    margin-top: 5px;
  }

  /* ---------- ROW STORIES ---------- */

  .row-list {
    gap: 14px;
  }

  .row-item {
    gap: 11px;
    padding-bottom: 14px;
  }

  .row-item img {
    width: 105px;
    height: 75px;
    flex-shrink: 0;
  }

  .row-item h3 {
    font-size: 14px;
    line-height: 1.3;
  }

  /* ---------- SIDEBAR ---------- */

  .widget {
    margin-top: 32px;
    margin-bottom: 28px;
  }

  .widget-title {
    font-size: 17px;
    margin-bottom: 13px;
    padding-bottom: 7px;
  }

  .mini-list {
    gap: 12px;
  }

  .mini-item {
    gap: 9px;
  }

  .mini-item .rank {
    font-size: 18px;
    width: 22px;
  }

  .mini-item img {
    width: 65px;
    height: 55px;
  }

  .mini-item h4 {
    font-size: 13px;
  }

  /* ---------- TAGS ---------- */

  .tag-cloud {
    gap: 6px;
  }

  .tag-cloud a {
    font-size: 11px;
    padding: 5px 9px;
  }

  /* ---------- NEWSLETTER ---------- */

  .newsletter-box {
    padding: 18px;
  }

  .newsletter-box h4 {
    font-size: 17px;
  }

  .newsletter-box p {
    font-size: 12px;
  }

  .newsletter-box form {
    flex-direction: column;
  }

  .newsletter-box input[type=email],
  .newsletter-box button {
    width: 100%;
  }

  /* ---------- CATEGORY PAGE ---------- */

  .cat-header {
    margin-bottom: 22px;
  }

  .cat-header h1 {
    font-size: 25px;
  }

  .cat-header .sub-links {
    gap: 6px;
  }

  .cat-header .sub-links a {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* ---------- SINGLE POST ---------- */

  .post-header {
    width: 100%;
    margin-bottom: 20px;
  }

  .post-header h1 {
    font-size: 27px;
    line-height: 1.18;
  }

  .post-header .excerpt {
    font-size: 14px;
    line-height: 1.55;
  }

  .post-header .meta {
    font-size: 10.5px;
    gap: 8px;
    padding: 9px 0;
  }

  .post-hero-img {
    width: 100%;
    margin-bottom: 22px;
  }

  .post-hero-img img {
    height: 235px;
    border-radius: 4px;
  }

  .post-content {
    width: 100%;
    font-size: 16px;
    line-height: 1.72;
  }

  .post-content p {
    margin-bottom: 18px;
  }

  .post-content h2,
  .post-content h3 {
    margin: 25px 0 11px;
  }

  .post-tags {
    margin-top: 24px;
  }

  /* ---------- CONTACT ---------- */

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-info h3 {
    font-size: 17px;
  }

  .form-field {
    margin-bottom: 14px;
  }

  .form-field input,
  .form-field textarea {
    font-size: 14px;
    padding: 11px 12px;
  }

  .btn-primary {
    width: 100%;
  }

  /* ---------- PAGINATION ---------- */

  .pagination {
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 24px;
  }

  .pagination a,
  .pagination span {
    padding: 7px 10px;
    font-size: 11px;
  }

  /* ---------- FOOTER ---------- */

  .site-footer {
    margin-top: 40px;
    padding: 36px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer-grid .logo {
    font-size: 21px;
  }

  .footer-grid p {
    font-size: 12px;
  }

  .footer-col h5 {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .footer-col ul {
    gap: 7px;
  }

  .footer-col a {
    font-size: 12.5px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
    font-size: 10.5px;
  }

  .footer-bottom .links {
    gap: 12px;
    flex-wrap: wrap;
  }

  /* ---------- EMPTY STATE ---------- */

  .empty-state {
    padding: 30px 16px;
    font-size: 13px;
  }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 420px) {

  .hero-main img {
    height: 225px;
  }

  .hero-main h1 {
    font-size: 21px;
  }

  .posts-grid,
  .tab-panel.active,
  .grid4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-card img,
  .card img {
    height: 180px;
  }

  .hero-side-item img {
    width: 92px;
    height: 68px;
  }

  .post-header h1 {
    font-size: 25px;
  }

  .post-hero-img img {
    height: 210px;
  }
}


/* =========================================================
   ACCESSIBILITY / TOUCH
========================================================= */

@media (max-width: 760px) {

  a,
  button,
  .tab-btn,
  .category-tab {
    -webkit-tap-highlight-color: transparent;
  }

  .nav-list a,
  .tab-btn,
  .category-tab,
  .btn-primary {
    min-height: 40px;
  }

  @media (prefers-reduced-motion: reduce) {
    .ticker-track {
      animation: none;
    }
  }
}
/* =========================================================
   NATION VOICE DIGEST — MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 900px) {

    /* Keep the navigation visible on mobile */
    .nav {
        display: block !important;
        width: 100%;
        overflow: hidden;
    }

    .nav .container {
        display: block !important;
        width: 100%;
        max-width: none;
        padding: 0 !important;
        margin: 0;
    }

    /* Hide unused hamburger control */
    .nav-toggle {
        display: none !important;
    }

    /* Horizontal category navigation */
    .nav-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;

        margin: 0;
        padding: 0;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-list::-webkit-scrollbar {
        display: none;
    }

    .nav-list > li {
        position: relative;
        flex: 0 0 auto;
        margin: 0;
    }

    .nav-list > li > a {
        display: flex !important;
        align-items: center;
        justify-content: center;

        min-height: 42px;
        padding: 0 15px !important;

        color: #EDEFF2 !important;
        background: transparent;

        font-family: var(--sans);
        font-size: 12px !important;
        font-weight: 600;

        white-space: nowrap;

        border: 0 !important;
        border-right: 1px solid rgba(255,255,255,.10) !important;
    }

    .nav-list > li:first-child > a {
        border-left: 0 !important;
    }

    .nav-list > li > a:hover,
    .nav-list > li.active > a {
        background: var(--gold) !important;
        color: var(--ink) !important;
    }

    /* Don't allow desktop dropdowns to interfere with the
       horizontal mobile navigation */
    .nav-list .sub {
        display: none !important;
    }
}


/* =========================================================
   MOBILE MASTHEAD
   ========================================================= */

@media (max-width: 700px) {

    header.masthead {
        padding: 8px 8px 7px !important;
    }

    header.masthead .logo-link {
        max-width: 94vw !important;
    }

    header.masthead img.site-logo {
        max-width: 94vw !important;
        max-height: 105px !important;
    }

    header.masthead .masthead-info {
        margin-top: 1px !important;
    }

    header.masthead .masthead-info .tagline {
        font-size: 10px !important;
        line-height: 1.3;
    }

    header.masthead .masthead-date {
        font-size: 10px !important;
        margin-top: 1px !important;
    }
}


/* =========================================================
   MOBILE PAGE SPACING
   ========================================================= */

@media (max-width: 760px) {

    .page-body {
        padding: 20px 12px 30px !important;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .layout {
        display: block !important;
    }

    /* Empty homepage shouldn't consume the whole screen */
    .empty-state {
        padding: 28px 14px !important;
        margin: 0 !important;
        min-height: 0 !important;
    }

    .empty-state h2,
    .empty-state h3 {
        font-size: 18px;
    }

    .empty-state p {
        font-size: 12px;
        margin-top: 8px;
    }
}


/* =========================================================
   MOBILE FOOTER
   ========================================================= */

@media (max-width: 760px) {

    .footer {
        margin-top: 0 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .footer-grid .logo {
        font-size: 21px !important;
    }

    .footer-grid p {
        font-size: 12px !important;
    }

    .footer-col h5 {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }

    .footer-col ul {
        gap: 7px !important;
    }

    .footer-col a {
        font-size: 12px !important;
    }

    .footer-bottom {
        font-size: 10px !important;
        padding: 14px 0 !important;
    }
}
/* =========================================================
   MOBILE HOMEPAGE FINAL POLISH
   ========================================================= */

@media (max-width: 760px) {

    /* Reduce the empty homepage area */
    .page-body {
        padding: 16px 10px 20px !important;
    }

    .empty-state {
        padding: 24px 12px !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    .empty-state h2,
    .empty-state h3 {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }

    .empty-state p {
        font-size: 12px !important;
        margin: 0 !important;
    }


    /* ---------------------------------------------------------
       Mobile footer — single column
       --------------------------------------------------------- */

    .site-footer {
        margin-top: 25px !important;
        padding: 30px 0 0 !important;
    }

    .site-footer .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .site-footer .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 26px !important;
        padding-bottom: 24px !important;
    }

    .site-footer .footer-grid > * {
        width: 100% !important;
    }

    .site-footer .footer-grid .logo {
        font-size: 21px !important;
        margin-bottom: 8px !important;
    }

    .site-footer .footer-grid p {
        max-width: 100% !important;
        font-size: 12px !important;
        line-height: 1.6 !important;
    }

    .site-footer .footer-col h5 {
        font-size: 11px !important;
        margin-bottom: 9px !important;
    }

    .site-footer .footer-col ul {
        gap: 6px !important;
    }

    .site-footer .footer-col a {
        font-size: 12px !important;
    }

    .site-footer .footer-social {
        margin-top: 12px !important;
        gap: 8px !important;
    }

    .site-footer .footer-social a {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
    }


    /* Footer copyright row */
    .site-footer .footer-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;

        padding: 14px 0 !important;

        font-size: 10px !important;
    }

    .site-footer .footer-bottom .links {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
}
/* =========================================================
   FINAL MOBILE FOOTER OVERRIDE
   ========================================================= */

@media screen and (max-width: 760px) {

    .site-footer .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100% !important;
        gap: 28px !important;
    }

    .site-footer .footer-grid > div {
        width: 100% !important;
        max-width: 100% !important;
    }

    .site-footer {
        width: 100% !important;
        margin-top: 20px !important;
        padding-top: 28px !important;
    }

    .site-footer .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .site-footer .footer-col {
        display: block !important;
        width: 100% !important;
    }

    .site-footer .footer-col ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 7px !important;
    }

    .site-footer .footer-col a {
        display: block !important;
        font-size: 12px !important;
    }

    .site-footer .footer-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}
/* =========================================================
   MOBILE CATEGORY LIST — TWO COLUMNS
   ========================================================= */

@media screen and (max-width: 760px) {

    .site-footer .footer-col ul {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        column-gap: 24px !important;
        row-gap: 9px !important;
    }

    .site-footer .footer-col li {
        min-width: 0 !important;
    }

    .site-footer .footer-col a {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

}
@media screen and (max-width: 760px) {

    .page-body {
        padding-top: 26px !important;
        padding-bottom: 55px !important;
    }

    .empty-state {
        padding: 34px 14px !important;
    }

}
/* =========================================================
   MOBILE MAIN CONTENT HEIGHT
   ========================================================= */

@media screen and (max-width: 760px) {

    .page-body {
        min-height: 430px !important;
        padding-top: 28px !important;
        padding-bottom: 70px !important;
    }

    .page-body .container {
        min-height: 360px !important;
    }

    .empty-state {
        min-height: 190px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

}
/* =========================================================
   NATION VOICE DIGEST — DESKTOP HOMEPAGE
   ========================================================= */

@media screen and (min-width: 761px) {

    /* Wider desktop content area */
    .page-body > .container {
        max-width: 1380px !important;
        width: 100% !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    /* Give the homepage much more room */
    .page-body {
        padding-top: 34px !important;
        padding-bottom: 60px !important;
    }

    /* Main hero layout */
    .hero {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr) !important;
        gap: 28px !important;
        margin-bottom: 38px !important;
    }

    /* Main story */
    .hero-main {
        width: 100% !important;
        min-width: 0 !important;
    }

    .hero-main img {
        width: 100% !important;
        height: 430px !important;
        object-fit: cover !important;
    }

    .hero-main .overlay {
        padding: 30px !important;
    }

    /* Stop the headline from becoming ridiculously tall */
    .hero-main h1 {
        font-size: 32px !important;
        line-height: 1.12 !important;
        max-width: 900px !important;
    }

    .hero-main .meta {
        font-size: 12px !important;
        margin-top: 10px !important;
    }

    /* Hero side stories */
    .hero-side {
        width: 100% !important;
        min-width: 0 !important;
    }

    .hero-side-item {
        gap: 14px !important;
        padding-bottom: 18px !important;
    }

    .hero-side-item img {
        width: 120px !important;
        height: 85px !important;
    }

    .hero-side-item h3 {
        font-size: 16px !important;
        line-height: 1.25 !important;
    }


    /* ---------------------------------------------------------
       What's New section
       --------------------------------------------------------- */

    .section-heading {
        width: 100% !important;
        margin-bottom: 18px !important;
    }

    .section-heading h2 {
        font-size: 23px !important;
    }


    /* Category filter buttons */
    .tabs-bar {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-bottom: 26px !important;
        padding-bottom: 12px !important;
    }

    .tab-btn {
        font-size: 12px !important;
        padding: 8px 13px !important;
    }


    /* Four article columns on desktop */
    .tab-panel.active {
        width: 100% !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }

    .card {
        min-width: 0 !important;
    }

    .card img {
        width: 100% !important;
        height: 175px !important;
        object-fit: cover !important;
    }

    .card h3 {
        font-size: 17px !important;
        line-height: 1.25 !important;
    }


    /* ---------------------------------------------------------
       Header — slightly tighter desktop masthead
       --------------------------------------------------------- */

    header.masthead {
        padding-top: 14px !important;
        padding-bottom: 12px !important;
    }

    header.masthead img.site-logo {
        max-width: 620px !important;
        max-height: 155px !important;
    }

    header.masthead .masthead-info {
        margin-top: 2px !important;
    }

    header.masthead .masthead-info .tagline {
        font-size: 12px !important;
    }

    header.masthead .masthead-date {
        font-size: 12px !important;
    }


    /* ---------------------------------------------------------
       Desktop navigation
       --------------------------------------------------------- */

    .nav .container {
        max-width: 1380px !important;
    }

    .nav-list {
        justify-content: center !important;
        width: 100% !important;
    }

    .nav-list > li > a {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

}