/*
Theme Name: USARoundup
Theme URI: https://usaroundup.com
Author: Priya Nair
Author URI: https://usaroundup.com
Description: Professional legal and insurance information theme for USARoundup.com — state-by-state guides for all 50 states.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: usaroundup
Tags: legal, insurance, blog, sidebar, responsive, custom-colors
*/

/* ═══════════════════════════════════════════════
   DESIGN SYSTEM
═══════════════════════════════════════════════ */
:root {
  --navy:        #0A1628;
  --navy-mid:    #1A2A4A;
  --navy-light:  #243656;
  --gold:        #C8960C;
  --gold-light:  #FEF9E7;
  --gold-mid:    #F0D060;
  --white:       #FFFFFF;
  --gray-light:  #F7F8FA;
  --gray-mid:    #E8ECF0;
  --gray-border: #D0D7DE;
  --text-dark:   #1A1A2E;
  --text-mid:    #4A4A6A;
  --text-muted:  #7A7A9A;
  --blue-light:  #D5E8F0;
  --blue-mid:    #4A90B8;
  --red:         #C0392B;
  --red-light:   #FDECEA;
  --green:       #2E7D32;
  --green-light: #E8F5E9;
  --font-head:   'DM Serif Display', Georgia, serif;
  --font-body:   'Lora', Georgia, serif;
  --font-ui:     system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 2px 16px rgba(10,22,40,0.08);
  --shadow-md:   0 4px 24px rgba(10,22,40,0.13);
  --shadow-lg:   0 8px 40px rgba(10,22,40,0.18);
  --container:   1200px;
  --content:     820px;
  --sidebar:     320px;
  --gap:         40px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.5em; }

/* font-display: swap — system font shows instantly, custom font swaps in
   This is the #1 fix for "Ensure text remains visible during webfont load" */
@font-face {
  font-family: 'DM Serif Display';
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  font-display: swap;
}

/* BASE TYPOGRAPHY */
body { font-family: var(--font-body); font-size: 17px; line-height: 1.85; color: var(--text-dark); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; }
p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: var(--gap);
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 80px;
  align-items: start;
}
.content-area { min-width: 0; }
/* FIX 6: sticky top now clears the 64px sticky header */
.sidebar-area { position: sticky; top: 80px; }

.content-full { max-width: var(--content); margin: 0 auto; padding: 40px 24px 80px; }

/* ═══════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════ */
.site-topbar { background: var(--navy); padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-notice { font-size: 12px; color: rgba(255,255,255,0.5); }
.topbar-notice strong { color: rgba(255,255,255,0.8); }
.topbar-links { display: flex; gap: 16px; font-size: 12px; }
.topbar-links a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.topbar-links a:hover { color: var(--white); }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.site-header { background: var(--white); border-bottom: 2px solid var(--gray-mid); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; position: relative; }

.site-branding { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.site-logo-text { font-family: var(--font-head); font-size: 26px; color: var(--navy); line-height: 1; }
.site-logo-text span { color: var(--gold); }
.site-tagline { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.3px; margin-top: 2px; }

.primary-nav ul { display: flex; list-style: none; gap: 6px; padding: 0; }
.primary-nav a { display: block; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--text-dark); border-radius: 6px; transition: all 0.2s; }
.primary-nav a:hover,
.primary-nav .current-menu-item a,
.primary-nav .current-menu-ancestor a { background: var(--navy); color: var(--white); }

.menu-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: 6px; padding: 8px 10px; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease; }

/* ═══════════════════════════════════════════════
   HOMEPAGE HERO
   FIX 9: home-hero class added (was only .hero)
   FIX 10,12,13,14: all missing hero classes added
═══════════════════════════════════════════════ */
.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1E3A5F 60%, #243656 100%);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,150,12,0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(107,163,214,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
/* FIX 12 */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }

/* ── OPTION 2 — ILLUSTRATION RIGHT PANEL ── */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Outer glow ring */
.illus-outer-ring {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.illus-outer-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(200,150,12,0.15);
  animation: ring-breathe 4s ease-in-out infinite;
}
.illus-outer-ring::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(200,150,12,0.07);
  animation: ring-breathe 4s ease-in-out infinite 0.6s;
}
@keyframes ring-breathe {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.5; }
}

/* Center circle — absolutely centered */
.illus-center {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(135deg, rgba(200,150,12,0.2) 0%, rgba(30,58,95,0.7) 100%);
  border: 2px solid rgba(200,150,12,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  box-shadow: 0 0 40px rgba(200,150,12,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: center-float 5s ease-in-out infinite;
}
@keyframes center-float {
  0%,100% { transform: translate(-50%, -50%) translateY(0);    }
  50%      { transform: translate(-50%, -50%) translateY(-8px); }
}
.illus-center-icon {
  font-size: 50px;
  filter: drop-shadow(0 4px 12px rgba(200,150,12,0.4));
  line-height: 1;
}

/* Orbiting badge positions — named classes, clock positions */
.illus-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 3;
}
.illus-badge.pos-12 { top: -28px;    left: 50%;   transform: translateX(-50%); }
.illus-badge.pos-2  { top: 18px;     right: -28px; }
.illus-badge.pos-4  { bottom: 18px;  right: -28px; }
.illus-badge.pos-6  { bottom: -28px; left: 50%;   transform: translateX(-50%); }
.illus-badge.pos-8  { bottom: 18px;  left: -28px; }
.illus-badge.pos-10 { top: 18px;     left: -28px; }


.illus-badge-icon {
  width: 44px;
  height: 44px;
  background: rgba(10,22,40,0.92);
  border: 1.5px solid rgba(200,150,12,0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 0 0 1px rgba(200,150,12,0.08);
  transition: transform 0.2s, border-color 0.2s;
}
.illus-badge-icon:hover {
  transform: scale(1.12);
  border-color: rgba(200,150,12,0.7);
}
.illus-badge-label {
  font-size: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  text-align: center;
}

/* Connector lines from center to badges */
.illus-connectors {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
}

/* Category chips row */
.illus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  max-width: 380px;
}
.illus-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 11px;
  font-family: var(--font-ui);
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  transition: all 0.2s;
}
.illus-chip:hover {
  background: rgba(200,150,12,0.12);
  border-color: rgba(200,150,12,0.4);
  color: #C8960C;
}
.illus-chip.gold {
  background: rgba(200,150,12,0.1);
  border-color: rgba(200,150,12,0.35);
  color: #C8960C;
}

/* Hide on tablet/mobile */
@media (max-width: 960px) {
  .hero-grid   { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,150,12,0.12);
  border: 1px solid rgba(200,150,12,0.25);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.home-hero h1 { font-size: clamp(32px, 5vw, 52px); color: var(--white); margin-bottom: 20px; line-height: 1.15; }
.home-hero h1 em { font-style: italic; color: var(--gold); }
.hero-desc { font-size: 18px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 32px; max-width: 620px; }
/* FIX 13 */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* FIX 14 */
.hero-stats { display: flex; gap: 32px; margin-top: 44px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
/* FIX 3: both stat class naming conventions now work */
.stat-item { text-align: center; min-width: 80px; }
.stat-number, .stat-num { font-family: var(--font-head); font-size: 30px; color: var(--gold); line-height: 1; margin-bottom: 4px; font-weight: 400; }
.stat-label, .stat-lbl { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; text-decoration: none; border: 2px solid transparent; font-family: var(--font-ui); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #B8860A; border-color: #B8860A; color: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,150,12,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); color: var(--white); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════
   SECTIONS
   FIX 11: .section-header was missing entirely
═══════════════════════════════════════════════ */
.section { padding: 64px 0; }
.section-alt { background: var(--gray-light); }
/* FIX 11 */
.section-header { margin-bottom: 36px; }
.section-header.text-center { text-align: center; }
.section-header.text-center .section-desc { margin: 0 auto; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.section-title { font-family: var(--font-head); font-size: clamp(24px, 3.5vw, 34px); color: var(--navy); margin-bottom: 10px; }
.section-desc { font-size: 16px; color: var(--text-mid); max-width: 540px; }

/* ═══════════════════════════════════════════════
   CATEGORY GRID
   FIX 1+19: CPC hidden, FIX 4: no-hover class
═══════════════════════════════════════════════ */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.category-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-top-color: var(--gold); }
/* FIX 4 — trust section cards don't lift */
.category-card[style*="pointer-events:none"]:hover,
.no-hover:hover { transform: none !important; box-shadow: var(--shadow) !important; border-top-color: var(--navy) !important; }
.category-card-icon { font-size: 32px; line-height: 1; }
.category-card-name { font-family: var(--font-head); font-size: 18px; color: var(--navy); }
.category-card-desc { font-size: 14px; color: var(--text-mid); line-height: 1.6; flex: 1; }
.category-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
/* FIX 1+19 — CPC never shows to visitors */
.category-cpc { display: none !important; }
.category-arrow { font-size: 16px; color: var(--text-muted); transition: transform 0.2s; }
.category-card:hover .category-arrow { transform: translateX(4px); color: var(--gold); }

/* ═══════════════════════════════════════════════
   POST CARDS
   FIX 2+15: fallback thumbnail placeholder
═══════════════════════════════════════════════ */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius); overflow: hidden; transition: all 0.25s; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* FIX 2+15 */
.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  position: relative;
}
.post-card-thumb .no-thumb-icon {
  font-size: 44px;
  opacity: 0.25;
  position: absolute;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; position: relative; z-index: 1; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.post-card-title { font-family: var(--font-head); font-size: 17px; color: var(--navy); line-height: 1.35; flex: 1; }
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--gold); }
/* Excerpt hidden — headline only design */
.post-card-excerpt { display: none; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--gray-mid); margin-top: auto; }
.post-card-date { font-size: 12px; color: var(--text-muted); }
.post-card-read { font-size: 12px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 4px; }
.post-card-read:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   SINGLE ARTICLE
═══════════════════════════════════════════════ */
.article-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 52px 0 44px; position: relative; overflow: hidden; }
.article-hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 350px; height: 350px; background: radial-gradient(circle, rgba(107,163,214,0.1) 0%, transparent 65%); border-radius: 50%; pointer-events: none; }
.article-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 18px; flex-wrap: wrap; }
.article-breadcrumb a { color: rgba(255,255,255,0.6); }
.article-breadcrumb a:hover { color: var(--white); }
.article-breadcrumb .sep { opacity: 0.4; }
.article-cat-badge { display: inline-block; width: fit-content; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); background: rgba(200,150,12,0.12); border: 1px solid rgba(200,150,12,0.25); padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; }
.article-hero h1 { font-size: clamp(24px, 3.8vw, 38px); color: var(--white); margin-bottom: 20px; max-width: 760px; line-height: 1.2; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: rgba(255,255,255,0.5); }
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta a { color: rgba(255,255,255,0.65); }
.article-meta a:hover { color: var(--white); }
.article-featured-img { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.article-featured-img img { width: 100%; height: auto; max-height: 480px; object-fit: cover; }

.article-content { font-size: 17px; line-height: 1.82; }
.article-content h2 { font-family: var(--font-head); font-size: 26px; color: var(--navy); margin: 52px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-mid); }
.article-content h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--navy-mid); margin: 32px 0 10px; display: flex; align-items: center; gap: 8px; }
.article-content h3::before { content: ''; display: inline-block; width: 4px; height: 18px; background: var(--blue-mid); border-radius: 2px; flex-shrink: 0; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin-bottom: 18px; }
.article-content li { margin-bottom: 6px; line-height: 1.65; }
.article-content strong { color: var(--navy); font-weight: 700; }
.article-content a { color: var(--blue-mid); }
.article-content a:hover { color: var(--navy); }
.article-content hr { border: none; border-top: 2px solid var(--gray-mid); margin: 44px 0; }

/* Content boxes */
.quick-answer { background: var(--blue-light); border-left: 4px solid var(--blue-mid); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; margin: 28px 0; }
.qa-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 10px; display: block; }
.quick-answer p { font-size: 16px; font-weight: 500; color: #1a3a52; margin: 0; line-height: 1.75; }
.toc-box { background: var(--gray-light); border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; }
.toc-title { font-family: var(--font-head); font-size: 16px; color: var(--navy); margin-bottom: 14px; }
.toc-box ol { padding-left: 20px; }
.toc-box li { margin-bottom: 6px; font-size: 14px; }
.toc-box a { color: var(--navy-mid); font-weight: 500; }
.toc-box a:hover { color: var(--gold); }
.info-box { border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; border-left: 4px solid; }
.info-box-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; display: block; }
.info-box p { font-size: 15.5px; margin: 0; }
.info-box.blue  { background: var(--blue-light);  border-color: var(--blue-mid); } .info-box.blue  .info-box-title { color: var(--blue-mid); }
.info-box.green { background: var(--green-light); border-color: var(--green); }    .info-box.green .info-box-title { color: var(--green); }
.info-box.red   { background: var(--red-light);   border-color: var(--red); }      .info-box.red   .info-box-title { color: var(--red); }
.info-box.gold  { background: var(--gold-light);  border-color: var(--gold); }     .info-box.gold  .info-box-title { color: var(--gold); }
.story-box { background: var(--gold-light); border: 1px solid var(--gold-mid); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 28px 30px; margin: 36px 0; }
.story-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: block; }
.story-box h3 { font-family: var(--font-head); font-size: 20px; color: #5D4037; margin-bottom: 14px; }
.story-box h3::before { display: none; }
.story-box p { font-size: 16px; color: #4A3728; }
.story-result { background: rgba(200,150,12,0.12); border-radius: 8px; padding: 14px 18px; margin-top: 18px; }
.story-result-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: block; }
.story-result p { font-size: 15px; font-weight: 600; color: #5D4037; margin: 0; }

/* Tables */
.state-table-wrap {
  display: block;
  overflow-x: auto;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  box-sizing: border-box;
  margin: 28px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
  background-color: white;
  -webkit-overflow-scrolling: touch;
}
/* Scroll hint label — only on mobile */
.state-table-wrap::before {
  content: none;
}
@media (max-width: 768px) {
  .state-table-wrap {
    border-radius: 8px;
  }
  .state-table-wrap::before {
    content: '← Scroll to see all states →';
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    padding: 5px 12px;
    letter-spacing: 0.5px;
    font-family: var(--font-ui);
  }
}

.state-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.state-table thead tr { background: var(--navy); }
.state-table thead th { padding: 13px 16px; text-align: left; color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.state-table thead th:nth-child(1) { width: 22%; }
.state-table thead th:nth-child(2) { width: 26%; }
.state-table thead th:nth-child(3) { width: 52%; }
.state-table tbody tr:nth-child(odd)  { background: #FFFFFF; }
.state-table tbody tr:nth-child(even) { background: #F0F5FF; }
.state-table tbody tr:hover { background: var(--blue-light); transition: background 0.15s; }
.state-table tbody td { padding: 11px 16px; border-bottom: 1px solid #E2E8F0; line-height: 1.45; vertical-align: middle; word-wrap: break-word; overflow-wrap: break-word; }
.state-table tbody td:first-child { font-weight: 700; color: var(--navy); font-size: 14px; border-left: 3px solid var(--gold); padding-left: 14px; }
.state-table tbody tr:nth-child(even) td:first-child { border-left-color: var(--navy); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-blue  { background: #E3F2FD; color: #1565C0; }
.badge-gold  { background: var(--gold-light); color: #8B6914; }
.badge-red   { background: var(--red-light); color: var(--red); }
.badge-navy  { background: var(--navy); color: var(--white); }

/* FAQ */
.faq-list { margin: 16px 0; }
/* ── FAQ — Clean always-visible Q&A (no accordion) ──────────── */
.faq-section { margin: 36px 0; }
.faq-item {
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  margin-bottom: 16px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(10,22,40,0.07);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px 0 18px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  display: block;
  text-align: left;
  border: none;
  outline: none;
  background: var(--white);
  font-family: var(--font-head);
  line-height: 1.45;
  cursor: default;
}
.faq-question::before {
  content: "Q  ";
  color: var(--gold);
  font-weight: 900;
  font-family: var(--font-ui);
  letter-spacing: 1px;
}
.faq-icon { display: none; }
.faq-answer {
  display: block !important;
  max-height: none !important;
  padding: 10px 20px 18px 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mid);
  background: var(--white);
  border-top: none;
}
.faq-answer::before {
  content: "A  ";
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-ui);
  letter-spacing: 1px;
}
.faq-answer p { display: inline; margin: 0; }

/* Related */
.related-box { background: var(--navy); border-radius: var(--radius); padding: 26px 28px; margin: 44px 0 32px; }
.related-title { font-family: var(--font-head); font-size: 17px; color: var(--white); margin-bottom: 16px; }
.related-list { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }
.related-list a { display: flex; align-items: center; gap: 8px; color: #6BA3D6; font-size: 14.5px; font-weight: 500; }
.related-list a::before { content: '→'; opacity: 0.6; }
.related-list a:hover { color: var(--white); }

/* Disclaimer */
.article-disclaimer { background: var(--gray-light); border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 18px 22px; margin-top: 36px; }
.disclaimer-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; display: block; }
.article-disclaimer p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 0; }
.article-sources { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gray-border); font-size: 12.5px; color: var(--text-muted); }
.article-sources a { color: var(--blue-mid); }

/* ═══════════════════════════════════════════════
   SIDEBAR
   FIX 5+8: widget-body div properly closed
═══════════════════════════════════════════════ */
.widget { background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow); }
.widget-title { background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: 15px; padding: 13px 18px; margin: 0; display: block; }
/* FIX 5: widget-body is self-contained, no unclosed divs */
.widget-body { padding: 16px 18px; }
.widget-adsense { background: var(--gray-light); }
.adsense-label { font-size: 10px; color: var(--text-muted); text-align: center; display: block; margin-bottom: 8px; letter-spacing: 0.8px; text-transform: uppercase; }
.adsense-slot { background: var(--gray-mid); border-radius: 6px; display: flex; align-items: center; justify-content: center; min-height: 250px; color: var(--text-muted); font-size: 13px; text-align: center; }
.sidebar-posts { list-style: none; padding: 0; margin: 0; }
.sidebar-posts li { padding: 10px 0; border-bottom: 1px solid var(--gray-mid); }
.sidebar-posts li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-posts a { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.4; display: block; margin-bottom: 4px; }
.sidebar-posts a:hover { color: var(--gold); }
.sidebar-posts .post-date { font-size: 12px; color: var(--text-muted); }
.sidebar-cats { list-style: none; padding: 0; margin: 0; }
.sidebar-cats li { border-bottom: 1px solid var(--gray-mid); }
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats a { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 14px; font-weight: 500; color: var(--text-dark); }
.sidebar-cats a:hover { color: var(--gold); }
.sidebar-cats .count { font-size: 11px; background: var(--gray-mid); color: var(--text-muted); padding: 2px 7px; border-radius: 10px; }
.sidebar-disclaimer { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.sidebar-disclaimer strong { color: var(--text-mid); display: block; margin-bottom: 6px; }

/* ═══════════════════════════════════════════════
   ARCHIVE
═══════════════════════════════════════════════ */
.archive-header { background: var(--navy); padding: 44px 0; }
.archive-badge { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.archive-header h1 { font-size: clamp(24px, 3.5vw, 36px); color: var(--white); margin-bottom: 10px; }
.archive-desc { font-size: 16px; color: rgba(255,255,255,0.65); max-width: 560px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--gray-border); text-decoration: none; transition: all 0.2s; }
.page-numbers:hover, .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ═══════════════════════════════════════════════
   PAGES
═══════════════════════════════════════════════ */
.page-hero { background: var(--navy); padding: 48px 0; }
.page-hero h1 { font-size: clamp(26px, 3.5vw, 38px); color: var(--white); }
.page-content { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.page-content h2 { font-family: var(--font-head); font-size: 24px; color: var(--navy); margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-mid); }
.page-content h3 { font-size: 18px; font-weight: 700; color: var(--navy-mid); margin: 28px 0 10px; }
.page-content p { margin-bottom: 16px; font-size: 16.5px; line-height: 1.8; }
.page-content ul, .page-content ol { margin-bottom: 16px; }
.page-content li { margin-bottom: 6px; font-size: 16px; line-height: 1.65; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-border); border-radius: 8px; font-family: var(--font-ui); font-size: 15px; color: var(--text-dark); background: var(--white); transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,22,40,0.08); }
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit { background: var(--navy); color: var(--white); padding: 13px 32px; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font-ui); transition: all 0.2s; }
.btn-submit:hover { background: var(--navy-mid); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════
   FOOTER — FIX 17: container properly wraps all
═══════════════════════════════════════════════ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-text { font-family: var(--font-head); font-size: 24px; color: var(--white); margin-bottom: 14px; display: block; }
.footer-brand .logo-text span { color: var(--gold); }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.footer-disclaimer-note { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.6; padding: 14px; background: rgba(255,255,255,0.04); border-radius: 8px; border-left: 3px solid rgba(200,150,12,0.3); }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; display: block; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color 0.2s; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
/* Footer bottom — centered copyright + legal links */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.3); line-height: 1.7; }
.footer-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.footer-legal-links a { font-size: 11.5px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; padding: 3px 12px; border-right: 1px solid rgba(255,255,255,0.12); white-space: nowrap; }
.footer-legal-links a:last-child { border-right: none; }
.footer-legal-links a:hover { color: var(--gold); }

/* 404 */
.error-404 { text-align: center; padding: 80px 24px; max-width: 640px; margin: 0 auto; }
.error-404 .error-num { font-family: var(--font-head); font-size: 120px; color: var(--gray-mid); line-height: 1; margin-bottom: 20px; }
.error-404 h1 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 32px); color: var(--navy); margin-bottom: 14px; }
.error-404 p { font-size: 16px; color: var(--text-mid); margin-bottom: 28px; }

/* FIX 20 — search form styled */
.search-header { background: var(--navy); padding: 40px 0; }
.search-header h1 { font-size: 26px; color: var(--white); margin-bottom: 14px; }
.search-header span { color: var(--gold); }
.search-form, .search-form form { display: flex; gap: 10px; max-width: 480px; margin-top: 14px; }
.search-form input[type="search"],
.search-form form input[type="search"] { flex: 1; padding: 11px 16px; border: none; border-radius: 8px; font-size: 15px; font-family: var(--font-ui); color: var(--text-dark); }
.search-form input[type="submit"],
.search-form form input[type="submit"] { background: var(--gold); color: var(--navy); border: none; padding: 11px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: var(--font-ui); font-size: 15px; transition: background 0.2s; }
.search-form input[type="submit"]:hover,
.search-form form input[type="submit"]:hover { background: #B8860A; }

/* Gutenberg */
.wp-block-html { margin: 0; padding: 0; }
.entry-content > * { max-width: 100%; }

/* Utilities */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.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; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   FIX 18: sidebar properly collapses on tablet
═══════════════════════════════════════════════ */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .content-sidebar-wrap { grid-template-columns: minmax(0, 1fr); }
  /* FIX 18 */
  .sidebar-area { position: static; top: auto; }
}
@media (max-width: 768px) {
  /* Mobile nav — hidden, replaced by category footer links */
  .primary-nav { display: none !important; }
  .menu-toggle { display: none !important; }

  .home-hero { padding: 52px 0 44px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-legal-links a { padding: 4px 8px; font-size: 11px; }
  .topbar-links { display: none; }
  .content-sidebar-wrap { padding: 28px 16px 60px; gap: 24px; }
  .article-hero { padding: 36px 0 28px; }
}
@media (max-width: 480px) {
  .home-hero { padding: 40px 0 36px; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .category-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .stat-number, .stat-num { font-size: 26px; }
  .article-hero h1 { font-size: 22px; }
  .article-content h2 { font-size: 22px; }
}

/* ═══════════════════════════════════════════════
   ARCHIVE PAGE — FULL LAYOUT v1.2
═══════════════════════════════════════════════ */

/* FIX 17: archive body uses full container width with sidebar */
.archive-body-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: var(--gap);
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 80px;
  align-items: start;
}
.archive-content { min-width: 0; }
.archive-sidebar { position: sticky; top: 80px; }

/* Archive header meta row — FIX 4 */
.archive-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.archive-count {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 20px;
}
.archive-states,
.archive-free {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* FIX 18: Empty state */
.archive-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--gray-light);
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
}
.archive-empty-icon { font-size: 56px; margin-bottom: 20px; line-height: 1; }
.archive-empty h2 { font-family: var(--font-head); font-size: 24px; color: var(--navy); margin-bottom: 12px; }
.archive-empty p { font-size: 16px; color: var(--text-mid); max-width: 440px; margin: 0 auto 24px; line-height: 1.7; }

/* Active category in sidebar */
.sidebar-cats li.active-cat a { color: var(--gold); font-weight: 700; }

/* Category guide count badge on homepage */
.cat-guide-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-mid);
  background: var(--blue-light);
  padding: 3px 9px;
  border-radius: 20px;
}
.cat-coming-soon {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--gray-mid);
  padding: 3px 9px;
  border-radius: 20px;
}

/* ═══════════════════════════════════════════════
   SINGLE POST — NEW COMPONENTS v1.2
═══════════════════════════════════════════════ */

/* Article thumbnail placeholder — FIX 2 */
.article-thumb-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  opacity: 0.25;
  border-radius: var(--radius);
}

/* Back to category link — FIX 12 */
.article-back-link {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-mid);
}
.article-back-link a {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  transition: all 0.2s;
}
.article-back-link a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Tags — FIX 13: proper CSS classes */
.article-tags {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tags-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-right: 4px;
}
.tag-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  background: var(--gray-light);
  color: var(--text-mid);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--gray-border);
  transition: all 0.2s;
}
.tag-pill:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Author bio */
.author-bio {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  margin-top: 32px;
}
.author-avatar {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 22px;
}
/* author-name/role/desc defined below with full styles */

/* ═══════════════════════════════════════════════
   HOMEPAGE — NEW COMPONENTS v1.2
═══════════════════════════════════════════════ */

/* Trust grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.trust-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.trust-icon { font-size: 32px; margin-bottom: 12px; line-height: 1; }
.trust-title { font-family: var(--font-head); font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.trust-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.6; }

/* CTA Banner */
.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 60px 0; }
.cta-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); color: var(--white); margin-bottom: 14px; }
.cta-inner p { font-size: 16px; color: rgba(255,255,255,0.65); margin-bottom: 28px; line-height: 1.7; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — ARCHIVE + NEW COMPONENTS
═══════════════════════════════════════════════ */
@media (max-width: 860px) {
  .archive-body-wrap { grid-template-columns: minmax(0, 1fr); }
  .archive-sidebar { position: static; top: auto; }
}
@media (max-width: 768px) {
  .archive-body-wrap { padding: 28px 16px 60px; gap: 24px; }
  .author-bio { flex-direction: column; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .archive-meta-row { gap: 10px; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .article-thumb-placeholder { height: 180px; font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Ad slots removed — will be re-added after AdSense approval */

/* ═══════════════════════════════════════════════════════════════
   RELATED POSTS — 3-column responsive grid
═══════════════════════════════════════════════════════════════ */
.related-posts {
  margin: 48px 0 0;
  padding-top: 36px;
  border-top: 2px solid var(--gray-mid);
}
.related-posts-header { margin-bottom: 20px; }
.related-posts-title {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--navy);
  margin-top: 4px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10,22,40,0.1);
}
.related-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card-icon { font-size: 36px; }
.related-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.related-card-date { font-size: 11px; color: var(--text-muted); }
.related-card-title {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--navy);
  line-height: 1.4;
  flex: 1;
}
.related-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 4px;
}
/* Responsive: 3 cols → 2 cols → 1 col */
@media (max-width: 768px) {
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related-posts-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS — Final pass
═══════════════════════════════════════════════════════════════ */

/* Article hero — reduce padding on mobile */
@media (max-width: 768px) {
  .article-hero { padding: 24px 0 20px; }
  .article-hero h1 { font-size: clamp(22px, 5vw, 36px); }
  .article-meta { flex-wrap: wrap; gap: 6px; font-size: 13px; }
  .ad-responsive { max-width: 100%; }
}

/* Tables inside articles — horizontal scroll on small screens */
.article-content table {
  width: 100%;
  max-width: 100%;
  display: table;
}
@media (max-width: 768px) {
  .article-content table { font-size: 13px; }
  .article-content td, .article-content th { padding: 8px 10px; }
}

/* Sidebar — full width below 860px, no sticky */
@media (max-width: 860px) {
  .sidebar-area { position: static !important; }
}

/* Search form — full width on mobile */
@media (max-width: 600px) {
  .search-form input[type="search"] { font-size: 16px; } /* stops iOS zoom */
}

/* Footer — stack on mobile */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Post cards — 1 column on mobile */
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr !important; }
}

/* FAQ — mobile fixes */
@media (max-width: 600px) {
  .faq-question { font-size: 15px; padding: 14px 14px 0 14px; }
  .faq-answer { padding: 8px 14px 16px 14px; font-size: 14.5px; }
  .faq-item { margin-bottom: 12px; }
}

/* State table — mobile card stack */
@media (max-width: 640px) {
  .state-table-wrap { border-radius: 8px; }
  .state-table thead { display: none; }
  .state-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #D0D7DE;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(10,22,40,0.08);
  }
  .state-table tbody tr:nth-child(even),
  .state-table tbody tr:nth-child(odd) { background: transparent; }
  .state-table tbody td {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    padding: 11px 14px;
    font-size: 13.5px;
    border-bottom: 1px solid #EEF0F3;
    gap: 0;
    background: white;
  }
  .state-table tbody td:nth-child(even) { background: #F0F5FF; }
  .state-table tbody td:last-child { border-bottom: none; }
  .state-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #888;
    display: block;
  }
  .state-table tbody td:first-child {
    display: block;
    background: var(--navy) !important;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    border-left: none;
    padding: 12px 14px;
  }
  .state-table tbody td:first-child::before { display: none; }
}

/* Category grid — 2 cols on mobile */
@media (max-width: 600px) {
  .category-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .category-card { padding: 14px 10px; }
  .category-card-name { font-size: 13px; }
}

/* Buttons — full width on mobile */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}


/* ═══════════════════════════════════════════════════════════════
   SKIP TO CONTENT — Accessibility
   Hidden visually, visible on keyboard focus
═══════════════════════════════════════════════════════════════ */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   404 PAGE — Improved
═══════════════════════════════════════════════════════════════ */
/* .error-404 consolidated above */
.error-num {
  font-family: var(--font-head);
  font-size: clamp(80px, 15vw, 140px);
  color: var(--navy);
  line-height: 1;
  opacity: 0.12;
  margin-bottom: -20px;
}
/* error-404 h1 merged above */
.error-404 > p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 28px;
}
.error-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto 32px;
}
.error-search form {
  display: flex;
  width: 100%;
  border: 2px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
}
.error-search input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-ui);
}
.error-search button {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: background 0.2s;
}
.error-search button:hover { background: var(--gold); }
.error-cats { margin-bottom: 32px; }
.error-cats-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.error-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 540px;
  margin: 0 auto;
}
.error-cats-grid a {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
}
.error-cats-grid a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
@media (max-width: 480px) {
  .error-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .error-search form { flex-direction: column; }
  .error-search button { border-radius: 0 0 6px 6px; }
}


/* ═══════════════════════════════════════════════════════════════
   SOCIAL SHARE BUTTONS
═══════════════════════════════════════════════════════════════ */
.social-share {
  margin: 36px 0 0;
  padding: 20px 24px;
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
}
.social-share-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: block;
  font-family: var(--font-ui);
}
.social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.15s;
  line-height: 1;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.share-btn svg { flex-shrink: 0; }
.share-btn:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.share-facebook  { background: #1877F2; color: #fff; }
.share-twitter   { background: #000;    color: #fff; }
.share-linkedin  { background: #0A66C2; color: #fff; }
.share-whatsapp  { background: #25D366; color: #fff; }
.share-copy      { background: var(--navy); color: var(--white); }

/* ── MOBILE: big tap-friendly 2-column grid ── */
@media (max-width: 600px) {
  .social-share {
    padding: 16px;
  }
  .social-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .share-btn {
    justify-content: center;
    padding: 12px 10px;
    font-size: 13px;
    border-radius: 10px;
    gap: 8px;
  }
  /* Copy link spans full width */
  .share-copy {
    grid-column: 1 / -1;
  }
  .share-btn svg {
    width: 16px;
    height: 16px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   AUTHOR BIO — Name + Bio only, no image
═══════════════════════════════════════════════════════════════ */
/* author-bio merged above */
.author-name {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 2px;
}
.author-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.author-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES — replaces inline styles
═══════════════════════════════════════════════════════════════ */
.posts-grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.view-all-wrap   { text-align: center; margin-top: 32px; }
.section-label-gold { color: var(--gold); }
.hero-actions-center { justify-content: center; margin-top: 0; }
.empty-state     { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }
.empty-state-text { color: var(--text-muted); }
.suggested-searches { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
/* .sidebar-posts consolidated above */
.search-form     { margin-top: 20px; }
.active-cat      { color: var(--gold) !important; font-weight: 700 !important; }


/* ═══════════════════════════════════════════════════════════════
   ARTICLE CONTENT — Missing utility classes
═══════════════════════════════════════════════════════════════ */

/* Quick answer box — icon + text layout */
/* .quick-answer consolidated above */
.qa-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.qa-content strong { display: block; font-family: var(--font-head); font-size: 17px; color: #1a3a52; margin-bottom: 6px; }

/* FAQ section wrapper */
/* faq-section, faq-item, faq-question, faq-answer defined above at line ~556 */

/* Related links box */
.article-related-links {
  background: var(--gold-light);
  border: 1px solid var(--gold-mid);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 36px 0;
  font-size: 15px;
}
.article-related-links strong { display: block; color: var(--navy); margin-bottom: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.article-related-links ul { margin: 0; padding: 0 0 0 18px; }
.article-related-links li { margin-bottom: 6px; }
.article-related-links a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-related-links a:hover { color: var(--gold); }

/* Horizontal rule divider */
.article-divider { border: none; border-top: 2px solid var(--gray-mid); margin: 32px 0 24px; }

/* Sources line */
/* .article-sources override removed — consolidated above */

/* Last updated line inside disclaimer */
.article-updated { font-size: 12px; color: var(--text-muted); margin-top: 8px !important; font-style: italic; }


/* ═══════════════════════════════════════════════════════════════
   PREV / NEXT POST NAVIGATION
═══════════════════════════════════════════════════════════════ */
.post-navigation {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 2px solid var(--gray-mid);
}
.post-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
}
.post-nav-item:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.post-nav-item:hover .post-nav-label,
.post-nav-item:hover .post-nav-title { color: var(--white); }
.post-nav-next { text-align: right; }
.post-nav-empty { background: none; border-color: transparent; }
.post-nav-solo { grid-template-columns: 1fr; max-width: 50%; }
.post-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold);
}
.post-nav-title {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--navy);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .post-nav-inner { grid-template-columns: 1fr; }
  .post-nav-next  { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════
   COMMENTS SECTION
═══════════════════════════════════════════════════════════════ */
.comments-wrap {
  margin: 48px 0 0;
  padding-top: 36px;
  border-top: 2px solid var(--gray-mid);
}
.page-comments-wrap {
  max-width: var(--content);
  margin: 40px auto;
  padding: 0 20px 60px;
}

/* Section title */
#comments .comments-title,
#comments h2 {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 28px;
}

/* ── Individual comment ── */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}
.comment-list .comment,
.comment-list .pingback {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-mid);
}
.comment-list .children {
  list-style: none;
  padding-left: 32px;
  margin-top: 16px;
  border-left: 3px solid var(--gray-mid);
}
.comment-body { display: flex; gap: 16px; }
.comment-author-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gray-mid);
}
.comment-content-wrap { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.comment-author .fn {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  font-style: normal;
}
.comment-author a { color: var(--navy); text-decoration: none; }
.comment-metadata {
  font-size: 12px;
  color: var(--text-muted);
}
.comment-metadata a { color: var(--text-muted); text-decoration: none; }
.comment-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 0 8px;
}
.comment-reply-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.comment-reply-link:hover { color: var(--navy); }

/* Awaiting moderation badge */
.comment-awaiting-moderation {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid var(--gold-mid);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

/* ── Comment form ── */
#respond {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 8px;
}
#respond h3,
#respond .comment-reply-title {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 6px;
}
#respond .comment-reply-title small { display: block; font-size: 13px; }
#respond .comment-reply-title a { font-size: 13px; color: var(--gold); font-family: var(--font-ui); font-weight: 600; }
#respond .comment-notes {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
#respond .required-field-message,
#respond .comment-notes .required { color: var(--red); }

/* Form fields */
#respond .comment-form-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
#respond p { margin-bottom: 16px; }
#respond label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-ui);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  min-height: 130px;
  resize: vertical;
}
#respond input:focus,
#respond textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,22,40,0.08);
}
/* merged into #respond textarea above */
#respond .form-submit { margin-bottom: 0; }
#respond .submit,
#respond input[type="submit"] {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}
#respond .submit:hover { background: var(--gold); transform: translateY(-1px); }

/* Cookie consent checkbox */
#respond .comment-form-cookies-consent label { font-weight: 400; font-size: 13px; display: inline; margin-left: 6px; }

/* Logged in as */
#respond .logged-in-as { font-size: 13px; color: var(--text-muted); }
#respond .logged-in-as a { color: var(--gold); }

/* Responsive */
@media (max-width: 600px) {
  #respond { padding: 20px 18px; }
  #respond .comment-form-fields-row { grid-template-columns: 1fr; }
  .comment-body { flex-direction: column; gap: 10px; }
  .comment-list .children { padding-left: 16px; }
}

/* ── Utility ── */
.sidebar-empty-msg { color: var(--text-muted); font-size: 13px; padding: 8px 0; }


/* ═══════════════════════════════════════════════════════════════
   POST NAV + COMMENTS — full-width wrappers outside sidebar grid
═══════════════════════════════════════════════════════════════ */
.post-nav-wrap,
.comments-outer-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.post-nav-wrap { margin-top: 48px; padding-bottom: 80px; }
/* merged into .comments-outer-wrap above */

/* On desktop, align these with the content column (not full container width) */
@media (min-width: 1025px) {
  .post-nav-wrap,
  .comments-outer-wrap {
    padding-left: calc((100% - var(--container)) / 2 + 20px);
    padding-right: calc((100% - var(--container)) / 2 + 20px);
  }
}

