/**
 * Protean Hollow - Service Area
 *
 * Used by /service-area/ and the town pages beneath it. Everything here is
 * layout for lists of places; the FAQ blocks on these pages ride on the
 * shared .faq-item styles that main.css already pulls in from legal.css.
 */

/* --- Territory summary -------------------------------------------------
   The two facts a visitor and a crawler both want in the first screen:
   where the work happens, and where it is dispatched from. */

.area-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0 var(--space-4);
}

.area-fact {
  background: var(--surface-primary);
  border: var(--border-width) solid var(--border-secondary);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
}

.area-fact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-2);
}

.area-fact-value {
  display: block;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  line-height: var(--leading-snug);
}

.area-fact-note {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}

/* --- How far each service travels --------------------------------------
   Three divisions with three genuinely different footprints. This is the
   section the structured data on each service page has to agree with. */

.reach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.reach-card {
  background: var(--gradient-surface);
  border: var(--border-width) solid var(--border-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.reach-card h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.reach-scope {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--accent-primary-subtle);
  border: var(--border-width) solid var(--border-accent);
  color: var(--accent-primary-light);
  margin-bottom: var(--space-4);
}

.reach-card.is-remote .reach-scope {
  background: var(--accent-secondary-subtle);
  border-color: var(--accent-secondary-glow);
  color: var(--accent-secondary-light);
}

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

.reach-card a {
  margin-top: auto;
  color: var(--accent-primary);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
}

/* --- Communities by county --------------------------------------------- */

.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.county-panel {
  background: var(--surface-primary);
  border: var(--border-width) solid var(--border-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.county-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: var(--border-width) solid var(--border-secondary);
}

.county-head h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
}

.county-seat {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.town-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  columns: 2;
  column-gap: var(--space-5);
}

.town-list li {
  break-inside: avoid;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* A town with its own page gets a link; the rest are plain text on purpose.
   Linking every name to a page that does not exist is how a useful list
   turns into a doorway index. */
.town-list li a {
  color: var(--accent-primary);
  font-weight: var(--font-medium);
}

.town-list li.is-base {
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

.town-list li.is-base::after {
  content: ' (base)';
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-normal);
  color: var(--accent-primary);
}

.county-note {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: var(--leading-relaxed);
  padding-top: var(--space-3);
  border-top: var(--border-width) solid var(--border-secondary);
}

/* --- Drive bands -------------------------------------------------------- */

.band-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
}

.band-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-4) 0;
  border-bottom: var(--border-width) solid var(--border-secondary);
}

.band-list li:last-child { border-bottom: none; }

.band-time {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--accent-primary);
  padding-top: 2px;
}

.band-where {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.band-where strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

@media (max-width: 640px) {
  .band-list li { grid-template-columns: 1fr; gap: var(--space-1); }
  .town-list { columns: 1; }
}
