:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #59655f;
  --line: #d8e0d9;
  --paper: #fbfcf7;
  --band: #f0f5eb;
  --accent: #207a5b;
  --accent-dark: #14523e;
  --gold: #c78a16;
  --red: #a33a35;
  --blue: #2a5f98;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(23, 32, 27, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

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

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

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.6rem 0.8rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(216, 224, 217, 0.86);
  background: rgba(251, 252, 247, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  aspect-ratio: 1;
  border-radius: 7px;
  color: var(--white);
  background: var(--accent-dark);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--muted);
}

main {
  width: 100%;
}

.hero,
.state-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 2.4rem;
}

.state-hero {
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-panel,
.status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-panel img {
  display: block;
  margin: 0 auto 1rem;
}

.hero-panel dl,
.status-card dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.hero-panel div,
.status-card div {
  padding: 0.85rem;
  border-radius: 6px;
  background: var(--band);
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.state-jump {
  max-width: 640px;
  margin: 1.6rem 0 0;
}

.state-jump label,
.filters span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.jump-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

select,
input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0 0.85rem;
  border: 1px solid #b9c7bd;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

button,
.button,
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  color: var(--white);
  background: var(--accent-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover,
.row-action:hover {
  color: var(--white);
  background: var(--accent);
}

.button.secondary {
  color: var(--accent-dark);
  background: var(--white);
}

.button.secondary:hover {
  color: var(--white);
  background: var(--accent-dark);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.summary-strip div {
  padding: 1.1rem;
  border-right: 1px solid var(--line);
}

.summary-strip div:last-child {
  border-right: 0;
}

.summary-strip strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.summary-strip span {
  color: var(--muted);
  font-weight: 700;
}

.content-band,
.two-column,
.details-grid,
.nearby {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.content-band {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.content-band + .content-band,
.content-band + .nearby,
.details-grid + .content-band {
  margin-top: 1.4rem;
}

.compact {
  background: var(--band);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.15rem;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 1rem;
  margin: 1.2rem 0;
}

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

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
}

caption {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

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

th {
  color: var(--muted);
  background: var(--band);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-listed {
  color: #0f503d;
  background: #dff2e8;
}

.status-tribal {
  color: #274f7a;
  background: #deecfa;
}

.status-not {
  color: #7a2e2a;
  background: #f7e2df;
}

.row-action {
  min-height: 2.25rem;
  padding: 0 0.7rem;
  font-size: 0.88rem;
}

.empty-state {
  margin: 1rem 0 0;
  color: var(--red);
  font-weight: 800;
}

.two-column,
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
}

.two-column article,
.detail-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  background: var(--white);
}

.two-column p,
.detail-card p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  background: var(--paper);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.crumb {
  display: inline-flex;
  margin-bottom: 1rem;
  font-weight: 800;
}

.source-actions,
.nearby-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.nearby {
  padding: 0 0 2.6rem;
}

.nearby h2 {
  font-size: 1.25rem;
}

.nearby-links a {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 2.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
}

@media (max-width: 820px) {
  .nav,
  .nav-links,
  .site-footer {
    align-items: flex-start;
  }

  .nav,
  .site-footer {
    flex-direction: column;
    display: flex;
  }

  .hero,
  .state-hero,
  .two-column,
  .details-grid,
  .filters,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .summary-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-strip div:last-child {
    border-bottom: 0;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .nav-links {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero,
  .state-hero {
    padding-top: 2rem;
  }

  .content-band {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .table-wrap {
    overflow: visible;
    border: 0;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 0.75rem;
  }

  tbody tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
  }

  td {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.72rem 0.8rem;
  }

  td::before {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  td:nth-child(1)::before {
    content: "State";
  }

  td:nth-child(2)::before {
    content: "Status";
  }

  td:nth-child(3)::before {
    content: "Timing";
  }

  td:nth-child(4)::before {
    content: "Page";
  }

  .row-action {
    width: fit-content;
  }
}
