:root {
  --bg: #f4efe4;
  --paper: rgba(253, 248, 238, 0.85);
  --paper-strong: rgba(255, 251, 244, 0.96);
  --ink: #1f231d;
  --muted: #5d6359;
  --line: rgba(31, 35, 29, 0.12);
  --accent: #0b6e4f;
  --accent-soft: #d9efe5;
  --accent-deep: #084c3a;
  --gold: #c08a16;
  --shadow: 0 18px 50px rgba(34, 29, 18, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1280px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(192, 138, 22, 0.16), transparent 24rem),
    radial-gradient(circle at 90% 15%, rgba(11, 110, 79, 0.16), transparent 22rem),
    linear-gradient(180deg, #f8f3e8 0%, #efe5d2 54%, #e5dcc8 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 35, 29, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 35, 29, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 92%);
}

.site-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 35, 29, 0.1);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  transform: translateY(-2px);
  background: rgba(217, 239, 229, 0.9);
  border-color: rgba(11, 110, 79, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
}

.hero-copy,
.hero-card,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  padding: 2.25rem;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -5rem;
  width: 15rem;
  height: 15rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(11, 110, 79, 0.26), transparent 70%);
}

.eyebrow,
.panel-kicker,
.card-kicker {
  margin: 0 0 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent-deep);
  font-weight: 700;
}

.hero h1,
.panel h2,
.hero-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  max-width: 11ch;
}

.hero-text {
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 1rem 0 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.meta-chip {
  min-width: 8.5rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 35, 29, 0.08);
}

.meta-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.hero-card {
  border-radius: 32px;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(11, 110, 79, 0.08), rgba(255, 255, 255, 0.74)),
    var(--paper-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-top: 0.3rem;
}

.hero-card p {
  margin: 0.45rem 0 0;
}

.hero-card-year {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.4rem;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.panel {
  grid-column: span 6;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.panel-wide {
  grid-column: 1 / -1;
}

.panel-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.1rem;
  padding-right: 3.75rem;
}

.panel-header-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: 26rem;
  margin-left: auto;
}

.panel-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.panel-note {
  color: var(--muted);
  margin: 0;
  max-width: 26rem;
  text-align: right;
  line-height: 1.5;
}

.panel-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(31, 35, 29, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.panel-toggle:hover {
  transform: translateY(-1px);
  background: rgba(217, 239, 229, 0.9);
  border-color: rgba(11, 110, 79, 0.24);
}

.panel-toggle-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}

.panel-body {
  min-width: 0;
}

.panel.is-collapsed .panel-header {
  margin-bottom: 0;
}

.panel-tools {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.search-field {
  display: block;
  flex: 1 1 24rem;
}

.search-field span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-field input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 35, 29, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
}

.search-field input:focus,
select:focus {
  outline: 2px solid rgba(11, 110, 79, 0.18);
  outline-offset: 2px;
  border-color: rgba(11, 110, 79, 0.3);
}

.filter-meta {
  margin: 0;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.champions-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}

.record-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.record-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(217, 239, 229, 0.18)),
    rgba(255, 255, 255, 0.72);
}

.record-list {
  display: grid;
  gap: 0.75rem;
}

.record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  width: 100%;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 35, 29, 0.08);
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.record-item:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 110, 79, 0.24);
  box-shadow: 0 10px 24px rgba(11, 110, 79, 0.08);
}

.record-item-main {
  min-width: 0;
}

.record-item-main strong,
.record-item-main span {
  display: block;
}

.record-item-main strong {
  color: var(--ink);
}

.record-item-owner {
  display: inline-flex;
  align-items: center;
  margin-top: 0.42rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  width: fit-content;
  background: rgba(11, 110, 79, 0.09);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.record-item-main span {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.record-item-stat {
  color: var(--accent-deep);
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
}

.champion-pill {
  border-radius: var(--radius-md);
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 35, 29, 0.08);
  transform: translateY(20px);
  opacity: 0;
  animation: rise-in 600ms forwards;
}

.champion-link {
  text-align: left;
  cursor: pointer;
}

.champion-pill:nth-child(odd) {
  animation-delay: 70ms;
}

.champion-pill:nth-child(3n) {
  animation-delay: 120ms;
}

.champion-pill-year {
  display: block;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.champion-pill-team {
  display: block;
  font-weight: 700;
}

.champion-pill-manager {
  display: block;
  color: var(--muted);
  margin-top: 0.28rem;
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

th,
td {
  text-align: left;
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

th:nth-child(n + 2),
td:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.5);
}

tbody tr {
  transition: background 180ms ease;
}

tbody tr.is-active {
  background: rgba(217, 239, 229, 0.42);
}

tbody tr.is-active td:first-child {
  box-shadow: inset 3px 0 0 rgba(11, 110, 79, 0.85);
}

.franchise-name {
  display: block;
  font-weight: 700;
  line-height: 1.2;
}

.franchise-owner {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(11, 110, 79, 0.09);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.franchise-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.franchise-status {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.franchise-status-inactive {
  background: rgba(125, 94, 35, 0.12);
  color: #7c5f24;
}

.franchise-status-future {
  background: rgba(49, 64, 90, 0.1);
  color: #46536c;
}

.franchise-sub {
  display: block;
  margin-top: 0.42rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.franchise-link {
  display: block;
  width: 100%;
  padding: 0.05rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.franchise-link.is-active .franchise-name,
.franchise-link:hover .franchise-name {
  color: var(--accent-deep);
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.field span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 35, 29, 0.14);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font: inherit;
}

.rivalry-output {
  display: grid;
  gap: 1rem;
}

.rivalry-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  align-items: end;
  gap: 1rem;
}

.rivalry-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.05;
  max-width: 12ch;
}

.rivalry-meta {
  color: var(--muted);
  margin: 0;
  max-width: 12ch;
  text-align: right;
}

.rivalry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.rivalry-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 35, 29, 0.08);
  min-width: 0;
}

.rivalry-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.rivalry-split {
  display: grid;
  gap: 0.75rem;
}

.rivalry-team-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.rivalry-team-line span {
  min-width: 0;
}

.rivalry-team-line strong {
  white-space: nowrap;
  justify-self: end;
  text-align: right;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.season-grid-empty {
  grid-column: 1 / -1;
}

.season-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 9.75rem;
  border: 1px solid rgba(31, 35, 29, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(217, 239, 229, 0.45)),
    white;
  border-radius: 22px;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.season-card:hover,
.season-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(11, 110, 79, 0.28);
  box-shadow: 0 10px 28px rgba(11, 110, 79, 0.12);
}

.season-year,
.season-champion,
.season-meta {
  display: block;
}

.season-year {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
}

.season-champion {
  margin-top: 0.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.season-meta {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(192, 138, 22, 0.08)),
    var(--paper-strong);
}

.season-detail {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.season-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  min-width: 0;
}

.detail-card {
  border-radius: var(--radius-md);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 35, 29, 0.08);
  min-width: 0;
}

.family-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.family-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 110, 79, 0.24);
  box-shadow: 0 10px 24px rgba(11, 110, 79, 0.08);
}

.detail-card-wide {
  margin-top: 0.1rem;
}

.detail-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.era-timeline {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.3rem;
}

.era-scroll-hint {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.era-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 1rem;
  width: max-content;
  min-width: 100%;
  position: relative;
  padding-top: 1.35rem;
}

.era-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.5rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(192, 138, 22, 0.45), rgba(11, 110, 79, 0.28));
}

.era-item {
  position: relative;
  padding-top: 0.95rem;
}

.era-item::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--gold);
  border: 3px solid rgba(250, 244, 234, 0.95);
  box-shadow: 0 0 0 1px rgba(192, 138, 22, 0.25);
}

.era-card {
  padding: 1rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(217, 239, 229, 0.22)),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 35, 29, 0.08);
  min-width: 0;
}

.era-head {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.8rem;
}

.era-years {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.era-name {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.05;
}

.era-count {
  color: var(--muted);
  font-size: 0.88rem;
}

.era-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.era-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(192, 138, 22, 0.12);
  color: #8a6511;
  font-size: 0.78rem;
  font-weight: 700;
}

.era-badge-muted {
  background: rgba(31, 35, 29, 0.06);
  color: var(--muted);
}

.franchise-seasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.franchise-season-link {
  padding: 0.9rem;
  border: 1px solid rgba(31, 35, 29, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.franchise-season-link:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 110, 79, 0.24);
  box-shadow: 0 10px 24px rgba(11, 110, 79, 0.08);
}

.franchise-season-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.franchise-season-link strong,
.franchise-season-link small {
  display: block;
}

.franchise-season-year {
  color: var(--gold);
  font-weight: 800;
}

.franchise-season-place {
  color: var(--accent-deep);
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.franchise-season-link strong {
  margin-top: 0.25rem;
  color: var(--ink);
}

.franchise-season-link small {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-list,
.matchup-list {
  display: grid;
  gap: 0.65rem;
}

.mini-row,
.matchup-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgba(31, 35, 29, 0.12);
}

.mini-row:last-child,
.matchup-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.matchup-item {
  flex-direction: column;
}

.matchup-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.matchup-teams {
  display: grid;
  gap: 0.35rem;
}

.matchup-team {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.matchup-team strong {
  font-weight: 700;
}

.playoff-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.95rem;
}

.playoff-week {
  border-radius: var(--radius-md);
  padding: 0.95rem;
  background: linear-gradient(180deg, rgba(217, 239, 229, 0.58), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(11, 110, 79, 0.1);
}

.playoff-week-head {
  margin-bottom: 0.85rem;
}

.playoff-week-kicker {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.playoff-week-head h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
}

.playoff-week-stack {
  display: grid;
  gap: 0.7rem;
}

.playoff-matchup {
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 35, 29, 0.08);
}

.playoff-round {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.playoff-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.playoff-team-row + .playoff-team-row {
  margin-top: 0.42rem;
}

.playoff-team-row strong {
  white-space: nowrap;
}

.empty-state {
  color: var(--muted);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  border: 1px dashed rgba(31, 35, 29, 0.16);
}

.compact-empty-state {
  padding: 0.4rem 0;
  background: transparent;
  border: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .record-book-grid,
  .season-detail-grid,
  .selector-grid,
  .rivalry-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    grid-column: 1 / -1;
  }

  .panel-tools,
  .panel-header {
    align-items: start;
    flex-direction: column;
  }

  .panel-header-side {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .panel-note {
    text-align: left;
  }

  .filter-meta {
    text-align: left;
    white-space: normal;
  }

}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--content-width));
    padding-top: 1rem;
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 1rem;
    border-radius: 22px;
  }

  .panel-toggle {
    width: 2.15rem;
    height: 2.15rem;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: clamp(1.9rem, 10.2vw, 3rem);
    line-height: 0.98;
  }

  .champions-strip,
  .season-grid {
    grid-template-columns: 1fr 1fr;
  }

  table {
    min-width: 31rem;
  }

  th,
  td {
    padding: 0.62rem 0.45rem;
    font-size: 0.9rem;
  }

  .franchise-name {
    font-size: 0.95rem;
  }

  .franchise-owner,
  .franchise-status {
    font-size: 0.72rem;
    padding: 0.14rem 0.42rem;
  }

  .franchise-sub {
    font-size: 0.8rem;
    margin-top: 0.32rem;
  }

  .record-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-item-stat {
    text-align: left;
  }
}
