/*
Theme Name: Health & Science Africa
Theme URI: https://healthandscienceafrica.com
Author: Health & Science Africa
Author URI: https://healthandscienceafrica.com
Description: A clean, minimal editorial WordPress theme for health and science journalism across Africa. Built for Elementor, Classic Editor, and Gutenberg. Newspaper-style layout with category-driven homepage sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hsa
Tags: news, blog, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, rtl-language-support, translation-ready, wide-blocks
*/

/* ============================================================
   DESIGN TOKENS
   All colours, fonts, spacing defined here.
   Edit this file to restyle the entire site.
   ============================================================ */
:root {
  /* Colours */
  --hsa-white:       #FFFFFF;
  --hsa-off:         #F9F7F2;
  --hsa-ink:         #0D0D0D;
  --hsa-body:        #1A1A1A;
  --hsa-muted:       #5C5C5C;
  --hsa-light:       #999999;
  --hsa-border:      #E2E0DA;
  --hsa-border-dark: #252525;
  --hsa-accent:      #B8860B;
  --hsa-accent-dark: #8B6508;
  --hsa-accent-bg:   #FBF5E6;
  --hsa-gold-bright: #D4A017;
  --hsa-red:         #C8102E;
  --hsa-dark-bg:     #0D0D0D;

  /* Typography */
  --hsa-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --hsa-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --hsa-container: 1280px;
  --hsa-gap:       24px;
  --hsa-gap-sm:    16px;
  --hsa-section:   3rem;

  /* Misc */
  --hsa-radius:    2px;
  --hsa-shadow:    0 1px 3px rgba(0,0,0,.06);
  --hsa-transition: .18s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--hsa-white);
  color: var(--hsa-body);
  font-family: var(--hsa-sans);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--hsa-transition);
}

a:hover { color: var(--hsa-accent); }

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.hsa-container {
  max-width: var(--hsa-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--hsa-gap);
  padding-right: var(--hsa-gap);
}

.hsa-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--hsa-gap);
}

/* Column spans */
.hsa-col-12 { grid-column: span 12; }
.hsa-col-9  { grid-column: span 9;  }
.hsa-col-8  { grid-column: span 8;  }
.hsa-col-6  { grid-column: span 6;  }
.hsa-col-4  { grid-column: span 4;  }
.hsa-col-3  { grid-column: span 3;  }

/* Sidebar layout */
.hsa-layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.hsa-layout-sidebar .hsa-sidebar {
  position: sticky;
  top: 80px;
}

/* Lead + stack (1 large + list) */
.hsa-lead-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hsa-gap);
}

/* ============================================================
   IMAGE PLACEHOLDERS (removed in production, replaced by real images)
   ============================================================ */
.hsa-img-placeholder {
  background: #EBEBEB;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hsa-img-placeholder::after {
  content: 'IMAGE';
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #CCCCCC;
}

.hsa-img-placeholder--dark {
  background: #1C1C1C;
}

.hsa-img-placeholder--dark::after {
  color: #444;
}

/* ============================================================
   TYPOGRAPHY — GLOBAL
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hsa-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--hsa-ink);
}

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(22px, 3vw, 30px); }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 17px; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--hsa-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--hsa-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--hsa-ink);
  background: var(--hsa-accent-bg);
}

blockquote cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  font-family: var(--hsa-sans);
  color: var(--hsa-muted);
  margin-top: .5rem;
}

/* ============================================================
   TOP BAR
   ============================================================ */
#hsa-topbar {
  background: var(--hsa-ink);
  height: 34px;
  display: flex;
  align-items: center;
}

.hsa-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.hsa-topbar-date {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: .04em;
  flex-shrink: 0;
}

.hsa-topbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hsa-topbar-nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.hsa-topbar-nav a:hover { color: #fff; }

.hsa-topbar-cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--hsa-accent);
  color: #fff;
  padding: 4px 14px;
  flex-shrink: 0;
  transition: background var(--hsa-transition);
  border: 1px solid var(--hsa-gold-bright);
}

.hsa-topbar-cta:hover {
  background: var(--hsa-gold-bright);
  color: var(--hsa-ink);
}

/* ============================================================
   HEADER
   ============================================================ */
#hsa-header {
  background: var(--hsa-white);
  border-bottom: 1px solid var(--hsa-border);
  position: sticky;
  top: 0;
  z-index: 500;
  min-height: 80px;
  transition: box-shadow .2s;
}

#hsa-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}

.hsa-header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.hsa-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
  text-decoration: none;
}

.hsa-logo:hover { color: inherit; }

.hsa-logo-name {
  font-family: var(--hsa-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--hsa-ink);
  letter-spacing: -.02em;
  line-height: 1;
}

.hsa-logo-tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hsa-accent);
}

/* ── CUSTOM LOGO FIX ──
   WordPress wraps the logo in .custom-logo-link > img.custom-logo
   We target all possible selectors to ensure it never overflows.
   ─────────────────────────────────────────────────────────────── */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.custom-logo-link img,
.custom-logo-link .custom-logo,
img.custom-logo,
.hsa-logo img,
.hsa-logo .custom-logo-link img {
  max-height: 68px !important;
  width: auto   !important;
  max-width: 260px !important;
  height: auto  !important;
  display: block;
  object-fit: contain;
}

/* Tighter on mobile */
@media (max-width: 768px) {
  .custom-logo-link img,
  img.custom-logo {
    max-height: 52px !important;
    max-width: 200px !important;
  }
}

.hsa-custom-logo {
  max-height: 68px;
  max-width: 260px;
  width: auto;
  height: auto;
}

/* Primary nav */
#hsa-primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

#hsa-primary-nav > li {
  position: relative;
}

#hsa-primary-nav > li > a {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--hsa-muted);
  padding: 8px 13px;
  transition: color var(--hsa-transition);
}

#hsa-primary-nav > li > a:hover,
#hsa-primary-nav > li.current-menu-item > a,
#hsa-primary-nav > li.current-menu-ancestor > a {
  color: var(--hsa-ink);
}

/* Dropdown */
#hsa-primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--hsa-white);
  border: 1px solid var(--hsa-border);
  border-top: 2px solid var(--hsa-accent);
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all .18s;
  z-index: 600;
  list-style: none;
}

#hsa-primary-nav li:hover > .sub-menu,
#hsa-primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

#hsa-primary-nav .sub-menu li a {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--hsa-body);
  padding: 9px 16px;
  border-bottom: 1px solid var(--hsa-border);
  transition: all var(--hsa-transition);
}

#hsa-primary-nav .sub-menu li:last-child a {
  border-bottom: none;
}

#hsa-primary-nav .sub-menu li a:hover {
  color: var(--hsa-accent);
  padding-left: 22px;
}

/* Header actions */
.hsa-header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.hsa-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hsa-border);
  color: var(--hsa-muted);
  transition: all var(--hsa-transition);
}

.hsa-search-toggle:hover {
  border-color: var(--hsa-ink);
  color: var(--hsa-ink);
}

.hsa-search-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hsa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 18px;
  transition: all var(--hsa-transition);
  border: none;
  cursor: pointer;
}

.hsa-btn--primary {
  background: var(--hsa-accent);
  color: #fff;
  border: 1px solid var(--hsa-gold-bright);
}

.hsa-btn--primary:hover {
  background: var(--hsa-gold-bright);
  color: var(--hsa-ink);
}

.hsa-btn--dark {
  background: var(--hsa-ink);
  color: #fff;
}

.hsa-btn--dark:hover {
  background: var(--hsa-accent);
  color: #fff;
}

.hsa-btn--outline {
  border: 1px solid var(--hsa-ink);
  color: var(--hsa-ink);
  background: transparent;
}

.hsa-btn--outline:hover {
  background: var(--hsa-ink);
  color: #fff;
}

/* Mobile hamburger */
.hsa-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.hsa-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--hsa-ink);
  transition: all .2s;
}

.hsa-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hsa-hamburger.is-open span:nth-child(2) { opacity: 0; }
.hsa-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
#hsa-mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hsa-white);
  z-index: 490;
  overflow-y: auto;
  padding: 1.5rem var(--hsa-gap);
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--hsa-border);
}

#hsa-mobile-menu.is-open { display: flex; }

.hsa-mobile-nav-item {
  font-size: 15px;
  font-weight: 600;
  color: var(--hsa-ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--hsa-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  letter-spacing: .01em;
}

.hsa-mobile-sub {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
}

.hsa-mobile-sub.is-open { display: flex; }

.hsa-mobile-sub a {
  font-size: 13px;
  font-weight: 500;
  color: var(--hsa-muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--hsa-border);
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
#hsa-ticker {
  background: var(--hsa-off);
  border-bottom: 1px solid var(--hsa-border);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hsa-ticker-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--hsa-red);
  color: #fff;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.hsa-ticker-wrap {
  overflow: hidden;
  flex: 1;
}

.hsa-ticker-track {
  display: flex;
  animation: hsa-ticker 55s linear infinite;
  white-space: nowrap;
}

.hsa-ticker-item {
  font-size: 12px;
  font-weight: 400;
  color: var(--hsa-body);
  padding: 0 2rem;
  border-right: 1px solid var(--hsa-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}

.hsa-ticker-item:hover { color: var(--hsa-accent); }

.hsa-ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hsa-accent);
  flex-shrink: 0;
}

@keyframes hsa-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
#hsa-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 900;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
}

#hsa-search-overlay.is-open { display: flex; }

.hsa-search-box {
  width: 100%;
  max-width: 680px;
  padding: 0 var(--hsa-gap);
}

.hsa-search-box form {
  display: flex;
  border-bottom: 2px solid var(--hsa-accent);
}

.hsa-search-box input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--hsa-serif);
  font-size: clamp(22px, 4vw, 36px);
  color: #fff;
  padding: .5rem 0;
}

.hsa-search-box input::placeholder { color: rgba(255,255,255,.3); }

.hsa-search-box button[type="submit"] {
  background: transparent;
  color: rgba(255,255,255,.5);
  padding: .5rem;
  font-size: 20px;
}

.hsa-search-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(255,255,255,.5);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--hsa-transition);
}

.hsa-search-close:hover { color: #fff; }

/* ============================================================
   SECTION LABEL
   ============================================================ */
.hsa-section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hsa-border);
}

.hsa-section-label__text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hsa-ink);
  padding-left: 11px;
  border-left: 3px solid var(--hsa-accent);
  white-space: nowrap;
  text-shadow: none;
}

.hsa-section-label__line {
  flex: 1;
  height: 1px;
  background: var(--hsa-border);
}

.hsa-section-label__more {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hsa-accent);
  white-space: nowrap;
}

.hsa-section-label__more:hover {
  text-decoration: underline;
  color: var(--hsa-accent);
}

/* Category tag */
.hsa-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hsa-accent);
  margin-bottom: .45rem;
}

.hsa-cat:hover { text-decoration: underline; color: var(--hsa-accent); }
.hsa-cat--red   { color: var(--hsa-red); }
.hsa-cat--white { color: rgba(255,255,255,.8); }

/* Post meta */
.hsa-meta {
  font-size: 14px;
  color: var(--hsa-muted);
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.hsa-meta a { color: var(--hsa-muted); font-weight: 600; }
.hsa-meta a:hover { color: var(--hsa-accent); }

.hsa-meta-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--hsa-border);
  flex-shrink: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hsa-hero {
  padding: 2rem 0;
  border-bottom: 1px solid var(--hsa-border);
}

.hsa-hero-main {
  cursor: pointer;
  overflow: hidden;
}

.hsa-hero-main:hover .hsa-hero-headline { color: var(--hsa-accent); }

.hsa-hero-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.hsa-hero-main:hover .hsa-hero-thumb { transform: scale(1.02); }

.hsa-hero-body { padding: 1.25rem 0 0; }

.hsa-hero-headline {
  font-family: var(--hsa-serif);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--hsa-ink);
  margin-bottom: .65rem;
  transition: color var(--hsa-transition);
}

.hsa-hero-deck {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--hsa-body);
  margin-bottom: .75rem;
  max-width: 640px;
}

/* Hero sidebar stories */
.hsa-hero-sidebar { display: flex; flex-direction: column; gap: 0; }

.hsa-hero-side-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hsa-border);
  cursor: pointer;
}

.hsa-hero-side-item:first-child { padding-top: 0; }
.hsa-hero-side-item:last-child  { border-bottom: none; padding-bottom: 0; }

.hsa-hero-side-img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  width: 100%;
  flex-shrink: 0;
  transition: opacity var(--hsa-transition);
}

.hsa-hero-side-item:hover .hsa-hero-side-img { opacity: .88; }

.hsa-hero-side-headline {
  font-family: var(--hsa-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hsa-ink);
  margin-bottom: .3rem;
  transition: color var(--hsa-transition);
}

.hsa-hero-side-item:hover .hsa-hero-side-headline { color: var(--hsa-accent); }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.hsa-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.hsa-card__img-wrap {
  overflow: hidden;
  margin-bottom: .85rem;
  flex-shrink: 0;
}

.hsa-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.hsa-card:hover .hsa-card__img { transform: scale(1.04); }

.hsa-card__headline {
  font-family: var(--hsa-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--hsa-ink);
  margin-bottom: .45rem;
  transition: color var(--hsa-transition);
}

.hsa-card:hover .hsa-card__headline { color: var(--hsa-accent); }

.hsa-card__deck {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.62;
  color: var(--hsa-muted);
  margin-bottom: .45rem;
  flex: 1;
}

/* Small card */
.hsa-card--sm .hsa-card__headline { font-size: 14px; }
.hsa-card--sm .hsa-card__img { aspect-ratio: 16 / 9; }

/* Dark overlay card */
.hsa-card--dark {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hsa-card--dark .hsa-card__img {
  aspect-ratio: 4 / 3;
  transition: transform .45s ease;
}

.hsa-card--dark:hover .hsa-card__img { transform: scale(1.05); }

.hsa-card--dark__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.28) 55%, transparent 100%);
  pointer-events: none;
}

.hsa-card--dark__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.hsa-card--dark__headline {
  font-family: var(--hsa-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: .4rem;
  transition: color var(--hsa-transition);
}

.hsa-card--dark:hover .hsa-card--dark__headline { color: var(--hsa-accent-bg); }

/* Stack item (thumbnail left + headline right) */
.hsa-stack-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hsa-border);
  cursor: pointer;
  align-items: start;
}

.hsa-stack-item:first-child { padding-top: 0; }
.hsa-stack-item:last-child  { border-bottom: none; padding-bottom: 0; }

.hsa-stack-item__img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  display: block;
  flex-shrink: 0;
}

.hsa-stack-item__headline {
  font-family: var(--hsa-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hsa-ink);
  transition: color var(--hsa-transition);
}

.hsa-stack-item:hover .hsa-stack-item__headline { color: var(--hsa-accent); }

/* ============================================================
   SECTION ROWS
   ============================================================ */
.hsa-section-row {
  padding: var(--hsa-section) 0;
  border-bottom: 1px solid var(--hsa-border);
}

.hsa-section-row:last-child { border-bottom: none; }

/* ============================================================
   DATA STATS STRIP
   ============================================================ */
#hsa-stats {
  display: none !important;
}

.hsa-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255,255,255,.05);
}

.hsa-stat {
  background: var(--hsa-dark-bg);
  padding: 2.25rem 2rem;
  border-right: 1px solid rgba(255,255,255,.06);
  border-top: 3px solid transparent;
}
.hsa-stat:first-child { border-top-color: var(--hsa-gold-bright); }

.hsa-stat:last-child { border-right: none; }

.hsa-stat__number {
  font-family: var(--hsa-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--hsa-gold-bright);
  line-height: 1;
  margin-bottom: .3rem;
}

.hsa-stat__number span { font-size: 22px; color: var(--hsa-accent-bg); font-weight: 400; }

.hsa-stat__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

.hsa-stat__sub {
  font-size: 11px;
  color: rgba(255,255,255,.2);
  margin-top: .2rem;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.hsa-sidebar { display: flex; flex-direction: column; gap: 2.5rem; }

.hsa-widget {}

.hsa-widget-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hsa-ink);
  padding-bottom: .875rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--hsa-ink);
  padding-left: 10px;
  border-left: 3px solid var(--hsa-accent);
}

/* Trending / most read */
.hsa-trending-list { display: flex; flex-direction: column; }

.hsa-trending-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: .875rem 0;
  border-bottom: 1px solid var(--hsa-border);
  cursor: pointer;
  align-items: start;
}

.hsa-trending-item:last-child { border-bottom: none; padding-bottom: 0; }

.hsa-trending-num {
  font-family: var(--hsa-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--hsa-border);
  line-height: 1;
  padding-top: 2px;
}

.hsa-trending-item:hover .hsa-trending-num { color: var(--hsa-accent-bg); }

.hsa-trending-headline {
  font-family: var(--hsa-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hsa-ink);
  transition: color var(--hsa-transition);
}

.hsa-trending-item:hover .hsa-trending-headline { color: var(--hsa-accent); }

/* Newsletter widget */
.hsa-newsletter-widget {
  background: var(--hsa-off);
  padding: 1.5rem;
  border: 1px solid var(--hsa-border);
}

.hsa-newsletter-widget h4 {
  font-family: var(--hsa-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--hsa-ink);
  margin-bottom: .5rem;
}

.hsa-newsletter-widget p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--hsa-muted);
  margin-bottom: 1rem;
}

.hsa-nl-input {
  width: 100%;
  border: 1px solid var(--hsa-border);
  padding: 10px 14px;
  font-family: var(--hsa-sans);
  font-size: 13px;
  color: var(--hsa-ink);
  background: var(--hsa-white);
  outline: none;
  margin-bottom: .75rem;
  transition: border var(--hsa-transition);
  display: block;
}

.hsa-nl-input:focus { border-color: var(--hsa-accent); }

/* Tags */
.hsa-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

.hsa-tag {
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--hsa-border);
  padding: 4px 10px;
  color: var(--hsa-muted);
  cursor: pointer;
  transition: all var(--hsa-transition);
}

.hsa-tag:hover {
  border-color: var(--hsa-accent);
  color: var(--hsa-accent);
}

/* ============================================================
   OPINION CARDS
   ============================================================ */
.hsa-opinion-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hsa-border);
  cursor: pointer;
  align-items: start;
}

.hsa-opinion-item:first-child { padding-top: 0; }
.hsa-opinion-item:last-child  { border-bottom: none; padding-bottom: 0; }

.hsa-opinion-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.hsa-opinion-quote {
  font-family: var(--hsa-serif);
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  color: var(--hsa-ink);
  margin-bottom: .35rem;
  transition: color var(--hsa-transition);
}

.hsa-opinion-item:hover .hsa-opinion-quote { color: var(--hsa-accent); }

.hsa-opinion-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--hsa-ink);
}

.hsa-opinion-role {
  font-size: 11px;
  color: var(--hsa-muted);
}

/* ============================================================
   FEATURE BANNER
   ============================================================ */
.hsa-feature-banner {
  background: var(--hsa-accent);
  padding: 3rem 0;
}

.hsa-feature-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hsa-feature-banner h2 {
  font-family: var(--hsa-serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .75rem;
}

.hsa-feature-banner p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hsa-btn--white {
  background: #fff;
  color: var(--hsa-accent);
  border: none;
}

.hsa-btn--white:hover {
  background: var(--hsa-off);
  color: var(--hsa-accent-dark);
}

/* ============================================================
   SINGLE ARTICLE PAGE
   ============================================================ */
.hsa-article-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--hsa-border);
}

.hsa-article-headline {
  font-family: var(--hsa-serif);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--hsa-ink);
  margin-bottom: .875rem;
  max-width: 820px;
}

.hsa-article-deck {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--hsa-body);
  max-width: 700px;
  margin-bottom: 1rem;
}

.hsa-article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 0;
  border-top: 1px solid var(--hsa-border);
  margin-top: 1.25rem;
}

.hsa-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hsa-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--hsa-ink);
  display: block;
}

.hsa-author-title {
  font-size: 12px;
  color: var(--hsa-muted);
}

.hsa-article-featured-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  margin: 2rem 0;
}

.hsa-article-body {
  font-size: 20px;
  line-height: 1.88;
  color: var(--hsa-body);
  max-width: 720px;
}

.hsa-article-body p { margin-bottom: 1.4rem; }

.hsa-article-body h2 {
  font-size: 26px;
  margin: 2.5rem 0 1rem;
}

.hsa-article-body h3 {
  font-size: 21px;
  margin: 2rem 0 .875rem;
}

.hsa-article-body a {
  color: var(--hsa-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hsa-article-body ul,
.hsa-article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
  list-style: initial;
}

.hsa-article-body ol { list-style: decimal; }

.hsa-article-body li { margin-bottom: .5rem; line-height: 1.7; }

.hsa-article-body figure {
  margin: 2rem 0;
}

.hsa-article-body figcaption {
  font-size: 12px;
  color: var(--hsa-muted);
  margin-top: .5rem;
  font-style: italic;
}

/* Peer review badge */
.hsa-peer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--hsa-accent);
  background: var(--hsa-accent-bg);
  padding: 4px 12px;
  border: 1px solid rgba(11,110,79,.2);
}

/* Share bar */
.hsa-share-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hsa-border);
  border-bottom: 1px solid var(--hsa-border);
  margin: 2rem 0;
}

.hsa-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hsa-muted);
}

.hsa-share-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 14px;
  border: 1px solid var(--hsa-border);
  color: var(--hsa-muted);
  cursor: pointer;
  transition: all var(--hsa-transition);
  background: transparent;
}

.hsa-share-btn:hover {
  border-color: var(--hsa-accent);
  color: var(--hsa-accent);
}

/* Tags in article */
.hsa-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0;
}

/* Related articles */
.hsa-related-section {
  padding: 2.5rem 0 0;
  border-top: 2px solid var(--hsa-ink);
}

/* ============================================================
   CATEGORY / ARCHIVE PAGE
   ============================================================ */
.hsa-archive-header {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--hsa-border);
  margin-bottom: 2.5rem;
}

.hsa-archive-title {
  font-family: var(--hsa-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--hsa-ink);
  margin-bottom: .5rem;
}

.hsa-archive-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--hsa-muted);
  max-width: 560px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.hsa-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 2.5rem 0;
}

.hsa-pagination a,
.hsa-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--hsa-border);
  color: var(--hsa-muted);
  transition: all var(--hsa-transition);
}

.hsa-pagination a:hover {
  border-color: var(--hsa-accent);
  color: var(--hsa-accent);
}

.hsa-pagination .current {
  background: var(--hsa-ink);
  border-color: var(--hsa-ink);
  color: #fff;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.hsa-comments-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--hsa-border);
}

.hsa-comments-title {
  font-family: var(--hsa-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--hsa-ink);
  margin-bottom: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
#hsa-footer {
  background: var(--hsa-dark-bg);
  color: #fff;
}

.hsa-footer-top {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.hsa-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}

.hsa-footer-brand .hsa-logo-name { color: #fff; font-size: 20px; }
.hsa-footer-brand .hsa-logo-tagline { color: var(--hsa-accent-bg); opacity: .7; }

.hsa-footer-tagline {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,.3);
  max-width: 220px;
  margin-top: .75rem;
}

.hsa-footer-col-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  margin-bottom: 1.1rem;
}

.hsa-footer-ul { display: flex; flex-direction: column; gap: .55rem; }

.hsa-footer-ul li a,
.hsa-footer-ul li span {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,.4);
  transition: color var(--hsa-transition);
  cursor: pointer;
}

.hsa-footer-ul li a:hover,
.hsa-footer-ul li span:hover { color: #fff; }

.hsa-footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.hsa-footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,.18);
  letter-spacing: .04em;
}

.hsa-footer-links {
  display: flex;
  gap: 1.5rem;
}

.hsa-footer-links a {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  transition: color var(--hsa-transition);
}

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

/* Social icons */
.hsa-socials {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

.hsa-social {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  transition: all var(--hsa-transition);
  cursor: pointer;
}

.hsa-social:hover {
  border-color: var(--hsa-accent);
  color: var(--hsa-accent);
}

/* ============================================================
   ELEMENTOR OVERRIDES
   Makes Elementor widgets inherit the HSA design system
   ============================================================ */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--hsa-serif) !important;
  letter-spacing: -.01em;
}

.elementor-widget-text-editor {
  font-size: 15px;
  line-height: 1.7;
  color: var(--hsa-body);
}

.elementor-section,
.e-con {
  font-family: var(--hsa-sans);
}

/* ============================================================
   GUTENBERG EDITOR STYLES
   ============================================================ */
.wp-block-image img { max-width: 100%; height: auto; }
.wp-block-quote { border-left: 3px solid var(--hsa-accent); padding: 1rem 1.5rem; background: var(--hsa-accent-bg); }
.wp-block-pullquote { border-top: 3px solid var(--hsa-ink); border-bottom: 3px solid var(--hsa-ink); }
.wp-block-separator { border-color: var(--hsa-border); margin: 2rem 0; }
.wp-block-button__link { background: var(--hsa-accent); color: #fff; border-radius: 0; padding: 10px 20px; font-weight: 600; font-size: 13px; letter-spacing: .04em; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
  .hsa-layout-sidebar          { grid-template-columns: 1fr; }
  .hsa-layout-sidebar .hsa-sidebar { position: static; }
  .hsa-lead-stack              { grid-template-columns: 1fr; }
  .hsa-footer-grid             { grid-template-columns: 1fr 1fr; }
  .hsa-stats-grid              { grid-template-columns: 1fr 1fr; }
  .hsa-feature-banner-inner    { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hsa-col-8 { grid-column: span 12; }
  .hsa-col-4 { grid-column: span 12; }
  .hsa-col-6 { grid-column: span 12; }
  .hsa-col-3 { grid-column: span 6;  }
  .hsa-col-9 { grid-column: span 12; }
}

@media (max-width: 768px) {
  :root { --hsa-gap: 16px; --hsa-section: 2rem; }

  #hsa-primary-nav  { display: none; }
  .hsa-search-toggle { display: none; }
  .hsa-btn--header  { display: none; }
  .hsa-hamburger    { display: flex; }
  .hsa-topbar-nav   { display: none; }

  .hsa-header-inner { height: 60px; }
  .hsa-logo-name    { font-size: 18px; }

  .hsa-grid         { grid-template-columns: repeat(6, 1fr); gap: var(--hsa-gap); }
  .hsa-col-3        { grid-column: span 6; }

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

  .hsa-stat { padding: 1.5rem 1.25rem; }
  .hsa-stat__number { font-size: 32px; }

  .hsa-article-headline { font-size: 26px; }
  .hsa-article-deck     { font-size: 16px; }
  .hsa-article-body     { font-size: 16px; }
}

@media (max-width: 480px) {
  .hsa-grid        { grid-template-columns: 1fr; }
  .hsa-col-3       { grid-column: span 1; }
  .hsa-stats-grid  { grid-template-columns: 1fr 1fr; }
  .hsa-footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hsa-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hsa-text-center { text-align: center; }
.hsa-mt-1 { margin-top: 1rem; }
.hsa-mt-2 { margin-top: 2rem; }
.hsa-mb-1 { margin-bottom: 1rem; }
.hsa-mb-2 { margin-bottom: 2rem; }


/* ── SIDEBAR: hide default WP archive/category widgets ── */
.widget_archive,
.widget_categories {
  display: none !important;
}

/* ── SIDEBAR: category post list style ── */
.hsa-cat-post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hsa-cat-post-item {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--hsa-border);
}
.hsa-cat-post-item:last-child { border-bottom: none; }
.hsa-cat-post-title {
  font-family: var(--hsa-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hsa-ink);
  margin-bottom: 0.3rem;
  transition: color var(--hsa-transition);
  display: block;
}
.hsa-cat-post-title:hover { color: var(--hsa-accent); }

/* ── TICKER below header ── */
#hsa-ticker {
  background: var(--hsa-ink);
  border-bottom: 2px solid var(--hsa-accent);
  height: 38px;
}
.hsa-ticker-label {
  background: var(--hsa-accent);
  color: var(--hsa-ink);
  font-weight: 800;
}
.hsa-ticker-item {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.hsa-ticker-item:hover { color: var(--hsa-gold-bright); }

/* ── NEWS LIST LAYOUT — all posts as equal list ── */
.hsa-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hsa-news-list-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hsa-border);
  cursor: pointer;
  align-items: start;
}
.hsa-news-list-item:first-child { padding-top: 0; }
.hsa-news-list-item:last-child { border-bottom: none; }
.hsa-news-list-img {
  width: 140px;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.hsa-news-list-item:hover .hsa-news-list-img { opacity: 0.88; }
.hsa-news-list-headline {
  font-family: var(--hsa-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hsa-ink);
  margin-bottom: 0.4rem;
  transition: color var(--hsa-transition);
}
.hsa-news-list-item:hover .hsa-news-list-headline { color: var(--hsa-accent); }
@media (max-width: 600px) {
  .hsa-news-list-item { grid-template-columns: 100px 1fr; gap: 0.875rem; }
  .hsa-news-list-img { width: 100px; }
  .hsa-news-list-headline { font-size: 16px; }
}

/* ── SECONDARY categories (Opinion, Features) in sidebar ── */
.hsa-sidebar-cat-block {
  margin-bottom: 0;
}
.hsa-sidebar-cat-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hsa-ink);
  padding: 0.6rem 0 0.6rem 10px;
  border-left: 3px solid var(--hsa-accent);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hsa-sidebar-cat-title a {
  font-size: 11px;
  font-weight: 600;
  color: var(--hsa-accent);
  letter-spacing: 0.06em;
}
.hsa-sidebar-cat-title a:hover { text-decoration: underline; }
