/* Filter Lab — themed on the site variables (css/site.css). */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.dsp {
  width: min(1000px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: grid;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #3f9d6d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dsp-head h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; }
.sub { margin: 6px 0 0; color: var(--muted); max-width: 640px; line-height: 1.5; }

.card {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.card h3 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.body-text { margin: 0; line-height: 1.65; font-size: 0.94rem; }
.body-text b { color: #c79a3a; }

.spec-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #10151c;
}
#spec { display: block; width: 100%; cursor: grab; touch-action: none; }
.badge {
  position: absolute;
  left: 10px;
  top: 8px;
  font-size: 0.7rem;
  color: rgba(226, 232, 242, 0.8);
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 2px 8px;
  pointer-events: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 7px;
  padding: 8px 15px;
  transition: border-color 140ms ease, background 140ms ease;
}
button:hover { border-color: rgba(199, 154, 58, 0.65); }
button:disabled { opacity: 0.45; cursor: default; }
button.primary {
  background: rgba(199, 154, 58, 0.16);
  border-color: rgba(199, 154, 58, 0.55);
  font-weight: 600;
}
button.on {
  background: rgba(63, 157, 109, 0.16);
  border-color: rgba(63, 157, 109, 0.6);
  font-weight: 600;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
}
.seg button { border: 0; border-radius: 0; padding: 7px 14px; font-size: 0.86rem; background: transparent; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.active { background: rgba(199, 154, 58, 0.16); font-weight: 600; }

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }

.slider { display: grid; gap: 3px; min-width: 170px; }
.slider span { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.slider b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.slider input { width: 100%; accent-color: #c79a3a; margin: 0; }

.readout {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
}
.readout b { color: var(--text); }

.explainer {
  margin: 0;
  padding: 11px 14px;
  border-left: 3px solid #c79a3a;
  background: var(--bg-soft, rgba(128, 128, 128, 0.06));
  border-radius: 0 8px 8px 0;
  line-height: 1.55;
  font-size: 0.92rem;
}

.fineprint { margin: 0; font-size: 0.76rem; color: var(--muted); line-height: 1.55; }
.fineprint a { color: inherit; }
