/* ============================================================
   Independent Resolers Coalition — shared styles
   Palette: chalk paper, rubber black, sole-tag yellow
   Type: Bricolage Grotesque (display) / Archivo (body) / IBM Plex Mono (specs)
   Signature: the "cut line" — dashed rules marking where old rubber gets trimmed
   ============================================================ */

:root {
  --paper: #fafaf8;
  --paper-dim: #f1f0ea;
  --ink: #1a1a1c;
  --slate: #50545c;
  --line: #dedbd2;
  --yellow: #f0b000;
  --yellow-soft: #fce9b6;
  --good: #2e7d4f;
  --warn: #b07a00;
  --worn: #c24a2e;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --body: "Archivo", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Archivo", sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- cut line (signature) ---------- */
.cutline {
  border: none;
  border-top: 2px dashed var(--yellow);
  margin: 0;
  position: relative;
}
.cutline::after {
  content: "✂";
  position: absolute;
  left: 24px;
  top: -0.72em;
  background: var(--paper);
  padding: 0 8px;
  color: var(--yellow);
  font-size: 15px;
}

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ink);
  color: var(--paper);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.wordmark .tag {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
nav.site ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.site a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 14.5px;
  color: #d6d5d0;
  border-bottom: 2px solid transparent;
}
nav.site a:hover { color: var(--paper); }
nav.site a[aria-current="page"] {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 14px;
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
h1 .hl {
  background: linear-gradient(transparent 62%, var(--yellow-soft) 62%);
}
.lede {
  font-size: 20px;
  color: var(--slate);
  max-width: 46ch;
  margin: 0 0 28px;
}

/* ---------- sections & type ---------- */
section.band { padding: 64px 0; }
section.band.dim { background: var(--paper-dim); }
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
  margin: 0 0 8px;
}
p.sub { color: var(--slate); max-width: 62ch; margin-top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.btn:hover { background: #33333a; border-color: #33333a; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--yellow-soft); }
.btn.yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn.yellow:hover { background: #ffc82e; border-color: #ffc82e; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- cards & grids ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
}
.card .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--warn);
  display: block;
  margin-bottom: 10px;
}
.card p { color: var(--slate); font-size: 15.5px; margin-bottom: 0; }

/* ---------- spec tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}
table.spec th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
table.spec th .arrow { color: var(--yellow); margin-left: 4px; }
table.spec td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
table.spec tbody tr:hover { background: var(--yellow-soft); }
td.mono, .mono { font-family: var(--mono); font-size: 13.5px; }

/* rating pills + wear dots */
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill.excellent { background: #dff0e5; color: var(--good); }
.pill.good      { background: #eef3d8; color: #5d6c14; }
.pill.fair      { background: var(--yellow-soft); color: var(--warn); }
.pill.tricky    { background: #f7ddd4; color: var(--worn); }

.dots { display: inline-flex; gap: 3px; }
.dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line);
}
.dots i.on { background: var(--ink); }

/* ---------- filter bar ---------- */
.filterbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}
.filterbar input[type="search"], .filterbar select {
  font-family: var(--body);
  font-size: 15px;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  min-width: 200px;
}
.filterbar .count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--slate);
  align-self: center;
  margin-left: auto;
}

/* ---------- directory ---------- */
#map {
  height: 440px;
  border: 1px solid var(--line);
  background: var(--paper-dim);
}
.member-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 760px) { .member-list { grid-template-columns: 1fr; } }
.member {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 18px 20px;
}
.member h3 { margin-bottom: 4px; }
.member .loc { font-family: var(--mono); font-size: 12.5px; color: var(--warn); margin: 0 0 8px; }
.member p { font-size: 14.5px; color: var(--slate); margin: 0 0 10px; }
.member a.link { font-size: 14px; font-weight: 600; }
.member .services { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.member .services span {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 2px 8px;
}

/* ---------- outsole hero figure ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.sole-fig { text-align: center; }
.sole-fig figcaption {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 10px;
}

/* ---------- condition scale ---------- */
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 860px) { .scale { grid-template-columns: repeat(2, 1fr); } }
.scale .step { border: 1px solid var(--line); padding: 18px; background: var(--paper); }
.scale .step b { font-family: var(--display); display: block; font-size: 17px; margin-bottom: 6px; }
.scale .step p { font-size: 14px; color: var(--slate); margin: 0; }
.scale .step .cost { font-family: var(--mono); font-size: 12px; margin-top: 10px; display: block; }
.scale .g1 { border-top: 5px solid var(--good); }
.scale .g2 { border-top: 5px solid #8a9a1f; }
.scale .g3 { border-top: 5px solid var(--yellow); }
.scale .g4 { border-top: 5px solid var(--worn); }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink);
  color: #b9b8b3;
  padding: 44px 0 36px;
  margin-top: 80px;
  font-size: 14.5px;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 10px;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 6px; }
footer.site a { color: #d6d5d0; text-decoration: none; }
footer.site a:hover { color: var(--paper); }
footer.site .fine { margin-top: 30px; font-family: var(--mono); font-size: 12px; color: #7d7c78; }

/* ---------- misc ---------- */
.note {
  border-left: 4px solid var(--yellow);
  background: var(--yellow-soft);
  padding: 14px 18px;
  font-size: 15px;
  margin: 20px 0;
}
.legend { font-family: var(--mono); font-size: 12.5px; color: var(--slate); margin-top: 10px; }
