/* DBL Home: compact ZenGM-style playoff series with historic team branding. */
.home-panel {
  /* Keep the top-level .panel for tab routing, but let its two children
     provide the actual separate visual containers. */
  padding: 0;
  min-height: 54vh;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.home-league-heading {
  text-align: center;
  padding: 12px clamp(12px, 2vw, 24px) 14px;
}
.home-highlights-container {
  min-width: 0;
  margin-top: 12px;
  padding: 16px clamp(15px, 2.2vw, 28px);
}
.home-highlights-content { min-width: 0; }
.home-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.3vw, 28px);
}
.home-highlights-column {
  min-width: 0;
  text-align: left;
  line-height: 1.55;
  color: var(--text);
  font-size: 0.85rem;
}
.home-highlights-column + .home-highlights-column {
  border-left: 1px solid var(--line);
  padding-left: clamp(14px, 2.3vw, 28px);
}
.home-highlights-column h3 {
  font-size: 0.92rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--text);
}
.home-highlights-line { margin: 0 0 12px; }
.home-highlights-line:last-child { margin-bottom: 0; }
.home-highlights-label { font-weight: 750; }
.home-highlights-name {
  color: var(--accent);
  font-weight: 750;
}
/* Give names more separation from the body ink in the two newspaper styles,
   while preserving the original accent color in the Orange theme. */
html[data-theme="newspaper"] .home-highlights-name {
  color: #903d3a; /* restrained oxblood on cream newsprint */
}
html[data-theme="dark-newspaper"] .home-highlights-name {
  color: #e6a078; /* warm copper against light ink */
}
.home-highlights-column ul { margin: 0; padding-left: 18px; }
.home-highlights-column li { margin: 0 0 9px; }
.home-highlights-column li:last-child { margin-bottom: 0; }
.home-highlights-empty { color: var(--muted); font-style: italic; }
.home-bracket-container {
  min-width: 0;
  margin-top: 12px;
  padding: clamp(8px, 1vw, 14px) clamp(18px, 3vw, 42px) clamp(12px, 2vw, 24px);
}
.home-league-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.86rem, 3.2vw, 2.45rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}
.home-season-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(0.93rem, 1.65vw, 1.18rem);
  font-weight: 650;
  letter-spacing: 0.04em;
}
.home-season-stage .home-stage-name { color: var(--text); }
.home-season-stage .home-stage-divider { color: var(--accent); }
.home-stage-content {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 3px 0 20px;
}
.home-message {
  max-width: 38rem;
  margin: 24px auto 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.home-playoff-bracket {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(28px, 3.2vw, 75px);
  min-width: max-content;
  width: 100%;
  min-height: 440px;
}
.home-bracket-side {
  display: flex;
  gap: clamp(12px, 1.7vw, 28px);
  align-items: stretch;
  flex: 0 0 auto;
}
.home-bracket-left { flex-direction: row; }
.home-bracket-right { flex-direction: row; }
.home-bracket-finals {
  align-self: center;
  flex: 0 0 auto;
}
.home-playoff-one-side { justify-content: center; }
.home-playoff-round {
  width: clamp(144px, 15.3vw, 204px);
  min-height: 390px;
  display: flex;
  flex-direction: column;
}
.home-playoff-matches {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 10px;
  padding: 4px 0;
}
.home-playoff-matchup {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.018);
  min-width: 0;
}
.home-playoff-team {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 5px 6px;
  gap: 6px;
}
.home-playoff-team + .home-playoff-team {
  border-top: 1px solid var(--line);
}
.home-playoff-logo {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  /* Contain every logo inside its allotted square so no image can leak
     into the next row or below the matchup card. */
  overflow: hidden;
}
.home-playoff-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center center;
}
.home-logo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
  font-size: 0.67rem;
  font-weight: 800;
  color: var(--muted);
}
.home-playoff-team-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-playoff-name {
  display: block;
  color: var(--text);
  font-size: 0.87rem;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-playoff-injuries {
  color: #ef4444;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  margin-left: 3px;
  white-space: nowrap;
}

.home-playoff-record {
  display: block;
  color: var(--muted);
  font-size: 0.79rem;
  text-align: left;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.home-playoff-wins {
  flex: 0 0 17px;
  color: var(--text);
  text-align: right;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
.home-playoff-bestof {
  min-height: 30px;
  margin-top: 10px;
  padding-top: 5px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .home-highlights-grid { grid-template-columns: 1fr; gap: 15px; }
  .home-highlights-column + .home-highlights-column {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
  }
}
@media (max-width: 620px) {
  .home-panel { padding: 0; }
  .home-league-heading { padding: 9px 8px 12px; }
  .home-highlights-container { margin-top: 10px; padding: 12px 13px; }
  .home-bracket-container { margin-top: 10px; padding: 7px 10px 15px; }
  .home-league-heading h2 { font-size: clamp(0.86rem, 3.2vw, 1.5rem); }
  .home-playoff-round { width: 152px; }
  .home-playoff-bracket { gap: 34px; }
  .home-playoff-team { gap: 5px; min-height: 44px; padding: 5px 4px; }
  .home-playoff-logo { flex-basis: 30px; width: 30px; height: 30px; }
}