:root {
  --ink: #111814;
  --muted: #5d665f;
  --paper: #f6f7f0;
  --panel: #ffffff;
  --line: #d9ded2;
  --accent: #006b3f;
  --accent-dark: #06452d;
  --accent-soft: #e4f2e9;
  --gold: #d5a11e;
  --sky: #d6e9ff;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(17, 24, 20, 0.09);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(246, 247, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.site-nav a,
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem) 2rem;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 62ch;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: clamp(260px, 45vw, 520px);
  object-fit: cover;
}

.hero-media figcaption {
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.dashboard-band,
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.stat-strip div {
  min-height: 112px;
  padding: 1.15rem;
  background: var(--panel);
}

.stat-strip span {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
}

.stat-strip small,
.match-card small,
.city-grid small,
.link-tile small {
  color: var(--muted);
}

.notice {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 107, 63, 0.25);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.section h2,
.answer-panel h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section p,
.answer-panel p {
  color: var(--muted);
}

.match-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.match-card,
.option-grid article,
.city-grid article,
.link-tile,
.key-list,
.answer-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.match-card {
  padding: 1rem;
  min-height: 190px;
}

.match-card span,
.city-grid span {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.match-card h3,
.match-card h2,
.option-grid h3,
.city-grid h3 {
  margin: 0.65rem 0 0.5rem;
  line-height: 1.12;
}

.feature-card {
  min-height: 220px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compact table {
  min-width: 620px;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef1e8;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--muted);
}

td span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

tr:last-child td {
  border-bottom: 0;
}

.link-grid,
.option-grid,
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.link-tile,
.option-grid article,
.city-grid article {
  display: block;
  padding: 1.1rem;
  text-decoration: none;
}

.link-tile span {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.key-list {
  padding: 1.1rem;
}

.key-list p {
  margin: 0;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.key-list p:last-child {
  border-bottom: 0;
}

.source-panel {
  border-top: 1px solid var(--line);
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.tool-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1rem;
}

.tool-row label {
  font-weight: 800;
}

.search-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
}

.search-input:focus {
  outline: 3px solid rgba(0, 107, 63, 0.18);
  border-color: var(--accent);
}

.wide-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.wide-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.answer-panel {
  max-width: 980px;
  margin: 2rem auto 0;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.answer-panel p {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
  margin-top: 3rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: #eef1e8;
}

.site-footer p {
  max-width: 720px;
  color: var(--muted);
}

.site-footer nav {
  display: grid;
  gap: 0.55rem;
}

@media (max-width: 980px) {
  .page-hero,
  .split-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .match-list,
  .link-grid,
  .option-grid,
  .city-grid,
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

  .hero-copy h1 {
    font-size: clamp(2.6rem, 16vw, 4.3rem);
  }

  .match-list,
  .link-grid,
  .option-grid,
  .city-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .tool-row {
    grid-template-columns: 1fr;
  }

  .compact table {
    min-width: 0;
  }

  .compact th,
  .compact td {
    padding: 0.65rem 0.45rem;
    font-size: 0.88rem;
  }
}
