/* PastWeatherLookup.com - Design System CSS */
/* Government-Official Theme: NOAA/NWS Aesthetic */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600;700&family=Source+Sans+3:wght@400;600&family=IBM+Plex+Mono:wght@400&display=swap');

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); }
a:hover { color: var(--color-blue-light); }

/* === DESIGN TOKENS === */
:root {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-accent: #1a3557;
  --text-primary: #1c2b3a;
  --text-secondary: #4a5568;
  --color-blue: #1e4d8c;
  --color-blue-light: #2563eb;
  --color-blue-dark: #0f2d52;
  --color-red: #c53030;
  --color-green: #276749;
  --color-gold: #b7791f;
  --color-blue-tint: #dbeafe;
  --border: #d1d5db;
  --shadow: 0 1px 3px rgba(0,0,0,0.12);
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-data: 'IBM Plex Mono', monospace;
  --max-width: 1200px;
  --radius: 4px;
}

/* === BASE === */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.3;
}
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.25rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* === HEADER === */
.site-header {
  background: var(--color-blue-dark);
  color: white;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-wordmark {
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
}
.site-wordmark .name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-wordmark .tagline {
  font-size: 0.7rem;
  opacity: 0.75;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.site-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s;
}
.site-nav a:hover { color: white; }

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-wordmark .name { font-size: 1.1rem; }
}

/* === BREADCRUMB === */
.breadcrumb-bar {
  background: #f0f4f8;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.breadcrumb a { color: var(--color-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* === FOOTER === */
.site-footer {
  background: var(--color-blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.875rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.footer-links a:hover { color: white; }
.footer-attribution {
  opacity: 0.65;
  margin-bottom: 0.25rem;
}
.footer-disclaimer {
  opacity: 0.65;
  margin-bottom: 0.25rem;
}
.footer-copyright { opacity: 0.5; }

/* === DATA SOURCE BAR === */
.data-source-bar {
  background: #e8f0fe;
  border: 1px solid #c7d7f9;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #1e4d8c;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.data-source-bar::before {
  content: 'i';
  background: #1e4d8c;
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  text-align: center;
  line-height: 16px;
}

/* === STAT CARDS === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .stats-bar { grid-template-columns: repeat(5, 1fr); }
}
.stat-card {
  background: var(--bg-secondary);
  border-top: 4px solid var(--bg-accent);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.stat-card .stat-value {
  font-family: var(--font-data);
  font-size: 1.75rem;
  color: var(--color-blue);
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* === DATA TABLES === */
.data-table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-secondary);
}
.data-table thead th {
  background: var(--bg-accent);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.data-table thead th.numeric { text-align: right; }
.data-table tbody tr:nth-child(odd) { background: var(--bg-primary); }
.data-table tbody tr:nth-child(even) { background: var(--bg-secondary); }
.data-table tbody tr:hover { background: #e8f0fe; }
.data-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table td.numeric {
  font-family: var(--font-data);
  text-align: right;
  color: var(--text-primary);
}
.data-table td.month-name {
  font-weight: 600;
  color: var(--bg-accent);
}
.data-table td.high { color: var(--color-red); }
.data-table td.low { color: var(--color-blue); }

/* === CSS BAR CHARTS === */
.chart-section {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.chart-section h3 { margin-bottom: 1rem; }
.chart-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

/* Horizontal Temperature Range Chart */
.temp-chart { margin-bottom: 0; }
.temp-chart-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  min-height: 24px;
}
.temp-chart-label {
  width: 32px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  flex-shrink: 0;
  text-align: right;
}
.temp-chart-track {
  flex: 1;
  position: relative;
  height: 16px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.temp-chart-bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(to right, #3b82f6, #ef4444);
}
.temp-chart-values {
  width: 80px;
  flex-shrink: 0;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: right;
}
.temp-scale {
  display: flex;
  justify-content: space-between;
  margin-left: 41px;
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Vertical Precipitation Chart */
.precip-chart {
  display: flex;
  align-items: flex-end;
  height: 100px;
  gap: 2px;
}
.precip-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.precip-bar {
  width: 100%;
  background: var(--color-blue);
  min-height: 3px;
  border-radius: 2px 2px 0 0;
  transition: background 0.2s;
}
.precip-bar:hover { background: var(--color-blue-light); }
.precip-label {
  font-size: 0.6rem;
  color: var(--text-secondary);
  margin-top: 4px;
  text-align: center;
}
.precip-value {
  font-family: var(--font-data);
  font-size: 0.6rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2px;
}

/* === CARDS GRID (Cities, Months) === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

.city-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.1s;
}
.city-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
  color: var(--text-primary);
}
.city-card .city-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-blue);
  margin-bottom: 0.25rem;
}
.city-card .city-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.city-card .city-stats {
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--text-primary);
  margin-top: 0.35rem;
}

.month-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--bg-accent);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  transition: box-shadow 0.2s;
}
.month-card:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  color: var(--text-primary);
}
.month-card .month-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bg-accent);
}
.month-card .month-temps {
  font-family: var(--font-data);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.month-card .month-hi { color: var(--color-red); }
.month-card .month-lo { color: var(--color-blue); }
.month-card .month-precip {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* === STATE GRID (homepage) === */
.states-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .states-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .states-grid { grid-template-columns: repeat(3, 1fr); }
}
.state-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s;
}
.state-card:hover {
  background: var(--bg-accent);
  color: white;
}
.state-card .state-abbr {
  font-family: var(--font-data);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1;
}
.state-card:hover .state-abbr { color: white; }
.state-card .state-name {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  line-height: 1.2;
}
.state-card:hover .state-name { color: rgba(255,255,255,0.8); }

/* === LEAD MAGNET BOX === */
.lead-magnet {
  background: var(--color-blue-tint);
  border: 1px solid var(--color-blue);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.lead-magnet h3 {
  font-family: var(--font-heading);
  color: var(--color-blue-dark);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.lead-magnet .magnet-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.magnet-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .magnet-form { flex-direction: row; flex-wrap: wrap; }
  .magnet-form input { flex: 1; min-width: 150px; }
  .magnet-form button { white-space: nowrap; }
}
.magnet-form input {
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: white;
  width: 100%;
}
.magnet-form input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(30,77,140,0.15);
}
.magnet-form button {
  padding: 0.6rem 1.25rem;
  background: var(--color-blue);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}
@media (min-width: 640px) {
  .magnet-form button { width: auto; }
}
.magnet-form button:hover { background: var(--color-blue-dark); }
.form-error {
  color: var(--color-red);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.success-msg {
  color: var(--color-green);
  font-weight: 600;
  padding: 0.75rem;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: var(--radius);
}

/* === SEARCH BAR === */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text-primary);
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.search-input:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(30,77,140,0.2);
}
.search-input::placeholder { color: #9ca3af; }
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}
.search-results.open { display: block; }
.search-result-item {
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  transition: background 0.1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover, .search-result-item.active { background: var(--bg-primary); }
.search-result-item .result-name { font-weight: 600; color: var(--color-blue); }
.search-result-item .result-meta { color: var(--text-secondary); font-size: 0.78rem; }

/* === HERO SECTION === */
.hero {
  background: var(--bg-accent);
  color: white;
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.hero h1 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
@media (max-width: 640px) {
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.95rem; }
}

/* === RECENT SEARCHES === */
.recent-searches {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.75rem;
  display: none;
}
.recent-searches.visible { display: block; }
.recent-searches a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  margin-right: 0.75rem;
}

/* === PAGE SECTIONS === */
.section {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.section h2 { margin-bottom: 1rem; }
.section h3 { margin-bottom: 0.75rem; }

.page-content {
  padding: 2rem 0;
}

/* === COMPARISON LAYOUT === */
.compare-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}
.compare-city-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.compare-city-card .city-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.compare-city-card h2 {
  color: var(--color-blue);
  font-size: 1.3rem;
  margin: 0.25rem 0;
}
.compare-vs {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.winner { background: #f0fff4; border: 1px solid #9ae6b4; }
.loser { background: #fff5f5; border: 1px solid #fed7d7; }
.verdict-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* === USE CASE BOXES === */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .use-case-grid { grid-template-columns: 1fr; }
}
.use-case-box {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.use-case-box .use-case-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.use-case-box .use-case-winner {
  font-weight: 700;
  color: var(--color-green);
}
.use-case-box .use-case-reason {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* === SEASONAL RATINGS === */
.month-ratings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .month-ratings-grid { grid-template-columns: repeat(4, 1fr); }
}
.month-rating-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.month-rating-card.best { border-top: 3px solid var(--color-green); }
.month-rating-card.avoid { border-top: 3px solid var(--color-red); opacity: 0.85; }
.month-rating-card .month-name-r {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bg-accent);
  margin-bottom: 0.35rem;
}
.stars {
  color: var(--color-gold);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.empty-star { color: #d1d5db; }
.month-rating-card .rating-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.3;
}
.month-rating-card .rating-temps {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* === RAIN CALENDAR === */
.rain-calendar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin-bottom: 1rem;
}
.rain-day {
  aspect-ratio: 1;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-primary);
}
.rain-day.dry { background: #dcfce7; }
.rain-day.low-rain { background: #fef9c3; }
.rain-day.med-rain { background: #fed7aa; }
.rain-day.high-rain { background: #fecaca; }
.rain-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* === FROST DATES BOX === */
.frost-dates-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.frost-dates-box h3 {
  color: var(--color-blue);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.frost-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #bfdbfe;
}
.frost-row:last-child { border-bottom: none; }
.frost-label { color: var(--text-secondary); }
.frost-value { font-weight: 600; font-family: var(--font-data); color: var(--color-blue); }

/* === PACKING LIST === */
.packing-list {
  list-style: none;
  padding: 0;
}
.packing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.packing-list li:last-child { border-bottom: none; }
.packing-list li::before {
  content: '✓';
  color: var(--color-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* === FAQ ACCORDION === */
.faq-section { margin-bottom: 2rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question:hover { color: var(--color-blue); }
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-blue);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-question.open::after { content: '-'; }
.faq-answer {
  display: none;
  padding: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.faq-answer.open { display: block; }

/* === RELATED LINKS === */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.related-link {
  display: inline-block;
  padding: 0.4rem 0.875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--color-blue);
  text-decoration: none;
  transition: background 0.15s;
}
.related-link:hover {
  background: var(--color-blue);
  color: white;
  border-color: var(--color-blue);
}

/* === HOW IT WORKS (homepage) === */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) {
  .how-it-works { grid-template-columns: 1fr; }
}
.how-step {
  text-align: center;
  padding: 1.25rem;
}
.how-step .step-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.how-step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.how-step p { font-size: 0.875rem; color: var(--text-secondary); }

/* === AUDIENCE CARDS (homepage) === */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}
.audience-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.audience-card .audience-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.audience-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.audience-card p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; }

/* === SEASONAL SECTION === */
.seasonal-highlight {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.seasonal-highlight h3 { color: var(--color-green); margin-bottom: 0.75rem; }
.avoid-highlight {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.avoid-highlight h3 { color: var(--color-red); margin-bottom: 0.75rem; }

/* === NEARBY CITIES STRIP === */
.nearby-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}
.nearby-city-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-blue);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 0.15s;
}
.nearby-city-chip:hover { background: var(--color-blue); color: white; }

/* === BLOG INDEX === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  transition: box-shadow 0.2s;
}
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); color: var(--text-primary); }
.blog-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-accent);
}
.blog-card-body { padding: 1rem; }
.blog-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.blog-card-meta { font-size: 0.75rem; color: var(--text-secondary); }

/* === UTILITY === */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.section-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 680px;
}

/* === BLOG ARTICLE === */
.blog-article {
  max-width: 720px;
}
.page-content:has(.blog-article) {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .page-content:has(.blog-article) {
    grid-template-columns: 1fr;
  }
}
.blog-header { margin-bottom: 1.5rem; }
.blog-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.blog-category {
  background: var(--accent-gold);
  color: var(--navy-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.blog-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}
.blog-hero-image { margin-bottom: 1.5rem; }
.blog-hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.blog-body h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.35rem;
}
.blog-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}
.blog-body p { margin-bottom: 1rem; line-height: 1.7; }
.blog-body ul, .blog-body ol {
  margin: 0 0 1rem 1.5rem;
  line-height: 1.7;
}
.blog-body li { margin-bottom: 0.35rem; }
.blog-body table { margin-bottom: 1.5rem; }
.blog-footer { margin-top: 2rem; }

.blog-sidebar { position: sticky; top: 1rem; }
.related-posts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1.5rem;
}
.related-posts h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.related-posts a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-primary);
}
.related-posts a:last-child { border-bottom: none; }
.related-posts a:hover { color: var(--accent-gold); }

/* === PRINT STYLES === */
@media print {
  .site-header, .site-footer, .lead-magnet, .breadcrumb-bar, .site-nav { display: none !important; }
  body { background: white; color: black; }
  .data-table { font-size: 0.8rem; }
  .section { box-shadow: none; border: 1px solid #ccc; }
}
