:root {
  --page-bg: #eef1f4;
  --shell-bg: #ffffff;
  --ink: #1f2731;
  --muted: #6f7a86;
  --line: #d8dee6;
  --navy: #3465A4;
  --navy-darker: #3465A4;
  --link: #3465A4;
  --link-hover: #3465A4;
  --accent: #f3c451;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  background: linear-gradient(180deg, #f5f7f9 0%, #e7ecf2 220px, #eef1f4 100%);
  color: var(--ink);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.utility-bar {
  background: var(--navy-darker);
  border-bottom: 1px solid #091729;
  font-family: "Libre Franklin", "Helvetica Neue", sans-serif;
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: normal;
}

.utility-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  position: relative;
}

.utility-logo {
  display: block;
  width: min(130px, 34vw);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.utility-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.headline-label {
  font-family: "Libre Franklin", "Helvetica Neue", sans-serif;
  color: #000000;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.88rem;
  font-weight: 700;
}

.headline-item {
  width: min(860px, calc(100% - 180px));
  min-width: 280px;
}

.headline-marquee {
  overflow: hidden;
  width: 100%;
}

.headline-track {
  display: flex;
  width: max-content;
  animation: headline-scroll 24s linear infinite;
  will-change: transform;
}

.headline-copy {
  color: #000000;
  white-space: nowrap;
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  padding-right: 3.25rem;
}

.headline-prefix {
  font-weight: 700;
}

@keyframes headline-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .headline-track {
    animation: none;
  }
}

.masthead {
  background: transparent;
  padding: 0.75rem 0 0.65rem;
  text-align: center;
}

.brand {
  display: block;
  width: min(620px, 92vw);
  margin: 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.primary-nav {
  background: transparent;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem 0;
  background: var(--navy);
  border: 1px solid #000000;
  position: relative;
  min-height: 44px;
}

.nav-search {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(230px, 38vw);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-search input {
  width: 100%;
  height: 32px;
  border: 1px solid #233e62;
  background: #eef3f8;
  color: #17283d;
  font: 500 0.76rem/1 "Libre Franklin", "Helvetica Neue", sans-serif;
  padding: 0 0.6rem;
}

.nav-search input::placeholder {
  color: #4f647e;
  text-transform: none;
  letter-spacing: 0.01em;
}

.primary-nav a {
  color: #eff4fa;
  font-family: "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.56rem 0.72rem;
  border-radius: 2px;
}

.primary-nav a:hover {
  background: var(--navy-darker);
  text-decoration: none;
}

.primary-nav .nav-login-link {
  margin-left: 0;
}

.nav-mini-logo {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.35rem;
}

.nav-mini-logo img {
  width: min(68px, 16vw);
  height: auto;
  display: block;
}

.primary-nav a.nav-mini-logo:hover {
  background: transparent;
}

.teams-modal {
  border: 1px solid #aab6c5;
  background: #f7fafd;
  color: #1e2f43;
  width: min(880px, calc(100% - 2rem));
  max-height: calc(100vh - 4rem);
  padding: 0;
  overflow: auto;
}

.teams-modal::backdrop {
  background: rgba(8, 16, 28, 0.62);
}

.teams-modal-form {
  margin: 0;
  padding: 1.1rem 1.1rem 1rem;
  display: grid;
  gap: 0.85rem;
}

.teams-modal-form h2 {
  margin: 0;
  color: #1e344f;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.teams-modal-form p {
  margin: 0;
  color: #4f6176;
  font: 500 0.82rem/1.45 "Libre Franklin", "Helvetica Neue", sans-serif;
}

.team-modal-search-wrap {
  display: grid;
  gap: 0.35rem;
  color: #2c4260;
  font: 700 0.67rem/1.2 "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-modal-search {
  width: min(360px, 100%);
  border: 1px solid #c7d3e2;
  background: #ffffff;
  color: #20344e;
  padding: 0.5rem 0.6rem;
  font: 500 0.8rem/1.25 "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: none;
  letter-spacing: normal;
}

.team-modal-section {
  margin: 0.35rem 0 -0.25rem;
  color: #2e4662;
  font: 700 0.72rem/1.2 "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-modal-grid[data-modal-group="categories"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  max-height: none;
  overflow: visible;
  padding-right: 0.15rem;
}

.team-modal-team {
  border: 1px solid #becadc;
  background: #ffffff;
  color: #20344e;
  text-align: left;
  padding: 0.55rem 0.65rem;
  font: 600 0.76rem/1.3 "Libre Franklin", "Helvetica Neue", sans-serif;
  cursor: pointer;
}

.team-modal-team:hover {
  background: #e8f0fa;
}

.team-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.page-content {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
  gap: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1.8rem;
}

.main-feed {
  min-width: 0;
}

.feed-auto-pager {
  height: 1px;
}

.post-card {
  background: var(--shell-bg);
  border: 1px solid var(--line);
  padding: 1.35rem 1.5rem;
  margin-bottom: 0.95rem;
}

.post-kicker {
  margin: 0 0 0.55rem;
  color: #5b6f84;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font: 700 0.7rem/1 "Libre Franklin", "Helvetica Neue", sans-serif;
}

.post-card h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.23rem, 2.2vw, 1.72rem);
  line-height: 1.18;
  font-weight: 900;
}

.post-meta {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font: 500 0.7rem/1.4 "Libre Franklin", "Helvetica Neue", sans-serif;
}

.post-meta-row {
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.post-labels {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35rem;
}

.tag-chip {
  font-family: "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.63rem;
  font-weight: 700;
  border-radius: 3px;
  padding: 0.35rem 0.62rem;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  line-height: 1.1;
}

.tag-wormburner {
  background: #c98686;
  border-color: #a96a6a;
  color: #2d1d1d;
}

.tag-eephus {
  background: #79a387;
  border-color: #628b70;
  color: #183222;
}

.tag-can-of-corn {
  background: #d4bf80;
  border-color: #b5a068;
  color: #3c3012;
}

.tag-extra-innings {
  background: #ce9b71;
  border-color: #ad805b;
  color: #3a2312;
}

.tag-showcase {
  background: #708cab;
  border-color: #5b7391;
  color: #f3f7fc;
}

.tag-series {
  background: #8e80a9;
  border-color: #75658e;
  color: #f4effb;
}

.tag-team {
  background: #3465a4;
  border-color: #294f82;
  color: #eff4fa;
}

a.tag-chip {
  text-decoration: none;
}

a.tag-chip:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.tag-team-arizona-diamondbacks { background: #927683; border-color: #7d6571; color: #f5f0f2; }
.tag-team-atlanta-braves { background: #b5838f; border-color: #9c717b; color: #2f1f24; }
.tag-team-baltimore-orioles { background: #be936f; border-color: #a47d5e; color: #312013; }
.tag-team-boston-red-sox { background: #9f7b86; border-color: #886973; color: #f6f2f3; }
.tag-team-chicago-cubs { background: #7a90af; border-color: #657a96; color: #f0f4fa; }
.tag-team-chicago-white-sox { background: #8a8f97; border-color: #757a82; color: #f4f6f8; }
.tag-team-cincinnati-reds { background: #be8285; border-color: #a46f72; color: #2f1f20; }
.tag-team-cleveland-guardians { background: #8f7d93; border-color: #796981; color: #f4f0f5; }
.tag-team-colorado-rockies { background: #8a7f9d; border-color: #736986; color: #f4f1f8; }
.tag-team-detroit-tigers { background: #7f8e9f; border-color: #6a7787; color: #f2f5f8; }
.tag-team-houston-astros { background: #b58d73; border-color: #9a785f; color: #2f2218; }
.tag-team-kansas-city-royals { background: #738cb2; border-color: #5f7596; color: #eff3f9; }
.tag-team-los-angeles-angels { background: #a98086; border-color: #916d73; color: #f6f2f3; }
.tag-team-los-angeles-dodgers { background: #6f8cb8; border-color: #5b749a; color: #eef3fa; }
.tag-team-miami-marlins { background: #7f9a95; border-color: #6b827e; color: #f0f6f4; }
.tag-team-milwaukee-brewers { background: #8e98ab; border-color: #767f91; color: #f2f5f8; }
.tag-team-minnesota-twins { background: #8f7c92; border-color: #78687a; color: #f5f1f6; }
.tag-team-new-york-mets { background: #7c8fa9; border-color: #67788f; color: #eff3f8; }
.tag-team-new-york-yankees { background: #7f8b9f; border-color: #6a7587; color: #f2f5f8; }
.tag-team-oakland-athletics { background: #83977f; border-color: #6e8070; color: #f1f6f0; }
.tag-team-philadelphia-phillies { background: #b78690; border-color: #9e727b; color: #2f1f24; }
.tag-team-pittsburgh-pirates { background: #a99b78; border-color: #908463; color: #2f2817; }
.tag-team-san-diego-padres { background: #9a8a79; border-color: #817364; color: #f5f1eb; }
.tag-team-san-francisco-giants { background: #b59479; border-color: #9b7d65; color: #302216; }
.tag-team-seattle-mariners { background: #7c9294; border-color: #667a7c; color: #eef4f4; }
.tag-team-st-louis-cardinals { background: #bf8687; border-color: #a57273; color: #2f1f20; }
.tag-team-tampa-bay-rays { background: #7d90a5; border-color: #67798b; color: #eef3f8; }
.tag-team-texas-rangers { background: #8b86a4; border-color: #746f8b; color: #f2f0f8; }
.tag-team-toronto-blue-jays { background: #758eb1; border-color: #607592; color: #eff3f9; }
.tag-team-washington-nationals { background: #a98188; border-color: #916d73; color: #f6f2f3; }

.post-team-labels {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, max-content));
  gap: 0.4rem;
  justify-content: flex-start;
}

.team-labels-section {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.team-labels-section .post-team-labels {
  margin-top: 0;
}

.team-labels-section[hidden],
.post-team-labels[hidden] {
  display: none !important;
}

.team-labels-toggle {
  border: 0;
  background: transparent;
  color: #4f647f;
  padding: 0;
  font: 700 0.68rem/1 "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  justify-self: start;
}

.team-labels-toggle:hover,
.team-labels-toggle:focus-visible {
  color: #2a415f;
  text-decoration: underline;
}

.post-card p:not(.post-kicker):not(.post-meta) {
  margin: 0 0 0.95rem;
  line-height: 1.62;
  font-size: 0.96rem;
  color: #24364a;
  font-weight: 400;
}

.post-excerpt {
  color: #24364a;
}

.post-summary {
  font-size: 1rem;
  color: #2f4258;
  font-style: italic;
}

.post-body p {
  margin: 0 0 0.95rem;
}

.post-body {
  color: #24364a;
  font-weight: 400;
}

/* Normalize rich-text article body typography across all posts. */
.post-body :is(p, div, span, li, blockquote, a) {
  color: #24364a !important;
  font-family: "Merriweather", Georgia, serif !important;
  font-size: 0.96rem !important;
  line-height: 1.62 !important;
  font-weight: 400 !important;
}

.post-body a {
  text-decoration: underline;
}

.post-body a:hover {
  text-decoration: underline;
}

.post-body :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 500;
}

.post-body :is(strong, b) {
  font-weight: 600;
}

.post-actions {
  margin: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font: 600 0.68rem/1 "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-share {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e2e9f1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-share-label {
  color: #54677e;
  font: 700 0.68rem/1 "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d3e2;
  background: #f4f8fc;
  color: #1d3857;
  padding: 0.34rem 0.55rem;
  border-radius: 3px;
  font: 700 0.66rem/1 "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.post-share-link:hover {
  background: #e2ecf7;
  color: #162e4a;
  text-decoration: none;
}

.stats-table-wrap {
  margin: 0.65rem 0 0.9rem;
  overflow-x: auto;
  border: 1px solid #d1d8e2;
  padding-bottom: 0.2rem;
  scrollbar-gutter: auto;
  -webkit-overflow-scrolling: touch;
}

.stats-table {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-family: "Libre Franklin", "Helvetica Neue", sans-serif;
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.78rem);
  line-height: 1.35;
  background: #ffffff;
}

.stats-table.stats-table-wide {
  width: max-content;
  min-width: 100%;
  max-width: none;
}

/* Neutralize pasted inline table sizing so every article table stays responsive. */
.post-body .stats-table,
.post-body table.stats-table {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  table-layout: auto !important;
}

.post-body .stats-table.stats-table-wide,
.post-body table.stats-table.stats-table-wide {
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
}

.post-body .stats-table col,
.post-body .stats-table th,
.post-body .stats-table td {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* Keep table internals using table typography, not article-body overrides. */
.post-body .stats-table,
.post-body .stats-table :is(th, td, p, div, span, a) {
  font-family: "Libre Franklin", "Helvetica Neue", sans-serif !important;
}

.stats-table thead th {
  background: #f0f4f8;
  color: #24394f;
  border-bottom: 1px solid #cfd8e3;
  border-right: 1px solid #dfe5ed;
  padding: 0.34rem 0.48rem;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  hyphens: none;
}

.stats-table thead th.sortable-header {
  cursor: pointer;
  user-select: none;
}

.stats-table thead th.sortable-header::after {
  content: "";
  display: inline-block;
  width: 0;
  margin-left: 0.7rem;
  vertical-align: middle;
}

.stats-table thead th.sortable-header.sort-asc::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid #3465A4;
}

.stats-table thead th.sortable-header.sort-desc::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #3465A4;
}

.stats-table thead th:first-child {
  text-align: left;
}

.stats-table tbody th,
.stats-table tbody td {
  border-top: 1px solid #e6ebf1;
  border-right: 1px solid #edf1f6;
  padding: 0.3rem 0.46rem;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  hyphens: none;
  font-variant-numeric: tabular-nums;
}

.stats-table.stats-table-wide thead th {
  padding: 0.28rem 0.38rem;
}

.stats-table.stats-table-wide tbody th,
.stats-table.stats-table-wide tbody td {
  padding: 0.24rem 0.34rem;
}

.stats-table tbody th {
  text-align: left;
  font-weight: 600;
  color: #1f3348;
}

.stats-table tbody :is(th, td):first-child {
  text-align: left;
  font-weight: 600;
  color: #1f3348;
}

.post-body .stats-table thead th:first-child,
.post-body .stats-table tbody th:first-child {
  white-space: nowrap;
}

.stats-table thead th:last-child,
.stats-table tbody td:last-child {
  border-right: 0;
}

.table-caption {
  margin: -0.35rem 0 1rem;
  color: #627184;
  font-family: "Libre Franklin", "Helvetica Neue", sans-serif;
  font-size: 0.66rem;
  line-height: 1.3;
  text-align: center;
  font-style: italic;
}

/* Under-table note text should stay small, even when rich text contains inline styles. */
.post-body .stats-table-wrap + p,
.post-body .stats-table-wrap + .table-caption,
.post-body p.table-caption,
.post-body .table-caption {
  margin: -0.35rem 0 1rem;
  color: #627184 !important;
  font-family: "Libre Franklin", "Helvetica Neue", sans-serif !important;
  font-size: 0.66rem !important;
  line-height: 1.3 !important;
  text-align: center;
  font-style: italic;
  font-weight: 500 !important;
}

.sidebar {
  min-width: 0;
}

.module {
  background: var(--shell-bg);
  border: 1px solid var(--line);
  margin-bottom: 0.95rem;
  padding: 1rem 1.05rem;
}

.module h3 {
  margin: 0;
  font: 700 0.84rem/1 "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #31465c;
}

.module ul {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.module li {
  border-top: 1px solid #e7edf4;
}

.module li:first-child {
  border-top: 0;
}

.module li a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.82rem;
  line-height: 1.34;
}

#team-picker-links a[aria-current="page"] {
  font-weight: 700;
  color: #213a59;
}

.home-ad-module {
  background: var(--shell-bg);
  border: 1px solid var(--line);
}

.partner-ad-layout {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.partner-ad-logo,
.home-ad-logo {
  width: 88px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.partner-ad-copy {
  display: grid;
  gap: 0.3rem;
  align-content: center;
}

.partner-ad-line {
  margin: 0;
  color: #2b435d;
  font: 600 0.78rem/1.25 "Libre Franklin", "Helvetica Neue", sans-serif;
  letter-spacing: 0.01em;
  text-transform: none;
}

.partner-ad-line a {
  color: #2b435d;
  text-decoration: underline;
}

.partner-ad-line a:hover {
  color: #1c3450;
}

.site-footer {
  background: #e2e8ef;
  border-top: 1px solid #c4d0df;
  padding-top: 1.3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.site-footer h4 {
  margin: 0 0 0.6rem;
  color: #2c3f56;
  font: 700 0.74rem/1 "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}

.footer-brand-wrap {
  border-top: 1px solid #c7d1de;
  margin-top: 1rem;
  padding-top: 0.9rem;
}

.footer-brand {
  width: min(220px, 62vw);
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.78;
}

.disclaimer {
  margin: 0.9rem auto 0;
  width: min(1120px, calc(100% - 2rem));
  padding: 0.3rem 0 1.2rem;
  text-align: center;
  color: #5f6d7d;
  font: 500 0.71rem/1.5 "Libre Franklin", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1000px) {
  .page-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .utility-inner {
    min-height: 64px;
  }

  .headline-item {
    width: 100%;
    min-width: 0;
  }

  .utility-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.4rem;
  }

  .utility-logo {
    position: static;
    transform: none;
    width: min(140px, 44vw);
  }

  .headline-copy {
    padding-right: 2rem;
  }

  .post-card {
    padding: 1.1rem;
  }

  .nav-search {
    margin-left: auto;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: min(260px, 100%);
  }

  .nav-search input {
    width: 100%;
  }

  .primary-nav .nav-login-link {
    margin-left: 0;
  }

  .nav-mini-logo {
    margin-left: 0;
  }

  .post-labels {
    justify-content: flex-start;
  }

  .post-team-labels {
    grid-template-columns: repeat(3, minmax(0, max-content));
  }

  .team-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-ad-layout {
    align-items: flex-start;
  }

  .stats-table {
    line-height: 1.3;
  }

  .stats-table thead th.sortable-header::after {
    margin-left: 0.38rem;
  }
}

@media (max-width: 520px) {
  .stats-table-wrap {
    margin: 0.65rem 0 1rem;
    padding-bottom: 0.35rem;
  }

  .stats-table {
    font-size: 0.68rem;
    line-height: 1.26;
  }

  .stats-table thead th,
  .stats-table tbody th,
  .stats-table tbody td {
    padding: 0.26rem 0.28rem;
  }

  .team-modal-grid {
    grid-template-columns: 1fr;
  }
}
