main { max-width: var(--content-max-width, 1280px); margin: 0 auto; padding: 36px 24px; }
.hero-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 24px; }

.search-box { position: relative; margin-bottom: 28px; }
.search-input { width: 100%; padding: 12px 16px; font-family: 'DM Sans', sans-serif; font-size: 15px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); outline: none; transition: border-color .15s; }
.search-input:focus { border-color: var(--brass); }
.autocomplete { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); max-height: 260px; overflow-y: auto; z-index: 50; display: none; }
.autocomplete.is-open { display: block; }
.ac-empty { padding: 12px 16px; font-size: 13px; color: var(--muted); }
.ac-item { padding: 10px 16px; cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--faint); display: flex; justify-content: space-between; align-items: center; }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--brass-l); }
.ac-item .ac-brand { font-weight: 500; }
.ac-item .ac-specs { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; }

.ref-card { background: var(--surface); border: 2px solid var(--brass); border-radius: 14px; padding: 18px 20px; margin-bottom: 28px; display: none; }
.ref-card.visible { display: flex; align-items: center; gap: 20px; }
.ref-info { flex: 1; }
.ref-name { font-size: 18px; font-weight: 600; }
.ref-specs { font-size: 12px; color: var(--muted); margin-top: 4px; font-family: 'DM Mono', monospace; }
.ref-change { font-size: 12px; color: var(--brass); cursor: pointer; white-space: nowrap; }

.opts-row { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.opts-row label { font-size: 12px; color: var(--muted); }
.opts-row select { font-family: 'DM Sans', sans-serif; font-size: 12px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }

.brand-filter { position: relative; z-index: 60; }
.brand-filter-toggle {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  min-width: 140px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.brand-filter-toggle:hover { border-color: var(--brass-b); }
.brand-filter-toggle:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass-l); }
.brand-filter.is-open .brand-filter-toggle { border-color: var(--brass); }
.brand-filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.brand-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: background .12s;
}
.brand-filter-option:hover { background: var(--brass-l); }
.brand-filter-option input {
  accent-color: var(--brass);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}

.results-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 12px; }
.result-list { display: flex; flex-direction: column; gap: 10px; }
.result-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; transition: .15s; }
.result-item:hover { border-color: var(--border2); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.ri-score { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.ri-score.high { background: var(--green-l); color: var(--green); }
.ri-score.mid { background: var(--brass-l); color: var(--brass-d); }
.ri-score.low { background: var(--faint); color: var(--muted); }
.ri-info { flex: 1; min-width: 0; }
.ri-name { font-weight: 600; font-size: 15px; }
.ri-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ri-diffs { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.ri-diff { font-size: 11px; font-family: 'DM Mono', monospace; padding: 2px 8px; border-radius: 6px; background: var(--faint); }
.ri-diff.pos { background: #e8f4e8; color: #1e6b2e; }
.ri-diff.neg { background: #fdeaea; color: #b03c3c; }
.ri-diff.zero { color: var(--muted); }
.ri-tradeoff { font-size: 11px; color: var(--muted); margin-top: 4px; font-style: italic; }
.ri-why-toggle { font-size: 11px; color: var(--brass); cursor: pointer; margin-top: 6px; user-select: none; }
.ri-why-toggle:hover { text-decoration: underline; }
.ri-why { display: none; margin-top: 8px; padding: 10px 12px; background: var(--faint); border-radius: 8px; font-size: 11px; line-height: 1.6; }
.ri-why.open { display: block; }
.ri-why-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ri-why-row:last-child { margin-bottom: 0; }
.ri-why-dim { width: 80px; flex-shrink: 0; color: var(--muted); }
.ri-why-bar { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.ri-why-fill { height: 100%; border-radius: 3px; }
.ri-why-fill.high { background: #2E7D52; }
.ri-why-fill.mid { background: var(--brass); }
.ri-why-fill.low { background: #B03C3C; }
.ri-why-pct { font-family: 'DM Mono', monospace; width: 36px; text-align: right; }
.ri-actions { flex-shrink: 0; }
.ri-badge { display: inline-block; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; padding: 2px 8px; border-radius: 8px; margin-left: 8px; }
.ri-badge.curated { background: #E8F4E8; color: #1e6b2e; }
.ri-badge.exact { background: #E8F4E8; color: #1e6b2e; }
.ri-badge.close { background: var(--brass-l); color: var(--brass-d); }
.ri-badge.similar { background: var(--faint); color: var(--muted); }
.source-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.source-btn { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: transparent; cursor: pointer; color: var(--muted); transition: .15s; }
.source-btn.active { background: var(--brass); border-color: var(--brass); color: #fff; }

.weight-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.weight-section .section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 12px; }
.weight-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.weight-preset { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; padding: 5px 12px; border-radius: 16px; border: 1px solid var(--border); background: transparent; cursor: pointer; color: var(--muted); transition: .15s; }
.weight-preset:hover { border-color: var(--brass-b); }
.weight-preset.active { background: var(--brass); border-color: var(--brass); color: #fff; }
.weight-sliders { display: flex; flex-direction: column; gap: 10px; }
.weight-row { display: flex; align-items: center; gap: 10px; }
.weight-row-label { font-size: 12px; width: 90px; flex-shrink: 0; color: var(--muted); }
.weight-row input[type=range] { flex: 1; -webkit-appearance: none; height: 5px; border-radius: 3px; background: var(--faint); outline: none; }
.weight-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--brass); cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.weight-row-val { font-family: 'DM Mono', monospace; font-size: 11px; width: 32px; text-align: right; }

.equiv-explore { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
/* Hub chips (were on home.css when this page used $pageCss = home.css) */
.equiv-explore .brands-section {
  max-width: var(--content-max-width, 1280px);
  margin: 0 auto;
  padding: 0 0 36px;
}
.equiv-explore .brands-section h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 16px;
  text-align: center;
}
.equiv-explore .compare-comps-inner { max-width: var(--content-max-width, 1280px); margin: 0 auto; }
.equiv-explore .popular-comps-sub {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin: 24px 0 12px;
  text-align: center;
}
.equiv-explore .popular-comps-sub:first-of-type { margin-top: 0; }
.equiv-explore .popular-comps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px;
  max-width: var(--content-max-width, 1280px);
  margin: 0 auto 8px;
}
.equiv-explore .popular-comp-link {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: .15s;
}
.equiv-explore .popular-comp-link:hover {
  border-color: var(--brass);
  background: var(--brass-l);
}
