/* ==========================================================================
   State landing-page styles
   --------------------------------------------------------------------------
   Used only by the per-state pages in /<state>-tax-calculator/.

   IMPORTANT: this file is deliberately SELF-CONTAINED. These pages still link
   styles.css so the shared body defaults match the calculator, but every layout
   rule the page body needs lives here rather than in a Tailwind utility.
   styles.css is a hand-compiled artefact and only contains the classes that
   index.html and script.js actually use — a utility referenced solely by a
   generated landing page would silently render unstyled the day someone
   rebuilds the stylesheet.

   Because these pages do not load script.js, nothing sets the font family on
   <body>; the rule below does it explicitly, using the same self-hosted
   typefaces declared in v2.css.
   ========================================================================== */

body {
  margin: 0;
  background-color: #020617;
  color: #f1f5f9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
}

@media (min-width: 640px) {
  .page-shell {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .page-shell {
    padding: 2rem;
  }
}

/* --- Shared top bar and footer ------------------------------------------- */

.site-topbar {
  border-bottom: 1px solid #1e293b;
  background: rgba(15, 23, 42, 0.9);
}

.site-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.site-mark {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(to top right, #4f46e5, #8b5cf6);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.125rem;
  line-height: 1.4;
}

.site-brand-text {
  min-width: 0;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.site-nav-link {
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  background: #4f46e5;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-link:hover {
  background: #6366f1;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid #0f172a;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.7;
}

.site-footer a {
  color: #818cf8;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* --- Hero ---------------------------------------------------------------- */

.state-hero {
  border: 1px solid #1e293b;
  border-radius: 1.5rem;
  background:
    radial-gradient(1200px 400px at 20% -10%, rgba(79, 70, 229, 0.22), transparent 60%),
    rgba(2, 6, 23, 0.7);
  padding: 2rem 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .state-hero {
    padding: 3rem 2.5rem;
  }
}

.state-hero h1 {
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .state-hero h1 {
    font-size: 2.5rem;
  }
}

.state-hero p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 68ch;
  margin: 0;
}

.state-hero p + p {
  margin-top: 0.9rem;
}

/* --- Fact strip ---------------------------------------------------------- */

.state-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .state-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.state-fact {
  border: 1px solid #1e293b;
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.6);
  padding: 0.9rem 1rem;
}

.state-fact-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.state-fact-value {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  line-height: 1.2;
}

/* --- Content sections ---------------------------------------------------- */

.state-section {
  border: 1px solid #1e293b;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.55);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .state-section {
    padding: 2rem;
  }
}

.state-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.state-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 1.5rem 0 0.5rem;
}

.state-section h3:first-of-type {
  margin-top: 0;
}

.state-section p {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.75;
  margin: 0;
}

.state-section p + p {
  margin-top: 0.85rem;
}

.state-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.75;
}

.state-section li + li {
  margin-top: 0.45rem;
}

.state-section strong {
  color: #e2e8f0;
  font-weight: 600;
}

.state-section a {
  color: #818cf8;
}

/* --- Data tables --------------------------------------------------------- */

.state-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid #1e293b;
  border-radius: 1rem;
}

.state-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.state-table caption {
  caption-side: top;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: #64748b;
  border-bottom: 1px solid #1e293b;
}

.state-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: rgba(2, 6, 23, 0.6);
  border-bottom: 1px solid #1e293b;
  white-space: nowrap;
  font-weight: 600;
}

.state-table td {
  padding: 0.55rem 1rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  vertical-align: top;
}

.state-table tbody tr:last-child td {
  border-bottom: none;
}

.state-table td.num,
.state-table th.num {
  text-align: right;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.state-table tr.is-total td {
  font-weight: 700;
  color: #ffffff;
  background: rgba(79, 70, 229, 0.12);
}

/* --- Cross-link grid on the calculator page ------------------------------ */

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .coverage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .coverage-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.coverage-link {
  display: block;
  padding: 0.6rem 0.8rem;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.6);
  color: #cbd5e1;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.coverage-link:hover,
.coverage-link:focus {
  border-color: #6366f1;
  color: #ffffff;
}

.state-breadcrumb {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.state-breadcrumb a {
  color: #818cf8;
  text-decoration: none;
}

.state-breadcrumb a:hover {
  text-decoration: underline;
}

.state-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.8rem 1.35rem;
  border-radius: 0.9rem;
  background: #4f46e5;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.state-cta:hover {
  background: #6366f1;
}

.state-note {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(180, 83, 9, 0.5);
  background: rgba(120, 53, 15, 0.18);
  color: #fcd34d;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.state-note strong {
  color: #fde68a;
}

/* --- Print --------------------------------------------------------------- */

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .state-hero,
  .state-section,
  .state-fact {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
  }

  .state-hero h1,
  .state-section h2,
  .state-section h3,
  .state-fact-value,
  .state-fact-label {
    color: #000000 !important;
  }

  .state-hero p,
  .state-section p,
  .state-section ul,
  .state-section a,
  .state-breadcrumb {
    color: #1e293b !important;
  }

  .state-cta,
  .site-topbar {
    display: none !important;
  }

  .state-table td,
  .state-table th {
    color: #000000 !important;
    border-color: #cbd5e1 !important;
  }

  .state-table tr.is-total td {
    background: #f1f5f9 !important;
  }
}
