:root {
  --bg: #f6f8fb;
  --surface: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --border: #e2e8f0;
  --warning: #fef3c7;
  --warning-border: #fcd34d;
  --radius: 12px;
  --shadow: 0 1px 3px rgb(15 23 42 / 8%);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.independence-banner {
  margin: 0;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  text-align: center;
  background: #ecfdf5;
  color: #065f46;
  border-bottom: 1px solid #a7f3d0;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 1.05rem;
}

nav a {
  margin-left: 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.trust-strip {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin: 0 0 1.25rem;
}

.finder-tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

.lede {
  color: var(--muted);
  margin: 0 0 1rem;
}

.finder-form {
  display: grid;
  gap: 0.75rem;
}

.finder-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

select {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-primary,
.btn-secondary {
  font: inherit;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.loc-status {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.finder-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.result-now,
.result-next {
  margin: 0.5rem 0;
}

.cheapest-module {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.cheapest-lead {
  font-weight: 600;
  margin: 0.25rem 0;
}

.cheapest-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.town-grid {
  display: grid;
  gap: 0.75rem;
}

.town-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}

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

.town-card-name {
  font-weight: 600;
}

.town-card-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.pool-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.pool-block h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.cite {
  font-size: 0.8rem;
  color: var(--muted);
}

.filters {
  margin: 1.5rem 0 1rem;
}

.filter-row {
  display: grid;
  gap: 0.75rem;
}

.session-cards {
  display: grid;
  gap: 0.75rem;
}

.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.session-card[hidden] {
  display: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
}

.logo-region {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85em;
}

.disclaimer,
.last-updated {
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.town-intro {
  color: var(--text);
}

.nearby-towns {
  font-size: 0.95rem;
  margin: 0.75rem 0 1rem;
}

.pool-details {
  margin-bottom: 1.5rem;
}

.report-form-section {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
}

.report-form label {
  display: block;
  margin-bottom: 0.75rem;
}

.report-form textarea,
.report-form input[type='email'],
.report-form select {
  display: block;
  width: 100%;
  max-width: 32rem;
  margin-top: 0.25rem;
}

.report-form .optional {
  font-weight: normal;
  color: var(--muted);
  font-size: 0.85em;
}

.report-form .form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.report-form-compact {
  margin-top: 1rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 -4px 24px rgb(15 23 42 / 0.08);
  max-width: 40rem;
  margin: 0 auto;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.btn-cookie {
  flex: 1 1 0;
  padding: 0.55rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-cookie-reject {
  background: #fff;
  border-color: var(--accent, #0f766e);
  color: var(--accent, #0f766e);
}

.btn-cookie-accept {
  background: var(--accent, #0f766e);
  border-color: var(--accent, #0f766e);
  color: #fff;
}

.badge-lane {
  background: #dbeafe;
  color: #1e40af;
}

.badge-family {
  background: #fce7f3;
  color: #9d174d;
}

.badge-public {
  background: #d1fae5;
  color: #065f46;
}

.badge-accessible {
  background: #ede9fe;
  color: #5b21b6;
}

.card-title {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.card-meta {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-price {
  font-weight: 700;
  font-size: 1.05rem;
}

.card-price-missing {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-price-note {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.notice-warning {
  background: var(--warning);
  border: 1px solid var(--warning-border);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.empty {
  color: var(--muted);
}

.faq-section details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 600;
}

.ad-slot {
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  background: #eef2f6;
}

.site-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--accent-dark);
}

@media (min-width: 640px) {
  .content {
    max-width: 960px;
    padding: 1.5rem 1.5rem 2.5rem;
  }

  .finder-form {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .finder-form .btn-primary {
    grid-column: span 2;
  }

  .filter-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .town-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .session-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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