/* /junkyards/ — written by suite/yard_directory.py in the private repo. */
:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --panel: #121823;
  --panel-on: #152037;
  --line: #262f3e;
  --line-on: #35507f;
  --ink: #eef2f8;
  --muted: #9aa6ba;
  --blue: #6b96ff;
  --action: #2f6bff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: 16px; top: -60px; background: var(--action); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.top, .page, .foot { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.top { display: flex; align-items: center; justify-content: space-between; height: 68px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 750; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--blue); font-weight: inherit; }
/* Same mark and treatment as the app's topbar (vinscanner.css .brand-logo). */
.brand-logo { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 12px rgba(47, 107, 255, .35); }
.top nav { display: flex; gap: 20px; align-items: center; font-size: 14px; }
.top nav a { color: var(--muted); }
.top nav .cta-sm { color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }

.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 0; }
.crumbs a { color: var(--muted); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; padding: 28px 0 8px; }
.pitch { background: var(--panel-on); border: 1px solid var(--line-on); border-radius: 14px; padding: 22px; }
.pitch .eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.pitch h2 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.pitch h3 { font-size: 15px; margin: 16px 0 4px; }
.pitch p { font-size: 14px; color: #c3cbd8; margin: 0; }
.pitch .median { margin-top: 10px; color: var(--muted); }
.pitch .median .lot { color: var(--ink); }
.pitch-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.pitch-cta .price { font-size: 13px; color: var(--muted); }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; max-width: 18ch; }
.intro { color: var(--muted); max-width: 62ch; margin: 0; }
.stats { display: flex; gap: 0; margin: 26px 0 0; }
.stats div { padding: 0 24px; border-left: 1px solid var(--line); }
.stats div:first-child { padding-left: 0; border-left: 0; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }

.states { margin: 40px 0 0; }
.states h2, .faq h2 { font-size: 20px; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.chip:hover { border-color: var(--blue); text-decoration: none; }
.chip span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.back { margin: 28px 0 0; font-size: 14px; }

.yards { margin-top: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.filters input[type=search], .filters select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; height: 44px; padding: 0 12px;
}
.filters input[type=search] { flex: 1 1 260px; min-width: 0; }
.filters select { flex: 0 1 200px; }
.toggle { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--action); width: 16px; height: 16px; margin: 0; }
.count-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 14px 0 0; }
.count { font-size: 14px; color: var(--muted); margin: 0; }
.report-link { font-size: 14px; }
.empty { border: 1px dashed var(--line); border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); margin-top: 16px; }
.empty button { font: inherit; color: var(--blue); background: none; border: 0; text-decoration: underline; cursor: pointer; }

.state { margin-top: 36px; }
.state-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; scroll-margin-top: 16px; }
.state-head h2 { font-size: 22px; margin: 0; }
.state-head span { font-size: 14px; color: var(--muted); }
.state-head a { margin-left: auto; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.card.on { background: var(--panel-on); border-color: var(--line-on); box-shadow: inset 3px 0 0 var(--blue); transition: transform .15s, box-shadow .15s, border-color .15s; }
/* A covered card is one big link to its /yards/ page: the title link is
   stretched over the card, and the phone/website/bottom links sit above it. */
.card.on h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.card.on h3 a:hover { text-decoration: none; }
.card .phone a, .card-links a { position: relative; z-index: 1; }
.card.on:hover, .card.on:focus-within { transform: translateY(-3px); border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue), 0 10px 24px rgba(0, 0, 0, .35); }
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.badge { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.badge-on { color: #c3d4ff; background: #1d2e4d; border-color: var(--line-on); }
.lot { font-weight: 600; font-variant-numeric: tabular-nums; }
.lot small { font-weight: 400; font-size: 12px; color: var(--muted); }
.card h3 { font-size: 17px; line-height: 1.35; margin: 0 0 6px; overflow-wrap: anywhere; }
.card h3 a { color: var(--ink); }
.card p { margin: 0 0 6px; font-size: 14px; color: #c3cbd8; overflow-wrap: anywhere; }
.card .hours { color: var(--muted); }
.card .k { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #7f8aa0; }
.card-links { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.card-links .site { color: var(--muted); }

.checked { font-size: 13px; color: var(--muted); margin: 28px 0 0; }

.cta { flex: none; background: var(--action); color: #fff; font-weight: 600; border-radius: 10px; padding: 12px 18px; }
.cta:hover { text-decoration: none; filter: brightness(1.1); }

.report { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 48px 0 0; }
.report h2 { font-size: 20px; margin: 0 0 6px; }
.report p { color: var(--muted); margin: 0; max-width: 60ch; }
.btn-report { flex: none; color: var(--ink); border: 1px solid var(--line-on); background: var(--bg); border-radius: 10px; padding: 12px 18px; font-weight: 600; }
.btn-report:hover { text-decoration: none; border-color: var(--blue); }

.faq { margin: 48px 0 0; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; }
.faq p { color: var(--muted); margin: 8px 0 0; }

.foot { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 56px; padding-top: 22px; padding-bottom: 40px; font-size: 14px; }
.foot > a { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .card.on { transition: none; }
  .card.on:hover, .card.on:focus-within { transform: none; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 620px) {
  .top, .page, .foot { padding: 0 16px; }
  .top nav a:not(.cta-sm) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .stats div { padding: 0 14px; }
  .stats dd { font-size: 22px; }
  .filters select { flex: 1 1 100%; }
  .pitch { padding: 18px; }
  .report { flex-direction: column; align-items: stretch; }
  .cta, .btn-report { text-align: center; }
  .state-head a { margin-left: 0; }
}
