/* ===========================================================================
   /tint-laws — hub + 51 state pages. Tokens and base live in site.css; this
   file adds the nav/footer composition (which otherwise only exists inside
   index.html's <style>) plus the reference-page pieces: state grid, limit
   table, calculator, source list.

   Mobile-first. Nothing here may create horizontal page scroll: the only
   wide element is .tl-table, and it scrolls inside .table-scroll.
   =========================================================================== */

/* ── NAV (mirrors index.html) ─────────────────────────────────────────────── */
#nav {
  position: sticky; top: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  height: 72px;
  padding: 0 var(--pad-x);
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 44px; }
.nav-brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-brand span {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 18px; letter-spacing: -0.025em;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 11px;
  height: 1px; background: var(--accent-hi);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-signin {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  padding: 12px 6px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color .2s var(--ease);
}
.nav-signin:hover { color: var(--text); }

/* ── FOOTER (mirrors index.html) ──────────────────────────────────────────── */
#footer { border-top: 1px solid var(--border); padding: 54px var(--pad-x); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-copy { font-size: 13.5px; color: var(--dim); max-width: 340px; margin-top: 14px; line-height: 1.6; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13.5px; color: var(--dim);
  padding: 11px 0; min-height: 44px; display: inline-flex; align-items: center;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--text); }

/* These are reference pages, not the marketing page: the sections are short and
   read top-to-bottom, so the landing page's 120px rhythm is loosened to
   something closer to a document. Re-stated per breakpoint because site.css
   sets --sec-y inside media queries that would otherwise lose to this file. */
:root { --sec-y: 92px; }
@media (max-width: 900px) { :root { --sec-y: 64px; } }
@media (max-width: 560px) { :root { --sec-y: 52px; } }

/* ── shared page furniture ───────────────────────────────────────────────── */
.tl-h2 { font-size: clamp(23px, 3vw, 32px); margin-bottom: 12px; }
.tl-sub { color: var(--muted); font-size: 15px; max-width: 62ch; margin-bottom: 22px; }
.tl-intro { margin-top: 18px; }
.tl-intro strong { color: var(--text); font-weight: 600; }

.tl-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--dim); margin-bottom: 22px;
}
.tl-crumbs a { color: var(--muted); transition: color .2s var(--ease); }
.tl-crumbs a:hover { color: var(--accent-hi); }

.tl-top h1 { margin-top: 6px; }

.tl-verified {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin-top: 22px;
  font-size: 14px; color: var(--muted); line-height: 1.6;
}
.tl-verified a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.tl-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.14);
}

.tl-warn {
  margin-top: 22px;
  padding: 15px 18px;
  border-radius: var(--r-btn);
  border: 1px solid rgba(245,158,11,0.4);
  background: rgba(245,158,11,0.09);
  color: #fcd9a0;
  font-size: 14.5px; line-height: 1.6;
}
.tl-warn strong { color: #fbbf24; }

.tl-legal {
  margin-top: 26px;
  font-size: 13px; color: var(--dim); line-height: 1.65; max-width: 70ch;
}
.tl-back { margin-top: 18px; font-size: 14.5px; }
.tl-back a { color: var(--accent-hi); }
.tl-back a:hover { text-decoration: underline; }

/* ── hub: toolbar + search ───────────────────────────────────────────────── */
.tl-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 18px; margin-bottom: 26px;
}
.tl-toolbar .tl-h2 { margin-bottom: 0; }
.tl-search { width: 100%; max-width: 320px; }
.tl-search input {
  width: 100%;
  font: inherit; font-size: 15px;
  color: var(--text);
  background: var(--bg-inset);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-btn);
  padding: 12px 14px;
  min-height: 46px;
  transition: border-color .2s var(--ease);
}
.tl-search input::placeholder { color: var(--dim); }
.tl-search input:focus { outline: none; border-color: var(--accent); }
.tl-search input:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.tl-count { font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.tl-empty { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* ── hub: state grid ─────────────────────────────────────────────────────── */
.tl-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
}
.tl-card {
  display: flex; flex-direction: column; gap: 2px;
  height: 100%;
  padding: 15px 16px 14px;
}
.tl-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.tl-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tl-card-name {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14.5px;
  letter-spacing: -0.02em; line-height: 1.25;
}
.tl-card-abbr {
  font-size: 11px; font-weight: 600; color: var(--dim);
  letter-spacing: 0.08em; flex-shrink: 0;
}
.tl-card-vlt {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 30px; line-height: 1.1; letter-spacing: -0.04em;
  color: var(--accent-hi); margin-top: 8px;
}
.tl-card-pct { font-size: 16px; font-weight: 700; margin-left: 1px; }
.tl-card-none {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  margin-top: 12px; line-height: 1.3;
}
.tl-card-label { font-size: 11.5px; color: var(--dim); margin-top: 2px; }

/* ── hub: "how to read" ──────────────────────────────────────────────────── */
.tl-read { display: grid; gap: 14px; }
.tl-read-card { padding: 20px 22px; }
.tl-read-card h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--accent-hi); }
.tl-read-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.tl-read-card em { color: var(--text); font-style: normal; font-weight: 600; }

/* ── limits table ────────────────────────────────────────────────────────── */
.tl-glance { padding: 6px; overflow: hidden; }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
.tl-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.tl-table th, .tl-table td {
  text-align: left;
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.tl-table thead th {
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
  background: var(--bg-inset);
  white-space: nowrap;
}
.tl-table tbody th {
  font-weight: 600; color: var(--text); white-space: nowrap; width: 120px;
}
.tl-table tbody td { color: var(--muted); }
.tl-table tbody tr:last-child th, .tl-table tbody tr:last-child td { border-bottom: 0; }
.tl-row-prose td { font-size: 13.5px; line-height: 1.6; min-width: 200px; }
.tl-vlt {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 21px; letter-spacing: -0.03em; color: var(--text);
}
.tl-vlt-sub { font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.tl-nolimit {
  color: var(--muted);
  text-decoration: underline dotted;
  text-decoration-color: var(--dim);
  text-underline-offset: 4px;
  cursor: help;
  font-size: 13.5px;
}
.tl-unstated { color: var(--dim); font-style: italic; }
.tl-mirror { margin-top: 18px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.tl-mirror strong { color: var(--text); font-weight: 600; }

/* ── calculator ──────────────────────────────────────────────────────────── */
.tl-calc { padding: 22px; }
.tl-calc-inputs { display: grid; gap: 14px; }
.tl-field label {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 7px;
}
.tl-field input, .tl-field select {
  width: 100%;
  font: inherit; font-size: 16px;
  color: var(--text);
  background: var(--bg-inset);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-btn);
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color .2s var(--ease);
}
.tl-field select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%),
                    linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.tl-field input:focus, .tl-field select:focus { outline: none; border-color: var(--accent); }
.tl-field input:focus-visible, .tl-field select:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.tl-hint { font-size: 12px; color: var(--dim); margin-top: 7px; line-height: 1.5; }

.tl-net {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  margin: 22px 0 18px;
  padding: 16px 18px;
  border-radius: var(--r-btn);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-hi);
}
.tl-net b {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 30px; letter-spacing: -0.04em; text-transform: none; color: var(--text);
}
.tl-net-math { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }

.tl-results { list-style: none; display: grid; gap: 9px; }
.tl-res {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg-inset);
  font-size: 14.5px;
}
.tl-res-win { font-weight: 600; min-width: 92px; }
.tl-res-why { color: var(--muted); font-size: 13.5px; }
.tl-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; flex-shrink: 0;
}
.tl-tag--pass { background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.4); color: #6ee7b7; }
.tl-tag--fail { background: rgba(248,113,113,0.13); border: 1px solid rgba(248,113,113,0.4); color: #fca5a5; }
.tl-tag--none { background: rgba(255,255,255,0.05); border: 1px solid var(--border-hi); color: var(--muted); }
.tl-res--pass { border-color: rgba(52,211,153,0.28); }
.tl-res--fail { border-color: rgba(248,113,113,0.3); }
.tl-calc-foot { margin-top: 14px; }

/* ── detail sections ─────────────────────────────────────────────────────── */
.tl-secs { display: grid; gap: 14px; }
.tl-sec { padding: 20px 22px; }
.tl-sec-h { font-size: 16.5px; margin-bottom: 9px; color: var(--accent-hi); }
.tl-sec p { color: var(--muted); font-size: 14.5px; line-height: 1.75; overflow-wrap: break-word; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.tl-faq { display: grid; gap: 10px; max-width: 900px; }
.tl-det { overflow: hidden; }
.tl-det summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px;
  cursor: pointer;
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: 15.5px; letter-spacing: -0.015em;
  list-style: none;
}
.tl-det summary::-webkit-details-marker { display: none; }
.tl-det summary::after {
  content: '+';
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 21px; line-height: 1; color: var(--accent-hi);
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.tl-det[open] summary::after { transform: rotate(45deg); }
.tl-det-body { padding: 0 20px 19px; }
.tl-det-body p { color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* ── nearby ──────────────────────────────────────────────────────────────── */
.tl-near {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.tl-near-a {
  display: flex; flex-direction: column; gap: 4px;
  height: 100%;
  padding: 14px 16px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14.5px;
  letter-spacing: -0.02em;
}
.tl-near-a:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.tl-near-v { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12.5px; color: var(--dim); }

/* ── sources ─────────────────────────────────────────────────────────────── */
.tl-sources { padding: 22px; }
.tl-sec-h2 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 14px; overflow-wrap: break-word; }
.tl-src-list { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.tl-src-list a {
  display: block;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg-inset);
  font-size: 14px; font-weight: 600; color: var(--accent-hi);
  transition: border-color .2s var(--ease);
}
.tl-src-list a:hover { border-color: var(--accent-line); }
.tl-src-url {
  display: block;
  font-size: 11.5px; font-weight: 400; color: var(--dim);
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.tl-src-note { font-size: 13px; color: var(--muted); line-height: 1.7; }
.tl-src-note a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.tl-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-color: var(--accent-line);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(99,102,241,0.14) 0%, transparent 60%),
    var(--bg-card);
}
.tl-cta-h { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 7px; }
.tl-cta p { color: var(--muted); font-size: 14.5px; }
.tl-cta .btn { flex-shrink: 0; }

/* ── wider screens ───────────────────────────────────────────────────────── */
@media (min-width: 620px) {
  .tl-calc-inputs { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .tl-read { grid-template-columns: 1fr 1fr; }
  .tl-search { max-width: 300px; }
}
@media (min-width: 900px) {
  .tl-read { grid-template-columns: repeat(3, 1fr); }
}

/* ── phones ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .tl-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
  .tl-card-vlt { font-size: 26px; }
  .tl-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .tl-search { max-width: none; }
  .tl-calc, .tl-sources { padding: 18px; }
  .tl-cta { padding: 22px; }
  .tl-cta .btn { width: 100%; }
  .footer-inner { gap: 18px; }
  .footer-links { gap: 18px 22px; }
  #nav { height: 64px; }
}

/* the reference pages are static — nothing animates, and the two ambient
   aurora layers already stop animating under prefers-reduced-motion via
   site.css. Kept explicit so a future addition can't sneak motion in. */
@media (prefers-reduced-motion: reduce) {
  .tl-card:hover, .tl-near-a:hover { transform: none; }
  .tl-det summary::after { transition: none; }
}

.tl-banned, .tl-card-banned { color: #f28b82; }
