/* Home page. The state picker is a rack of number plates, the one memorable element; the rest stays plain. */
.home-head { display: grid; gap: 12px; margin-bottom: 26px; }
.home-head p { max-width: 56ch; font-size: 1.1rem; color: var(--muted); }

.plates {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) { .plates { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.plate {
  display: grid; gap: 2px; align-content: space-between;
  min-height: 132px; padding: 12px 14px 12px;
  background: var(--plate); color: var(--plate-ink);
  border-radius: 9px; text-decoration: none;
  outline: 2px solid var(--plate-ink); outline-offset: -6px;   /* the pressed border on a real plate */
  box-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.plate:hover { background: #ffd21f; }
.plate:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.plate-abbr { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 7vw, 3rem); letter-spacing: 0.06em; line-height: 1; padding: 6px 4px 0; }
.plate-name { font-size: 0.85rem; font-weight: 600; padding: 0 4px; }
.plate-fig { font-family: var(--font-plate); font-weight: 500; font-size: 1.05rem; padding: 4px 4px 0; }
.plate-fig small { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; opacity: 0.8; }

.plates-note { margin-top: 12px; font-size: 0.88rem; color: var(--muted); max-width: 70ch; }

.home-sec { margin-top: 44px; display: grid; gap: 12px; }
.home-sec h2 { font-size: 1.7rem; }
.home-sec > p { max-width: 62ch; }
.small { font-size: 0.88rem; color: var(--muted); }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.tablewrap table { border-collapse: collapse; width: 100%; min-width: 0; }
.tablewrap th, .tablewrap td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablewrap thead th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; background: var(--field); }
.tablewrap tbody tr:last-child th, .tablewrap tbody tr:last-child td { border-bottom: 0; }
.tablewrap td.num { font-variant-numeric: tabular-nums; }
.tablewrap tbody th a { color: var(--accent); font-weight: 600; }

.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 62ch; }
.tools li { padding-left: 14px; border-left: 3px solid var(--line); }
.tools a { color: var(--accent); }

.home-foot { margin-top: 44px; color: var(--muted); font-size: 0.9rem; max-width: 70ch; }

@media (max-width: 600px) {
  .tablewrap { border: 0; background: none; overflow: visible; }
  .tablewrap table, .tablewrap tbody, .tablewrap tr, .tablewrap th, .tablewrap td { display: block; width: 100%; }
  .tablewrap thead { position: absolute; left: -9999px; }
  .tablewrap tr { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 6px 0; }
  .tablewrap th, .tablewrap td { border: 0 !important; padding: 4px 14px; }
  .tablewrap tbody th { font-family: var(--font-display); font-size: 1.15rem; }
  .tablewrap td[data-label] { display: flex; justify-content: space-between; gap: 16px; }
  .tablewrap td[data-label]::before { content: attr(data-label); color: var(--muted); white-space: nowrap; }
  .tablewrap td[data-label] { text-align: right; }
  .tablewrap.cards td[data-label] { display: block; text-align: left; }
  .tablewrap.cards td[data-label]::before { display: block; font-size: 0.82rem; margin-bottom: 2px; }
}

.tablewrap.cards tbody th { white-space: normal; }
