:root {
  color-scheme: light;
  --ink: #15212f;
  --muted: #5e6c78;
  --soft: #eef3f5;
  --paper: #ffffff;
  --panel: #f8fbf9;
  --line: #cdd9de;
  --green: #0f7468;
  --green-dark: #084b44;
  --blue: #2d6286;
  --blue-soft: #e7f0f6;
  --rust: #995b22;
  --gold: #bc8730;
  --warning: #fff2cf;
  --danger: #f7ded8;
  --shadow: 0 20px 55px rgba(18, 42, 55, 0.14);
  --shadow-soft: 0 10px 28px rgba(18, 42, 55, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(21, 33, 47, 0.03);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 0.7rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 0.9rem;
  height: 2.15rem;
  justify-content: center;
  width: 2.15rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.hero,
.page-hero,
.section,
.site-footer {
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
}

.hero {
  align-items: stretch;
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1280px;
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(1.25rem, 4vw, 3rem);
  width: 100%;
}

.hero-copy {
  background: var(--paper);
  border: 1px solid rgba(15, 116, 104, 0.18);
  border-left: 7px solid var(--green);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
  width: 100%;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.85rem);
  line-height: 0.98;
  margin: 0;
  max-width: 12ch;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 14ch;
}

.lead,
.page-hero p,
.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
  max-width: 62rem;
}

.hero-media {
  min-height: 18rem;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(21, 33, 47, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: 100%;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.fine-print {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.finder-form,
.report-form {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.finder-form label,
.report-form label {
  min-width: 0;
}

.finder-form {
  background: var(--panel);
  border: 1px solid rgba(15, 116, 104, 0.16);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  margin-top: 1.15rem;
  padding: 0.95rem;
}

label span {
  color: var(--ink);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

input,
textarea {
  background: white;
  border: 1px solid #bdccd2;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 3rem;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 116, 104, 0.15);
  outline: none;
}

.button {
  align-items: center;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--green-dark);
}

.button-dark {
  background: var(--ink);
  border-color: var(--ink);
}

.button-dark:hover {
  background: #26312f;
}

.button-secondary,
.button-quiet {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover,
.button-quiet:hover {
  background: var(--blue-soft);
  border-color: #b4cedd;
  color: var(--blue);
}

.button-small {
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
}

.form-error {
  background: var(--danger);
  border-radius: 8px;
  color: #7b2b1f;
  font-size: 0.92rem;
  margin: 0;
  padding: 0.6rem 0.75rem;
}

.source-strip {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 clamp(1rem, 4vw, 3rem) 2rem;
}

.source-strip div {
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  padding: 1rem 1.1rem;
}

.source-strip strong,
.source-strip span {
  display: block;
}

.source-strip span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section,
.page-hero {
  margin: 0 auto;
  max-width: 1200px;
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.page-hero.compact {
  padding-bottom: 1.5rem;
}

.split-section,
.two-column {
  display: grid;
  gap: 1.25rem;
}

.muted-section {
  background: #f7faf8;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  max-width: none;
}

.muted-section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.quick-links,
.card-grid,
.compact-link-grid {
  display: grid;
  gap: 0.8rem;
}

.quick-links a,
.text-card,
.compact-link-grid a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.quick-links a:hover,
.text-card:hover,
.compact-link-grid a:hover,
.list-card:hover {
  border-color: var(--green);
  box-shadow: 0 14px 32px rgba(18, 42, 55, 0.12);
  transform: translateY(-1px);
}

.text-card span {
  color: var(--blue);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.text-card strong {
  font-size: 1.08rem;
}

.filter-bar {
  margin-bottom: 1rem;
}

.list-stack {
  display: grid;
  gap: 0.8rem;
}

.list-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.list-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
}

.list-card p {
  color: var(--muted);
  margin: 0;
}

.card-actions,
.action-row,
.result-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.trust-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
}

.official-source-verified {
  background: #e5f5f0;
  border-color: #a8d9ca;
  color: #155d51;
}

.town-website-only {
  background: #e7f0fa;
  border-color: #bfd5ee;
  color: #214e78;
}

.source-not-fully-verified {
  background: var(--warning);
  border-color: #e1c46e;
  color: #6e4b00;
}

.source-link-needs-update,
.no-dedicated-source-found {
  background: #f2eee8;
  border-color: #d9cbbb;
  color: #68442c;
}

.source-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.source-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin-top: 1.35rem;
}

.source-card {
  background: white;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.25rem;
  min-height: 5.2rem;
  padding: 0.95rem;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.source-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.source-card strong {
  color: var(--green);
}

.source-card-primary {
  background: #f4fbf8;
  border-color: rgba(15, 116, 104, 0.3);
  border-left-color: var(--blue);
}

.source-card:hover {
  border-color: var(--green);
  box-shadow: 0 16px 35px rgba(18, 42, 55, 0.13);
  transform: translateY(-1px);
}

.notes-box,
.side-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 1rem;
  padding: 1rem;
}

.notes-box p,
.side-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.check-list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.3rem;
  padding-left: 1.2rem;
}

.check-list li::marker {
  color: var(--green);
}

.two-column article,
.side-panel {
  min-width: 0;
}

.two-column h2,
.two-column h3,
.legal-copy h2 {
  margin-top: 0;
}

.legal-copy {
  max-width: 860px;
}

.legal-copy p {
  color: var(--muted);
}

.report-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.site-footer {
  align-items: start;
  background: var(--ink);
  color: white;
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.site-footer p {
  color: #c5d1cd;
  margin: 0.4rem 0 0;
  max-width: 46rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.site-footer a {
  color: #dfe9e5;
}

[hidden] {
  display: none !important;
}

@media (min-width: 680px) {
  .finder-form {
    align-items: end;
    grid-template-columns: 1fr 1fr auto;
  }

  .hero-copy .finder-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy .finder-form .button {
    width: 100%;
  }

  .finder-form .form-error {
    grid-column: 1 / -1;
  }

  .source-strip,
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .list-card {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: calc(100vh - 8rem);
  }

  .split-section,
  .two-column,
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .source-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .compact-link-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
  }

  .hero {
    justify-items: start;
  }

  .hero-copy,
  .hero-media {
    max-width: 360px;
  }

  .button {
    width: 100%;
  }
}
