/* === The Lost Seasons · player-card grid === */

.ls-shell {
  margin-top: 14px;
  padding: 26px 0 8px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* Head: title + key + filter row */
.ls-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 22px;
}
.ls-head .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.ls-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.012em;
  max-width: 900px;
}
.ls-head h2 em { color: var(--amber); font-style: italic; }
.ls-head .deck {
  font-family: var(--serif);
  font-style: italic;
  color: var(--vellum-dim);
  font-size: 18px;
  max-width: 720px;
  margin: 14px 0 0;
  line-height: 1.42;
}
.ls-head .key {
  display: grid;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.ls-head .key .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
}
.ls-head .key .lab { color: var(--muted-2); }
.ls-head .key .v   { color: var(--vellum-dim); font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; line-height: 1; }
.ls-head .key .v.red { color: var(--barrier-hot); }

/* === Total bar — a sidebar tally over the grid === */
.ls-tally {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  padding: 16px 0 18px;
  border-bottom: 1px dotted var(--rule);
  align-items: baseline;
  margin-bottom: 28px;
}
.ls-tally .big {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.018em;
  color: var(--barrier-hot);
  font-variant-numeric: tabular-nums;
}
.ls-tally .big .unit {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-left: 10px;
  vertical-align: 8px;
  text-transform: uppercase;
}
.ls-tally .mid {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--vellum-dim);
  text-wrap: balance;
  line-height: 1.4;
  max-width: 660px;
}
.ls-tally .right {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: right;
  text-transform: uppercase;
  line-height: 1.7;
}

/* === Card grid === */
.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.cards.featured {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 0;
  border-bottom: none;
}

.card {
  padding: 22px 18px 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 232px;
  background: transparent;
  transition: background 160ms ease;
}
.card:hover { background: rgba(232,224,207,0.025); }

.card.feature { min-height: 320px; padding: 26px 22px 24px; }

.card .rank {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.card .name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.006em;
  line-height: 1.05;
  color: var(--vellum);
  margin: 0 0 6px;
  text-wrap: balance;
}
.card.feature .name { font-size: 28px; }

.card .meta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.card .meta .sep { color: var(--muted-2); padding: 0 6px; }
.card .stat {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--vellum-dim);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.card .lost-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--barrier-hot);
  margin-top: auto;
  margin-bottom: 2px;
  opacity: 0.85;
}
.card .lost-num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 0.86;
  color: var(--barrier-hot);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.card.feature .lost-num { font-size: 88px; }
.card .lost-num .yr {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--barrier-hot);
  opacity: 0.7;
  margin-left: 6px;
  letter-spacing: 0.14em;
  vertical-align: 14px;
}
.card.feature .lost-num .yr { vertical-align: 24px; font-size: 13px; }

.card .note {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--vellum-dim);
  letter-spacing: 0.01em;
  border-top: 1px dotted var(--rule);
  padding-top: 10px;
  margin-top: 8px;
  text-wrap: pretty;
}
.card.feature .note { font-size: 12px; line-height: 1.55; }

/* The "0" for Gibson (no MLB games) — show as visual zero with a strike */
.card .lost-num.zero {
  color: var(--barrier);
}
.card .lost-num.zero::after {
  content: "";
}

/* A subtle "tier-1" emphasis on the top row */
.card.feature {
  background: rgba(161, 69, 69, 0.04);
}
.card.feature:hover { background: rgba(161, 69, 69, 0.08); }

/* === Closing pull quote === */
.ls-coda {
  margin-top: 56px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: end;
}
.ls-coda .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--vellum);
  line-height: 1.3;
  max-width: 840px;
  letter-spacing: -0.005em;
}
.ls-coda .pull em { color: var(--amber); font-style: italic; }
.ls-coda .attr {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}
.ls-coda .attr .nm { color: var(--vellum-dim); }

/* Histogram of lost-season distribution at the bottom */
.dist {
  margin-top: 36px;
}
.dist .h {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.dist svg { width: 100%; height: auto; display: block; }

/* === Player photo — baseball-card treatment === */
.card-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
  background: var(--ink-2);
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  /* No filters. No colorization. The age of the image is part of the argument. */
}
.card.feature .card-photo {
  aspect-ratio: 3 / 4;
}
.photo-credit {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: rgba(232,224,207,0.5);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
