/* ==========================================================
   The Bat Room — editorial dashboard styles
   Palette: warm cream base, charcoal ink, signal-red accent.
   Type: Space Grotesk (display+body), JetBrains Mono (data),
         Instrument Serif (italic editorial flourishes).
   ========================================================== */

:root {
  /* Warm neutrals */
  --cream:        #f2ede0;   /* page base */
  --cream-2:      #ece5d4;   /* panels */
  --cream-3:      #e3dac5;   /* inner panels */
  --paper:        #fbf8f0;   /* card face */
  --line:         #cfc4a8;
  --line-strong:  #a79776;

  /* Ink */
  --ink:          #1a1612;
  --ink-2:        #3b342b;
  --ink-3:        #6b6152;
  --ink-4:        #8a7f6c;

  /* Accents */
  --red:          #c8301f;   /* signal red, think stitching */
  --red-dark:     #971f10;
  --red-tint:     #f5d9d4;
  --stitch:       #c8301f;
  --green:        #4a7c3a;   /* good */
  --gold:         #b8903c;   /* warn */

  /* Shadows */
  --sh-sm: 0 1px 0 rgba(26,22,18,.06);
  --sh-md: 0 2px 0 rgba(26,22,18,.08), 0 10px 24px -14px rgba(26,22,18,.25);
  --sh-lg: 0 4px 0 rgba(26,22,18,.06), 0 24px 60px -24px rgba(26,22,18,.35);

  /* Type */
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; }
.dim { color: var(--ink-4); }

/* A subtle "newsprint" texture across the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(26,22,18,.018) 1px, transparent 2px),
    radial-gradient(circle at 75% 80%, rgba(26,22,18,.02) 1px, transparent 2px);
  background-size: 7px 7px, 11px 11px;
  pointer-events: none;
  z-index: 0;
}
section, .topbar, .compare-drawer { position: relative; z-index: 1; }

/* ========== TOP BAR ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,237,224,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
.mark {
  display: flex; align-items: center; gap: 0.6rem;
}
.mark-icon { color: var(--ink); }
.mark-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-4);
  letter-spacing: 0.08em;
}
.mark-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1;
  margin-top: 2px;
}
.sport-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.45);
}
.sport-pill {
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--ink-3);
  transition: background .15s, color .15s, transform .15s;
}
.sport-pill.active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--sh-sm);
}
.sport-pill:hover { color: var(--ink); }
.topnav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.topnav a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--ink-2);
  transition: color .15s;
}
.topnav a:hover { color: var(--red); }
.topnav a::after {
  content:"";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.topnav a:hover::after { transform: scaleX(1); }

.topmeta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  font-size: 0.72rem;
  color: var(--ink-3);
  line-height: 1.1;
}
.topmeta-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-4);
}
.topmeta-status .led {
  display: inline-block;
  visibility: hidden;
}
.topmeta-status.active {
  color: var(--ink-2);
  font-weight: 600;
}
.topmeta-status.active .led {
  visibility: visible;
}
.led {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(200,48,31,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,48,31,.55); }
  70%  { box-shadow: 0 0 0 6px rgba(200,48,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,48,31,0); }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .topbar-inner { grid-template-columns: 1fr; }
  .sport-switch { justify-self: start; }
}

body[data-sport="softball"] {
  --red: #d54f6e;
  --red-dark: #a43852;
  --red-tint: #f9d8e2;
  --stitch: #d54f6e;
}

/* ========== HERO ========== */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.eyebrow {
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--red);
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
}
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.hero-sub {
  margin-top: 1.5rem;
  max-width: 38ch;
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.hero-ctas {
  margin-top: 1.75rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform .15s, background .15s;
  box-shadow: var(--sh-md);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-stats {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 1.25rem;
}
.stat {
  padding: 0.25rem 0.75rem 0.25rem 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  margin-top: 0.4rem;
  font-size: 0.62rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  line-height: 1.3;
}
@media (max-width: 620px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem 0; }
  .stat:nth-child(2) { border-right: none; }
}

/* Hero right card */
.hero-right {
  position: relative;
  min-height: 320px;
}
.hero-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--sh-lg);
  transform: rotate(0.6deg);
}
.hero-card::before {
  /* stitch border */
  content: "";
  position: absolute; inset: 6px;
  border: 1px dashed var(--red);
  border-radius: 10px;
  pointer-events: none;
  opacity: 0.6;
}
.hero-card-head {
  display: flex; justify-content: space-between;
  font-size: 0.7rem;
  color: var(--ink-3);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.9rem;
}
.hero-card-foot {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-size: 0.62rem;
  color: var(--ink-4);
}

/* Mini hero-bat card showing the top pick */
.mini-bat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: end;
}
.mini-bat .mb-brand {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mini-bat .mb-model {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 0.25rem;
}
.mini-bat .mb-year {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: 1.05rem;
}
.mini-bat .mb-price {
  text-align: right;
}
.mini-bat .mb-price .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-4);
}
.mini-bat .mb-price .amt {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mini-scores {
  margin-top: 0.9rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.mini-score-row {
  display: grid;
  grid-template-columns: 98px 1fr 32px;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
}
.mini-score-row .k { color: var(--ink-4); letter-spacing: 0.06em; }
.mini-score-row .v { text-align: right; color: var(--ink); font-weight: 600; }
.mini-bar { background: var(--cream-3); height: 6px; border-radius: 999px; overflow: hidden; }
.mini-bar > i { display: block; height: 100%; background: var(--ink); border-radius: 999px;
  animation: grow 1s cubic-bezier(.3,.7,.2,1) both; }
@keyframes grow { from { width: 0; } }

.hero-bat {
  position: absolute;
  bottom: -70px;
  left: -120px;
  width: 720px;
  height: 80px;
  opacity: 0.35;
  transform: rotate(-14deg);
  pointer-events: none;
  z-index: -1;
}

/* ========== SECTION HEADERS ========== */
.section-head {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-tag {
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.section-sub {
  margin-top: 0.75rem;
  color: var(--ink-2);
  max-width: 60ch;
  font-size: 1rem;
}

/* ========== CALCULATOR ========== */
.calc-section {
  max-width: 1320px;
  margin: 4rem auto 3rem;
  padding: 0 1.5rem;
}
.calc-card-new {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
@media (max-width: 900px) {
  .calc-card-new { grid-template-columns: 1fr; }
}
.calc-left {
  padding: 2rem;
  border-right: 1px solid var(--line);
  position: relative;
}
.calc-left::before {
  content: "";
  position: absolute; top: 0; bottom: 0; right: -1px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 8px);
}
@media (max-width: 900px) {
  .calc-left { border-right: none; border-bottom: 1px solid var(--line); }
}
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.calc-field label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  margin-bottom: 0.4rem;
  display: block;
}
.height-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.input-with-unit {
  position: relative;
}
.input-with-unit input {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.85rem 2.4rem 0.85rem 0.95rem;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.input-with-unit input:focus {
  outline: none;
  border-color: var(--red);
  background: var(--paper);
}
.input-with-unit .unit {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  font-size: 0.75rem;
  pointer-events: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.quickpick {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem;
  font-size: 0.65rem;
}
.quickpick .qp {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  background: var(--cream);
  transition: all .15s;
}
.quickpick .qp:hover { border-color: var(--ink); color: var(--ink); }
.quickpick .qp.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.calc-submit { margin-top: 0.5rem; justify-content: center; }

.calc-right {
  padding: 2rem;
  background: linear-gradient(135deg, var(--cream-2) 0%, var(--cream-3) 100%);
  min-height: 320px;
  display: flex;
  align-items: stretch;
}
.calc-result-new { flex: 1; }
.calc-placeholder { text-align: center; padding: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.placeholder-ring {
  width: 72px; height: 72px; border-radius: 999px;
  border: 2px dashed var(--line-strong);
  margin-bottom: 1rem;
  position: relative;
}
.placeholder-ring::before {
  content: "📏";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  filter: grayscale(1) opacity(0.5);
}
.placeholder-text {
  font-size: 0.72rem;
  color: var(--ink-4);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.placeholder-hint {
  font-size: 0.85rem;
  color: var(--ink-3);
  max-width: 34ch;
  line-height: 1.5;
}

.calc-answer {
  display: flex; flex-direction: column; gap: 1rem;
  animation: fadeUp .5s cubic-bezier(.3,.7,.2,1) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.ans-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.ans-kicker { font-family: var(--mono); font-size: 0.65rem; color: var(--red); letter-spacing: 0.1em; }
.ans-for { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-4); }
.ans-big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ans-metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem;
}
.ans-metric .k { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-4); letter-spacing: 0.1em; }
.ans-metric .v {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 0.35rem;
}
.ans-metric .v .u { font-size: 1rem; color: var(--ink-4); font-weight: 500; margin-left: 0.2rem; }
.ans-weight {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-2);
  padding: 0.55rem 0.8rem;
  background: var(--red-tint);
  border-radius: 8px;
  display: inline-block;
}
.ans-matches {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}
.ans-match-list {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-top: 0.5rem;
}
.ans-match {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
}
.ans-match .m-info { display: flex; flex-direction: column; gap: 0.18rem; min-width: 0; }
.ans-match .m-name { font-weight: 600; }
.ans-match .m-brand { color: var(--ink-4); font-size: 0.8rem; margin-right: 0.4rem; }
.ans-match .m-price { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.ans-match .m-why { font-size: 0.7rem; letter-spacing: 0.02em; }

/* F5: radio-chip rows (Primary Use / Hitting Style) */
.radio-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.radio-row .radio-chip {
  display: inline-flex; align-items: center; cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  background: var(--paper);
  transition: all 0.12s ease;
}
.radio-row .radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row .radio-chip:hover { border-color: var(--ink); }
.radio-row .radio-chip:has(input:checked) {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

.ans-apply {
  background: var(--red);
  color: white;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.ans-apply:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ========== LINEUP ========== */
.lineup-section {
  max-width: 1320px;
  margin: 4rem auto 6rem;
  padding: 0 1.5rem;
}
.lineup-layout {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .lineup-layout { grid-template-columns: 1fr; }
}

/* --- Filters --- */
.filters {
  position: sticky;
  top: 72px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1rem 1rem 1.25rem;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.filters-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.filters-head > span { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--ink-3); }
.reset-btn {
  font-size: 0.62rem;
  color: var(--red);
  letter-spacing: 0.1em;
  transition: color .15s;
}
.reset-btn:hover { color: var(--red-dark); text-decoration: underline; }

.filter-group {
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--line);
}
.filter-group:last-child { border-bottom: none; }
.filter-group .flabel {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.help-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--cream-3);
  color: var(--ink-3);
  font-size: 0.6rem;
  cursor: help;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  background: var(--cream);
  border: 1px solid var(--line-strong);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-2);
  font-family: var(--sans);
  transition: all .12s;
  user-select: none;
  font-weight: 500;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filter-group input[type="text"] {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
}
.filter-group input[type="text"]:focus { outline: none; border-color: var(--ink); }
.filter-group select {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
}

.range-wrap {
  display: flex; flex-direction: column; gap: 0.35rem;
}
.range-display {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; height: 4px;
  background: var(--line-strong);
  border-radius: 999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--red);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--red);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--red);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--red);
  cursor: pointer; border-width: 2px;
}

/* --- Toolbar --- */
.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--ink);
  flex-wrap: wrap; gap: 0.75rem;
}
.toolbar .count {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sort-wrap { display: flex; align-items: center; gap: 0.5rem; }
.sort-wrap label { font-size: 0.68rem; }
.sort-wrap select {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
}

/* --- Bat Grid --- */
.bat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.bat-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.95rem;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.bat-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s cubic-bezier(.3,.7,.2,1);
}
.bat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: var(--ink);
}
.bat-card:hover::before { transform: scaleY(1); }
.bat-card.is-compared { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--sh-md); }
.bat-card.is-compared::before { background: var(--red); transform: scaleY(1); }

.bat-rank {
  position: absolute; top: 0; right: 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-4);
  background: var(--cream-3);
  padding: 0.25rem 0.5rem;
  border-bottom-left-radius: 8px;
  letter-spacing: 0.1em;
}

.bc-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.75rem;
}
.bc-brand {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.bc-model {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 0.25rem;
}
.bc-year {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 0.25rem;
  font-size: 1rem;
}
.bc-pricegroup { text-align: right; }
.bc-cert {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.bc-price {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.bc-price-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  display: block;
  margin-top: 0.2rem;
}

.bc-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.82rem;
}
.bc-specs .row {
  padding: 0.55rem 0.75rem;
  display: flex; justify-content: space-between; gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.bc-specs .row:nth-child(2n) { border-right: none; }
.bc-specs .row:nth-last-child(-n+2) { border-bottom: none; }
.bc-specs .row .k { font-family: var(--mono); font-size: 0.65rem; color: var(--ink-4); letter-spacing: 0.08em; text-transform: uppercase; }
.bc-specs .row .v { font-weight: 600; }

.bc-scores {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.bc-score {
  display: grid;
  grid-template-columns: 108px 1fr 36px;
  align-items: center;
  gap: 0.5rem;
}
.bc-score .k {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.bc-score .v {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-align: right;
  font-weight: 600;
}
.bc-bar {
  background: var(--cream-3);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bc-bar > i {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
  width: 0;
  transition: width 0.9s cubic-bezier(.3,.7,.2,1);
}
.bc-bar.is-red > i { background: var(--red); }
.bc-bar.is-green > i { background: var(--green); }

.bc-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.bc-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--cream-3);
  color: var(--ink-2);
  text-transform: uppercase;
}
.bc-tag[data-t="power"] { background: rgba(200,48,31,0.12); color: var(--red-dark); }
.bc-tag[data-t="contact"] { background: rgba(74,124,58,0.15); color: var(--green); }
.bc-tag[data-t="beginner"] { background: rgba(184,144,60,0.18); color: var(--gold); }
.bc-tag[data-t="tee-ball"] { background: rgba(43,106,196,0.14); color: #24589f; }

.bc-notes {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.bc-proscons {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  font-size: 0.85rem;
}
.bc-proscons.show { display: grid; }
.bc-proscons h5 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.bc-proscons .pros h5 { color: var(--green); }
.bc-proscons .cons h5 { color: var(--gold); }
.bc-proscons ul { list-style: none; padding: 0; margin: 0; }
.bc-proscons li { padding-left: 0.9rem; position: relative; margin-bottom: 0.25rem; color: var(--ink-2); line-height: 1.45; font-size: 0.82rem; }
.bc-proscons .pros li::before { content: "+"; color: var(--green); position: absolute; left: 0; font-weight: 700; }
.bc-proscons .cons li::before { content: "–"; color: var(--gold); position: absolute; left: 0; font-weight: 700; }

.bc-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
}
.bc-expand {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  padding: 0.3rem 0;
}
.bc-expand:hover { color: var(--ink); }

.bc-actions-right { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }

.bc-compare-btn {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  background: transparent;
  transition: all .12s;
}
.bc-compare-btn:hover { border-color: var(--red); color: var(--red); }
.bc-compare-btn.is-on { background: var(--red); color: white; border-color: var(--red); }

.bc-retailers {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.bc-retailer {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  transition: all .12s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.bc-retailer-label { font-weight: 600; }
.bc-retailer-price { font-size: 0.64rem; letter-spacing: 0.06em; color: var(--ink-3); }
.bc-retailer-badge {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--paper);
}
.bc-retailer.is-sale {
  border-color: var(--red);
  background: rgba(200,48,31,0.06);
}
.bc-retailer:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bc-retailer .arrow { font-size: 0.6rem; opacity: 0.7; }
.bc-retailer:hover .bc-retailer-price { color: var(--paper); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
}

/* ========== COMPARE DRAWER ========== */
.compare-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
  transform: translateY(calc(100% - 0px));
  transition: transform .3s cubic-bezier(.3,.7,.2,1);
  z-index: 40;
  box-shadow: 0 -12px 30px -12px rgba(26,22,18,0.35);
}
.compare-drawer.open { transform: translateY(0); }
.compare-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 1.5rem 1.25rem;
}
.compare-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.75rem;
}
.compare-kicker {
  font-size: 0.62rem;
  color: var(--red-tint);
  letter-spacing: 0.15em;
}
.compare-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
}
.compare-actions { display: flex; gap: 0.5rem; }
.btn-ghost-sm {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--paper);
}
.btn-ghost-sm:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.compare-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 700px) {
  .compare-slots { grid-template-columns: 1fr; }
}
.compare-slot {
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  min-height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
}
.compare-slot.empty-slot { color: rgba(255,255,255,0.4); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; }
.compare-slot .cs-meta { display: flex; flex-direction: column; }
.compare-slot .cs-brand { font-family: var(--mono); font-size: 0.6rem; color: var(--red-tint); letter-spacing: 0.08em; }
.compare-slot .cs-model { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.compare-slot .cs-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.compare-slot .cs-price { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; }
.compare-slot .cs-remove { font-family: var(--mono); font-size: 0.62rem; color: var(--red-tint); opacity: 0.8; }
.compare-slot .cs-remove:hover { opacity: 1; text-decoration: underline; }

/* ========== COMPARE MODAL ========== */
.compare-modal {
  position: fixed; inset: 0;
  background: rgba(26,22,18,0.7);
  backdrop-filter: blur(6px);
  z-index: 60;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.compare-modal.open { display: flex; }
.compare-modal-panel {
  background: var(--paper);
  border-radius: 16px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--ink);
  animation: fadeUp .3s cubic-bezier(.3,.7,.2,1);
}
.compare-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: var(--paper);
  z-index: 2;
}
.compare-modal-head h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.compare-modal-head .btn-ghost-sm {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.compare-modal-head .btn-ghost-sm:hover { background: var(--red); border-color: var(--red); color: white; }

.compare-table {
  padding: 1.25rem 1.5rem 1.5rem;
}
.compare-cols {
  display: grid;
  grid-template-columns: 140px repeat(var(--cols, 2), 1fr);
  gap: 0;
  font-size: 0.9rem;
}
.compare-row {
  display: contents;
}
.compare-row > * {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child > * { border-bottom: none; }
.compare-row .c-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  display: flex; align-items: center;
}
.compare-row .c-cell {
  border-left: 1px dashed var(--line);
}
.compare-row.c-head .c-cell {
  background: var(--cream);
  font-weight: 600;
  font-size: 1rem;
}
.c-cell .c-brand {
  font-family: var(--mono); font-size: 0.65rem; color: var(--red); letter-spacing: 0.08em;
  display: block;
}
.c-cell.best-val {
  position: relative;
}
.c-cell.best-val::after {
  content: "★ BEST";
  position: absolute;
  top: 4px; right: 6px;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--red);
  letter-spacing: 0.1em;
}
.c-mini-bar {
  margin-top: 0.35rem;
  background: var(--cream-3);
  height: 6px; border-radius: 999px; overflow: hidden;
}
.c-mini-bar > i { display: block; height: 100%; background: var(--ink); }

/* ========== METHOD / FOOTER ========== */
.method-section {
  max-width: 1320px;
  margin: 2rem auto 8rem;
  padding: 0 1.5rem;
}
.method-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) { .method-grid { grid-template-columns: 1fr; } }
.method-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
}
.method-num {
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.1em;
}
.method-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}
.method-card p { color: var(--ink-2); font-size: 0.93rem; line-height: 1.55; }

.about-block {
  min-width: 0;
}
.about-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  box-shadow: none;
}
.about-kicker {
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.1em;
}
.about-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
  margin-bottom: 0.75rem;
}
.about-card p {
  margin: 0 0 1rem;
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.55;
}
.about-card p:last-child {
  margin-bottom: 0;
}

.method-bottom {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.15fr);
  gap: 2.5rem;
  align-items: start;
}

.method-meta {
  min-width: 0;
}

.sources {
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.sources-label { font-size: 0.7rem; color: var(--ink-4); letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.source-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem;
}
.source-list a {
  font-size: 0.88rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.source-list a:hover { color: var(--red); text-decoration-color: var(--red); }

.disclaimer {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 70ch;
}
.disclaimer strong { font-style: normal; font-family: var(--sans); font-weight: 600; color: var(--ink); }

@media (max-width: 960px) {
  .method-bottom {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.colophon {
  margin-top: 2rem;
  font-size: 0.65rem;
  color: var(--ink-4);
  letter-spacing: 0.15em;
  line-height: 1.7;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* body gets bottom padding when drawer open so last cards aren't hidden */
body.drawer-open { padding-bottom: 180px; }

/* ========== AFFILIATE FOOTER ========== */
.aff-footer {
  background: var(--paper-2, #f5f4f0);
  border-top: 1px solid var(--line);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.aff-sep { color: var(--ink-4); }
.aff-disclosure-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent, #2563eb);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aff-disclosure-btn:hover { color: var(--accent-dark, #1d4ed8); }

/* ========== YOUR BATS / WATCHLIST ========== */
.yourbats-section {
  max-width: 1320px;
  margin: 4rem auto 3rem;
  padding: 0 1.5rem;
}
.yourbats-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .yourbats-grid { grid-template-columns: 1fr; }
}
.yb-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--sh-md);
}
.yb-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.yb-kicker {
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.12em;
}
.yb-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 0.3rem;
}
.yb-toggle {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
  transition: all .12s;
}
.yb-toggle:hover { background: var(--ink); color: var(--paper); }
.yb-toggle.open { background: var(--ink); color: var(--paper); }

/* custom + watch forms share structure */
.custom-form, .watch-form {
  display: flex; flex-direction: column; gap: 0.85rem;
}
.cf-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 700px) {
  .cf-row { grid-template-columns: 1fr; }
}
.cf-field { display: flex; flex-direction: column; gap: 0.35rem; }
.cf-field.cf-full { grid-column: 1 / -1; }
.cf-field.cf-sm { max-width: 120px; }
.cf-field label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.cf-field input[type=text],
.cf-field input[type=number],
.cf-field input[type=url],
.cf-field select {
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  width: 100%;
}
.cf-field input:focus, .cf-field select:focus { outline: none; border-color: var(--ink); }
.cf-field input[type=range] { margin-top: 0.25rem; }

.cf-tags {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  font-size: 0.85rem;
  padding: 0.3rem 0 0;
}
.cf-tags label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--ink-2);
  cursor: pointer;
  text-transform: none;
}
.cf-tags input[type=checkbox] { accent-color: var(--red); }

.cf-actions {
  display: flex; justify-content: flex-end; gap: 0.5rem;
  padding-top: 0.3rem;
}
.btn-ghost-sm-light {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  background: transparent;
}
.btn-ghost-sm-light:hover { border-color: var(--ink); color: var(--ink); }

/* list of saved entries */
.custom-list, .watch-list {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.saved-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
}
.saved-row .sr-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--red);
}
.saved-row .sr-main .sr-title { font-weight: 600; letter-spacing: -0.005em; }
.saved-row .sr-main .sr-sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
  word-break: break-all;
}
.saved-row .sr-price {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
}
.saved-row .sr-actions { display: flex; gap: 0.5rem; }
.sr-link, .sr-del {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  background: transparent;
  text-decoration: none;
}
.sr-link:hover { border-color: var(--ink); color: var(--ink); }
.sr-del:hover { border-color: var(--red); color: var(--red); }

.saved-empty {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-4);
  font-size: 0.9rem;
  padding: 0.75rem 0;
  border-top: 1px dashed var(--line);
}

/* custom bat marker inside the lineup */
.bat-card.is-custom { background: linear-gradient(180deg, #fff9e8 0%, var(--paper) 100%); }
.bat-card.is-custom .bat-yours {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--red);
  padding: 0.22rem 0.55rem;
  border-bottom-right-radius: 8px;
}

/* ==========================================================
   TABS
   ========================================================== */
.topnav.tabs { gap: 0.25rem; }
.topnav.tabs .tab {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
}
.topnav.tabs .tab:hover { color: var(--ink); background: rgba(26,22,18,.04); }
.topnav.tabs .tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.topnav.tabs .tab::after { display: none !important; }

@media (max-width: 760px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
  }

  .mark {
    min-width: 0;
  }

  .mark-kicker {
    font-size: 0.56rem;
  }

  .mark-name {
    font-size: 1rem;
  }

  .topmeta {
    display: none;
  }

  .topnav.tabs {
    display: flex;
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .topnav.tabs::-webkit-scrollbar {
    height: 6px;
  }

  .topnav.tabs::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 999px;
  }

  .topnav.tabs .tab {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
    padding: 0.55rem 0.85rem;
  }
}

.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: tabFade .28s cubic-bezier(.3,.7,.2,1);
}
@keyframes tabFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bc-reviews {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .8rem;
  padding: .7rem 1.2rem .9rem;
  border-top: 1px solid var(--cream-3);
  background: var(--cream-2);
}
.bc-reviews-label {
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--ink-4);
  white-space: nowrap;
  margin-right: .2rem;
}
.bc-review-link {
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-decoration: none;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .2rem .45rem;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  transition: color .15s, border-color .15s;
}
.bc-review-link:hover { color: var(--red); border-color: var(--red); }
.bc-review-link .arrow { font-size: .6rem; opacity: .6; }

.inline-link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--red);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
  cursor: pointer;
}
.inline-link:hover { color: var(--red-dark); }

/* ==================== RULES TAB ==================== */
.rules-section { max-width: 1100px; margin: 0 auto; padding: 0 1rem 3rem; }

.rules-featured {
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  background: var(--paper);
  margin-bottom: 2.5rem;
  position: relative;
}
.rules-featured .rf-stamp {
  position: absolute; top: -10px; left: 1.5rem;
  background: var(--red); color: white;
  padding: 0.15rem 0.6rem;
  font-size: 0.65rem; letter-spacing: 0.1em;
  border-radius: 3px;
}
.rules-featured h3 {
  margin: 0.5rem 0 0.2rem; font-size: 1.5rem;
  display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
}
.rules-featured .rf-age { font-size: 0.7rem; letter-spacing: 0.1em; }
.rules-featured .rf-sub { color: var(--ink-4); margin: 0 0 1rem; }
.rules-featured .rf-rules {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1.25rem;
}
.rules-featured .rf-rules li {
  font-size: 0.92rem;
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}
.rules-featured .rf-rules li::before {
  content: "›"; position: absolute; left: 0; color: var(--red); font-weight: 700;
}
.rules-featured .rf-link {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600; font-size: 0.85rem;
}
.rules-featured .rf-link:hover { background: var(--red); }

.rules-sub-head {
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--ink-4);
  margin: 1rem 0 0.8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.rule-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 0.45rem;
}
.rule-card .rc-name { font-weight: 700; font-size: 1.02rem; }
.rule-card .rc-age { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--ink-4); }
.rule-card ul { list-style: none; padding: 0; margin: 0.3rem 0; font-size: 0.86rem; line-height: 1.45; }
.rule-card ul li { padding-left: 0.9rem; position: relative; margin-bottom: 0.25rem; }
.rule-card ul li::before { content: "·"; position: absolute; left: 0.2rem; font-weight: 700; color: var(--ink-4); }
.rule-card ul li.rc-warn {
  background: #fff4ec;
  border-left: 3px solid var(--red);
  padding: 0.4rem 0.5rem 0.4rem 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  border-radius: 3px;
}
.rule-card ul li.rc-warn::before { content: none; }
.rule-card a {
  color: var(--red); font-weight: 600;
  font-size: 0.85rem; text-decoration: none;
}
.rule-card a:hover { text-decoration: underline; }
.rule-card-warn { border-color: var(--line); border-top: 3px solid var(--red); }

/* F11b: rule card actions row (link + show legal bats button) */
.rc-actions, .rules-featured .rf-actions {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 0.6rem 1rem;
}
.rules-featured .rf-actions { padding-top: 0.2rem; }
.rc-filter-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.rc-filter-btn:hover { background: var(--red); border-color: var(--red); }

/* F11b: bat-fit checker */
.bat-fit-checker {
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1.4rem 1.6rem 1.6rem;
  background: var(--paper);
  margin-bottom: 2rem;
  position: relative;
}
.bat-fit-checker .bfc-head { margin-bottom: 0.9rem; }
.bat-fit-checker .bfc-tag {
  display: inline-block;
  background: var(--red); color: white;
  padding: 0.15rem 0.6rem;
  font-size: 0.65rem; letter-spacing: 0.1em;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.bat-fit-checker .bfc-head h3 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.bat-fit-checker .bfc-sub { margin: 0; color: var(--ink-4); font-size: 0.9rem; }
.bfc-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.bfc-field { display: flex; flex-direction: column; gap: 0.3rem; }
.bfc-label { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--ink-4); }
.bfc-field select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.bfc-field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.bfc-result { display: flex; flex-direction: column; gap: 0.7rem; }
.bfc-empty {
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-size: 0.78rem; letter-spacing: 0.05em;
}
.bfc-verdict {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
}
.bfc-verdict.bfc-pass { background: #ecf7ec; border: 1px solid #2f8a3a; color: #1d5e26; }
.bfc-verdict.bfc-fail { background: #fdecec; border: 1px solid var(--red); color: #9d1f1f; }
.bfc-verdict-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: rgba(0,0,0,0.08); font-weight: 700;
}
.bfc-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.bfc-check {
  display: grid;
  grid-template-columns: 1.4rem 7.5rem 1fr;
  align-items: start;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.85rem;
}
.bfc-check.pass { border-left: 3px solid #2f8a3a; }
.bfc-check.fail { border-left: 3px solid var(--red); background: #fdf6f6; }
.bfc-check-icon { font-weight: 700; }
.bfc-check.pass .bfc-check-icon { color: #2f8a3a; }
.bfc-check.fail .bfc-check-icon { color: var(--red); }
.bfc-check-label { font-weight: 600; }
.bfc-check-detail { color: var(--ink-4); }
.bfc-show-btn {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer;
  margin-top: 0.2rem;
}
.bfc-show-btn:hover { background: var(--red); border-color: var(--red); }
@media (max-width: 640px) {
  .bfc-controls { grid-template-columns: 1fr; }
  .bfc-check { grid-template-columns: 1.2rem 1fr; }
  .bfc-check-detail { grid-column: 2; }
}

/* F11b: lineup banner shown when a league filter is active */
.league-filter-banner {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: var(--paper);
  margin-bottom: 0.8rem;
}
.league-filter-banner .lfb-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.8rem; }
.league-filter-banner .lfb-tag {
  background: var(--red); color: white;
  padding: 0.1rem 0.5rem;
  font-size: 0.6rem; letter-spacing: 0.1em;
  border-radius: 3px;
}
.league-filter-banner .lfb-label { font-weight: 600; font-size: 0.95rem; }
.league-filter-banner .lfb-meta { font-size: 0.7rem; }
.league-filter-banner .lfb-clear {
  font-size: 0.7rem; letter-spacing: 0.06em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.league-filter-banner .lfb-clear:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.rules-footer {
  margin-top: 2rem;
  font-size: 0.72rem;
  text-align: center;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .rules-featured .rf-rules { grid-template-columns: 1fr; }
}

/* ========== F1: BAT DETAIL MODAL ========== */
.bc-details-btn {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  background: transparent;
  transition: all .12s;
  cursor: pointer;
}
.bc-details-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2, #f5f4f0); }

.detail-modal-panel { max-width: 960px; }

#detail-modal-body { padding: 1.25rem 1.5rem 2rem; }

.dm-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.dm-brand {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.dm-model {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 0.1rem;
  color: var(--ink);
}
.dm-year {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}
.dm-pricegroup { text-align: right; }
.dm-price {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 0.3rem;
}

.dm-section { margin-bottom: 1.75rem; }
.dm-section-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  margin-bottom: 0.85rem;
}

.dm-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem 1rem;
}
.dm-spec {
  display: flex; flex-direction: column;
  padding: 0.6rem 0.75rem;
  background: var(--paper-2, #f5f4f0);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.dm-spec-k { font-size: 0.6rem; color: var(--ink-4); letter-spacing: 0.1em; margin-bottom: 0.2rem; }
.dm-spec-v { font-size: 0.9rem; color: var(--ink); font-weight: 500; }

.dm-matrix-wrap { overflow-x: auto; }
.dm-matrix, .dm-source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.dm-matrix th, .dm-matrix td,
.dm-source-table th, .dm-source-table td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  text-align: left;
}
.dm-matrix th,
.dm-source-table th {
  background: var(--paper-2, #f5f4f0);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 500;
  text-transform: uppercase;
}
.dm-matrix td { text-align: center; }
.dm-matrix .dm-matrix-rowhead {
  background: var(--paper-2, #f5f4f0);
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink-2);
}
.dm-source-table .dm-overall-cell { font-weight: 600; color: var(--ink); }
.dm-source-table .dm-src-notes {
  font-size: 0.75rem;
  color: var(--ink-3);
  max-width: 320px;
}
.dm-source-table a { color: var(--accent, #2563eb); text-decoration: none; }
.dm-source-table a:hover { text-decoration: underline; }

.dm-scores { display: grid; gap: 0.75rem; max-width: 480px; }

.dm-notes {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 70ch;
}
.dm-proscons { margin-top: 0; }
.dm-retailers, .dm-reviews { gap: 0.4rem; }
.dm-empty { color: var(--ink-4); font-size: 0.8rem; }

@media (max-width: 640px) {
  .dm-header { flex-direction: column; gap: 0.5rem; }
  .dm-pricegroup { text-align: left; }
  .dm-model { font-size: 1.4rem; }
  .dm-specs-grid { grid-template-columns: 1fr 1fr; }
}
