:root {
  color-scheme: light;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-soft: #edf5fc;
  --text: #14304a;
  --muted: #5d7184;
  --border: #d8e4ee;
  --blue: #0f5ea8;
  --blue-dark: #093f75;
  --blue-soft: #dff0ff;
  --green: #207a51;
  --green-soft: #ddf4e9;
  --amber: #946200;
  --amber-soft: #fff1c9;
  --red: #a13d2d;
  --red-soft: #ffe5de;
  --shadow: 0 18px 50px rgba(23, 55, 83, 0.12);
  --radius: 8px;
  --motion-short: 160ms ease;
  --motion-medium: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes soft-scale {
  from {
    opacity: 0;
    transform: scale(0.975);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  padding: 0;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
  opacity: 1;
  transform: translateZ(0);
}

.site-intro-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: opacity;
}

.site-intro picture {
  display: block;
}

.site-intro img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
}

.site-intro-title {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  color: #0d2944;
  font-size: clamp(1.05rem, 5.2vw, 4.25rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.82), 0 10px 30px rgba(13, 41, 68, 0.18);
  transform-origin: top left;
  white-space: nowrap;
  will-change: transform, opacity;
}

.site-header,
main,
.site-footer {
  animation: none;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color var(--motion-short), background var(--motion-short), border-color var(--motion-short), box-shadow var(--motion-short), transform var(--motion-short);
}

a:hover {
  color: var(--blue-dark);
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(800px, calc(100% - 32px));
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 20;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(23, 55, 83, 0.03);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-title {
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0;
  transition: transform var(--motion-short), box-shadow var(--motion-short);
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 18px rgba(15, 94, 168, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: var(--radius);
}

.nav a:hover {
  color: var(--blue-dark);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.hero,
.page-hero {
  background: linear-gradient(180deg, #ffffff 0%, #eef6fd 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 36px;
  padding: 42px 0 56px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  color: #0d2944;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy > *,
.page-hero .container > * {
  animation: fade-up 520ms ease backwards;
}

.hero-copy > h1,
.page-hero .container > h1 {
  animation: none;
}

.hero-copy > :nth-child(2),
.page-hero .container > :nth-child(2) {
  animation-delay: 70ms;
}

.hero-copy > :nth-child(3),
.page-hero .container > :nth-child(3) {
  animation-delay: 140ms;
}

.hero-copy > :nth-child(4),
.page-hero .container > :nth-child(4) {
  animation-delay: 210ms;
}

.lead {
  margin: 18px 0 0;
  max-width: 720px;
  color: #39566e;
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 94, 168, 0.14);
  background: var(--surface);
  animation: soft-scale 620ms ease 120ms backwards;
  transition: transform var(--motion-medium), box-shadow var(--motion-medium);
}

.hero-media:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(23, 55, 83, 0.16);
}

.hero-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 700ms ease;
}

.hero-media:hover img {
  transform: scale(1.025);
}

.state-search {
  margin-top: 28px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(23, 55, 83, 0.08);
}

.state-search label {
  display: block;
  margin-bottom: 8px;
  color: #233f57;
  font-weight: 800;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--text);
  background: #fff;
}

.search-row button,
.primary-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--motion-short), box-shadow var(--motion-short), transform var(--motion-short);
}

.search-row button:hover,
.primary-link:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(9, 63, 117, 0.22);
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(15, 94, 168, 0.09);
  color: var(--blue-dark);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-actions a:hover {
  transform: translateY(-1px);
  background: rgba(15, 94, 168, 0.14);
}

.mobile-mini-summary {
  display: none;
}

.status-summary {
  margin-top: -26px;
  position: relative;
  z-index: 2;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.summary-grid div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(23, 55, 83, 0.08);
  transition: transform var(--motion-short), box-shadow var(--motion-short), border-color var(--motion-short);
}

.summary-grid div:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 94, 168, 0.28);
  box-shadow: 0 16px 34px rgba(23, 55, 83, 0.1);
}

.summary-grid strong {
  display: block;
  color: var(--blue-dark);
  font-size: 2rem;
  line-height: 1;
}

.summary-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 58px 0;
}

.section + .section {
  border-top: 1px solid rgba(216, 228, 238, 0.8);
}

.section-heading {
  max-width: 760px;
  margin: 0 0 24px;
}

.section-heading.split,
.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.section-heading h2,
.state-main h2,
.site-footer h2 {
  margin: 0;
  color: #102f4c;
  font-size: 1.65rem;
  line-height: 1.18;
  letter-spacing: 0;
}

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

.prose p {
  margin: 0 0 14px;
  color: #334d64;
}

.prose ul,
.state-main ul {
  margin: 0;
  padding-left: 20px;
  color: #334d64;
}

.prose li + li,
.state-main li + li {
  margin-top: 8px;
}

.text-link {
  justify-self: end;
  align-self: center;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(23, 55, 83, 0.06);
}

.status-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.status-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.status-table th,
.status-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

.status-table thead th {
  background: #f0f6fb;
  color: #29465f;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-table tbody tr:last-child th,
.status-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-table tbody tr {
  transition: background var(--motion-short);
}

.status-table tbody tr:hover {
  background: #f7fbff;
}

.status-table th a {
  font-weight: 800;
}

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

.status-announced,
.status-issuing {
  color: var(--green);
  background: var(--green-soft);
}

.status-open {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.status-pending {
  color: var(--amber);
  background: var(--amber-soft);
}

.empty-table-message {
  padding: 16px;
  margin: 0;
  color: var(--muted);
}

.top-states,
.quick-answer {
  background: #fff;
}

.state-link-grid,
.problem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.state-link-grid a,
.problem-card {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(23, 55, 83, 0.05);
  transition: transform var(--motion-medium), box-shadow var(--motion-medium), border-color var(--motion-short), background var(--motion-short);
}

.state-link-grid a:hover,
.problem-card:hover {
  border-color: rgba(15, 94, 168, 0.4);
  box-shadow: 0 12px 30px rgba(23, 55, 83, 0.1);
  transform: translateY(-3px);
}

.state-link-grid span:first-child,
.problem-card span {
  font-weight: 900;
}

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

.problem-card {
  min-height: 180px;
}

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

.faq-section {
  background: #fff;
}

.faq-section .section-heading,
.faq-list {
  width: min(840px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color var(--motion-short), box-shadow var(--motion-short), transform var(--motion-short);
}

details:hover,
details[open] {
  border-color: rgba(15, 94, 168, 0.28);
  box-shadow: 0 10px 24px rgba(23, 55, 83, 0.07);
}

summary {
  cursor: pointer;
  font-weight: 900;
  color: #173b59;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 54px 0;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.state-status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

.state-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.state-main {
  display: grid;
  gap: 28px;
}

.state-main section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--motion-medium), box-shadow var(--motion-medium), border-color var(--motion-short);
}

.state-main section:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 94, 168, 0.24);
  box-shadow: 0 14px 30px rgba(23, 55, 83, 0.08);
}

.state-main p {
  margin: 10px 0 0;
  color: #334d64;
}

.state-side {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(23, 55, 83, 0.06);
}

.state-side dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.state-side div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.state-side div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.state-side dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.state-side dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 750;
}

.official-links,
.link-list,
.source-list {
  display: grid;
  gap: 10px;
}

.official-links a,
.link-list a,
.source-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--motion-short), border-color var(--motion-short), box-shadow var(--motion-short);
}

.official-links a:hover,
.link-list a:hover,
.source-list a:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 94, 168, 0.34);
  box-shadow: 0 10px 24px rgba(23, 55, 83, 0.07);
}

.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.source-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  padding: 44px 0;
  background: #0d2944;
  color: #dbe8f2;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 32px;
}

.site-footer a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-top: 8px;
}

.site-footer p {
  max-width: 640px;
  margin: 12px 0 0;
  color: #b9cbd9;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
}

@media (max-width: 920px) {
  .header-inner,
  .hero-grid,
  .two-column,
  .section-heading.split,
  .state-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    padding: 14px 0;
  }

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

  .hero-grid {
    min-height: 0;
    padding: 34px 0 46px;
  }

  .text-link {
    justify-self: start;
  }

  .summary-grid,
  .state-link-grid,
  .problem-grid,
  .source-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .state-side {
    position: static;
  }
}

@media (max-width: 620px) {
  .container,
  .narrow,
  .faq-section .section-heading,
  .faq-list {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    overflow: hidden;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 10px;
    padding: 12px 0 10px;
  }

  .brand {
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .brand span:last-child {
    max-width: none;
    overflow: hidden;
    font-size: 0.98rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(216, 228, 238, 0.8);
    background: #f6fafe;
    font-size: 0.84rem;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 1rem;
  }

  .search-row {
    flex-direction: column;
  }

  .search-row button {
    width: 100%;
  }

  .summary-grid,
  .state-link-grid,
  .problem-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .mobile-mini-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .mobile-mini-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
  }

  .mobile-mini-summary strong {
    color: var(--blue-dark);
    font-size: 1.2rem;
    line-height: 1;
  }

  .mobile-mini-summary span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: right;
  }

  .status-summary {
    display: none;
  }

  .section {
    padding: 42px 0;
  }

  .page-hero {
    padding: 42px 0;
  }

  .state-main section {
    padding: 18px;
  }

  .site-intro-frame {
    width: 100%;
    height: 100%;
  }

  .site-intro img {
    min-height: 100vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .site-intro {
    display: none;
  }

  .site-header,
  main,
  .site-footer {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js-reveal {
    opacity: 1;
    transform: none;
  }
}
