/* ============================================================
   Baseball section styles.
   Loaded after main.min.css (team logos / legacy card base) and
   site-chrome.css (header / footer). Overrides and additions only.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  --section: #C8102E;          /* signature colour — used on light backgrounds */
  --section-on-dark: #F07070;  /* lightened so it reads on the navy header/footer */
  font-family: 'Roboto Condensed', sans-serif;
  background: #f0f2f5;
  color: #333;
  margin: 0;
}

/* Scroll-in reveal for section headings */
.section-heading.sec-reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
.section-heading.sec-reveal.in-view { opacity: 1; transform: none; }

hr { display: none; }

/* --- Photos + Map row ------------------------------------- */
.photos-map-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.pm-col { min-width: 0; }

@media (min-width: 769px) {
  .pm-col { display: flex; flex-direction: column; }

  .pm-map .map-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .pm-map #ballparksMap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 768px) {
  .photos-map-row { grid-template-columns: 1fr; }
}

/* --- Slideshow -------------------------------------------- */
.slideshow-wrap {
  background: #1a2e3b;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  overflow: hidden;
  margin-bottom: 0.5rem;
  position: relative;
}

.cycle-slideshow {
  background: #253e4f url("../../images/spinner.gif") no-repeat center center;
  margin: 0 auto !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.cycle-slideshow img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  display: block;
}

.cycle-slideshow img:not(:first-child) { display: none; }

.cycle-caption {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  color: #fff;
  font-family: 'Kreon', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.9rem 0.6rem;
  background: #1a2e3b;
}

.slideshow-controls a,
.slideshow-controls button {
  flex: 0 0 auto;
  font-family: 'Kreon', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
  padding: 0.25rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  transition: color 0.15s, border-color 0.15s;
}

.slideshow-controls button {
  background: none;
  cursor: pointer;
}

.slideshow-controls a:hover,
.slideshow-controls button:hover {
  color: #E8A020 !important;
  border-color: #E8A020;
}

.ss-progress {
  height: 3px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

@keyframes ss-fill {
  from { width: 0; }
  to   { width: 100%; }
}

.ss-progress-bar {
  height: 100%;
  width: 0;
  background: #C8102E;
}

.ss-progress-bar.is-running {
  animation: ss-fill 3s linear forwards;
}

.ss-progress-bar.paused {
  animation-play-state: paused;
}

/* --- Stats banner (Our Story card) ------------------------ */
.stats-banner {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-top: 5px solid #C8102E;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.25rem;
}

.stats-banner strong {
  color: #C8102E;
  font-family: 'Kreon', serif;
}

.bp-story {
  margin: 0 0 0.9rem;
  line-height: 1.6;
}

.bp-story:last-of-type { margin-bottom: 0; }

.stat-strip {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #e3e7eb;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #8a9aaa;
  text-transform: uppercase;
}

.stat-strip strong { font-size: 1.15rem; }

/* Story "Read more" — desktop shows full story, no button */
.bp-story-toggle { display: none; }

@media (max-width: 640px) {
  .bp-story-more { display: none; }
  .stats-banner.story-open .bp-story-more { display: block; }

  .bp-story-toggle {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.1rem 0;
    background: none;
    border: none;
    font-family: 'Kreon', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #C8102E;
    cursor: pointer;
  }
}

/* --- Map container ---------------------------------------- */
.map-wrap {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 1.25rem;
  overflow: hidden;
}

.map-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

#ballparksMap {
  height: 480px;
  border-radius: 6px;
}

.team-marker-icon {
  background: none !important;
  border: none !important;
}

.team-marker-icon .team-logo {
  top: 0;
  display: block;
  margin: 0;
}

.team-marker-icon.status-closed .team-logo  { filter: grayscale(1); opacity: 0.55; }
.team-marker-icon.status-future .team-logo  { opacity: 0.65; }

.bp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.bp-filter-btn {
  padding: 5px 14px;
  border: 2px solid #ccc;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s, color 0.15s;
}

.bp-filter-btn.active[data-filter="all"]      { border-color: #E8A020; color: #E8A020; }
.bp-filter-btn.active[data-filter="current"]  { border-color: #22703D; color: #22703D; }
.bp-filter-btn.active[data-filter="closed"]   { border-color: #888;    color: #888;    }
.bp-filter-btn.active[data-filter="future"]   { border-color: #003087; color: #003087; }
.bp-filter-btn.active[data-filter="visited"]   { border-color: #E8A020; color: #E8A020; }
.bp-filter-btn.active[data-filter="unvisited"] { border-color: #888;    color: #888;    }
.bp-filter-btn.active[data-filter="aaa"]       { border-color: #1a2e3b; color: #1a2e3b; }
.bp-filter-btn.active[data-filter="aa"]        { border-color: #1a2e3b; color: #1a2e3b; }
.bp-filter-btn.active[data-filter="high-a"]    { border-color: #1a2e3b; color: #1a2e3b; }
.bp-filter-btn.active[data-filter="a"]         { border-color: #1a2e3b; color: #1a2e3b; }
.bp-filter-btn.active[data-filter="fcl"]       { border-color: #1a2e3b; color: #1a2e3b; }
.bp-filter-btn.active[data-filter="acl"]       { border-color: #1a2e3b; color: #1a2e3b; }
.bp-filter-btn.active[data-filter="prospect"]  { border-color: #22703D; color: #22703D; }
.bp-filter-btn.active[data-filter="partner"]   { border-color: #003087; color: #003087; }

@media (max-width: 640px) {
  #ballparksMap { height: 320px; }
}

/* --- Division / park cards -------------------------------- */
.format .group {
  display: grid;
  gap: 1.25rem;
}

.format .group::before,
.format .group::after { display: none; }

.format .group .split.division,
.format .group .split.ballpark {
  float: none !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}

.format .group:has(.split.division) {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1099px) {
  .format .group:has(.split.division) {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
  }
}
@media (max-width: 767px) {
  .format .group:has(.split.division) {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}

.format .group .split.snip.ballpark { width: 100% !important; }

.format .group.side-by-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 1099px) {
  .format .group.side-by-side { grid-template-columns: 1fr; }
}

.split.snip {
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
  margin-bottom: 0 !important;
}

.split.snip span.nl,
.split.snip span.al,
.split.snip span.ballpark {
  font-family: 'Kreon', serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 9px 9px 0 0 !important;
  padding: 0.65rem 1.25rem !important;
  display: block !important;
  color: #fff !important;
}

.split.snip span.nl             { background: #003087 !important; }
.split.snip span.al             { background: #C8102E !important; }
.split.snip span.ballpark       { background: #22703D !important; }
.split.snip span.ballpark-closed { background: #64748b !important; }
.split.snip span.ballpark-future { background: #E8A020 !important; color: #1a2e3b !important; }

.team-name { font-family: 'Roboto Condensed', sans-serif !important; }
.first-visit .date { font-family: 'Roboto Condensed', sans-serif !important; }

.format { width: 100% !important; margin-bottom: 0 !important; }

/* --- Kids section ----------------------------------------- */
.split.snip span.kid-ellie { background: #66b2b2 !important; color: #1a2e3b !important; }
.split.snip span.kid-tilly { background: #0898ff !important; }
.split.snip span.kid-poppy { background: #d9259a !important; }

.format .group.kids-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1099px) {
  .format .group.kids-grid { grid-template-columns: 1fr; }
}

/* --- Beyond MLB ------------------------------------------- */
.split.snip span.beyond-milb { background: #1a2e3b !important; padding: 0.65rem 1.25rem !important; }
.split.snip span.beyond-milb .divisionCount {
  color: #fff;
  background: rgba(255,255,255,0.16);
}

.split.snip span.beyond-bananas {
  background: #FFDC00 !important;
  color: #1a2e3b !important;
}
.split.snip span.beyond-bananas .divisionCount {
  color: #1a2e3b;
  background: rgba(26,46,59,0.12);
}

.bb-tally {
  font-weight: 400;
  white-space: nowrap;
  padding: 0.1em 0.55em;
  border-radius: 999px;
}
.bb-tally b { font-weight: 700; color: inherit; }

.bp-sublabel {
  margin: 0.9rem 1rem 0.3rem;
  font-family: 'Kreon', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9aaa;
}

.bp-chip-list {
  padding: 0.4rem 1rem 0.6rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.milb-card .bp-chip-list { padding: 0.9rem 1rem 1.1rem; }
.bp-chip-list:last-child { padding-bottom: 1.1rem; }

.bp-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 6px 12px;
  border-radius: 16px;
  background: #eef1f4;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.25;
}

.bp-chip small { color: #8a9aaa; font-style: italic; }

.bp-chip.bp-chip-upcoming {
  background: #fff;
  border: 1px dashed #E8A020;
  color: #9a6a10;
}
.bp-chip.bp-chip-upcoming small { color: #b07d18; }

.bp-chip.bp-team { border: 1.5px solid var(--team, #c7cdd3); }

.bp-chip.bp-team.is-seen { background: var(--team); color: #fff; }
.bp-chip.bp-team.is-seen small { color: rgba(255,255,255,0.85); }

.bp-chip.bp-team.is-upcoming,
.bp-chip.bp-team.is-unseen { background: #fff; color: var(--team); }
.bp-chip.bp-team.is-upcoming small,
.bp-chip.bp-team.is-unseen small { color: var(--team); opacity: 0.8; }

.bp-chip.bp-team.is-unseen { border-style: dashed; opacity: 0.9; background: color-mix(in srgb, var(--team) 8%, #fff); }

.bp-chip.bp-team.ink-dark.is-seen { color: #1a2e3b; }
.bp-chip.bp-team.ink-dark.is-seen small { color: rgba(26,46,59,0.7); }

#milbMap { height: 320px; border-radius: 6px; }

.milb-marker-icon { background: none !important; border: none !important; }

.milb-marker-icon .milb-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E8A020;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

.milb-marker-icon .milb-dot--prospect { background: #22703D; }
.milb-marker-icon .milb-dot--partner  { background: #003087; }


/* Banana Ball in-card slideshow */
.bp-slideshow-wrap {
  margin: 0;
  box-shadow: none;
  border-radius: 0 0 9px 9px;
}

.milb-marker-icon .milb-dot.milb-dot--unvisited {
  width: 10px;
  height: 10px;
  background: #64748b;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #777;
  margin-top: 6px;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px #aaa;
  flex-shrink: 0;
}

.legend-dot.visited   { background: linear-gradient(135deg, #C8102E 0%, #E8A020 40%, #22703D 70%, #002D62 100%); }
.legend-dot.unvisited { background: #64748b; }

.legend-sep { color: #ccc; margin: 0 4px; }

/* Indie card filter bar sits above the edge-to-edge map */
.split.snip.indie-card .bp-filters { padding: 0.6rem 1rem 0; }

.milb-group-label {
  flex: 0 0 100%;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a9aaa;
  padding-top: 0.5rem;
}
.milb-group-label:first-child { padding-top: 0; }

.split.snip span.beyond-indie {
  background: #7B4F2E !important;
  color: #fff !important;
}
.split.snip span.beyond-indie .divisionCount {
  color: #fff;
  background: rgba(255,255,255,0.16);
}

#indieMap { height: 280px; border-radius: 0; }
.split.snip.indie-card { overflow: hidden; }
.split.snip.indie-card .map-wrap { box-shadow: none; border-radius: 0; padding: 0; }

.milb-bucket-divider {
  border-top: 1px solid #e3e7eb;
  margin: 0.9rem 0 0.75rem;
}

.milb-bucket-toggle {
  display: block;
  margin: 0 auto 0.4rem;
  padding: 5px 14px;
  border: 2px solid #ccc;
  border-radius: 20px;
  background: #fff;
  color: #333;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.milb-bucket-toggle:hover { border-color: #1a2e3b; color: #1a2e3b; }

/* Full affiliate directory grid */
#milbBucketList { display: block; padding: 0.2rem 1rem 0.8rem; }

.milb-full-list {
  display: grid;
  grid-template-columns: auto repeat(6, 1fr);
  gap: 4px 6px;
  align-items: center;
}

.milb-chip-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.milb-chip-stack .bp-chip { margin: 0; }

.milb-level-header {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a9aaa;
  text-align: center;
  padding-bottom: 0.15rem;
}

.milb-org-name {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a8a99;
  padding-right: 0.5rem;
  white-space: nowrap;
}

.milb-full-list .bp-chip {
  display: block;
  padding: 0.22rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  cursor: help;
}

@media (max-width: 1280px) {
  /* Medium: drop level-header row, org name takes its own full-width row, chips wrap in 3s below */
  .milb-full-list { grid-template-columns: repeat(3, 1fr); }
  .milb-full-list > div:first-child,
  .milb-level-header { display: none; }
  .milb-org-name {
    grid-column: 1 / -1;
    padding-top: 0.55rem;
    padding-right: 0;
    padding-bottom: 0.05rem;
  }
}

@media (max-width: 1024px) {
  /* Narrow: affiliate name, then chips wrap two per row */
  .milb-full-list { grid-template-columns: repeat(2, 1fr); }
}

/* --- Beyond MLB photo strips ------------------------------ */
.bp-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0.4rem 1rem 1.1rem;
  margin: 0;
}

.bp-photo-strip .bp-photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #eef1f4;
}

.bp-photo-strip .bp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.bp-photo-strip .bp-photo.is-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: #fff;
  border: 1px dashed #c7cdd3;
  color: #aab4bd;
}
.bp-photo-strip .bp-photo.is-placeholder svg { width: 1.6rem; height: 1.6rem; }
.bp-photo-strip .bp-photo.is-placeholder span {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .bp-photo-strip { grid-template-columns: repeat(2, 1fr); }
}

/* --- Photo lightbox --------------------------------------- */
.cycle-slideshow img { cursor: zoom-in; }

.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,16,22,0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lb-overlay.is-open { display: flex; }

.lb-figure { margin: 0; max-width: 92vw; text-align: center; }

.lb-img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.5);
}

.lb-cap {
  margin-top: 0.6rem;
  font-family: 'Kreon', serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8eef2;
}

.lb-overlay button {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  font-family: 'Kreon', serif;
  line-height: 1;
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
}
.lb-overlay button:hover { background: rgba(232,160,32,0.2); border-color: #E8A020; }

.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  font-size: 1.6rem;
}
.lb-prev { left: 2vw; }
.lb-next { right: 2vw; }

.lb-close {
  top: 2vh;
  right: 2vw;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
}

@media (max-width: 640px) {
  .lb-prev, .lb-next {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    top: auto;
    bottom: 3vh;
    transform: none;
    background: rgba(255,255,255,0.18);
  }
  .lb-prev { left: 18%; }
  .lb-next { right: 18%; }
}

/* --- Section panel (groups H2 + all its content) ---------- */
.section-panel {
  overflow: hidden;
  border-radius: 12px;
  background: rgba(26, 46, 59, 0.04);
  padding: 0 1.25rem 1.5rem;
  margin-bottom: 3rem;
  scroll-margin-top: 4rem;
}

@media (max-width: 640px) {
  .section-panel { margin-bottom: 2rem; }
}

.section-panel > *:last-child { margin-bottom: 0; }

.section-panel::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 1.25rem;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent       0%,
    rgba(26,46,59,.15) 10%,
    rgba(232,160,32,.45) 30%,
    #E8A020           50%,
    rgba(232,160,32,.45) 70%,
    rgba(26,46,59,.15) 90%,
    transparent       100%
  );
}

/* --- Section group H2 (major category dividers) ----------- */
h2.section-group {
  font-family: 'Kreon', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: #1a2e3b;
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  margin: 2rem 0 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-left: 5px solid #E8A020;
  box-sizing: border-box;
}

/* Inside a panel: H2 spans edge-to-edge, square corners (panel clips the top) */
.section-panel > h2.section-group {
  border-radius: 0;
  margin: 0 -1.25rem 1.5rem;
  width: calc(100% + 2.5rem);
}

h2.section-group.sec-reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
h2.section-group.sec-reveal.in-view { opacity: 1; transform: none; }

.preserve-case { text-transform: none; }

/* --- Beyond MLB section grid layouts ---------------------- */
.beyond-section {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.milb-section,
.indie-section,
.closed-future-section { grid-template-columns: 1fr 1fr; }

.banana-section { grid-template-columns: 2fr 1fr 1fr; }

.section-sub {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.section-sub--full { grid-column: 1 / -1; }

.section-sub .split.snip {
  float: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}

/* Slideshow filling top of a photos-only card (no header strip above it) */
.section-sub .split.snip > .bp-slideshow-wrap:first-child,
.section-sub .split.snip > .slideshow-wrap:first-child { border-radius: 9px; }

@media (max-width: 1099px) {
  .milb-section,
  .indie-section,
  .closed-future-section,
  .banana-section { grid-template-columns: 1fr; }

  .section-sub--full { grid-column: 1; }
}

/* --- Timeline (horizontal interactive) -------------------- */
.tl-card {
  border-top: 5px solid #C8102E !important;
  overflow: hidden;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  display: block !important;
  box-sizing: border-box !important;
}

.bp-timeline { padding: 0; }

.tl-intro {
  padding: 1.1rem 1.4rem 1rem;
  border-bottom: 1px solid #e8edf2;
}

.tl-intro-title {
  font-family: 'Kreon', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a2e3b;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tl-intro-body {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.88rem;
  color: #5a6e7e;
  margin: 0;
  line-height: 1.5;
}

.tl-scroller {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #dde2e8 transparent;
  cursor: grab;
}
.tl-scroller:active { cursor: grabbing; }
.tl-scroller::-webkit-scrollbar { height: 3px; }
.tl-scroller::-webkit-scrollbar-thumb { background: #dde2e8; border-radius: 2px; }

.tl-track {
  display: flex;
  align-items: flex-end;
  min-width: max-content;
  padding: 1.75rem 2rem 5px;
  gap: 2.75rem;
  position: relative;
}

.tl-track::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0, #e3e7eb 2rem, #e3e7eb calc(100% - 2rem), transparent 100%);
  pointer-events: none;
}

.tl-year-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.tl-year-label {
  font-family: 'Kreon', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #C8102E;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.tl-stops { display: flex; gap: 0.25rem; align-items: flex-end; }

.tl-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 4px 0;
  outline: none;
  position: relative;
  z-index: 1;
}

.tl-stop:focus-visible .tl-dot { box-shadow: 0 0 0 4px rgba(200,16,46,0.3); }

.tl-stop .team-logo {
  width: 32px;
  height: 26px;
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  display: block;
  opacity: 0.5;
  transition: opacity 0.18s, transform 0.18s;
}
.tl-stop:hover .team-logo   { opacity: 1; transform: translateY(-2px); }
.tl-stop.is-active .team-logo { opacity: 1; transform: translateY(-4px); }

.tl-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d9e0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #c8d0d8;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  flex-shrink: 0;
}
.tl-stop:hover .tl-dot { background: rgba(200,16,46,0.45); }
.tl-stop.is-active .tl-dot { background: #C8102E; box-shadow: 0 0 0 3px rgba(200,16,46,0.2); transform: scale(1.2); }
.tl-stop--closed.is-active .tl-dot { background: #64748b; box-shadow: 0 0 0 3px rgba(100,116,139,0.2); }

.tl-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid #e3e7eb;
  background: #f8f9fb;
  min-height: 72px;
}

.tl-detail.tl-empty { justify-content: center; color: #b4bfc9; font-family: 'Kreon', serif; font-size: 0.875rem; letter-spacing: 0.03em; }

.tl-detail .team-logo { width: 48px; height: 38px; position: static !important; top: auto !important; margin: 0 !important; display: block; flex-shrink: 0; }

.tl-detail-info { flex: 1 1 auto; min-width: 0; }
.tl-detail-info strong { display: block; font-family: 'Kreon', serif; font-size: 1rem; font-weight: 700; color: #1a2e3b; letter-spacing: 0.01em; }
.tl-detail-info span { display: block; font-size: 0.8rem; color: #8a9aaa; margin-top: 0.1rem; }
.tl-detail-date { font-family: 'Kreon', serif; font-size: 0.95rem; font-weight: 700; color: #C8102E; white-space: nowrap; flex-shrink: 0; }
.tl-detail-closed .tl-detail-date { color: #64748b; }

.tl-closed-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #e2e8ef;
  padding: 0.1em 0.45em;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.3rem;
}

/* Game data panel */
.tl-game-data {
  border-top: 1px solid #e3e7eb;
  background: #f8f9fb;
  padding: 0.85rem 1.5rem;
}
.tl-game-hidden { display: none; }

.tl-game-msg {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.82rem;
  color: #b4bfc9;
  margin: 0;
  text-align: center;
}

.tl-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-family: 'Roboto Condensed', sans-serif;
}
.tl-score-team {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.tl-score-home {
  flex-direction: row-reverse;
}
.tl-score-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a2e3b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-score-runs {
  font-family: 'Kreon', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2e3b;
  line-height: 1;
  flex-shrink: 0;
}
.tl-score-loser .tl-score-name,
.tl-score-loser .tl-score-runs { color: #b4bfc9; }
.tl-score-at {
  font-size: 0.7rem;
  color: #b4bfc9;
  flex-shrink: 0;
}

/* Linescore table */
.tl-linescore-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tl-linescore {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.75rem;
  border-collapse: collapse;
  width: 100%;
}
.tl-linescore th,
.tl-linescore td {
  text-align: center;
  padding: 0.2rem 0.45rem;
  border: 1px solid #e3e7eb;
  color: #4a5568;
}
.tl-linescore thead th { background: #edf2f7; font-weight: 700; color: #1a2e3b; }
.tl-ls-team { text-align: left !important; font-weight: 700; white-space: nowrap; min-width: 7rem; }
.tl-ls-rhe  { font-weight: 700; background: #edf2f7 !important; }

@media (max-width: 640px) {
  .tl-track { gap: 1.75rem; padding: 1.25rem 1.25rem 5px; }
  .tl-stop .team-logo { width: 26px; height: 21px; }
  .tl-detail { padding: 0.75rem 1rem; gap: 0.75rem; }
  .tl-detail .team-logo { width: 38px; height: 30px; }
  .tl-game-data { padding: 0.75rem 1rem; }
}

/* --- Memories --------------------------------------------- */

/* Shared photo placeholder — replaced with real img when photos are added */
.mem-card-photo {
  aspect-ratio: 3 / 2;
  background: #253e4f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.18);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Roboto Condensed', sans-serif;
  flex-shrink: 0;
}

.mem-card-photo::after { content: 'Photo coming soon'; }

/* To swap in a real photo:
   replace <div class="mem-card-photo"></div>
   with   <img class="mem-card-photo" src="..." alt="..."> */
.mem-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
img.mem-card-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
}

/* Milestones */
.mem-milestones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.mem-milestone {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  overflow: hidden;
}

.mem-milestone-content {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  flex: 1;
}

.mem-milestone .team-logo {
  width: 34px;
  height: 27px;
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  display: block;
  flex-shrink: 0;
}

.mem-ms-info { flex: 1 1 auto; min-width: 0; }

.mem-ms-info strong {
  display: block;
  font-family: 'Kreon', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a2e3b;
  letter-spacing: 0.01em;
}

.mem-ms-info span {
  display: block;
  font-size: 0.72rem;
  color: #8a9aaa;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mem-ms-date {
  font-family: 'Kreon', serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #C8102E;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Stories */
.mem-stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.mem-story {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  border-top: 4px solid #e3e7eb;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: border-top-color 0.15s, box-shadow 0.15s;
}

.mem-story:hover { border-top-color: #C8102E; box-shadow: 0 3px 12px rgba(200,16,46,0.1); }

.mem-story-body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  flex: 1;
}

.mem-story .team-logo {
  width: 30px;
  height: 24px;
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  display: block;
  flex-shrink: 0;
  margin-top: 0.1rem !important;
}

.mem-story-content { flex: 1 1 auto; min-width: 0; }

.mem-story-content strong {
  display: block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a2e3b;
  margin-bottom: 0.3rem;
}

.mem-story-content p {
  font-size: 0.8rem;
  color: #8a9aaa;
  font-style: italic;
  line-height: 1.4;
  margin: 0;
}

/* Mascots */
.mem-mascots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.mascot-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  display: block;
  cursor: zoom-in;
}

/* Fun Facts */
.mem-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.mem-fact {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 1.5rem 1rem;
  text-align: center;
  border-top: 4px solid #C8102E;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.mem-fact-num {
  font-family: 'Kreon', serif;
  font-size: 4rem;
  font-weight: 700;
  color: #C8102E;
  line-height: 1;
}

.mem-fact-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8a9aaa;
}

@media (max-width: 1099px) {
  .mem-milestones,
  .mem-stories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .mem-milestones,
  .mem-stories { grid-template-columns: 1fr; }
  .mem-facts { grid-template-columns: 1fr; }
  .mem-fact-num { font-size: 3rem; }
}

@media (max-width: 640px) {
  .bp-chip-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .bp-chip {
    font-size: 0.8rem;
    padding: 5px 9px;
  }
}

