/* Design tokens — "Mill" system
   Ink #0F1C26 · Steel #46586A · Zinc #EEF1F3 · Line #D5DBE0
   Signal #F2B707 (primary action only) · Verified #1E7A46 */
:root {
  --ink: #0F1C26; --steel: #46586A; --zinc: #EEF1F3; --line: #D5DBE0;
  --signal: #F2B707; --verified: #1E7A46; --paper: #FFFFFF;
  --display: "Saira Condensed", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--paper);
       font-size: 16px; line-height: 1.55; }
a { color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 680px; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: .02em; }

/* Type */
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase;
           letter-spacing: .01em; line-height: 1.05; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.display span { color: var(--steel); font-weight: 600; }
.display-xl { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.eyebrow { font-family: var(--mono); font-size: .78rem; text-transform: uppercase;
           letter-spacing: .14em; color: var(--steel); margin-bottom: 10px; }
.lede { color: var(--steel); max-width: 62ch; margin: 14px 0; }
h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.25rem;
     letter-spacing: .02em; margin: 34px 0 14px; }
.crumbs { font-size: .82rem; color: var(--steel); margin: 18px 0 10px; }
.crumbs a { color: var(--steel); }

/* Header */
.site-head { background: var(--ink); color: #fff; }
.head-row { display: flex; align-items: center; gap: 18px; padding: 12px 20px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 700; text-transform: uppercase;
         font-size: 1.15rem; color: #fff; text-decoration: none; display: flex;
         align-items: center; gap: 8px; letter-spacing: .04em; }
.brand-mark { width: 14px; height: 14px; background: var(--signal); display: inline-block; }
.head-search { flex: 1; display: flex; min-width: 220px; }
.head-search input { flex: 1; border: 0; padding: 9px 12px; font: inherit; font-size: .9rem;
                     border-radius: 2px 0 0 2px; }
.head-search button { border: 0; background: var(--signal); font-weight: 600;
                      padding: 0 16px; cursor: pointer; border-radius: 0 2px 2px 0; }
.head-nav { display: flex; gap: 16px; align-items: center; }
.head-nav a { color: #fff; text-decoration: none; font-size: .9rem; }
.head-nav .cta { border: 1px solid var(--signal); color: var(--signal); padding: 6px 12px;
                 border-radius: 2px; }

/* Hero */
.hero { background: var(--zinc); border-bottom: 1px solid var(--line); padding: 52px 0 40px; }
.hero-search { display: flex; max-width: 640px; margin: 22px 0; }
.hero-search input { flex: 1; border: 2px solid var(--ink); border-right: 0; padding: 13px 14px;
                     font: inherit; border-radius: 2px 0 0 2px; }
.hero-stats { display: flex; gap: 0; border: 1px solid var(--line); background: #fff;
              width: fit-content; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; border: 0; cursor: pointer;
       text-decoration: none; padding: 12px 22px; border-radius: 2px; }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { filter: brightness(.95); }

/* Spec plate — signature element: stamped-metal data band */
.spec-plate { display: flex; flex-wrap: wrap; border: 1px solid var(--line);
              background: var(--zinc); margin: 18px 0; position: relative; }
.spec-plate::before, .spec-plate::after {
  content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--steel)); top: 6px; }
.spec-plate::before { left: 6px; } .spec-plate::after { right: 6px; }
.spec { padding: 14px 22px; border-right: 1px solid var(--line); }
.spec:last-child { border-right: 0; }
.spec-label { display: block; font-family: var(--mono); font-size: .68rem;
              text-transform: uppercase; letter-spacing: .12em; color: var(--steel); }
.spec-val { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.spec-plate-stack { flex-direction: column; }
.spec-plate-stack .spec { border-right: 0; border-bottom: 1px solid var(--line); }
.spec-plate-stack .spec-val { font-size: 1.05rem; }

/* Nameplate (supplier profile) */
.nameplate { border: 2px solid var(--ink); padding: 26px 28px; margin: 10px 0 24px;
             position: relative; }
.nameplate::before, .nameplate::after,
.nameplate .nameplate-head::before, .nameplate .nameplate-head::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--steel)); }
.nameplate::before { top: 8px; left: 8px; } .nameplate::after { top: 8px; right: 8px; }
.nameplate .nameplate-head::before { bottom: 8px; left: 8px; position: absolute; }
.nameplate .nameplate-head::after { bottom: 8px; right: 8px; position: absolute; }
.nameplate-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dba { color: var(--steel); font-size: .9rem; margin-top: 2px; }
.nameplate-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                   gap: 10px 22px; margin: 18px 0 6px; }
.nameplate-specs div { border-top: 1px solid var(--line); padding-top: 8px; }
.nameplate-specs dt { font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
                      letter-spacing: .12em; color: var(--steel); }
.nameplate-specs dd { margin: 0; font-weight: 500; }
.cat-links { font-size: .9rem; color: var(--steel); margin-top: 12px; }

/* Badges & chips */
.badge { font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
         letter-spacing: .1em; padding: 4px 9px; border-radius: 2px; white-space: nowrap; }
.badge-verified { background: var(--verified); color: #fff; }
.badge-claimed  { background: var(--ink); color: #fff; }
.badge-unclaimed{ background: var(--line); color: var(--steel); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip { font-size: .78rem; border: 1px solid var(--line); padding: 4px 10px;
        border-radius: 2px; color: var(--steel); }
.chip-baba { border-color: var(--verified); color: var(--verified); font-weight: 600; }

/* Plate grid (listing cards) */
.plate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
              gap: 14px; margin: 14px 0; }
.plate { border: 1px solid var(--line); padding: 14px 16px; text-decoration: none;
         display: block; background: #fff; }
.plate:hover { border-color: var(--ink); }
.plate-seeded { background: var(--zinc); }
.plate-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.plate-name { font-weight: 600; font-size: .95rem; }
.plate-specs { margin: 10px 0 0; }
.plate-specs div { display: flex; gap: 8px; font-size: .82rem; }
.plate-specs dt { font-family: var(--mono); text-transform: uppercase; font-size: .66rem;
                  letter-spacing: .1em; color: var(--steel); min-width: 38px; padding-top: 2px; }
.plate-specs dd { margin: 0; }

/* Category grids, state chips */
.cat-grid { list-style: none; padding: 0; display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.cat-grid a { display: flex; justify-content: space-between; padding: 10px 14px;
              border: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.cat-grid a:hover { border-color: var(--ink); }
.cat-grid b { color: var(--steel); font-weight: 500; font-family: var(--mono); font-size: .8rem; }
.cat-section { margin-bottom: 26px; }
.cat-naics { color: var(--steel); font-size: .75rem; }
.state-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.state-chips a { display: inline-flex; gap: 8px; border: 1px solid var(--line);
                 padding: 7px 12px; text-decoration: none; font-size: .88rem; }
.state-chips b { font-family: var(--mono); color: var(--steel); font-weight: 500; }

/* Claim band, inquiry */
.claim-band { background: var(--ink); color: #fff; padding: 22px 26px; margin: 26px 0;
              display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
              justify-content: space-between; }
.claim-band p { max-width: 56ch; }
.inquiry-box { border: 1px solid var(--line); padding: 24px 26px; margin: 26px 0; }
.inquiry-box form { display: grid; gap: 14px; margin-top: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 5px; font-size: .84rem; font-weight: 500; }
input[type=text], input[type=email], input[type=search], textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--steel); border-radius: 2px; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-foot { background: var(--zinc); border-top: 1px solid var(--line); margin-top: 48px;
             padding: 30px 0; font-size: .9rem; color: var(--steel); }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-grid a { display: block; color: var(--steel); margin-bottom: 6px; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .head-search { order: 3; width: 100%; }
  .spec { padding: 10px 14px; }
  .spec-val { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Account forms */
.stack-form { display: grid; gap: 14px; max-width: 560px; margin: 16px 0; }
.stack-form select { font: inherit; padding: 10px 12px; border: 1px solid var(--steel); border-radius: 2px; }
.field-note { font-size: .8rem; color: var(--steel); }
.form-error { background: #FBEAEA; border: 1px solid #C0392B; color: #7B241C; padding: 10px 14px; }
.form-ok { background: #EAF6EF; border: 1px solid var(--verified); color: var(--verified); padding: 10px 14px; }

/* Admin queue */
.claim-card { margin-bottom: 18px; }
.claim-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.claim-actions input[type=text] { flex: 1; min-width: 220px; }
.btn-reject { background: #fff; border: 1px solid #C0392B; color: #C0392B; }
.btn-reject:hover { background: #FBEAEA; }

/* Product images */
.plate-img { width: 100%; height: 160px; object-fit: cover; display: block;
             margin-bottom: 10px; background: var(--zinc); border: 1px solid var(--line); }
input[type=file] { font-size: .85rem; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 12px 0; }
.admin-table th { font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--steel); text-align: left; padding: 8px 10px;
  border-bottom: 2px solid var(--ink); }
.admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
