/* Machinery Dealer Index — lightweight design system. Zero JS, zero frameworks. */
:root {
  --steel: #1f2a37;
  --steel-2: #33414f;
  --ink: #16202b;
  --muted: #5c6b7a;
  --line: #dfe4ea;
  --bg: #f7f8fa;
  --card: #ffffff;
  --accent: #b7791f;   /* industrial amber */
  --accent-ink: #7a4f11;
  --verify: #1f7a4d;   /* verified green */
  --max: 1040px;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16,32,43,.06), 0 4px 12px rgba(16,32,43,.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.55; font-size: 17px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 2rem; line-height: 1.2; margin: .2em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.site-header { background: var(--steel); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; flex-wrap: wrap; }
.logo { color: #fff; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo-mark { background: var(--accent); color: #fff; border-radius: 5px; padding: 3px 7px; font-size: .8rem; letter-spacing: .04em; }
.site-header nav { display: flex; gap: 18px; }
.site-header nav a { color: #cfd8e3; font-size: .95rem; }
.site-header nav a:hover { color: #fff; }

/* hero */
.hero { padding: 2.4rem 0 1rem; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 2.4rem; max-width: 18ch; }
.lede { font-size: 1.15rem; color: var(--steel-2); max-width: 62ch; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 1.6rem 0 .6rem; padding: 0; }
.stat-row div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-row dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat-row dd { margin: 4px 0 0; font-size: 1.7rem; font-weight: 700; color: var(--steel); }
.verified-note { color: var(--verify); font-weight: 600; font-size: .9rem; }

/* card grid (categories) */
.card-grid { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card a { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.card a:hover { border-color: var(--accent); text-decoration: none; }
.card .count { font-size: .82rem; color: var(--muted); font-weight: 400; }

/* pills (states) */
.pill-row { list-style: none; padding: 0; margin: 1rem 0 2rem; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row a { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: var(--steel-2); }
.pill-row a:hover { border-color: var(--accent); text-decoration: none; }

/* dealer lists */
.dealer-list { list-style: none; padding: 0; margin: 1rem 0 2rem; counter-reset: rank; }
.dealer-list.ranked li { counter-increment: rank; }
.dealer-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 12px 46px; margin-bottom: 8px; position: relative; box-shadow: var(--shadow); }
.dealer-list.ranked li::before { content: counter(rank); position: absolute; left: 14px; top: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.dealer-name { font-weight: 700; font-size: 1.05rem; }
.dealer-meta { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.dealer-meta strong { color: var(--verify); }
.badge-inline { background: #eef4ff; color: #2456b3; border-radius: 4px; padding: 1px 6px; font-size: .78rem; font-weight: 600; }
.rank-note { font-size: .88rem; }

/* dealer profile */
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 1.2rem 0 .4rem; }
.breadcrumb a { color: var(--muted); }
.dealer-profile header { margin-bottom: 1rem; }
.badges { margin: .4rem 0; }
.badge { display: inline-block; border-radius: 5px; padding: 4px 10px; font-size: .82rem; font-weight: 600; }
.badge-assoc { background: #e8f5ee; color: var(--verify); border: 1px solid #bfe3ce; }
.hero-field { display: flex; flex-direction: column; gap: 2px; background: var(--steel); color: #fff; border-radius: var(--radius); padding: 16px 20px; margin: 1rem 0 1.4rem; max-width: 420px; }
.hero-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #a9b6c4; }
.hero-value { font-size: 1.5rem; font-weight: 700; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 1rem 0; }
.facts dt { font-weight: 600; color: var(--steel-2); }
.facts dd { margin: 0; }
.tag { display: inline-block; background: #f0f2f5; border-radius: 4px; padding: 2px 8px; font-size: .85rem; margin: 0 2px 4px 0; }
.provenance { font-size: .82rem; margin-top: 1.4rem; }
.claim-cta { background: #fff8ec; border: 1px solid #f0dcb8; border-radius: var(--radius); padding: 14px 18px; margin: 1.4rem 0; }

/* buttons + forms */
.btn { display: inline-block; background: var(--accent); color: #fff; border-radius: 6px; padding: 8px 16px; font-weight: 600; }
.btn:hover { background: var(--accent-ink); text-decoration: none; }
.claim-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 460px; margin: 1.2rem 0; box-shadow: var(--shadow); }
.claim-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.claim-form input[type=email], .claim-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; margin-bottom: 12px; font-family: inherit; box-sizing: border-box; }
.claim-form button { width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.claim-form button:hover { background: var(--accent-ink); }
.value-list { padding-left: 1.1rem; }
.value-list li { margin-bottom: 8px; }
.honest-note { font-style: italic; }

/* prose (static pages) */
.prose { max-width: 68ch; margin: 1rem auto 3rem; }
.prose h2 { font-size: 1.25rem; }
.prose h3 { font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 6px; }

/* footer */
.site-footer { background: var(--steel); color: #cfd8e3; margin-top: 3rem; padding: 2rem 0 1.2rem; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer strong { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.site-footer a { color: #cfd8e3; }
.site-footer a:hover { color: #fff; }
.fineprint { margin-top: 1.4rem; font-size: .8rem; color: #93a2b2; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.9rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dt { margin-top: 8px; }
}
