/* sr22state.com - mobile-first, no external fonts or scripts. */
:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --text: #1b2430;
  --muted: #5d6b7a;
  --line: #dde3e9;
  --accent: #0b5cad;
  --accent-ink: #ffffff;
  --yes: #1d6b3a;
  --no: #8a3a12;
  --unknown: #6b6f75;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b;
    --surface: #1b2128;
    --text: #e6eaef;
    --muted: #9aa7b4;
    --line: #2b333c;
    --accent: #6cb0f5;
    --accent-ink: #0c1117;
    --yes: #6fcf97;
    --no: #f2a36b;
    --unknown: #a0a6ad;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 0.5rem 0 0.25rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.25rem; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 68rem; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 56px; max-width: 68rem; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand-mark {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 6px; padding: 1px 5px; margin-right: 1px;
}
.site-header nav a { margin-left: 14px; font-size: 0.95rem; text-decoration: none; }

.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1rem 0 2rem; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { max-width: 68rem; }

.lead { font-size: 1.1rem; color: var(--muted); margin-top: 0.25rem; }
.note, .muted { color: var(--muted); font-size: 0.9rem; }
.reviewed { color: var(--muted); font-size: 0.9rem; margin-top: 0; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

.hero { padding: 1rem 0 0.5rem; }
.intro { font-size: 1.08rem; }
.faq h3 { margin-top: 1.5rem; }

/* State picker */
.picker { margin: 1rem 0; }
.picker label { display: block; font-weight: 600; margin-bottom: 6px; }
.picker-row { display: flex; gap: 8px; }
.picker select {
  flex: 1; min-width: 0; font: inherit; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.picker button {
  font: inherit; font-weight: 600; padding: 10px 18px; border: 0;
  border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); cursor: pointer;
}

/* Key facts box on state pages */
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 1rem 0;
}
.facts div { background: var(--surface); padding: 10px 12px; }
.facts dt { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.facts div:first-child { grid-column: 1 / -1; }
/* An odd fact left over on the last row spans the full width. */
.facts div:last-child:nth-child(even) { grid-column: 1 / -1; }

.k-yes { color: var(--yes); }
.k-no, .k-other { color: var(--no); }
.k-unknown { color: var(--unknown); }

.cite { font-size: 0.75em; vertical-align: super; text-decoration: none; font-weight: 400; }
.unconfirmed {
  border-left: 3px solid var(--unknown); padding: 6px 10px;
  background: var(--surface); color: var(--muted); border-radius: 0 6px 6px 0;
}
.sources { font-size: 0.9rem; padding-left: 1.4rem; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.state-list li { margin-bottom: 8px; }
.guide-list li { margin-bottom: 8px; }
.entries .entry { border-top: 1px solid var(--line); padding: 4px 0; }
.entries .entry h3 { margin: 0.6rem 0 0.1rem; font-size: 1rem; }
.entries .entry p { margin: 0.2rem 0 0.6rem; }
.table-wrap { overflow-x: auto; }
.simple { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.simple th, .simple td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
.simple thead th { color: var(--muted); font-size: 0.85rem; }

.ad { margin: 1.5rem 0; min-height: 100px; }
.ad-label { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Comparison table: cards on phones, a real table on wider screens */
.compare { width: 100%; border-collapse: collapse; }
.compare thead { display: none; }
.compare tr {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 10px; background: var(--surface);
}
.compare th[scope="row"] { display: block; text-align: left; font-size: 1.1rem; margin-bottom: 4px; }
.compare td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 0.95rem; }
.compare td::before { content: attr(data-label); color: var(--muted); }
.compare td.muted { font-size: 0.95rem; }

@media (min-width: 760px) {
  h1 { font-size: 2.1rem; }
  .compare thead { display: table-header-group; }
  .compare tr { display: table-row; border: 0; background: none; }
  .compare th, .compare td {
    display: table-cell; padding: 8px 10px; border-bottom: 1px solid var(--line);
    text-align: left; vertical-align: top;
  }
  .compare thead th { font-size: 0.85rem; color: var(--muted); position: sticky; top: 0; background: var(--bg); }
  .compare th[scope="row"] { font-size: 1rem; margin: 0; }
  .compare td::before { content: none; }
  .compare tbody tr:hover { background: var(--surface); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts div:last-child:nth-child(even) { grid-column: auto; }
}
