/* ============================================================
   WORLD FACTS — Main Stylesheet
   Editorial, newspaper-inspired design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #F8F9FA;
  --off-black: #F8F9FA;
  --charcoal: #D1D5DB;
  --gray-dark: #D1D5DB;
  --gray-mid: #D1D5DB;
  --gray-light: #F8F9FA;
  --gray-pale: #2D3748;
  --gray-ghost: #1A202C;
  --white: #101418;
  --accent: #0F5132;
  --accent-dark: #198754;
  --accent-light: #D4AF37;
  --primary-text: #F8F9FA;
  --secondary-text: #D1D5DB;
  --background: #101418;
  --card-background: #1A202C;
  --border-color: #2D3748;
  --interactive: #198754;
  --rule: #2D3748;
  --serif: 'Playfair Display', Georgia, serif;
  --body-serif: 'EB Garamond', Georgia, serif;
  --sans: 'Source Sans 3', sans-serif;
  --max-w: 1280px;
  --content-w: 720px;
}

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

body {
  font-family: var(--body-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
}

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

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.text-accent { color: var(--accent-light); }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  border-bottom: 3px solid var(--gray-pale);
  padding: 18px 0 12px;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--black);
}

.logo-main span { color: var(--accent); }

.logo-tagline {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray-mid);
  margin-top: 3px;
}

.header-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--gray-dark);
  text-align: right;
}

.header-nav {
  border-bottom: 1px solid var(--gray-pale);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list a {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  padding: 11px 16px;
  border-right: 1px solid var(--gray-pale);
  transition: background 0.15s, color 0.15s;
}

.nav-list a:hover { background: var(--accent-dark); color: var(--white); }
.nav-list a.active { background: var(--accent); color: var(--white); }

.nav-cta {
  margin-left: auto;
  padding: 0 0 0 16px;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--gray-pale);
}
.btn--outline:hover { background: var(--accent-dark); color: var(--white); border-color: var(--accent-dark); }

.btn--ghost {
  background: transparent;
  color: var(--accent-light);
  padding: 0;
  font-size: 0.78rem;
}
.btn--ghost:hover { color: var(--accent-dark); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

/* ============================================================
   TICKER / BREAKING LINE
   ============================================================ */

.news-ticker {
  background: var(--accent);
  color: var(--white);
  overflow: hidden;
  padding: 7px 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ticker-label {
  background: var(--accent-light);
  color: var(--white);
  padding: 2px 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.ticker-scroll {
  overflow: hidden;
  flex: 1;
}

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

.ticker-track span::before {
  content: '◆';
  margin-right: 12px;
  color: var(--gray-light);
  font-size: 0.6em;
}

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

/* ============================================================
   HERO / FEATURED
   ============================================================ */

.hero {
  padding: 48px 0 40px;
  border-bottom: 3px solid var(--black);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  filter: grayscale(25%);
  transition: filter 0.4s;
}

.hero-image-wrap:hover img { filter: grayscale(0%); }

.category-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  background: var(--accent);
  padding: 3px 10px;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-family: var(--body-serif);
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--gray-mid);
  flex-wrap: wrap;
}

.article-meta .author { color: var(--black); font-weight: 600; }
.article-meta .divider { color: var(--gray-pale); }

/* Hero sidebar */
.hero-sidebar { border-left: 3px solid var(--black); padding-left: 32px; }

.sidebar-heading {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-mid);
  border-bottom: 1px solid var(--gray-pale);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.sidebar-article {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-ghost);
}

.sidebar-article:last-child { border-bottom: none; }

.sidebar-article img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  filter: grayscale(30%);
}

.sidebar-article h4 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.sidebar-article a:hover h4 { color: var(--accent); }

/* ============================================================
   SECTION DIVIDER
   ============================================================ */

.section-rule {
  border: none;
  border-top: 3px solid var(--black);
  margin: 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--gray-pale);
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 40px 0;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--gray-pale);
  padding-bottom: 24px;
}

.article-card__image {
  overflow: hidden;
  margin-bottom: 16px;
}

.article-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s, transform 0.4s;
}

.article-card__image:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.article-card__body { flex: 1; }

.article-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.article-card a:hover .article-card__title { color: var(--accent); }

.article-card__excerpt {
  font-family: var(--body-serif);
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* ============================================================
   TOPIC BELT
   ============================================================ */

.topic-belt {
  background: var(--black);
  color: var(--white);
  padding: 40px 0;
  margin: 48px 0;
}

.topic-belt .section-title { color: var(--white); border-color: var(--accent); }

.topics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(248,249,250,0.12);
  margin-top: 24px;
}

.topic-card {
  background: var(--black);
  padding: 24px 20px;
  text-align: center;
  transition: background 0.2s;
  cursor: pointer;
}

.topic-card:hover { background: var(--accent); }

.topic-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.topic-name {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 3px solid var(--black);
  margin: 48px 0;
}

.stat-item {
  padding: 28px 24px;
  border-right: 3px solid var(--black);
  text-align: center;
}

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

.stat-number {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  text-align: center;
  padding: 60px 0;
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.cta-section p {
  font-family: var(--body-serif);
  font-size: 1.1rem;
  color: var(--charcoal);
  max-width: 520px;
  margin: 0 auto 28px;
  font-style: italic;
}

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */

.page-header {
  border-bottom: 3px solid var(--black);
  padding: 48px 0 36px;
  text-align: center;
}

.page-header .page-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-header p {
  font-family: var(--body-serif);
  font-size: 1.1rem;
  color: var(--charcoal);
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ============================================================
   ARTICLE DETAIL PAGE
   ============================================================ */

.article-full {
  padding: 48px 0 64px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-main {
  min-width: 0;
  width: 100%;
}

.article-sidebar {
  width: 100%;
}

.sidebar-sticky {
  position: sticky;
  top: 96px;
  align-self: start;
}

.sidebar-ad {
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
}

.ad-container--vertical-zillow {
  width: 100%;
  aspect-ratio: 160 / 600;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.07);
  overflow: hidden;
}

.ad-container--vertical-zillow img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.ad-container--vertical-zillow .ad-title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: #006aff;
  margin: 18px 0 10px;
  text-align: center;
}

.ad-container--vertical-zillow .ad-copy {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  text-align: center;
  margin-bottom: 18px;
}

.ad-container--vertical-zillow .ad-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
  background: #006aff;
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-sticky {
    position: static;
    top: auto;
  }
  .sidebar-ad {
    max-width: 280px;
  }
}

.article-header {
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 0 24px;
}

.article-header .category-tag { margin-bottom: 16px; }
.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.article-header .hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.article-header .article-meta { margin-bottom: 32px; }

.article-hero-image {
  max-width: 1000px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.article-hero-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: var(--body-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--off-black);
}

.article-body .article-lead {
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--black);
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 1.8em;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2em 0 0.7em;
  padding-top: 1em;
  border-top: 1px solid var(--gray-pale);
}

.article-body blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--accent);
  background: var(--gray-ghost);
}

.article-body blockquote p {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--charcoal);
  margin: 0;
}

/* Tags */
.article-tags {
  max-width: 680px;
  margin: 48px auto 0;
  padding: 28px 24px 0;
  border-top: 1px solid var(--gray-pale);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
  margin-right: 4px;
}

.tag-pill {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  border: 1px solid var(--gray-pale);
  padding: 4px 12px;
  transition: all 0.2s;
}
.tag-pill:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */

.blog-listing {
  padding: 48px 0 80px;
}

.blog-filters {
  display: flex;
  gap: 0;
  border: 2px solid var(--black);
  width: fit-content;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  background: none;
  border: none;
  border-right: 2px solid var(--black);
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:last-child { border-right: none; }
.filter-btn:hover, .filter-btn.active { background: var(--black); color: var(--white); }

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.blog-card {
  border-top: 3px solid var(--black);
  padding-top: 20px;
}

.blog-card__image {
  overflow: hidden;
  margin-bottom: 16px;
}

.blog-card__image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.4s, transform 0.4s;
}

.blog-card:hover .blog-card__image img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.blog-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.blog-card a:hover .blog-card__title { color: var(--accent); }

.blog-card__excerpt {
  font-family: var(--body-serif);
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.65;
  margin-bottom: 14px;
}

.blog-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--gray-mid);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px;
}

.about-body h2 {
  font-size: 1.6rem;
  margin: 2em 0 0.7em;
  border-top: 1px solid var(--gray-pale);
  padding-top: 1.4em;
}

.about-body h2:first-of-type { border-top: none; padding-top: 0; }

.about-body p {
  font-family: var(--body-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--off-black);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-pale);
  border: 1px solid var(--gray-pale);
  margin: 2em 0;
}

.value-card {
  background: var(--white);
  padding: 28px 24px;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}

.value-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   EDITORIAL PAGE
   ============================================================ */

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0 80px;
}

.editorial-main {}

.editorial-piece {
  border-top: 3px solid var(--black);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
}

.editorial-piece:last-child { border-bottom: 1px solid var(--gray-pale); }

.editorial-kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}

.editorial-piece h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.editorial-piece p {
  font-family: var(--body-serif);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--charcoal);
}

.editorial-piece img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: grayscale(20%);
}

.editorial-sidebar {}

.sidebar-box {
  border: 3px solid var(--black);
  padding: 24px;
  margin-bottom: 32px;
}

.sidebar-box-title {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 2px solid var(--black);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  padding: 56px 0 80px;
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-info p {
  font-family: var(--body-serif);
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 1em;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-ghost);
}

.contact-detail-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.contact-detail-text {}
.contact-detail-text strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
  margin-bottom: 2px;
}

/* ============================================================
   POPUP / MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16,20,24,0.82);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal { transform: translateY(0); }

.modal-header {
  background: var(--black);
  color: var(--white);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.modal-close:hover { opacity: 1; }

.modal-body { padding: 28px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 2px solid var(--gray-pale);
  border-radius: 0;
  padding: 10px 14px;
  font-family: var(--body-serif);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--black);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-check label {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--charcoal);
  line-height: 1.5;
}

.form-check a { color: var(--accent); text-decoration: underline; }

.form-success {
  display: none;
  text-align: center;
  padding: 28px;
}

.form-success .success-icon { font-size: 3rem; margin-bottom: 12px; }

.form-success h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.form-success p {
  font-family: var(--body-serif);
  color: var(--charcoal);
  font-style: italic;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--off-black);
  color: var(--white);
  padding: 20px 24px;
  z-index: 999;
  border-top: 3px solid var(--accent);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.75;
  color: inherit;
  min-width: 260px;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.cookie-text a { color: var(--accent); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn--cookie-accept {
  background: var(--accent);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn--cookie-accept:hover { background: var(--accent-dark); }

.btn--cookie-decline {
  background: transparent;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: all 0.2s;
}
.btn--cookie-decline:hover { color: var(--white); border-color: var(--white); }

@media (max-width: 640px) {
  .cookie-inner {
    gap: 16px;
  }
  .cookie-text {
    flex: 1 1 100%;
    min-width: auto;
    font-size: 0.92rem;
  }
  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .btn--cookie-accept,
  .btn--cookie-decline {
    flex: 1 1 auto;
    min-width: 140px;
  }
}

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

.site-footer {
  background: var(--background);
  color: var(--primary-text);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand .logo-main { color: var(--primary-text); font-size: 1.4rem; }
.footer-brand .logo-main span { color: var(--accent-light); }
.footer-brand .logo-tagline { color: var(--secondary-text); margin-bottom: 16px; }
.footer-brand p {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--secondary-text);
  line-height: 1.65;
}

.footer-col-title {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-text);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--secondary-text);
  transition: color 0.2s, background-color 0.2s;
}
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a:active {
  color: var(--primary-text);
  outline: none;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--secondary-text);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--secondary-text);
  transition: color 0.2s;
}
.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-legal a:active {
  color: var(--accent-light);
  outline: none;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin: 2.5em 0 0.7em;
  padding-top: 1.5em;
  border-top: 1px solid var(--gray-pale);
}
.legal-body h2:first-of-type { border-top: none; padding-top: 0; }

.legal-body p, .legal-body li {
  font-family: var(--body-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--off-black);
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.legal-body ul li { margin-bottom: 0.4em; }

.legal-last-updated {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--gray-mid);
  border-top: 1px solid var(--gray-pale);
  padding-top: 12px;
  margin-top: 48px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { border-left: none; border-top: 3px solid var(--black); padding-left: 0; padding-top: 28px; }
  .sidebar-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header-nav { display: none; }
  .header-nav.open { display: block; }
  .nav-list { flex-direction: column; border-top: 1px solid var(--gray-pale); }
  .nav-list a { border-right: none; border-bottom: 1px solid var(--gray-pale); }
  .nav-cta { padding: 12px 16px; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .blog-cards-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 3px solid var(--black); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .about-values { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .editorial-piece { grid-template-columns: 1fr; }
  .editorial-piece img { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .articles-grid { grid-template-columns: 1fr; }
  .blog-cards-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-top .container { flex-wrap: wrap; }
  .header-meta { display: none; }
  .editorial-sidebar { grid-template-columns: 1fr; }
}

/* ============================================================
   ADVERTISEMENT PLACEHOLDERS
   Responsive ad slots — ready for Google AdSense.
   To go live: replace the contents of .ad-box (or the whole
   div) with your AdSense <ins class="adsbygoogle"> unit + script.
   ============================================================ */
.ad-slot {
  width: 100%;
  padding: 22px 0;
}
.ad-slot--top .container,
.ad-slot--bottom .container,
.ad-slot--tight {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ad-slot--top .ad-container,
.ad-slot--tight .ad-container,
.ad-slot--bottom .ad-container {
  width: min(100%, 970px) !important;
  max-width: 970px;
  margin: 0 auto;
  box-sizing: border-box;
}
.ad-slot--top .ad-container {
  max-width: 728px;
}
.ad-slot--tight { padding: 16px 0; }
.ad-slot--sidebar { padding: 0 0 24px; }

.ad-slot--sidebar .ad-box {
  width: min(100%, 340px);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
}

.ad-slot--sidebar .ad-container {
  width: min(100%, 300px) !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 300 / 250;
  margin: 0;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .ad-slot--sidebar .ad-box {
    width: 100%;
  }
  .ad-slot--sidebar .ad-container {
    width: 100% !important;
  }
}

.ad-box {
  width: 100%;
  min-height: 100px;
  margin: 0 auto;
  background: var(--card-background);
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 16px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.ad-box:hover { border-color: var(--gray-mid); }

.ad-box__label {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gray-mid);
}
.ad-box__meta {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--gray-dark);
}

/* Size variants — swap in your AdSense unit, the box stays responsive */
.ad-box--leaderboard { min-height: 90px;  max-width: 728px; }
.ad-box--banner      { min-height: 100px; max-width: 970px; }
.ad-box--rectangle   { min-height: 250px; max-width: 336px; }
.ad-box--in-content  { min-height: 120px; max-width: 100%; }
.ad-box--sidebar     { min-height: 250px; max-width: 100%; }

@media (max-width: 768px) {
  .ad-box { min-height: 100px; padding: 14px 12px; }
  .ad-box--leaderboard,
  .ad-box--banner,
  .ad-box--rectangle { max-width: 100%; }
}
