/*
Theme Name: Puerto Vallarta Calendar
Theme URI: https://puertovallartacalendar.com
Author: W. N. Walker
Author URI: https://puertovallartacalendar.com
Description: A high-performance SEO-optimized magazine theme for Puerto Vallarta Calendar with Google AdSense integration, content hubs, schema markup, and editorial grid layouts.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: pvcalendar
Tags: magazine, news, blog, custom-colors, custom-logo, featured-images, translation-ready
*/

/* ============================================================
   CSS VARIABLES — BRAND SYSTEM
   ============================================================ */
:root {
  --navy:       #0D1B2A;
  --navy-mid:   #1A2E45;
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --silver:     #B8BEC7;
  --white:      #FFFFFF;
  --offwhite:   #F7F5F0;
  --charcoal:   #2C3E50;
  --text:       #1A1A2E;
  --text-muted: #6B7280;
  --border:     #E5E0D8;
  --red:        #C0392B;

  --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-sans:    'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'Roboto Mono', monospace;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.18);

  --radius:     4px;
  --radius-md:  8px;

  --site-max:   1280px;
  --content:    860px;
  --gap:        24px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

ul, ol { padding-left: 1.5rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; }

.entry-content h2,
.entry-content h3 { margin: 2rem 0 .75rem; }

blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--charcoal);
  background: var(--white);
}

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

.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 32px 0;
}

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

/* ============================================================
   ADMIN BAR OFFSET
   ============================================================ */
.admin-bar .site-header { top: 32px; }

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.utility-bar {
  background: var(--navy);
  color: var(--silver);
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.utility-date { color: var(--silver); }

.utility-links { display: flex; gap: 16px; }
.utility-links a {
  color: var(--silver);
  transition: color .2s;
}
.utility-links a:hover { color: var(--gold); }

.utility-social { display: flex; gap: 12px; align-items: center; }
.utility-social a {
  color: var(--silver);
  font-size: .9rem;
  transition: color .2s;
}
.utility-social a:hover { color: var(--gold); }

/* ============================================================
   MASTHEAD
   ============================================================ */
.site-masthead {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  padding: 20px 0;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding { flex: 1; }

.site-logo img { max-height: 80px; width: auto; }

.site-title-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1;
}

.site-title-text span { color: var(--gold); }

.site-tagline {
  font-family: var(--font-sans);
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 4px;
}

.masthead-ad {
  flex: 0 0 auto;
  max-width: 728px;
}

/* ============================================================
   NEWS TICKER
   ============================================================ */
.news-ticker {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  overflow: hidden;
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--navy);
  color: var(--gold);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item { display: inline-flex; align-items: center; gap: 8px; }
.ticker-item::before {
  content: '▸';
  color: var(--navy-mid);
  font-size: .6rem;
}
.ticker-item a { color: var(--navy); font-weight: 600; }
.ticker-item a:hover { text-decoration: underline; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.site-nav-wrapper {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu > li > a {
  display: block;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
  border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Dropdown */
.nav-menu li { position: relative; }

.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  list-style: none;
  padding: 8px 0;
  z-index: 200;
}

.nav-menu li:hover > .sub-menu { display: block; }

.nav-menu .sub-menu li a {
  display: block;
  padding: 9px 18px;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}

.nav-menu .sub-menu li a:hover {
  background: var(--offwhite);
  color: var(--gold);
}

/* Search in nav */
.nav-search { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.nav-search input {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .8rem;
  padding: 6px 14px;
  outline: none;
  width: 180px;
  transition: all .2s;
}
.nav-search input::placeholder { color: rgba(255,255,255,.5); }
.nav-search input:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--gold);
  width: 220px;
}
.nav-search button {
  background: none;
  border: none;
  color: var(--silver);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  transition: color .2s;
}
.nav-search button:hover { color: var(--gold); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 14px 16px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; flex-direction: column; width: 100%; }
  .nav-menu.is-open { display: flex; }
  .nav-menu > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-menu .sub-menu { position: static; box-shadow: none; border-top: none; background: rgba(255,255,255,.05); display: none; }
  .nav-menu .sub-menu li a { color: var(--silver); padding-left: 36px; }
  .nav-search { display: none; }
  .masthead-ad { display: none; }
}

/* ============================================================
   HERO — FEATURED POSTS GRID
   ============================================================ */
.hero-section { padding: 28px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
  background: var(--border);
}

.hero-main { grid-row: span 2; }

.hero-secondary { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; }

.hero-card {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--navy);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  opacity: .85;
}

.hero-card:hover img { transform: scale(1.04); opacity: .9; }

.hero-main .hero-card { height: 500px; }
.hero-secondary .hero-card { height: 248px; }

.hero-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(10,20,35,.92) 0%, rgba(10,20,35,.5) 60%, transparent 100%);
}

.hero-card-category {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 8px;
  border-radius: 2px;
}

.hero-card-title {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.2;
  margin: 0;
}

.hero-main .hero-card-title { font-size: clamp(1.3rem, 2.5vw, 2rem); }
.hero-secondary .hero-card-title { font-size: 1rem; }

.hero-card-meta {
  font-family: var(--font-sans);
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  margin-top: 8px;
  display: flex;
  gap: 12px;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main .hero-card { height: 300px; }
  .hero-secondary { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
  .hero-secondary .hero-card { height: 180px; }
}

/* ============================================================
   SECTION HEADER — REUSABLE
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--gold);
  border-radius: 2px;
}

.section-more {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color .2s;
}
.section-more:hover { color: var(--navy); border-color: var(--navy); }

/* ============================================================
   POST CARDS — STANDARD
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.post-grid.col-4 { grid-template-columns: repeat(4, 1fr); }
.post-grid.col-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid.col-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .post-grid,
  .post-grid.col-4,
  .post-grid.col-2 { grid-template-columns: 1fr; }
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}

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

.post-card-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--navy-mid);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }

.post-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.post-card-category {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 8px;
  flex: 1;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--gold); }

.post-card-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  font-family: var(--font-sans);
  font-size: .72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}

.post-card-meta .author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================================
   LIST STYLE POSTS (sidebar / compact)
   ============================================================ */
.post-list { display: flex; flex-direction: column; gap: 14px; }

.post-list-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
}

.post-list-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-mid);
  flex-shrink: 0;
}
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-list-title {
  font-family: var(--font-display);
  font-size: .9rem;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 4px;
}
.post-list-title a:hover { color: var(--gold); }

.post-list-meta {
  font-family: var(--font-sans);
  font-size: .68rem;
  color: var(--text-muted);
}

/* ============================================================
   CATEGORY HUB ROWS
   ============================================================ */
.hub-section { padding: 32px 0; }

.hub-section + .hub-section { border-top: 1px solid var(--border); }

/* ============================================================
   GOOGLE ADSENSE PLACEMENTS
   ============================================================ */
.ad-slot {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.ad-slot::before {
  content: 'Advertisement';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: .6rem;
  color: var(--silver);
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 1;
}

.ad-slot ins { display: block; }

/* Specific ad sizes */
.ad-leaderboard { width: 100%; min-height: 90px; margin: 16px 0; }
.ad-sidebar     { width: 100%; min-height: 250px; margin-bottom: 24px; }
.ad-inline      { width: 100%; min-height: 250px; margin: 28px auto; max-width: 728px; }
.ad-banner      { width: 100%; min-height: 90px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 3px solid var(--gold);
}

.widget-body { padding: 16px; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-hero {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.single-header { margin-bottom: 24px; }

.single-category {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.single-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 14px;
}

.single-meta {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.single-meta strong { color: var(--navy); }

.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: var(--content);
}

.entry-content p { margin-bottom: 1.4rem; }

.entry-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.entry-content ul,
.entry-content ol { margin-bottom: 1.4rem; }

.entry-content li { margin-bottom: .4rem; }

/* Schema-ready list styles */
.entry-content .top-list { counter-reset: top-list; padding: 0; }
.entry-content .top-list li {
  counter-increment: top-list;
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.entry-content .top-list li::before {
  content: counter(top-list);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}

/* Author box */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0;
}

.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.author-box-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.author-box-bio { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* Related posts */
.related-posts { margin: 40px 0; }

/* ============================================================
   CATEGORY / ARCHIVE PAGE
   ============================================================ */
.archive-header {
  background: var(--navy);
  padding: 40px 0;
  margin-bottom: 32px;
}

.archive-header .category-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 8px;
}

.archive-header .category-desc {
  color: var(--silver);
  font-size: 1.05rem;
  max-width: 600px;
}

.archive-header .category-name span { color: var(--gold); }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-header {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 24px;
}
.search-header span { color: var(--gold); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 32px 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  transition: all .2s;
}

.pagination a:hover,
.pagination .current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--silver);
  margin-top: auto;
}

.footer-top {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand .footer-logo span { color: var(--gold); }

.footer-brand p { font-size: .85rem; line-height: 1.6; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  font-size: .85rem;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-col ul a {
  color: var(--silver);
  font-size: .85rem;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: .75rem;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--silver); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================================
   BREAKING NEWS BAR
   ============================================================ */
.breaking-bar {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  padding: 8px 0;
  text-align: center;
  display: none;
}
.breaking-bar.active { display: block; }
.breaking-bar span { margin-right: 10px; opacity: .75; }

/* ============================================================
   FEATURED BADGE
   ============================================================ */
.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
}
.badge-featured { background: var(--gold); color: var(--navy); }
.badge-new      { background: var(--red); color: var(--white); }
.badge-popular  { background: var(--navy); color: var(--gold); }

/* ============================================================
   TABLE OF CONTENTS (SEO articles)
   ============================================================ */
.toc {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}
.toc-title {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.toc ol { padding-left: 1.2rem; margin: 0; }
.toc li { font-size: .9rem; margin-bottom: .3rem; }
.toc a { color: var(--navy); border-bottom: 1px solid var(--border); }
.toc a:hover { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   SCHEMA MARKUP HELPERS (visually invisible but SEO-ready)
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   SMOOTH SCROLL PROGRESS BAR
   ============================================================ */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  width: 0%;
  z-index: 9999;
  transition: width .1s linear;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s;
  z-index: 500;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--gold); color: var(--navy); }

/* ============================================================
   DARK MODE TOGGLE (optional)
   ============================================================ */
body.dark-mode {
  --white:    #1A1F2E;
  --offwhite: #141925;
  --text:     #E8E8EE;
  --border:   #2D3748;
  --text-muted: #8896A4;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-nav-wrapper,
  .news-ticker,
  .sidebar,
  .ad-slot,
  #back-to-top,
  #read-progress { display: none !important; }
  .content-area { grid-template-columns: 1fr; }
}
