/* Shared, server-rendered county and heating oil price comparisons. */
.county-price-section {
  margin: 36px 0;
  scroll-margin-top: 84px;
  color: var(--text);
}

.county-price-section h2 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.county-price-section .county-price-context,
.county-price-section .county-price-notice {
  margin: 12px 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.county-price-section .county-price-context {
  color: var(--text-secondary);
}

.county-price-section a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.county-price-section a:hover {
  color: var(--primary-dark);
}

.county-price-section .county-price-notice {
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  background: var(--primary-muted);
  color: var(--text);
}

.county-price-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.county-price-table-wrap:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.county-price-section .county-price-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.county-price-table caption {
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-align: left;
  caption-side: top;
}

.county-price-table th,
.county-price-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  vertical-align: top;
}

.county-price-table thead th {
  background: var(--bg);
  font-weight: 600;
}

.county-price-table tbody th {
  font-weight: 500;
}

.county-price-table strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.county-price-table .snapshot-sample,
.county-price-table .snapshot-unit-price {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.county-price-table .snapshot-unit-price {
  font-variant-numeric: tabular-nums;
}

.county-price-table .snapshot-missing {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

@media (max-width: 480px) {
  .county-price-section { margin: 28px 0; }
  .county-price-table caption { padding: 10px; }
  .county-price-table th,
  .county-price-table td { padding: 12px 8px; }
  .county-price-section .county-price-table { font-size: 0.8125rem; }
  .county-price-table .snapshot-sample,
  .county-price-table .snapshot-unit-price { font-size: 0.75rem; }
}
