/**
 * Advertise Page Styles
 * Plat Street - Premium Advertising Experience
 */

/* ══════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --ad-ink: #16130F;
  --ad-amber: #B5610A;
  --ad-amber-light: #D4842E;
  --ad-blue: #2A4C72;
  --ad-green: #2E5E28;
  --ad-purple: #4A2D6F;
  --ad-paper: #F4EFE4;
  --ad-white: #FFFFFF;
  --ad-muted: #888888;
  --ad-mid: #555555;
  --ad-rule: #D2CAB8;
  --ad-dark: #1A1208;
}

/* ══════════════════════════════════════════════════════════════════════════
   BACK BUTTON
   ══════════════════════════════════════════════════════════════════════════ */
.ad-back-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250, 249, 246, 0.7) !important;
  font-family: var(--f-ui), system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  z-index: 10;
}

.ad-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FAF9F6 !important;
  text-decoration: none !important;
}

.ad-back-btn svg {
  opacity: 0.8;
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.ad-hero {
  background: linear-gradient(135deg, var(--ad-dark) 0%, #0D0B08 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.ad-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(181, 97, 10, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(181, 97, 10, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.ad-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}

.ad-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ad-amber);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.ad-hero-kicker::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ad-amber);
}

.ad-hero h1 {
  font-family: var(--f-masthead);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--ad-white);
  max-width: 900px;
  margin-bottom: 24px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease 0.1s forwards;
}

.ad-hero-sub {
  font-family: var(--f-ui);
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

/* Stats Row */
.ad-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  max-width: 1000px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease 0.3s forwards;
}

.ad-stat {
  background: rgba(255,255,255,0.03);
  padding: 32px;
  transition: background 0.3s ease;
}

.ad-stat:hover {
  background: rgba(255,255,255,0.06);
}

.ad-stat-number {
  font-family: var(--f-masthead);
  font-size: 42px;
  font-weight: 700;
  color: var(--ad-amber);
  line-height: 1;
  margin-bottom: 8px;
}

.ad-stat-label {
  font-family: var(--f-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════════
   INDEPENDENCE BOX
   ══════════════════════════════════════════════════════════════════════════ */
.ad-independence {
  background: var(--ad-white);
  border-left: 4px solid var(--ad-amber);
  padding: 40px 48px;
  margin: -40px 48px 0;
  position: relative;
  z-index: 2;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.ad-independence h3 {
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ad-amber);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-independence h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ad-rule);
}

.ad-independence p {
  font-family: var(--f-ui);
  font-size: 15px;
  color: var(--ad-mid);
  line-height: 1.75;
  max-width: 900px;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════════════════════════════════════════════ */
.ad-section {
  padding: 80px 0;
}

.ad-section--white { background: var(--ad-white); }
.ad-section--paper { background: var(--ad-paper); }
.ad-section--dark { background: var(--ad-dark); color: var(--ad-white); }

.ad-section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
}

.ad-section-kicker {
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ad-amber);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-section-kicker::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--ad-amber);
}

.ad-section-title {
  font-family: var(--f-masthead);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ad-section-intro {
  font-family: var(--f-ui);
  font-size: 16px;
  color: var(--ad-mid);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.ad-section--dark .ad-section-intro {
  color: rgba(255,255,255,0.65);
}

/* ══════════════════════════════════════════════════════════════════════════
   INTERACTIVE MAP
   ══════════════════════════════════════════════════════════════════════════ */
.ad-map-container {
  background: var(--ad-dark);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.ad-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ad-map-title {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ad-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-map-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--ad-amber);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.ad-map-legend {
  display: flex;
  gap: 20px;
}

.ad-map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.ad-map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ad-map-legend-dot--high { background: var(--ad-amber); }
.ad-map-legend-dot--medium { background: rgba(181, 97, 10, 0.6); }
.ad-map-legend-dot--low { background: rgba(181, 97, 10, 0.3); }

#district-map {
  height: 480px;
  width: 100%;
  background: #0D0B08;
}

.ad-map-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}

.ad-map-stat {
  padding: 20px 28px;
  background: rgba(255,255,255,0.02);
}

.ad-map-stat-value {
  font-family: var(--f-masthead);
  font-size: 24px;
  font-weight: 700;
  color: var(--ad-amber);
  margin-bottom: 4px;
}

.ad-map-stat-label {
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}

/* ══════════════════════════════════════════════════════════════════════════
   AUDIENCE COMPOSITION CHART
   ══════════════════════════════════════════════════════════════════════════ */
.ad-audience-chart {
  background: var(--ad-white);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 48px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ad-audience-chart-title {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ad-ink);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-audience-chart-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ad-rule);
}

.ad-audience-bars {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ad-audience-bar {
  display: grid;
  grid-template-columns: 180px 1fr 100px;
  align-items: center;
  gap: 20px;
}

.ad-audience-bar-label {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ad-ink);
}

.ad-audience-bar-section {
  font-size: 11px;
  font-weight: 400;
  color: var(--ad-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.ad-audience-bar-track {
  height: 32px;
  background: var(--ad-paper);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.ad-audience-bar-fill {
  height: 100%;
  border-radius: 6px;
  position: relative;
  transition: width 1s ease;
}

.ad-audience-bar-fill--bo { background: linear-gradient(90deg, var(--ad-amber), var(--ad-amber-light)); }
.ad-audience-bar-fill--fr { background: linear-gradient(90deg, var(--ad-blue), #3A6C9A); }
.ad-audience-bar-fill--gd { background: linear-gradient(90deg, var(--ad-green), #4A8E42); }
.ad-audience-bar-fill--cc { background: linear-gradient(90deg, var(--ad-purple), #6A4D9F); }

.ad-audience-bar-value {
  font-family: var(--f-masthead);
  font-size: 20px;
  font-weight: 700;
  color: var(--ad-ink);
  text-align: right;
}

/* ══════════════════════════════════════════════════════════════════════════
   AUDIENCE CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.ad-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .ad-audience-buying-power {
    flex-direction: column;
    gap: 16px;
  }
}

.ad-audience-card {
  background: var(--ad-white);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.ad-audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.ad-audience-card--bo::before { background: var(--ad-amber); }
.ad-audience-card--fr::before { background: var(--ad-blue); }
.ad-audience-card--gd::before { background: var(--ad-green); }
.ad-audience-card--cc::before { background: var(--ad-purple); }

.ad-audience-tag {
  font-family: var(--f-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 12px;
}

.ad-audience-tag--bo { color: var(--ad-amber); }
.ad-audience-tag--fr { color: var(--ad-blue); }
.ad-audience-tag--gd { color: var(--ad-green); }
.ad-audience-tag--cc { color: var(--ad-purple); }

.ad-audience-card h3 {
  font-family: var(--f-masthead);
  font-size: 26px;
  font-weight: 700;
  color: var(--ad-ink);
  margin-bottom: 4px;
}

.ad-audience-subtitle {
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--ad-muted);
  font-style: italic;
  margin-bottom: 24px;
}

.ad-audience-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.ad-audience-number {
  font-family: var(--f-masthead);
  font-size: 32px;
  font-weight: 700;
}

.ad-audience-number--bo { color: var(--ad-amber); }
.ad-audience-number--fr { color: var(--ad-blue); }
.ad-audience-number--gd { color: var(--ad-green); }
.ad-audience-number--cc { color: var(--ad-purple); }

.ad-audience-metric-label {
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ad-muted);
}

.ad-audience-buying-power {
  margin: 20px 0;
}

.ad-buying-stat {
  text-align: center;
}

.ad-buying-value {
  font-family: var(--f-masthead);
  font-size: 24px;
  font-weight: 700;
  color: var(--ad-amber);
  line-height: 1;
}

.ad-buying-label {
  font-family: var(--f-ui);
  font-size: 11px;
  color: var(--ad-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.ad-audience-desc {
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--ad-mid);
  line-height: 1.7;
  margin: 20px 0;
}

.ad-audience-buys {
  background: var(--ad-paper);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
}

.ad-audience-buys h4 {
  font-family: var(--f-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ad-muted);
  margin-bottom: 8px;
}

.ad-audience-buys p {
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--ad-mid);
  line-height: 1.6;
}

.ad-audience-newsletter {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ad-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-newsletter-label {
  font-family: var(--f-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ad-muted);
}

.ad-newsletter-name {
  font-family: var(--f-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--ad-ink);
}

.ad-newsletter-cadence {
  font-family: var(--f-ui);
  font-size: 11px;
  color: var(--ad-muted);
  background: var(--ad-paper);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════════════════════════════════ */
.ad-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ad-rule);
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ad-tab-btn {
  font-family: var(--f-ui);
  font-size: 12px;
  padding: 16px 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ad-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  position: relative;
}

.ad-tab-btn:hover {
  color: var(--ad-ink);
}

.ad-tab-btn.active {
  color: var(--ad-amber);
  border-bottom-color: var(--ad-amber);
}

.ad-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.ad-tab-panel.active {
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════════
   RATE TABLES
   ══════════════════════════════════════════════════════════════════════════ */
.ad-rate-intro {
  font-family: var(--f-ui);
  font-size: 15px;
  color: var(--ad-mid);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
}

.ad-rate-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  max-width: 1140px;
}

/* Add subtle scroll indicators */
.ad-rate-table-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to right, transparent, rgba(244, 239, 228, 0.3));
  pointer-events: none;
  z-index: 1;
}

.ad-section--paper .ad-rate-table-wrapper::after {
  background: linear-gradient(to right, transparent, rgba(244, 239, 228, 0.3));
}

/* Custom scrollbar styling */
.ad-rate-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.ad-rate-table-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.ad-rate-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(181, 97, 10, 0.3);
  border-radius: 4px;
}

.ad-rate-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(181, 97, 10, 0.5);
}

.ad-rate-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-family: var(--f-ui);
  font-size: 14px;
  background: var(--ad-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ad-rate-table th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ad-white);
  background: var(--ad-dark);
  padding: 16px 20px;
  font-weight: 700;
}

.ad-rate-table td {
  padding: 20px;
  border-bottom: 1px solid var(--ad-rule);
  color: var(--ad-ink);
  vertical-align: top;
  line-height: 1.6;
}

.ad-rate-table tr:last-child td {
  border-bottom: none;
}

.ad-rate-table tr:hover td {
  background: rgba(244, 239, 228, 0.5);
}

.ad-rate-table .rate {
  font-family: var(--f-masthead);
  font-weight: 700;
  font-size: 18px;
  color: var(--ad-amber);
  white-space: nowrap;
}

.ad-rate-table .note {
  font-size: 12px;
  color: var(--ad-muted);
  margin-top: 6px;
}

.ad-package-note {
  background: linear-gradient(135deg, rgba(181, 97, 10, 0.08) 0%, rgba(181, 97, 10, 0.04) 100%);
  border-left: 3px solid var(--ad-amber);
  padding: 20px 24px;
  margin-top: 24px;
  border-radius: 0 8px 8px 0;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--ad-mid);
  line-height: 1.6;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.ad-package-note strong {
  color: var(--ad-ink);
}

/* ══════════════════════════════════════════════════════════════════════════
   PRINT CALENDAR
   ══════════════════════════════════════════════════════════════════════════ */
.ad-print-calendar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.ad-print-issue {
  background: var(--ad-white);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.ad-print-issue:hover {
  transform: translateY(-4px);
}

.ad-print-issue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ad-amber);
}

.ad-print-season {
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ad-amber);
  font-weight: 700;
  margin-bottom: 12px;
}

.ad-print-theme {
  font-family: var(--f-masthead);
  font-size: 18px;
  font-weight: 700;
  color: var(--ad-ink);
  margin-bottom: 16px;
  line-height: 1.3;
}

.ad-print-deadline {
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--ad-muted);
}

.ad-print-deadline strong {
  color: var(--ad-ink);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════
   ANNUAL REPORT HIGHLIGHT
   ══════════════════════════════════════════════════════════════════════════ */
.ad-annual-highlight {
  background: linear-gradient(135deg, var(--ad-dark) 0%, #0D0B08 100%);
  color: var(--ad-white);
  padding: 48px;
  border-radius: 16px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.ad-annual-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(181, 97, 10, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ad-annual-highlight h3 {
  font-family: var(--f-masthead);
  font-size: 32px;
  font-weight: 700;
  color: var(--ad-white);
  margin-bottom: 16px;
}

.ad-annual-highlight p {
  font-family: var(--f-ui);
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

.ad-annual-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-annual-badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--f-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.2s ease;
}

.ad-annual-badge:hover {
  background: rgba(255,255,255,0.08);
}

.ad-annual-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ad-amber);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   EDITORIAL CALENDAR TIMELINE
   ══════════════════════════════════════════════════════════════════════════ */
.ad-timeline {
  background: var(--ad-white);
  border-radius: 16px;
  padding: 40px;
  margin-top: 48px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  max-width: 1092px;
  width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  position: relative;
}

.ad-timeline-title {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ad-ink);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-timeline-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ad-rule);
}

.ad-timeline-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px;
  margin: 0 -20px;
}

.ad-timeline-header {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  margin-bottom: 24px;
  min-width: 800px;
}

.ad-timeline-header-spacer {
  position: sticky;
  left: 0;
  background: var(--ad-white);
  z-index: 2;
}

.ad-timeline-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
}

.ad-timeline-month {
  text-align: center;
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ad-muted);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ad-rule);
}

.ad-timeline-tracks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-timeline-track {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  align-items: center;
  min-width: 800px;
}

.ad-timeline-track-label {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--ad-ink);
  position: sticky;
  left: 0;
  background: var(--ad-white);
  z-index: 2;
  padding-right: 16px;
}

.ad-timeline-track-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  height: 32px;
}

.ad-timeline-event {
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ad-white);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ad-timeline-event:hover {
  transform: scale(1.05);
}

.ad-timeline-event--bo { background: var(--ad-amber); }
.ad-timeline-event--fr { background: var(--ad-blue); }
.ad-timeline-event--gd { background: var(--ad-green); }
.ad-timeline-event--cc { background: var(--ad-purple); }
.ad-timeline-event--print { background: var(--ad-ink); }
.ad-timeline-event--annual { background: linear-gradient(135deg, var(--ad-amber) 0%, var(--ad-purple) 100%); }

/* ══════════════════════════════════════════════════════════════════════════
   POLICY BOX
   ══════════════════════════════════════════════════════════════════════════ */
.ad-policy-box {
  background: var(--ad-white);
  border: 1px solid var(--ad-rule);
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ad-policy-box h3 {
  font-family: var(--f-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ad-amber);
  margin-bottom: 12px;
  margin-top: 32px;
}

.ad-policy-box h3:first-child {
  margin-top: 0;
}

.ad-policy-box p {
  font-family: var(--f-ui);
  font-size: 15px;
  color: var(--ad-mid);
  line-height: 1.75;
  max-width: 800px;
}

/* ══════════════════════════════════════════════════════════════════════════
   GEOGRAPHIC REACH
   ══════════════════════════════════════════════════════════════════════════ */
.ad-reach-box {
  background: var(--ad-white);
  border: 1px solid var(--ad-rule);
  padding: 40px 48px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ad-reach-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--ad-rule);
}

.ad-reach-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ad-reach-item:first-child {
  padding-top: 0;
}

.ad-reach-label {
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ad-amber);
  font-weight: 700;
  margin-bottom: 8px;
}

.ad-reach-value {
  font-family: var(--f-ui);
  font-size: 15px;
  color: var(--ad-mid);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════════════════════════════════ */
.ad-form-wrap {
  background: var(--ad-white);
  border: 1px solid var(--ad-rule);
  padding: 56px;
  border-radius: 16px;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ad-form-pretitle {
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ad-amber);
  margin-bottom: 8px;
}

.ad-form-title {
  font-family: var(--f-masthead);
  font-size: 32px;
  font-weight: 700;
  color: var(--ad-ink);
  margin-bottom: 8px;
}

.ad-form-subtitle {
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--ad-mid);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
}

.ad-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.ad-form-group {
  margin-bottom: 24px;
}

.ad-form-group--full {
  grid-column: 1 / -1;
}

.ad-form-group label {
  display: block;
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ad-ink);
  font-weight: 700;
  margin-bottom: 10px;
}

.ad-form-group label .optional {
  font-weight: 400;
  color: var(--ad-muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

.ad-form-group input[type="text"],
.ad-form-group input[type="email"],
.ad-form-group input[type="tel"],
.ad-form-group select,
.ad-form-group textarea {
  width: 100%;
  border: 1px solid var(--ad-rule);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--ad-ink);
  background: var(--ad-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.ad-form-group input:focus,
.ad-form-group select:focus,
.ad-form-group textarea:focus {
  outline: none;
  border-color: var(--ad-amber);
  box-shadow: 0 0 0 3px rgba(181, 97, 10, 0.1);
}

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

.ad-form-rule {
  border: none;
  border-top: 1px solid var(--ad-rule);
  margin: 32px 0;
}

.ad-form-section-label {
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ad-muted);
  margin-bottom: 20px;
}

.ad-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.ad-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.ad-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--ad-amber);
  cursor: pointer;
}

.ad-checkbox-item span {
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--ad-mid);
  line-height: 1.5;
}

.ad-checkbox-item span strong {
  color: var(--ad-ink);
}

.ad-submit-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.ad-btn-submit {
  background: var(--ad-amber);
  color: var(--ad-white);
  border: none;
  padding: 16px 36px;
  font-family: var(--f-ui);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ad-btn-submit:hover {
  background: #9E5309;
  transform: translateY(-2px);
}

.ad-submit-note {
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--ad-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.ad-footer {
  background: var(--ad-dark);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--ad-amber);
}

.ad-footer-brand {
  font-family: var(--f-masthead);
  font-size: 22px;
  font-weight: 700;
  color: var(--ad-white);
}

.ad-footer-brand span {
  color: var(--ad-amber);
}

.ad-footer-tagline {
  font-family: var(--f-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  margin-top: 6px;
}

.ad-footer-contact {
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--ad-amber);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ad-footer-contact:hover {
  color: var(--ad-amber-light);
}

/* ══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Scroll animations */
.ad-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ad-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════════════
   PULL-TO-REFRESH STYLING
   ══════════════════════════════════════════════════════════════════════════ */
body:has(.ad-hero) .pull-to-refresh {
  background: var(--ad-dark);
}

body:has(.ad-hero) .ptr-text {
  color: rgba(250, 249, 246, 0.8);
}

body:has(.ad-hero) .ptr-spinner {
  border-color: rgba(250, 249, 246, 0.2);
  border-top-color: rgba(250, 249, 246, 0.8);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ad-hero-inner,
  .ad-section-inner {
    padding: 0 32px;
  }
  
  .ad-independence {
    margin: -40px 32px 0;
    padding: 32px 36px;
  }
  
  .ad-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ad-audience-grid {
    grid-template-columns: 1fr;
  }
  
  .ad-print-calendar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ad-annual-highlight {
    grid-template-columns: 1fr;
    padding: 36px;
  }
  
  .ad-timeline-header {
    grid-template-columns: 120px 1fr;
    min-width: 700px;
  }
  
  .ad-timeline-track {
    grid-template-columns: 120px 1fr;
    min-width: 700px;
  }
  
  .ad-timeline-track-bar {
    grid-template-columns: repeat(12, 1fr);
  }
}

@media (max-width: 768px) {
  .ad-hero {
    padding: 80px 0 60px;
  }
  
  .ad-back-btn {
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .ad-hero-inner,
  .ad-section-inner {
    padding: 0 24px;
  }
  
  .ad-rate-table-wrapper {
    margin: 0 auto;
    padding: 0 24px;
  }
  
  .ad-timeline {
    padding: 20px;
  }
  
  .ad-timeline-header {
    grid-template-columns: 100px 1fr;
    min-width: 600px;
  }
  
  .ad-timeline-header-spacer {
    width: 100px;
  }
  
  .ad-timeline-tracks {
    min-width: 600px;
  }
  
  .ad-timeline-track {
    grid-template-columns: 100px 1fr;
    min-width: 600px;
  }
  
  .ad-timeline-track-label {
    font-size: 10px;
    line-height: 1.2;
    width: 100px;
  }
  
  .ad-timeline-track-label small {
    display: block;
    font-size: 8px;
    line-height: 1.2;
    margin-top: 2px;
  }
  
  .ad-timeline-track-bar {
    gap: 4px;
    height: 24px;
  }
  
  .ad-timeline-event {
    font-size: 8px;
  }
  
  .ad-timeline-month {
    font-size: 9px;
    padding-bottom: 8px;
  }
  
  .ad-independence {
    margin: -30px 24px 0;
    padding: 28px;
    border-radius: 0 8px 8px 0;
  }
  
  .ad-stats-row {
    grid-template-columns: 1fr;
  }
  
  .ad-stat {
    padding: 24px;
  }
  
  .ad-section {
    padding: 60px 0;
  }
  
  .ad-map-container {
    border-radius: 12px;
  }
  
  #district-map {
    height: 320px;
  }
  
  .ad-map-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ad-map-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .ad-audience-chart {
    padding: 28px;
  }
  
  .ad-audience-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .ad-audience-bar-value {
    text-align: left;
  }
  
  .ad-audience-card {
    padding: 28px;
  }
  
  .ad-tabs {
    gap: 0;
    padding-bottom: 0;
  }
  
  .ad-tab-btn {
    padding: 14px 16px;
    font-size: 10px;
  }
  
  .ad-print-calendar {
    grid-template-columns: 1fr;
  }
  
  .ad-form-wrap {
    padding: 32px 24px;
  }
  
  .ad-form-row {
    grid-template-columns: 1fr;
  }
  
  .ad-submit-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .ad-footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 36px 24px;
  }
  
  .ad-policy-box,
  .ad-reach-box {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .ad-hero h1 {
    font-size: 28px;
  }
  
  .ad-stat-number {
    font-size: 32px;
  }
  
  .ad-section-title {
    font-size: 26px;
  }
  
  .ad-audience-number {
    font-size: 26px;
  }
  
  .ad-map-stats {
    grid-template-columns: 1fr;
  }
  
  .ad-map-legend {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   LEAFLET MAP CUSTOMIZATION
   ══════════════════════════════════════════════════════════════════════════ */
.leaflet-container {
  background: #0D0B08 !important;
  font-family: var(--f-ui) !important;
}

.leaflet-popup-content-wrapper {
  background: var(--ad-dark) !important;
  color: var(--ad-white) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
}

.leaflet-popup-content {
  margin: 16px 20px !important;
  font-family: var(--f-ui) !important;
  font-size: 13px !important;
}

.leaflet-popup-tip {
  background: var(--ad-dark) !important;
}

.leaflet-control-attribution {
  background: rgba(13, 11, 8, 0.8) !important;
  color: rgba(255,255,255,0.4) !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: rgba(255,255,255,0.5) !important;
}

.district-marker {
  background: var(--ad-amber);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(181, 97, 10, 0.4);
  transition: transform 0.2s ease;
}

.district-marker:hover {
  transform: scale(1.2);
}

.district-marker--large {
  width: 16px;
  height: 16px;
}

.district-marker--medium {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}

.district-marker--small {
  width: 8px;
  height: 8px;
  opacity: 0.6;
}
