/* MT Pockets Performance look: Barlow, near-black on white, logo blue accent, square corners. */
:root {
  --ink: #121212;
  --muted: #5c5f66;
  --line: #e3e3e3;
  --line-strong: #121212;
  --bg: #fff;
  --soft: #f3f3f3;
  --dark: #121212;
  --on-dark: #fff;
  --on-dark-muted: #b9bcc2;
  --brand: #12aeef;          /* logo blue, for bars and highlights */
  --brand-ink: #0a6f99;      /* logo blue dark enough for text on white */
  --gray: #747578;           /* logo mountain gray */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100%; margin: 0;
  background: var(--bg); color: var(--ink);
  font: 500 17px/1.55 Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { flex: 1; }
a { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header, like the store: black bar, white header with a bottom border. */
.announce {
  padding: .5rem 16px; background: var(--dark); color: var(--on-dark);
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-align: center; text-transform: uppercase;
}
.masthead { border-bottom: 1px solid var(--line); background: var(--bg); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1200px; margin: 0 auto; padding: .6rem 16px; }
.brand img { display: block; width: 140px; height: auto; }
.masthead-nav { display: flex; gap: 1.5rem; }
.masthead-nav a { color: var(--ink); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.masthead-nav a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 4px; }

/* Search band. */
.hero { padding: 3rem 0 3.25rem; background: var(--dark); color: var(--on-dark); border-bottom: 4px solid var(--brand); }
.eyebrow { margin: 0 0 .35rem; color: var(--brand); font-size: .85rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.lead { margin: 0 0 1.75rem; color: var(--on-dark-muted); font-size: 1.1rem; }
.hero .lookup label { color: var(--on-dark); }
.hero .lookup input { border-color: var(--on-dark); }
.hero .hint { color: var(--on-dark-muted); }
.hero .button { background: var(--brand); border-color: var(--brand); color: var(--dark); }
.hero .button:hover { background: var(--on-dark); border-color: var(--on-dark); }

/* Form controls: square, heavy borders. */
.lookup label { display: block; margin-bottom: .35rem; font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lookup-row { display: flex; gap: .5rem; }
.lookup input, .lookup select {
  width: 100%; min-width: 0; padding: .75rem .85rem; border: 1px solid var(--line-strong); border-radius: 0;
  background: #fff; color: var(--ink); font: inherit; font-weight: 600;
}
.lookup input { flex: 1; }
.hint { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }

.button {
  display: inline-block; padding: .75rem 1.6rem; border: 1px solid var(--dark); border-radius: 0;
  background: var(--dark); color: var(--on-dark); font: inherit; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.button:hover { background: var(--gray); border-color: var(--gray); }
.button-outline { padding: .5rem 1rem; background: transparent; color: var(--ink); font-size: .9rem; }
.button-outline:hover { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }

/* Results and vehicle lookup. */
.body { padding-top: 2.5rem; padding-bottom: 3.5rem; }
h2 { margin: 0 0 .75rem; font-size: 1.35rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.results { margin-bottom: 2.5rem; }
.result-list { margin: 0; padding: 0; list-style: none; }
.result-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--soft);
}
.result-list li + li { margin-top: .5rem; }
.result-title { font-weight: 700; overflow-wrap: anywhere; }
.no-result { padding: 1.1rem; border: 1px solid var(--line); border-left: 4px solid var(--gray); background: var(--soft); }
.no-result p { margin: 0; }
.no-result p + p { margin-top: .5rem; }

.by-vehicle { padding: 2rem; background: var(--soft); }
.results + .by-vehicle { margin-top: 0; }
.sub { margin: -.4rem 0 1.25rem; color: var(--muted); }
.vehicle-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.vehicle-form .field { flex: 1 1 220px; min-width: 0; }
.by-vehicle .results { margin: 1.75rem 0 0; }
.by-vehicle .result-list li { background: #fff; }
.part-note { margin: -.4rem 0 .9rem; color: var(--muted); }
.part-note strong { color: var(--ink); }
.js .js-hide { display: none; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.foot a { color: var(--ink); font-weight: 700; }

@media (max-width: 520px) {
  .lookup-row { flex-direction: column; }
  .by-vehicle { padding: 1.25rem; margin: 0 -16px; }
  .masthead-nav { gap: 1rem; }
  .brand img { width: 110px; }
}
