/* ============================================
   The Lindsay Advocate — Editorial Stylesheet
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1D1D20;
  --color-accent: #214245;
  --color-accent-hover: #1a3436;
  --color-bg: #ffffff;
  --color-bg-warm: #FAFAF8;
  --color-bg-dark: #1D1D20;
  --color-text: #1D1D20;
  --color-text-secondary: #6B6B70;
  --color-text-light: #9B9BA0;
  --color-border: #E8E8EC;
  --color-border-light: #F0F0F4;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-xs: 0.6875rem;     /* 11px */
  --text-sm: 0.75rem;       /* 12px */
  --text-base: 0.875rem;    /* 14px */
  --text-md: 1rem;          /* 16px */
  --text-lg: 1.125rem;      /* 18px */
  --text-xl: 1.25rem;       /* 20px */
  --text-2xl: 1.5rem;       /* 24px */
  --text-3xl: 1.875rem;     /* 30px */
  --text-4xl: 2.25rem;      /* 36px */
  --text-5xl: 3rem;         /* 48px */
  --text-6xl: 3.75rem;      /* 60px */

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --max-width: 80rem;       /* 1280px */
  --content-width: 42rem;   /* 672px — article body */
  --transition-base: 350ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-accent);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skip-link:focus {
  top: 0;
  color: white;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

@media (min-width: 1280px) {
  .container {
    padding-left: var(--space-2xl);
    padding-right: var(--space-2xl);
  }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

@media (max-width: 767px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

.serif { font-family: var(--font-serif); }
.sans { font-family: var(--font-sans); }

/* Category label */
.category-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: inline-block;
}

.category-label:hover {
  color: var(--color-accent-hover);
}

/* Byline / meta */
.meta {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.meta a {
  font-weight: 600;
  color: var(--color-text);
}

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

/* Dek / excerpt */
.dek {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Logo */
.site-logo img {
  height: 32px;
  width: auto;
}

@media (min-width: 768px) {
  .site-logo img {
    height: 38px;
  }
}

/* Nav toggle (hamburger) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 5px;
  padding: 6px;
  border-radius: 4px;
  transition: background var(--transition-base);
}

.nav-toggle:hover {
  background: var(--color-border-light);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: all var(--transition-base);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Search button */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  transition: background var(--transition-base);
}

.search-toggle:hover {
  background: var(--color-border-light);
}

.search-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.search-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
}

/* Subscribe button in nav */
.btn-subscribe {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.btn-subscribe:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Desktop nav row */
.nav-desktop {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  height: 44px;
}

.nav-desktop a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  width: 100%;
}

.nav-desktop a:hover {
  color: var(--color-primary);
}

/* Mobile nav drawer */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  padding: var(--space-3xl) var(--space-lg);
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.nav-mobile-close:hover {
  background: var(--color-border-light);
}

.nav-mobile-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-mobile a {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  display: block;
  border-bottom: 1px solid var(--color-border-light);
}

.nav-mobile a:hover {
  color: var(--color-accent);
}

/* --- Search Overlay --- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  padding: 0 var(--space-lg);
}

.search-overlay-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: var(--text-xl);
}

.search-overlay-close:hover {
  background: var(--color-border-light);
}

.search-overlay-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.search-input-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--color-primary);
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
  background: transparent;
  outline: none;
  transition: border-color var(--transition-base);
  padding: 8px;
}

.search-input::placeholder {
  color: var(--color-text-light);
  font-size: 1.7rem;
}

.search-input:focus {
  border-bottom-color: var(--color-accent);
}

.search-submit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: var(--space-sm);
  color: var(--color-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), color var(--transition-base);
}

.search-submit:hover {
  background: var(--color-accent);
  color: #fff;
}

.search-submit:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Search Results Page --- */
.search-section-title {
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.search-results-list .post-card--horizontal .post-card-image {
  width: 90px;
  min-width: 90px;
  aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
  .search-results-list .post-card--horizontal .post-card-image {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 1 / 1;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 80vh;
  }
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
  max-width: 700px;
}

@media (min-width: 768px) {
  .hero-content {
    padding: var(--space-3xl) var(--space-2xl) var(--space-4xl);
  }
}

.hero-content .category-label {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.hero-content .category-label:hover {
  color: rgba(255, 255, 255, 0.8);
}

.hero-content h1 {
  color: #fff;
  margin-bottom: var(--space-md);
  font-weight: 800;
}

.hero-content .dek {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-md);
  margin-bottom: var(--space-md);
}

.hero-content .meta {
  color: rgba(255, 255, 255, 0.65);
}

.hero-content .meta a {
  color: rgba(255, 255, 255, 0.85);
}

.hero-content h1 a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.hero-content .meta a:hover {
  color: #fff;
}

/* --- Split Hero (Maclean's style - image left, text right) --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 60vh;
}

@media (min-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
  }
}

.hero-split-image {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.hero-split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-bg-dark);
  color: #fff;
}

@media (min-width: 768px) {
  .hero-split-text {
    padding: var(--space-3xl) var(--space-2xl);
  }
}

.hero-split-text .category-label {
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.hero-split-text h2 {
  color: #fff;
  margin-bottom: var(--space-md);
  font-size: var(--text-4xl);
}

.hero-split-text .dek {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-md);
}

.hero-split-text .meta {
  color: rgba(255, 255, 255, 0.5);
}

.hero-split-text .meta a {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
}

.section-header h2 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 0;
}

/* Dark section header variant */
.section-header--accent {
  border-bottom-color: var(--color-accent);
}

.section-header--accent h2 {
  color: var(--color-accent);
}

/* --- Post Cards --- */
.post-card {
  display: flex;
  flex-direction: column;
}

.post-card a {
  display: block;
}

.post-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: var(--space-md);
  background: var(--color-border-light);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-image img {
  transform: scale(1.03);
}

.post-card-body {
  flex: 1;
}

.post-card-body .category-label {
  margin-bottom: var(--space-xs);
}

.post-card-body h3 {
  margin-bottom: var(--space-sm);
  transition: color var(--transition-base);
}

.post-card:hover .post-card-body h3 {
  color: var(--color-accent);
}

.post-card-body .dek {
  margin-bottom: var(--space-sm);
}

/* Card size variants */
.post-card--small .post-card-image {
  aspect-ratio: 4 / 3;
}

.post-card--small h3 {
  font-size: var(--text-md);
}

.post-card--large h3 {
  font-size: var(--text-2xl);
}

@media (min-width: 768px) {
  .post-card--large h3 {
    font-size: var(--text-3xl);
  }
}

/* Horizontal card */
.post-card--horizontal {
  flex-direction: row;
  gap: var(--space-md);
}

.post-card--horizontal .post-card-image {
  width: 120px;
  min-width: 120px;
  aspect-ratio: 1 / 1;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .post-card--horizontal .post-card-image {
    width: 180px;
    min-width: 180px;
    aspect-ratio: 4 / 3;
  }
}

.post-card--horizontal h3 {
  font-size: var(--text-md);
}

/* Responsive article grids */
.more-from-grid,
.author-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .more-from-grid,
  .author-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .more-from-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Featured Card --- */
.featured-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 400px;
}

.featured-card-image {
  position: absolute;
  inset: 0;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-card:hover .featured-card-image img {
  transform: scale(1.03);
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.1) 60%
  );
}

.featured-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  z-index: 2;
}

.featured-card-content .category-label {
  margin-bottom: var(--space-xs);
}

.featured-card-content h3 {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.featured-card-content .dek {
  color: rgba(255, 255, 255, 0.75);
}

.featured-card-content .meta {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Grids --- */
.grid-2 {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Featured grid: large left + stacked right */
.grid-featured {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .grid-featured {
    grid-template-columns: 1.25fr 1fr;
  }
}

.grid-featured-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* --- Section Spacing --- */
.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

.section--warm {
  background: var(--color-bg-warm);
}

.section--dark {
  background: var(--color-bg-dark);
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

/* Horizontal rule divider */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* --- Ad Units --- */
.ad-unit {
  /* Shared base styles for all ad types */
}

.ad-unit-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  background: var(--color-bg-warm);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
  padding: var(--space-xl);
}

.ad-unit-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.ad-unit-image {
  max-width: 728px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.ad-unit-image img {
  width: 100%;
  height: auto;
}

/* In-feed ad variant — visible by default, no height animation */
.ad-unit--inline {
  margin: var(--space-xl) 0;
}

/* Section ad variant — scroll-mapped height reveal */
.ad-unit--section {
  margin: 0;
  overflow: hidden;
  height: 0;
  opacity: 0;
  will-change: height, opacity;
}

.ad-unit--section.is-revealed {
  height: 400px;
  opacity: 1;
}

/* --- Article Page --- */
.article-header {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-header .category-label {
  margin-bottom: var(--space-md);
}

.article-header h1 {
  margin-bottom: var(--space-md);
  font-weight: 800;
}

.article-header .dek {
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

.article-header .meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ── Audio Player ─────────────────────────────────────────── */
.article-audio {
  max-width: 28rem;
  margin: 1.25rem auto;
}

.audio-player-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-bg-warm);
}

.audio-player-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.audio-player-meta svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.audio-player-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.audio-player-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.audio-player-duration {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

#article-audio {
  width: 100%;
}

.audio-notice {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.article-hero {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 70vh;
}

.article-hero figcaption {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--space-sm) var(--space-lg);
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* Article content robustness — wide media/tables scroll instead of clipping on mobile */
.article-body img { border-radius: 4px; }
.article-body table { display: block; width: 100%; overflow-x: auto; }
.article-body iframe,
.article-body video { max-width: 100%; }
.article-body pre { overflow-x: auto; }

.article-body p {
  margin-bottom: var(--space-lg);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.article-body h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-body h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-xl);
  margin: var(--space-xl) 0;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: var(--leading-snug);
}

.article-body figure {
  margin: var(--space-2xl) 0;
}

.article-body figcaption {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

/* Author box */
.author-box {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  max-width: var(--content-width);
  margin: var(--space-2xl) auto;
}

.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-box-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box-info h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.author-box-role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.author-box-info p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

/* --- Comments --- */
.comments-section {
  max-width: var(--content-width);
  margin: 0 auto var(--space-3xl);
  padding: var(--space-xl) var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}

.comments-heading {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.comment:last-child {
  border-bottom: none;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.comment-author {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}

.comment-author a {
  color: var(--color-text);
}

.comment-author a:hover {
  color: var(--color-accent);
}

.comment-date {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.comment-body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
}

/* --- Comment Form --- */
.comment-form-section {
  max-width: var(--content-width);
  margin: 0 auto var(--space-3xl);
  padding: var(--space-xl) var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}

.comment-form-note {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .comment-form-row { grid-template-columns: 1fr 1fr; }
}

.form-field-error {
  display: block;
  font-size: var(--text-sm);
  color: #c0392b;
  margin-top: var(--space-xs);
  min-height: 1.2em;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.comment-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.comment-form-status {
  font-size: var(--text-sm);
  font-family: var(--font-sans);
}

.comment-form-status--success { color: #1a6b3c; }
.comment-form-status--error   { color: #c0392b; }

/* --- Category Page --- */
.category-header {
  padding: var(--space-2xl) 0;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: var(--space-2xl);
}

.category-header h1 {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-header p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger > .fade-in:nth-child(2) { transition-delay: 80ms; }
.stagger > .fade-in:nth-child(3) { transition-delay: 160ms; }
.stagger > .fade-in:nth-child(4) { transition-delay: 240ms; }
.stagger > .fade-in:nth-child(5) { transition-delay: 320ms; }
.stagger > .fade-in:nth-child(6) { transition-delay: 400ms; }

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

.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }

/* Focus visible for keyboard nav */
:focus-visible {
  /*outline: 2px solid var(--color-accent);*/
  /*outline-offset: 2px;*/
}

/* Ensure smooth scroll for anchor links */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ad-unit--section {
    height: 400px;
    opacity: 1;
  }
}

/* --- Newsletter block --- */
.newsletter-block {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-bg-warm);
}

.newsletter-block h3 {
  margin-bottom: var(--space-sm);
}

.newsletter-block p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  outline: none;
  transition: border-color var(--transition-base);
}

.newsletter-form input:focus {
  border-color: var(--color-accent);
}

.newsletter-form button {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 4px;
  transition: background var(--transition-base);
}

.newsletter-form button:hover {
  background: var(--color-accent);
}

/* --- Dark band (Maclean's "The Trump Effect" style section header bar) --- */
.band {
  background: var(--color-bg-dark);
  padding: var(--space-md) 0;
  text-align: center;
}

.band h2 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
}

/* --- About Page — Hero --- */
.about-hero {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .about-hero {
    min-height: 60vh;
  }
}

.about-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(29, 29, 32, 0.55) 0%,
    rgba(29, 29, 32, 0.7) 100%
  );
}

.about-hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 700px;
}

.about-hero-content h1 {
  color: #fff;
  margin-bottom: var(--space-md);
  font-weight: 800;
}

.about-hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

/* --- About Page — Mission --- */
.about-mission {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.about-mission p {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .about-mission p {
    font-size: var(--text-2xl);
  }
}

/* --- About Page — Staff Grid --- */
.staff-grid {
  display: grid;
  gap: var(--space-2xl);
}

@media (min-width: 640px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.staff-card {
  text-align: center;
}

.staff-card-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  background: var(--color-border-light);
}

.staff-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.staff-card-role {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  display: block;
}

.staff-card p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  max-width: 320px;
  margin: 0 auto;
}

/* --- About Page — Timeline --- */
.timeline {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}

.timeline-year {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  display: block;
}

.timeline-item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.timeline-item p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* --- About Page — Values Grid --- */
.values-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-align: center;
  transition: border-color var(--transition-base);
}

.value-card:hover {
  border-color: var(--color-accent);
}

.value-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--color-accent);
}

.value-card-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

/* --- About Page — CTA Block --- */
.about-cta {
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.about-cta h2 {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.about-cta p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-xl);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}

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

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: #fff;
  color: #fff;
}

/* --- Support Banner (Promo A) --- */
.support-banner {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-accent);
  /*background: var(--color-bg-warm);*/
}

.support-banner-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
  .support-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2xl) 0;
  }
}

.support-banner-text h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
  color: #FFF;
}

@media (min-width: 768px) {
  .support-banner-text h2 {
    font-size: var(--text-3xl);
  }
}

.support-banner-text p {
  font-size: var(--text-base);
  color: var(--color-text-light);
  max-width: 540px;
}

/* --- Magazine Promo (Promo B) --- */
.magazine-promo {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.magazine-promo-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .magazine-promo-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.magazine-promo-text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .magazine-promo-text h2 {
    font-size: var(--text-4xl);
  }
}

.magazine-promo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.magazine-promo-covers {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.magazine-cover {
  display: block;
  max-width: 340px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.magazine-cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.magazine-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* --- Button Dark Variant (for light backgrounds) --- */
.btn--dark {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}

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

.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

.btn--outline-dark:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Contact Page --- */
.contact-hero {
  position: relative;
  width: 100%;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .contact-hero {
    min-height: 50vh;
  }
}

.contact-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(29, 29, 32, 0.5) 0%,
    rgba(29, 29, 32, 0.65) 100%
  );
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) var(--space-lg);
}

.contact-hero-content h1 {
  color: #fff;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.contact-hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
}

/* Contact info cards */
.contact-info-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-info-card {
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.contact-info-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.contact-info-card p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-sm);
}

.contact-info-card p:last-child {
  margin-bottom: 0;
}

.contact-info-card a {
  color: var(--color-accent);
  font-weight: 600;
}

.contact-info-card a:hover {
  color: var(--color-accent-hover);
}

/* Contact form */
.contact-form-section {
  max-width: var(--content-width);
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  padding: 0.75rem var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(33, 66, 69, 0.1);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B70' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --- Form Banners --- */
.form-banner {
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
}
.form-banner--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.form-banner--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* --- Support Page --- */
.support-hero {
  position: relative;
  width: 100%;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .support-hero {
    min-height: 50vh;
  }
}

.support-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(29, 29, 32, 0.5) 0%,
    rgba(29, 29, 32, 0.65) 100%
  );
}

.support-hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) var(--space-lg);
}

.support-hero-content h1 {
  color: #fff;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.support-hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
}

/* Support content sections */
.support-section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.support-section h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.support-section p {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.support-section p:last-child {
  margin-bottom: 0;
}

.support-section .btn {
  margin-top: var(--space-sm);
}

/* --- Expanded Staff Grid (4-col at large) --- */
@media (min-width: 1280px) {
  .staff-grid--large {
    grid-template-columns: repeat(4, 1fr);
  }
}

.staff-card--compact .staff-card-photo {
  width: 120px;
  height: 120px;
}

.staff-card--compact h3 {
  font-size: var(--text-md);
}

.staff-card--compact p {
  font-size: var(--text-sm);
}

/* --- Linked compact staff cards: clickable affordance only when the card is
   actually an <a> (Writers & Columnists, Guest Columnists). Plain contributor
   pods render as <div> and must not show a hand cursor or hover state. --- */
a.staff-card--compact .staff-card-photo,
a.staff-card--compact h3 {
  cursor: pointer;
}

a.staff-card--compact .staff-card-photo:hover {
  opacity: 0.85;
  transition: opacity 150ms ease;
}

a.staff-card--compact h3:hover {
  color: var(--color-accent);
  transition: color 150ms ease;
}

.staff-card--compact p {
  /* Hide inline bio — shown in modal instead */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.staff-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.staff-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.staff-modal {
  background: var(--color-bg);
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  position: relative;
  text-align: center;
  transform: translateY(12px);
  transition: transform 200ms ease;
}

.staff-modal-overlay.is-open .staff-modal {
  transform: translateY(0);
}

.staff-modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
  color: var(--color-text-secondary);
  line-height: 1;
}

.staff-modal-close:hover {
  color: var(--color-text);
}

.staff-modal-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

.staff-modal-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  background: var(--color-border-light);
}

.staff-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-modal h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.staff-modal .staff-card-role {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  display: block;
}

.staff-modal .staff-modal-bio {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  text-align: left;
  margin: 0;
}

@media print {
  .staff-modal-overlay {
    display: none;
  }
  .staff-card--compact p {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

/* --- Guide Promo Card --- */
.guide-promo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .guide-promo {
    grid-template-columns: 1fr 1fr;
  }
}

.guide-promo-image {
  border-radius: 4px;
  overflow: hidden;
}

.guide-promo-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.guide-promo-text h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .guide-promo-text h2 {
    font-size: var(--text-3xl);
  }
}

.guide-promo-text p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

/* --- Print --- */
@media print {
  .site-header,
  .site-footer,
  .ad-unit,
  .search-overlay,
  .nav-mobile {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}

/* ============================================================
   ADVOCATE SITE ADDITIONS
   About-page sections, magazine dropdown, support split,
   pickup-location list, and the KLW separation notice.
   ============================================================ */

/* --- About page: centered section header with a ~60% underline --- */
.section-header--centered {
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: 0;
  border-bottom: none;
  text-align: center;
}

.section-header--centered::after {
  flex: none;
  width: 60%;
  height: 0;
  border-bottom: 2px solid var(--color-primary);
}

.section-header--centered.section-header--accent::after {
  border-bottom-color: var(--color-accent);
}

/* --- About page: centered contributor pods (overrides the grid) --- */
.staff-grid--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.staff-grid--center > .staff-card {
  flex: 0 1 14rem;
}

/* --- About page: Guest Columnists as centered, linked name columns --- */
.guest-columnists {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs) var(--space-2xl);
  max-width: 60rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .guest-columnists { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .guest-columnists { grid-template-columns: repeat(4, 1fr); }
}

.guest-columnist {
  display: block;
  padding: var(--space-sm) 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
  text-align: center;
  transition: color 150ms ease;
}

.guest-columnist:hover,
.guest-columnist:focus-visible {
  color: var(--color-accent);
}

/* --- Support page: intro copy beside the Donorbox form --- */
.support-section--split {
  max-width: 66rem;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 600px);
  gap: var(--space-2xl) var(--space-3xl);
  align-items: center;
}

.support-split-text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.donate-embed { width: 100%; }

@media (max-width: 880px) {
  .support-section--split { grid-template-columns: 1fr; }
}

/* --- Desktop nav: Magazine hover dropdown --- */
.nav-desktop .nav-dropdown { position: relative; }

.nav-desktop .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.nav-desktop .nav-dropdown-caret { transition: transform 150ms ease; }

.nav-desktop .nav-dropdown:hover .nav-dropdown-caret,
.nav-desktop .nav-dropdown:focus-within .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-desktop .nav-dropdown-menu {
  display: none;
  height: auto;   /* override the fixed 44px bar height inherited from `.nav-desktop ul` */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 15rem;
  margin: 0;
  padding: var(--space-xs) 0;
  list-style: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

/* invisible bridge so the menu survives the gap between toggle and panel */
.nav-desktop .nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-desktop .nav-dropdown:hover .nav-dropdown-menu,
.nav-desktop .nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-desktop .nav-dropdown-menu li { margin: 0; }

.nav-desktop .nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text);
  white-space: nowrap;
}

.nav-desktop .nav-dropdown-menu a:hover,
.nav-desktop .nav-dropdown-menu a:focus {
  background: rgba(33, 66, 69, 0.08);
  color: var(--color-accent);
}

/* dropdown items shouldn't inherit the sliding underline used by top-level nav links */
.nav-desktop .nav-dropdown-menu a::after { display: none; }

/* --- Where to Get the Advocate: filterable three-column pickup list --- */
.location-search {
  position: relative;
  max-width: 32rem;
  margin: 0 auto var(--space-3xl);
}

.location-search-icon {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  color: var(--color-text-light);
  pointer-events: none;
}

.location-search-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg) var(--space-md) calc(var(--space-lg) + 1.75rem);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.location-search-input::placeholder { color: var(--color-text-light); }

.location-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(33, 66, 69, 0.12);
}

.locations-grid {
  column-count: 3;
  column-gap: var(--space-2xl);
}

@media (max-width: 900px) { .locations-grid { column-count: 2; } }
@media (max-width: 560px) { .locations-grid { column-count: 1; } }

.location-group {
  break-inside: avoid;
  margin-bottom: var(--space-2xl);
}

.location-group-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.location-list { list-style: none; margin: 0; padding: 0; }

.location-item {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  padding: var(--space-xs) 0;
}

.locations-empty {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  padding: var(--space-3xl) 0;
}

/* --- Kawartha Lakes Weekly separation notice (bar + modal + footer note) --- */
.klw-bar {
  background: #000;
  color: #fff;
  text-align: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
}

.klw-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.klw-bar-close {
  margin-left: var(--space-md);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.klw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.klw-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.klw-modal {
  background: #fff;
  max-width: 32rem;
  width: 100%;
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.klw-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: var(--space-xs);
  line-height: 1;
}

.klw-modal h2 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: #000;
  margin-bottom: var(--space-md);
}

.klw-modal p {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

.klw-modal-btn {
  display: block;
  width: 100%;
  background: #000;
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 700;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid #000;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background 150ms ease, color 150ms ease;
}

.klw-modal-btn:hover {
  background: #fff;
  color: #000;
}

.klw-modal-continue {
  display: inline-block;
  margin-top: var(--space-lg);
  font-size: var(--text-base);
  color: #000;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
}

.klw-modal-continue:hover { color: var(--color-accent); }

.footer-klw-note {
  text-align: center;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
}

.footer-klw-note a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}
