/*
 * FODNews Theme — Main Stylesheet
 * Version: 1.1.0
 * Design: Light mode, modern editorial / news publication. Reuters meets Aviation Week.
 * Typography: Archivo Black (headlines) · Source Serif 4 (body) · DM Sans (UI) · Space Mono (mono)
 *
 * TABLE OF CONTENTS
 * -----------------
 *  1.  CSS Custom Properties
 *  2.  Base Reset & Typography
 *  3.  Layout Utilities
 *  4.  Header — Row 1: Utility Bar
 *  5.  Header — Row 2: Logo Bar
 *  6.  Header — Row 3: Category Nav (sticky)
 *  7.  Section Utilities
 *  8.  Category Badges
 *  9.  Hero Section
 * 10.  Latest News Section
 * 11.  Inline Ad (between sections)
 * 12.  Category Sections (2-col with sidebar)
 * 13.  Homepage Sidebar
 * 14.  Newsletter CTA Banner
 * 15.  Article Page Layout
 * 16.  Article Sidebar
 * 17.  Related Articles Section
 * 18.  Footer
 * 19.  Ad Zones
 * 20.  Breaking News Badge
 * 21.  Archive / Category Pages
 * 22.  Pagination
 * 23.  Search Page
 * 24.  404 Page
 * 25.  Responsive — Tablet
 * 26.  Responsive — Mobile
 * 27.  WordPress Alignment Classes
 * 28.  Print Styles
 */


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Color palette */
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #64748b;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --black: #000000;

  /* Category colors */
  --cat-aviation:      #F0B800;
  --cat-space:         #0a0a0a;
  --cat-military:      #556B2F;
  --cat-motorsport:    #CC0000;
  --cat-industrial:    #6B6B6B;
  --cat-prevention:    #00CC66;
  --cat-infrastructure:#FF6600;
  --cat-analysis:      #ffffff;

  /* Typography */
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;
  --font-display: 'Archivo Black', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Layout */
  --max-width:     1280px;
  --content-width: 720px;
}


/* ==========================================================================
   2. BASE RESET & TYPOGRAPHY
   ========================================================================== */

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

body {
  font-family: var(--font-ui);
  background: var(--slate-50);
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font-family: inherit;
}


/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--red-700);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-family: var(--font-ui);
  font-size: 0.875rem;
}
.skip-link:focus {
  top: 0;
}


/* ==========================================================================
   4. HEADER — ROW 1: UTILITY BAR
   ========================================================================== */

.utility-bar {
  background: var(--slate-900);
  color: var(--slate-300);
  font-size: 0.75rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.date-display {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  white-space: nowrap;
  flex-shrink: 0;
}
.trending {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  margin-left: 2rem;
  overflow: hidden;
}
.trending-label {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--red-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  background: rgba(239,68,68,0.1);
  border-radius: 2px;
}
.trending-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trending-text a { color: var(--slate-300); }
.trending-text a:hover { color: var(--white); }
.utility-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: 1rem;
}
.utility-bar .social-links {
  display: flex;
  gap: 0.75rem;
  list-style: none;
}
.utility-bar .social-links a {
  color: var(--slate-400);
  font-size: 0.75rem;
  transition: color 0.2s;
}
.utility-bar .social-links a:hover { color: var(--white); }


/* ==========================================================================
   5. HEADER — ROW 2: LOGO BAR
   ========================================================================== */

.logo-bar {
  background: var(--white);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--slate-200);
}
.logo-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-fod {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  display: flex;
  align-items: center;
}
.logo-o-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 -0.05rem;
}
.logo-o-circle {
  width: 2.2rem;
  height: 2.2rem;
  border: 3.5px solid var(--red-700);
  border-radius: 50%;
  position: relative;
}
.logo-o-slash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.6rem;
  height: 3.5px;
  background: var(--red-700);
  transform: translate(-50%, -50%) rotate(-45deg);
  border-radius: 2px;
}
.logo-orbit {
  position: absolute;
  width: 3.2rem;
  height: 1.1rem;
  border: 2px solid var(--red-500);
  border-radius: 50%;
  transform: rotate(-25deg);
  opacity: 0.5;
  top: 50%;
  left: 50%;
  margin-top: -0.55rem;
  margin-left: -1.6rem;
}
.logo-orbit-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--red-500);
  border-radius: 50%;
  top: -2px;
  right: 0.25rem;
}
.logo-news {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red-700);
}
.logo-tagline {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate-500);
  margin-top: 0.125rem;
  font-weight: 500;
}
.header-search-form {
  display: flex;
  align-items: center;
  gap: 0;
}
.header-search {
  width: 200px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  background: var(--slate-50);
  color: var(--slate-700);
  outline: none;
  transition: border-color 0.2s;
}
.header-search:focus { border-color: var(--red-700); }
.header-search::placeholder { color: var(--slate-400); }
.btn-search-go {
  padding: 0.45rem 0.625rem;
  background: var(--slate-800);
  color: var(--white);
  border: 1px solid var(--slate-800);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-search-go:hover { background: var(--red-700); border-color: var(--red-700); }


/* ==========================================================================
   6. HEADER — ROW 3: CATEGORY NAV (sticky)
   ========================================================================== */

.category-nav {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.625rem 0;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.cat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
  border: 2px solid transparent;
  background: var(--red-700);
  color: #fff;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.cat-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.cat-btn.active {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cat-btn-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

/* Category-specific badge colors — mirrors .cat-badge overrides */
.cat-btn.cat-aviation     { background: var(--cat-aviation);     color: #000;    border-color: #000; }
.cat-btn.cat-space-leo    { background: var(--cat-space);        color: #fff;    border-color: #64748b; }
.cat-btn.cat-military     { background: var(--cat-military);     color: #f0e8d0; border-color: #3d4f21; letter-spacing: 0.1em; }
.cat-btn.cat-motorsport   { background: var(--cat-motorsport);   color: #fff;    border-color: #1a1a1a; }
.cat-btn.cat-industrial   { background: var(--cat-industrial);   color: #fff;    border-color: #1a1a1a; }
.cat-btn.cat-prevention   { background: var(--cat-prevention);   color: #000;    border-color: #0a3d1f; }
.cat-btn.cat-infrastructure { background: var(--cat-infrastructure); color: #000; border-color: #000; }
.cat-btn.cat-analysis     { background: var(--cat-analysis);     color: #1a1a1a; border-color: #1a1a1a; }


/* ==========================================================================
   7. SECTION UTILITIES
   ========================================================================== */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-header .view-all {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-700);
  transition: opacity 0.2s;
  white-space: nowrap;
}
.section-header .view-all:hover { opacity: 0.7; }

.section-accent {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}


/* ==========================================================================
   8. CATEGORY BADGES
   ========================================================================== */

/* Badge over card images (absolute positioned) */
.cat-badge {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.65rem;
  display: inline-block;
}

/* Badge positioned over image */
.img-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  font-size: 0.55rem;
  z-index: 1;
}

/* Article category badge & card badge (PHP-generated) */
.article-category,
.category-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--red-700);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

/* Category color mappings for both inline badges and PHP badges */
.cat-badge.cat-aviation,
.category-badge.cat-aviation,
.article-category.cat-aviation,
.related-card-cat.cat-aviation       { background: var(--cat-aviation); color: #000; border: 2px solid #000; }

.cat-badge.cat-space-leo,
.category-badge.cat-space-leo,
.article-category.cat-space-leo,
.related-card-cat.cat-space-leo      { background: var(--cat-space); color: #fff; border: 2px solid #64748b; }

.cat-badge.cat-military,
.category-badge.cat-military,
.article-category.cat-military,
.related-card-cat.cat-military       { background: var(--cat-military); color: #f0e8d0; border: 2px solid #3d4f21; letter-spacing: 0.1em; }

.cat-badge.cat-motorsport,
.category-badge.cat-motorsport,
.article-category.cat-motorsport,
.related-card-cat.cat-motorsport     { background: var(--cat-motorsport); color: #fff; border: 2px solid #1a1a1a; }

.cat-badge.cat-industrial,
.category-badge.cat-industrial,
.article-category.cat-industrial,
.related-card-cat.cat-industrial     { background: var(--cat-industrial); color: #fff; border: 2px solid #1a1a1a; }

.cat-badge.cat-prevention,
.category-badge.cat-prevention,
.article-category.cat-prevention,
.related-card-cat.cat-prevention     { background: var(--cat-prevention); color: #000; border: 2px solid #0a3d1f; }

.cat-badge.cat-infrastructure,
.category-badge.cat-infrastructure,
.article-category.cat-infrastructure,
.related-card-cat.cat-infrastructure { background: var(--cat-infrastructure); color: #000 !important; border: 2px solid #000; }

.cat-badge.cat-analysis,
.category-badge.cat-analysis,
.article-category.cat-analysis,
.related-card-cat.cat-analysis       { background: var(--cat-analysis); color: #1a1a1a !important; border: 1.5px solid #1a1a1a; }

/* Category tag (text color, no background) */
/* cat-tag: same badge treatment as cat-badge, slightly smaller for inline use */
.cat-tag {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  color: var(--white);
}
.cat-tag.cat-aviation      { background: var(--cat-aviation); color: #000; border: 1.5px solid #000; }
.cat-tag.cat-space-leo     { background: var(--cat-space); color: #fff; border: 1.5px solid #64748b; }
.cat-tag.cat-military      { background: var(--cat-military); color: #f0e8d0; border: 1.5px solid #3d4f21; letter-spacing: 0.1em; }
.cat-tag.cat-motorsport    { background: var(--cat-motorsport); color: #fff; border: 1.5px solid #1a1a1a; }
.cat-tag.cat-industrial    { background: var(--cat-industrial); color: #fff; border: 1.5px solid #1a1a1a; }
.cat-tag.cat-prevention    { background: var(--cat-prevention); color: #000; border: 1.5px solid #0a3d1f; }
.cat-tag.cat-infrastructure{ background: var(--cat-infrastructure); color: #000; border: 1.5px solid #000; }
.cat-tag.cat-analysis      { background: var(--cat-analysis); color: #1a1a1a; border: 1.5px solid #1a1a1a; }


/* ==========================================================================
   9. HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 1.75rem 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
}

/* Main featured story */
.hero-main {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.hero-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.hero-main-img {
  height: 380px;
  background: var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-main-img .cat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
}
.hero-no-img {
  height: 380px;
  background: var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 4rem;
}
.hero-main-body {
  padding: 1.5rem 1.75rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero-main-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.hero-main:hover .hero-main-body h2 { color: var(--red-700); }
.hero-main-body p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-600);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--slate-400);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--slate-100);
}
.hero-meta .meta-sep { color: var(--slate-300); }

/* Secondary stories stack */
.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.secondary-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--slate-200);
  display: flex;
  gap: 1rem;
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  align-items: flex-start;
}
.secondary-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.secondary-card-img {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  background: var(--slate-200);
  flex-shrink: 0;
  overflow: hidden;
}
.secondary-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.secondary-card-text {
  flex: 1;
  min-width: 0;
}
.secondary-card-text h3 {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--slate-800);
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.secondary-card:hover h3 { color: var(--red-700); }
.secondary-card-text .card-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--slate-400);
}


/* ==========================================================================
   10. LATEST NEWS SECTION
   ========================================================================== */

.latest-section {
  padding: 2rem 0;
}
.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.latest-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.latest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.latest-card-img {
  height: 140px;
  background: var(--slate-200);
  position: relative;
  overflow: hidden;
}
.latest-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.latest-card-img .cat-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.55rem;
}
.latest-card-body {
  padding: 1rem 1.125rem 1.125rem;
}
.latest-card-body h3 {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--slate-800);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-card:hover h3 { color: var(--red-700); }
.latest-card-body p {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.latest-card-body .card-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--slate-400);
}


/* ==========================================================================
   11. INLINE AD (between sections)
   ========================================================================== */

.inline-ad {
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  overflow: hidden;
  margin: 1.5rem 0;
}
.inline-ad .ad-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-400);
  padding: 0.375rem 0.75rem 0;
}
.ad-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-400);
  text-align: right;
  padding: 0.375rem 0.75rem 0;
}


/* ==========================================================================
   12. CATEGORY SECTIONS (2-col: stories + sidebar)
   ========================================================================== */

.category-section {
  padding: 1.75rem 0;
  border-top: 1px solid var(--slate-200);
}
.category-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.cat-stories {
  display: flex;
  flex-direction: column;
}
.cat-story {
  display: flex;
  gap: 1.25rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--slate-100);
  align-items: flex-start;
  transition: background 0.15s;
}
.cat-story:first-child { padding-top: 0; }
.cat-story:last-child  { border-bottom: none; }
.cat-story-img {
  width: 180px;
  height: 120px;
  border-radius: 8px;
  background: var(--slate-200);
  flex-shrink: 0;
  overflow: hidden;
}
.cat-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-story-text { flex: 1; min-width: 0; }
.cat-story-text h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--slate-800);
  margin-bottom: 0.35rem;
}
.cat-story:hover h3 { color: var(--red-700); }
.cat-story-text p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.cat-story-text .card-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--slate-400);
}


/* ==========================================================================
   13. HOMEPAGE SIDEBAR (& ARTICLE SIDEBAR SHARED STYLES)
   ========================================================================== */

.homepage-sidebar {
  position: sticky;
  top: 4rem;
}
.sidebar-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--slate-200);
  margin-bottom: 1.5rem;
}
.sidebar-card h3 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}
.sidebar-card .sidebar-desc {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-form input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  outline: none;
  color: var(--slate-700);
  background: var(--white);
}
.sidebar-form input:focus { border-color: var(--red-700); }
.sidebar-form input::placeholder { color: var(--slate-300); }
.sidebar-form button {
  padding: 0.55rem;
  background: var(--red-700);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-form button:hover { background: var(--red-800); }
.sidebar-ad {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.sidebar-ad .ad-label {
  text-align: right;
  padding: 0.375rem 0.75rem 0;
}


/* ==========================================================================
   14. NEWSLETTER CTA BANNER
   ========================================================================== */

.newsletter-banner {
  background: var(--slate-900);
  padding: 2.5rem 0;
  margin: 1rem 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.newsletter-text h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.newsletter-text p {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--slate-400);
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: 0.65rem 1rem;
  border: 1px solid var(--slate-600);
  border-radius: 6px;
  background: var(--slate-800);
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-ui);
  flex: 1;
  min-width: 140px;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--red-500); }
.newsletter-form input::placeholder { color: var(--slate-500); }
.newsletter-form button {
  padding: 0.65rem 1.5rem;
  background: var(--red-700);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--red-600); }


/* ==========================================================================
   15. ARTICLE PAGE LAYOUT
   ========================================================================== */

.article-page {
  padding: 2rem 0 4rem;
}
.article-page > .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}
.breadcrumbs ol {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
}
.breadcrumbs li:not(:first-child)::before {
  content: "›";
  margin: 0 0.5rem;
  color: var(--slate-300);
  font-size: 1em;
  font-weight: 400;
  line-height: 1;
}
.breadcrumbs a {
  color: var(--slate-500);
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--red-700); }
.breadcrumbs .sep {
  margin: 0 0.5rem;
  color: var(--slate-300);
  font-weight: 300;
}
.breadcrumbs .current {
  color: var(--slate-700);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 320px;
}

/* Article card */
.article-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 3rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  border: 1px solid var(--slate-200);
}

/* Headline */
.article-headline {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* Meta line */
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--slate-200);
  flex-wrap: wrap;
}
.meta-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  font-family: var(--font-ui);
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meta-author span { font-weight: 600; color: var(--slate-700); }
.meta-sep { color: var(--slate-300); }

/* Article body */
.article-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--slate-700);
}
.article-body p {
  margin-bottom: 1.25rem;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--slate-900);
  margin: 2.25rem 0 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--slate-900);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.25;
}
.article-body h4 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-800);
  margin: 1.25rem 0 0.5rem;
}
.article-body a {
  color: var(--red-700);
  text-decoration: underline;
  text-decoration-color: rgba(185,28,28,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
.article-body a:hover {
  text-decoration-color: var(--red-700);
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.article-body li {
  margin-bottom: 0.375rem;
}
.article-body blockquote {
  border-left: 4px solid var(--red-700);
  padding: 0.75rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--slate-50);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--slate-600);
}
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }

/* Hero image — full bleed within article card */
.hero-image {
  margin: 0 -3rem 1.75rem;
  position: relative;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-image figcaption {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--slate-500);
  padding: 0.625rem 3rem 0.625rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--slate-100);
}
.hero-image figcaption .credit {
  color: var(--slate-400);
  font-style: italic;
}

/* Mid-article image */
.article-image {
  margin: 1.75rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
}
.article-image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-image figcaption {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--slate-500);
  padding: 0.5rem 0.875rem;
  background: var(--slate-50);
  line-height: 1.5;
}
.article-image figcaption .credit {
  color: var(--slate-400);
  font-style: italic;
}

/* Dateline */
.dateline strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Divider */
.article-divider {
  border: none;
  border-top: 1px solid var(--slate-200);
  margin: 2rem 0;
  opacity: 0.6;
}

/* Source box */
.source-box {
  background: var(--slate-50);
  border-left: 4px solid var(--red-700);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.source-box h3 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}
.source-box p {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin: 0;
}
.source-box a {
  color: var(--red-700);
  text-decoration: none;
  font-weight: 500;
}
.source-box a:hover { text-decoration: underline; }

/* Related coverage inline */
.related-inline {
  background: var(--slate-50);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.related-inline h3 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}
.related-inline ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-inline li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--slate-200);
}
.related-inline li:last-child { border-bottom: none; }
.related-inline a {
  font-family: var(--font-ui);
  color: var(--red-700);
  font-size: 0.85rem;
  font-weight: 500;
}
.related-inline a:hover { text-decoration: underline; }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
  margin-top: 2rem;
}
.share-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.2s;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-500);
  font-size: 0.85rem;
  cursor: pointer;
}
.share-btn:hover {
  border-color: transparent;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.share-btn.x:hover        { background: var(--slate-900); }
.share-btn.linkedin:hover  { background: #0077b5; }
.share-btn.email:hover     { background: var(--red-700); }
.share-btn.copy:hover      { background: var(--slate-600); }
.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* In-article ad */
.article-ad {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: var(--white);
}
.article-ad .ad-label {
  text-align: center;
}

/* Post tags */
.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-100);
}
.post-tags__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.post-tags__item {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--slate-100);
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--slate-600);
  transition: all 0.2s;
}
.post-tags__item:hover {
  background: var(--red-700);
  color: var(--white);
}


/* ==========================================================================
   16. ARTICLE SIDEBAR
   ========================================================================== */

.sidebar {
  position: sticky;
  top: 4rem;
}

/* Table of Contents */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--slate-100);
}
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--slate-600);
  font-weight: 500;
  transition: color 0.2s;
}
.toc-list a:hover { color: var(--red-700); }

/* Sidebar related stories */
.sidebar-story {
  display: flex;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--slate-100);
}
.sidebar-story:last-child { border-bottom: none; }
.sidebar-story-img {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  background: var(--slate-200);
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-story-text h4 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.35;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-story-text span {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--slate-400);
}
.sidebar-story:hover .sidebar-story-text h4 { color: var(--red-700); }


/* ==========================================================================
   17. RELATED ARTICLES (below article)
   ========================================================================== */

.related-section {
  padding: 3rem 0;
  border-top: 1px solid var(--slate-200);
}
.related-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.related-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.related-card-img {
  height: 160px;
  background: var(--slate-200);
  overflow: hidden;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card-body {
  padding: 1.25rem;
}
.related-card-cat {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--red-700);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.related-card h3 {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card:hover h3 { color: var(--red-700); }
.related-card p {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--slate-400);
  margin-top: 0.5rem;
}


/* ==========================================================================
   17b. STATIC PAGES (Privacy, Terms, About, Contact)
   ========================================================================== */

/* All static pages get bottom padding */
/* Pages now use article-page grid layout for consistency.
   All pages including About use content+sidebar grid. */

/* Ensure page content images don't overflow the grid column */
.page-template .article-body img,
.page-template .article-body .wp-block-image,
.page-template .article-hero {
  max-width: 100%;
  height: auto;
}
.page-template .article-body .about-hero {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}
/* Legacy page-specific styles removed — pages now use article-body styling */

/* ==========================================================================
   17c. CONTACT FORM 7
   ========================================================================== */

.wpcf7 label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  display: block;
  margin-bottom: 0.25rem;
}
.wpcf7 label .required {
  color: var(--red-600);
}
.wpcf7 .cf7-row {
  margin-bottom: 1.25rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  background: var(--white);
  color: var(--slate-900);
  transition: border-color 0.2s;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}
.wpcf7 textarea {
  min-height: 160px;
  resize: vertical;
}
.wpcf7 input[type="submit"] {
  background: var(--red-700);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.wpcf7 input[type="submit"]:hover {
  background: var(--red-900);
}
.wpcf7-response-output {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

/* ==========================================================================
   18. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand .footer-logo span { color: var(--red-500); }
.footer-brand p {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--slate-400);
  max-width: 300px;
}
.footer-brand p a {
  color: var(--slate-300);
  text-decoration: underline;
}
.footer-brand p a:hover { color: var(--white); }
.footer-attribution {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.footer-attribution-text {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-corp-logo {
  display: block;
  width: 200px;
  height: auto;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-corp-logo:hover {
  opacity: 1;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-family: var(--font-ui);
  color: var(--slate-300);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--slate-500);
  gap: 0.75rem;
}
.footer-bottom a {
  color: var(--slate-400);
}
.footer-bottom a:hover { color: var(--white); }


/* ==========================================================================
   19. AD ZONES
   ========================================================================== */

.ad-zone {
  display: none;
}
.ad-zone.has-ad {
  display: block;
}


/* ==========================================================================
   20. BREAKING NEWS BADGE
   ========================================================================== */

.breaking-badge {
  display: inline-block;
  background: var(--red-700);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}


/* ==========================================================================
   21. ARCHIVE / CATEGORY PAGES
   ========================================================================== */

.archive-page {
  padding: 2rem 0 4rem;
}
.archive-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}
.archive-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.archive-cat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.archive-description {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.6;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.no-content {
  font-family: var(--font-ui);
  color: var(--slate-400);
  text-align: center;
  padding: 3rem 0;
}


/* ==========================================================================
   22. PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
  font-family: var(--font-ui);
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
  background: var(--white);
  transition: all 0.2s;
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--red-700);
  color: var(--white);
  border-color: var(--red-700);
}
.page-numbers.dots {
  border: none;
  background: transparent;
}


/* ==========================================================================
   23. SEARCH PAGE
   ========================================================================== */

/* ── Search Results Page ── */
.search-template {
  background: var(--white);
  padding: 0 0 4rem;
  min-height: 80vh;
}
.search-template .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.search-header {
  padding: 2rem 0 0;
  margin-bottom: 2rem;
}
.search-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.search-header__tile {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.search-header__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  background: var(--slate-800);
  border: 2px solid var(--slate-600);
  flex-shrink: 0;
}
.search-header__badge svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}
.search-header__badge-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  white-space: nowrap;
}
.search-header__info {
  flex: 1;
}
.search-header__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--slate-900);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.search-header__title .search-query {
  color: var(--red-600);
}
.search-header__count {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--slate-500);
  margin: 0 0 0.75rem;
}
.search-header__form {
  max-width: 400px;
}
.search-header__form .search-form {
  display: flex;
  gap: 0.5rem;
}
.search-header__form .search-field {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  color: var(--slate-900);
  font-size: 0.85rem;
}
.search-header__form .search-field::placeholder {
  color: var(--slate-400);
}
.search-header__form .search-submit {
  padding: 0.5rem 1rem;
  background: var(--red-600);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.search-header__form .search-submit:hover {
  background: var(--red-700);
}

/* Search content + sidebar layout */
.search-template .content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* Search results grid */
.search-template .posts-grid {
  display: grid;
  gap: 1.25rem;
}
.search-template .posts-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* Post cards inside search — light theme matching homepage */
.search-template .post-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}
.search-template .post-card:hover {
  border-color: var(--red-600);
  transform: translateY(-2px);
}
.search-template .post-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.search-template .post-card__image-placeholder {
  width: 100%;
  height: 180px;
  background: var(--slate-100);
}
.search-template .post-card__body {
  padding: 1rem;
}
.search-template .post-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
.search-template .post-card__title a {
  color: var(--slate-900);
  text-decoration: none;
}
.search-template .post-card__title a:hover {
  color: var(--red-600);
}
.search-template .post-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0 0 0.75rem;
}
.search-template .post-card__meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Pagination */
.search-template .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.search-template .nav-links a,
.search-template .nav-links span {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.search-template .nav-links a {
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  text-decoration: none;
}
.search-template .nav-links a:hover {
  background: var(--slate-50);
  color: var(--slate-900);
}
.search-template .nav-links .current {
  background: var(--red-600);
  color: var(--white);
  border: 1px solid var(--red-600);
}

/* No results state */
.search-template .no-results {
  text-align: center;
  padding: 3rem 1rem;
}
.search-template .no-results__icon {
  color: var(--slate-400);
  margin-bottom: 1rem;
}
.search-template .no-results__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}
.search-template .no-results__message {
  color: var(--slate-600);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* Ad zone wrapper */
.search-template .ad-zone-wrapper {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

/* Sidebar in search */
.search-template .sidebar {
  position: sticky;
  top: 1rem;
}

/* Search page legacy class compat */
.search-page {
  padding: 2rem 0 4rem;
}
.search-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .search-template .posts-grid--3col { grid-template-columns: repeat(2, 1fr); }
  .search-template .content-with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .search-template .posts-grid--3col { grid-template-columns: 1fr; }
  .search-header__title { font-size: 1.3rem; }
}


/* ==========================================================================
   24. 404 PAGE
   ========================================================================== */

.error-404-page {
  text-align: center;
  padding: 5rem 1.5rem;
}
.error-404-page .error-num {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--slate-200);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-404-page h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--slate-700);
  margin-bottom: 1rem;
}
.error-404-page p {
  font-family: var(--font-ui);
  color: var(--slate-500);
  margin-bottom: 2rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--red-700);
  color: var(--white);
  border-radius: 6px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--red-800); }


/* ==========================================================================
   25. RESPONSIVE — TABLET (≤ 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-layout {
    grid-template-columns: 1fr;
  }
  .homepage-sidebar {
    position: static;
  }
  .article-page > .container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   26. RESPONSIVE — MOBILE (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .trending { display: none; }
  .logo-fod { font-size: 2rem; }
  .logo-news { font-size: 2rem; }
  .logo-o-wrap { width: 1.85rem; height: 1.85rem; }
  .logo-o-circle { width: 1.6rem; height: 1.6rem; }
  .logo-o-slash { width: 2.1rem; }
  .logo-bar .container {
    flex-direction: column;
    gap: 0.625rem;
    align-items: stretch;
  }
  .header-search-form {
    width: 100%;
  }
  .header-search {
    flex: 1;
    width: auto;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  .cat-btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
  }
  .hero-secondary {
    grid-template-columns: 1fr;
  }
  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-card {
    padding: 1.5rem;
  }
  .hero-image {
    margin: 0 -1.5rem 1.25rem;
  }
  .hero-image figcaption {
    padding: 0.5rem 1.5rem 0.5rem;
  }
  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  .newsletter-form input {
    width: 100%;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .hero-main-img { height: 220px; }
}

@media (max-width: 480px) {
  .article-meta {
    gap: 0.5rem;
  }
  .share-bar {
    flex-wrap: wrap;
  }
  .latest-grid {
    grid-template-columns: 1fr;
  }
  .hero-secondary {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   27. WORDPRESS ALIGNMENT CLASSES
   ========================================================================== */

.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}
.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}
.aligncenter {
  display: block;
  margin: 0 auto 1rem;
}
.alignwide {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}
.alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
}
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.375rem;
  text-align: center;
}


/* ==========================================================================
   29. ARCHIVE 3-TIER LAYOUT
   ========================================================================== */

/* ── Category Header Tile ──────────────────────────────────────────────── */

/* ── Archive layout: content + sidebar ─────────────────────────────────── */

.archive-template .content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.category-header {
  padding: 2rem 0 0;
}

/* ── Base category tile ─────────────────────────────────────────────────── */

.category-tile {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.category-tile__sign {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  flex-shrink: 0;
  /* Default style — overridden per category */
  background: var(--slate-800);
  border: 2px solid var(--slate-600);
}

.category-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.category-tile__icon svg {
  width: 20px;
  height: 20px;
}

.category-tile__label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
}

a.category-tile {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
a.category-tile:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.about-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.category-tile__brief {
  flex: 1;
  min-width: 0;
}

.category-tile__desc {
  font-family: var(--font-body);
  color: var(--slate-600);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 550px;
}

.category-tile__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.category-tile__count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--slate-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--slate-100);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.category-tile__updated {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--slate-400);
  letter-spacing: 0.04em;
}

/* ── Per-category sign badge colors ──────────────────────────────────── */
/* All tiles use the white/gray base. Badges get category color + black outline. */

.category-tile__icon svg {
  width: 22px;
  height: 22px;
}

/* Aviation */
.category-tile--aviation .category-tile__sign {
  background: #F0B800;
  border: 2px solid #1a1a1a;
}
.category-tile--aviation .category-tile__label { color: #1a1a1a; }
.category-tile--aviation .category-tile__icon { color: #1a1a1a; }

/* Space & LEO */
.category-tile--space-leo .category-tile__sign,
.category-tile--space .category-tile__sign {
  background: #0a0a0a;
  border: 2px solid #0a0a0a;
}
.category-tile--space-leo .category-tile__label,
.category-tile--space .category-tile__label { color: #fff; }
.category-tile--space-leo .category-tile__icon,
.category-tile--space .category-tile__icon { color: #999; }

/* (Space lead badge overrides consolidated below) */

/* Military & Defense */
.category-tile--military-defense .category-tile__sign,
.category-tile--military .category-tile__sign {
  background: #556B2F;
  border: 2px solid #1a1a1a;
}
.category-tile--military-defense .category-tile__label,
.category-tile--military .category-tile__label { color: #fff; }
.category-tile--military-defense .category-tile__icon,
.category-tile--military .category-tile__icon { color: #fff; }

/* Industrial */
.category-tile--industrial .category-tile__sign {
  background: #8B8B8B;
  border: 2px solid #1a1a1a;
}
.category-tile--industrial .category-tile__label { color: #fff; }
.category-tile--industrial .category-tile__icon { color: #fff; }

/* Prevention & Technology */
.category-tile--prevention-technology .category-tile__sign,
.category-tile--prevention .category-tile__sign {
  background: #00CC66;
  border: 2px solid #1a1a1a;
}
.category-tile--prevention-technology .category-tile__label,
.category-tile--prevention .category-tile__label { color: #1a1a1a; }
.category-tile--prevention-technology .category-tile__icon,
.category-tile--prevention .category-tile__icon { color: #1a1a1a; }

/* Motorsport */
.category-tile--motorsport .category-tile__sign {
  background: #CC0000;
  border: 2px solid #1a1a1a;
}
.category-tile--motorsport .category-tile__label { color: #fff; }
.category-tile--motorsport .category-tile__icon { color: #fff; }

/* Infrastructure */
.category-tile--infrastructure .category-tile__sign {
  background: #FF6600;
  border: 2px solid #000;
}
.category-tile--infrastructure .category-tile__label { color: #000; }
.category-tile--infrastructure .category-tile__icon { color: #000; }

/* Analysis & Opinion */
.category-tile--analysis-opinion .category-tile__sign,
.category-tile--analysis .category-tile__sign {
  background: #ffffff;
  border: 2px solid #1a1a1a;
}
.category-tile--analysis-opinion .category-tile__label,
.category-tile--analysis .category-tile__label { color: #1a1a1a; }
.category-tile--analysis-opinion .category-tile__icon,
.category-tile--analysis .category-tile__icon { color: #1a1a1a; }

/* (Lead badge overrides consolidated below) */

/* ── Empty category state ───────────────────────────────────────────── */

.no-results__empty-state {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px dashed var(--slate-300);
  border-radius: 8px;
  background: var(--slate-50);
}

.no-results__message {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--slate-500);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.no-results__home-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-700);
  text-decoration: none;
}

.no-results__home-link:hover {
  text-decoration: underline;
}

/* ── Card badge overlay (top-left on image) ────────────────────────────── */

.post-card__image {
  position: relative;
}

.post-card__badge-overlay {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 2;
}

.post-card__badge-overlay .category-badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
}

/* Hide the old category badge position in the body when overlay exists */
.post-card__body > .post-card__category {
  display: none;
}

/* ── Card typography & spacing (standardized) ──────────────────────────── */

.post-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.post-card__image {
  overflow: hidden;
}

.post-card__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card__body {
  padding: 0.75rem 1rem 1rem;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--slate-900);
  margin: 0 0 0.4rem;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--red-700);
}

.post-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--slate-400);
}

/* Lead badge overrides: match category badge treatment */
/* Light backgrounds → black text + black border */
.category--aviation .archive-lead-badge,
.archive-lead-badge[style*="F0B800"],
.category--industrial .archive-lead-badge,
.archive-lead-badge[style*="FF6600"],
.category--prevention-technology .archive-lead-badge,
.category--prevention .archive-lead-badge,
.archive-lead-badge[style*="00CC66"],
.category--infrastructure .archive-lead-badge,
.category--analysis-opinion .archive-lead-badge,
.category--analysis .archive-lead-badge {
  color: #1a1a1a !important;
  border: 2px solid #1a1a1a;
}

/* Dark backgrounds → white text */
.category--military-defense .archive-lead-badge,
.category--military .archive-lead-badge,
.category--space-leo .archive-lead-badge,
.category--space .archive-lead-badge {
  color: #fff !important;
  border: 2px solid #1a1a1a;
}

/* ── Lead Story ─────────────────────────────────────────────────────────── */

.archive-lead-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.archive-lead-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.archive-lead-img {
  position: relative;
  min-height: 300px;
  background: var(--slate-200);
  overflow: hidden;
}

.archive-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-lead-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 100%);
}

.archive-lead-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  border: 2px solid #1a1a1a;
}

.archive-lead-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-lead-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-700);
  margin-bottom: 0.75rem;
}

.archive-lead-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
  transition: color 0.15s;
}

.archive-lead-story:hover .archive-lead-body h2 {
  color: var(--red-700);
}

.archive-lead-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--slate-600);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-lead-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--slate-400);
  padding-top: 0.75rem;
  border-top: 1px solid var(--slate-100);
}

.archive-lead-meta strong {
  color: var(--slate-500);
}

/* ── Card Grid (2-col, posts 2–5) ──────────────────────────────────────── */

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

/* ── Earlier Coverage (posts 6+) ───────────────────────────────────────── */

.archive-earlier {
  margin-top: 2rem;
  border-top: 1px solid var(--slate-200);
  padding-top: 1.5rem;
}

.archive-earlier__heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--slate-800);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--red-700);
  display: inline-block;
}

.archive-list-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--slate-100);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.archive-list-item:last-child {
  border-bottom: none;
}

.archive-list-item:hover {
  background: var(--slate-50);
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 8px;
}

.archive-list-thumb {
  width: 140px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.archive-list-thumb-placeholder {
  width: 140px;
  height: 90px;
  border-radius: 6px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.archive-list-text {
  flex: 1;
  min-width: 0;
}

.archive-list-item h3 {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--slate-800);
  margin-bottom: 0.25rem;
  transition: color 0.15s;
}

.archive-list-item:hover h3 {
  color: var(--red-700);
}

.archive-list-excerpt {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.archive-list-meta {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--slate-400);
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .archive-template .content-with-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .category-tile {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .category-tile__label {
    font-size: 1.15rem;
  }

  .archive-lead-story {
    grid-template-columns: 1fr;
  }

  .archive-lead-img {
    min-height: 220px;
  }

  .archive-cards-grid {
    grid-template-columns: 1fr;
  }

  .archive-list-thumb,
  .archive-list-thumb-placeholder {
    width: 100px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .category-header {
    padding: 1.25rem 0 0;
  }

  .archive-lead-body {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   28. PRINT STYLES
   ========================================================================== */

@media print {
  .utility-bar,
  .logo-bar .header-cta,
  .category-nav,
  .sidebar,
  .related-section,
  .newsletter-banner,
  .share-bar,
  .site-footer,
  .ad-zone,
  .article-ad { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .article-card { box-shadow: none; border: none; padding: 0; }
  .article-page > .container { display: block; }
  a { text-decoration: underline; color: #000; }
}

/* ── Hide reCAPTCHA v3 floating badge ── */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
