/* =========================================================
   SHARPMODELS UNIFIED CSS
   Consolidated from the previous page-specific files.
   Shared tokens, typography, layout, cards, headings and mobile rules
   are defined here so page styles stay consistent.
   ========================================================= */

:root {
  --sm-color-bg: #ffffff;
  --sm-color-surface: #ffffff;
  --sm-color-surface-soft: #f0f4f8;
  --sm-color-border: #c8d3df;
  --sm-color-border-soft: #d1dbe7;
  --sm-color-text: #13233a;
  --sm-color-text-soft: #334861;
  --sm-color-text-muted: #334861;
  --sm-color-link: #163f78;
  --sm-color-link-hover: #102f59;

  --sm-shadow-card: 0 10px 24px rgba(16, 24, 40, 0.05);
  --sm-radius-card: 14px;
  --sm-radius-md: 12px;
  --sm-radius-pill: 999px;

  --sm-space-1: 4px;
  --sm-space-2: 8px;
  --sm-space-3: 12px;
  --sm-space-4: 16px;
  --sm-space-5: 18px;
  --sm-space-6: 20px;
  --sm-space-7: 24px;
  --sm-space-8: 28px;
  --sm-space-9: 32px;

  --sm-breakpoint-tablet: 980px;
  --sm-breakpoint-mobile: 800px;
  --sm-breakpoint-mobile-sm: 560px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--sm-color-text);
}

h1, h2, h3 {
  color: var(--sm-color-text);
}

a {
  color: var(--sm-color-link);
}

.container-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px 0;
  align-items: start;
}

.left,
.right {
  min-width: 0;
}

.sm-section-title,
.sm-league-page__section-title,
.sm-league-sidepanel__title,
.sm-teams-page__section-title,
.sm-ratings-page__section-title,
.sm-standings-page__section-title,
.sm-playoff-page__section-title,
.sm-seasons-page__section-title,
.sm-season-page__section-title,
.sm-team-page__section-title,
.sm-team-sidepanel__title,
.sm-team-h2h-page__section-title,
.sm-team-h2h-sidepanel__title,
.sm-h2h-page__section-title,
.sm-sidepanel__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--sm-color-text);
}

.sm-page-title,
.sm-league-hero__title,
.sm-season-hero__title,
.sm-team-hero__title,
.sm-team-h2h-hero__title,
.sm-h2h-hero__title,
.sm-hero-card__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size:2.7rem;
  line-height: 0.98;
  color: var(--sm-color-text);
}

.sm-card,
.sm-league-page__card,
.sm-team-page__card,
.sm-h2h-page__card,
.sm-sidepanel__card,
.sm-league-sidepanel__card,
.sm-season-sidepanel__card,
.sm-team-sidepanel__card,
.sm-team-h2h-sidepanel__card,
.sm-h2h-sidepanel__card,
.sm-season-hero,
.sm-team-hero,
.sm-league-hero,
.sm-team-h2h-hero,
.sm-h2h-hero,
.sm-hero-card {
  background: var(--sm-color-surface);
  border: 1px solid var(--sm-color-border);
  border-radius: var(--sm-radius-card);
  box-shadow: var(--sm-shadow-card);
}

.sm-card-header,
.sm-league-page__card-header,
.sm-team-page__card-header,
.sm-h2h-page__card-header {
  padding: 18px 20px 0 20px;
}

.sm-card-header--split,
.sm-league-page__card-header--split,
.sm-team-page__card-header--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 0 20px;
}

.sm-kicker,
.sm-league-hero__kicker,
.sm-season-hero__kicker,
.sm-team-hero__kicker,
.sm-team-h2h-hero__kicker,
.sm-h2h-hero__kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--sm-radius-pill);
  background: #dde8f5;
  color: #2d5b92;
  border: 1px solid #b3c9e4;
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-updated,
.sm-league-hero__updated,
.sm-season-hero__updated,
.sm-team-hero__updated,
.sm-team-h2h-hero__updated,
.sm-h2h-hero__updated {
  color: var(--sm-color-text-muted);
  font-size: 0.92rem;
}

.sm-stat-card,
.sm-league-stat,
.sm-season-stat,
.sm-team-stat,
.sm-team-h2h-stat,
.sm-h2h-stat {
  border: 1px solid var(--sm-color-border-soft);
  border-radius: var(--sm-radius-md);
  background: var(--sm-color-surface-soft);
  padding: 12px 14px;
  min-width: 0;
}

.sm-stat-card__label,
.sm-league-stat__label,
.sm-season-stat__label,
.sm-team-stat__label,
.sm-team-h2h-stat__label,
.sm-h2h-stat__label {
  color: var(--sm-color-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.sm-stat-card__value,
.sm-league-stat__value,
.sm-season-stat__value,
.sm-team-stat__value,
.sm-team-h2h-stat__value,
.sm-h2h-stat__value {
  color: var(--sm-color-text);
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.75rem;
  line-height: 1.05;
}

.sm-home-section {
  margin-bottom: 28px;
}

.sm-home-card {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}

.sm-home-card__header {
  padding: 18px 20px 0 20px;
}

.sm-home-card__header--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sm-home-card__body {
  padding: 16px 0px;
}

.sm-home-card__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

.sm-home-card__more {
  color: #163f78;
  font-weight: 700;
  text-decoration: none;
}

.sm-home-card__more:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .container-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .right,
  .sm-sidepanel,
  .sm-league-sidepanel,
  .sm-season-sidepanel,
  .sm-team-sidepanel,
  .sm-team-h2h-sidepanel,
  .sm-h2h-sidepanel {
    position: static;
  }
}

@media (max-width: 800px) {
  .container-grid {
    padding: 20px 0;
    gap: 18px;
  }

  .sm-section-title,
  .sm-league-page__section-title,
  .sm-league-sidepanel__title,
  .sm-teams-page__section-title,
  .sm-ratings-page__section-title,
  .sm-standings-page__section-title,
  .sm-playoff-page__section-title,
  .sm-seasons-page__section-title,
  .sm-season-page__section-title,
  .sm-team-page__section-title,
  .sm-team-sidepanel__title,
  .sm-team-h2h-page__section-title,
  .sm-team-h2h-sidepanel__title,
  .sm-h2h-page__section-title,
  .sm-sidepanel__title {
    font-size: 1.45rem;
  }

  .sm-page-title,
  .sm-league-hero__title,
  .sm-season-hero__title,
  .sm-team-hero__title,
  .sm-team-h2h-hero__title,
  .sm-h2h-hero__title,
  .sm-hero-card__title {
    font-size: 2rem;
  }

  .sm-breadcrumbs {
    font-size: 0.84rem;
    margin-bottom: 14px;
  }

  .sm-table-scroll {
    scrollbar-width: thin;
  }
}

@media (max-width: 560px) {
  .sm-page-title,
  .sm-league-hero__title,
  .sm-season-hero__title,
  .sm-team-hero__title,
  .sm-team-h2h-hero__title,
  .sm-h2h-hero__title,
  .sm-hero-card__title {
    font-size: 1.7rem;
  }

  .sm-section-title,
  .sm-league-page__section-title,
  .sm-league-sidepanel__title,
  .sm-teams-page__section-title,
  .sm-ratings-page__section-title,
  .sm-standings-page__section-title,
  .sm-playoff-page__section-title,
  .sm-seasons-page__section-title,
  .sm-season-page__section-title,
  .sm-team-page__section-title,
  .sm-team-sidepanel__title,
  .sm-team-h2h-page__section-title,
  .sm-team-h2h-sidepanel__title,
  .sm-h2h-page__section-title,
  .sm-sidepanel__title {
    font-size: 1.25rem;
  }
}


/* ===== Source: main.css ===== */
/* =========================================================
   NFL HUB PAGE
   ========================================================= */

.container-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px 0px;
  align-items: start;
}

.left {
  min-width: 0;
}

.right {
  min-width: 0;
}

.sm-league-page__section {
  margin-bottom: 26px;
}

/* =========================================================
   CARD SYSTEM
   ========================================================= */

.sm-league-page__card {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}

.sm-league-page__card-header {
  padding: 18px 20px 0 20px;
}

.sm-league-page__card-header--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 0 20px;
}

.sm-league-page__section-title,
.sm-league-sidepanel__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

.sm-league-page__header-link {
  color: #163f78;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sm-league-page__header-link:hover {
  text-decoration: underline;
}

/* =========================================================
   HERO
   ========================================================= */

.sm-league-hero {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.sm-league-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sm-league-hero__kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dde8f5;
  color: #2d5b92;
  border: 1px solid #b3c9e4;
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-league-hero__updated {
  color: #334861;
  font-size: 0.92rem;
}

.sm-league-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.sm-league-hero__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2.7rem;
  line-height: 0.98;
  color: #13233a;
}

.sm-league-hero__summary {
  margin: 10px 0 0 0;
  color: #334861;
  font-size: 1rem;
  line-height: 1.45;
}

.sm-league-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sm-league-stat {
  border: 1px solid #d1dbe7;
  border-radius: 12px;
  background: #f0f4f8;
  padding: 12px 14px;
  min-width: 0;

  display: grid;
  grid-template-rows: minmax(34px, auto) auto;
  align-content: start;
}

.sm-league-stat__label {
  color: #334861;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px 0;

  display: flex;
  align-items: flex-start;
}

.sm-league-stat__value {
  color: #13233a;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.75rem;
  line-height: 1.05;
  align-self: start;
}


/* =========================================================
   MATCHUP TILES
   ========================================================= */

.sm-matchup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 18px 18px 18px;
}

.sm-matchup-tile {
  border: 1px solid #d1dbe7;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.sm-matchup-tile__meta {
  color: #334861;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.sm-matchup-tile__title {
  margin: 0 0 8px 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.4rem;
  line-height: 1;
}

.sm-matchup-tile__title a {
  color: #13233a;
  text-decoration: none;
}

.sm-matchup-tile__title a:hover {
  text-decoration: underline;
}

.sm-matchup-tile__hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  column-gap: 8px;
}

.sm-matchup-tile__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.sm-matchup-tile__helmet {
  width: 44px;
  height: 44px;
  display: block;
  margin: 0 auto 4px auto;
}

.sm-matchup-tile__helmet--flip {
  transform: scaleX(-1);
}

.sm-matchup-tile__center {
  min-width: 0;
}

.sm-matchup-tile__label {
  color: #334861;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 6px;
}

.sm-matchup-tile__bar-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
}

.sm-matchup-tile__pct {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.sm-matchup-tile__bar {
  min-width: 0;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
}

.sm-matchup-tile__bar-left,
.sm-matchup-tile__bar-right,
.sm-matchup-tile__bar-gap {
  height: 100%;
}

.sm-matchup-tile__prob {
  color: #163f78;
  font-weight: 700;
  margin-bottom: 5px;
}

.sm-matchup-tile__margin {
  color: #334861;
  font-size: 0.9rem;
  margin-top: 12px;
}

.sm-matchup-tile__team-name {
  width: 100%;
  text-align: center;
}

.sm-matchup-tile__team-name a {
  display: block;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.05;
  font-size: 0.8rem;
  font-weight: 700;
}

.sm-matchup-tile__team-name a:hover {
  text-decoration: underline;
}

.sm-matchup-tile__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}



/* =========================================================
   TEAM DIRECTORY
   ========================================================= */

.sm-team-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px 18px 18px;
}

.sm-team-directory__link {
  display: block;
  border: 1px solid #d1dbe7;
  border-radius: 10px;
  padding: 10px 12px;
  color: #163f78;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
}

.sm-team-directory__link:hover {
  text-decoration: underline;
}

/* =========================================================
   H2H LINKS
   ========================================================= */

.sm-h2h-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 18px 18px 18px;
}

.sm-h2h-links__item {
  display: block;
  border: 1px solid #d1dbe7;
  border-radius: 10px;
  padding: 12px 14px;
  color: #163f78;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
}

.sm-h2h-links__item:hover {
  text-decoration: underline;
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.sm-league-sidepanel {
  position: sticky;
  top: 160px;
}

.sm-league-sidepanel__card {
  background: #fff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 18px;
}

.sm-league-sidepanel__title {
  margin-bottom: 18px;
}

.sm-league-sidepanel__group + .sm-league-sidepanel__group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #cfdbe8;
}

.sm-league-sidepanel__label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334861;
  font-weight: 800;
}

.sm-league-sidepanel__link {
  display: block;
  padding: 4px 0;
  margin: 0 0 10px 0;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
  line-height: 1.4;
}

.sm-league-sidepanel__link:hover {
  color: #102f59;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .container-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    padding: 24px 0px;
  }

  .sm-league-hero__title {
    font-size: 2.6rem;
  }
}

@media (max-width: 1040px) {
  .container-grid {
    grid-template-columns: 1fr;
  }

  .sm-league-sidepanel {
    position: static;
  }
}

@media (max-width: 780px) {
  .container-grid {
    padding: 16px 0px;
  }

  .sm-league-hero {
    padding: 16px;
  }

  .sm-league-hero__main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sm-league-hero__title {
    font-size: 2.15rem;
  }

  .sm-league-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-matchup-grid,
  .sm-h2h-links {
    grid-template-columns: 1fr;
  }

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

  .sm-league-page__section-title,
  .sm-league-sidepanel__title {
    font-size: 1.75rem;
  }

  .sm-league-page__card-header--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .sm-league-hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .sm-league-stat__value {
    font-size: 1.5rem;
  }

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



/* ===== Source: breadcrumbs.css ===== */
/* =========================================================
   SHARED BREADCRUMBS
   ========================================================= */

.sm-breadcrumbs {
  margin: 0 0 18px 0;
  font-size: 0.92rem;
  color: #334861;
  line-height: 1.4;
}

.sm-breadcrumbs a {
  color: #1a4a85;
  text-decoration: none;
  font-weight: 700;
}

.sm-breadcrumbs a:hover {
  text-decoration: underline;
}

.sm-breadcrumbs__sep {
  margin: 0 8px;
  color: #5d6f87;
}



/* ===== Source: sharpmodels-table.css ===== */
/* =========================================================
   SHARPMODELS GENERIC TABLE SYSTEM
   ========================================================= */

:root {
  --sm-table-bg: var(--color-surface, #ffffff);
  --sm-table-bg-soft: #eef3f8;
  --sm-table-border: #c8d3df;
  --sm-table-border-strong: #aebccc;
  --sm-table-text: var(--color-text, #13233a);
  --sm-table-text-soft: #334861;
  --sm-table-head-bg: #d8e2ee;
  --sm-table-hover: #eef3f8;
  --sm-table-col-alt: rgba(19, 35, 58, 0.015);

  --sm-table-link: #133f78;
  --sm-table-link-hover: #0f315d;

  --sm-table-sort: #334861;
  --sm-table-sort-active: #163f78;

  --sm-table-pos-bg: #eef8f1;
  --sm-table-pos-text: #1b653d;

  --sm-table-neg-bg: #fdf1ef;
  --sm-table-neg-text: #a2332e;

  --sm-table-neutral-bg: #d6e1ec;
  --sm-table-neutral-text: #334861;

  --sm-table-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
  --sm-table-radius: 12px;

  --sm-table-font-body: var(--font-body, "Open Sans", Arial, sans-serif);
  --sm-table-font-heading: var(--font-heading, "Oswald", Arial, sans-serif);

  --sm-table-pad-x: 13px;
  --sm-table-pad-y: 10px;
  --sm-table-toolbar-pad: 14px 16px;
  --sm-table-head-size: 0.79rem;
  --sm-table-body-size: 0.94rem;
  --sm-table-line-height: 1.3;
  --sm-table-min-width: 680px;
}

/* density modes */
.sm-table-wrap[data-sm-density="compact"] {
  --sm-table-pad-x: 12px;
  --sm-table-pad-y: 8px;
  --sm-table-body-size: 0.9rem;
}

.sm-table-wrap[data-sm-density="dense"] {
  --sm-table-pad-x: 10px;
  --sm-table-pad-y: 6px;
  --sm-table-body-size: 0.87rem;
}

/* narrower mode for simple matchup tables */
.sm-table-wrap[data-sm-layout="matchup"] {
  --sm-table-min-width: 460px;
}

/* wrapper */
.sm-table-wrap {
  margin: 0 0 22px 0;
  color: var(--sm-table-text);
  font-family: var(--sm-table-font-body);
}

.sm-table-card {
  background: var(--sm-table-bg);
  border: 1px solid var(--sm-table-border);
  border-radius: var(--sm-table-radius);
  box-shadow: var(--sm-table-shadow);
  overflow: hidden;
}

.sm-table-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: var(--sm-table-toolbar-pad);
  border-bottom: 1px solid var(--sm-table-border);
  background: #ffffff;
}

.sm-table-toolbar__title {
  margin: 0;
  font-family: var(--sm-table-font-heading);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--sm-table-text);
  font-weight: bold;
}

.sm-table-toolbar__meta {
  margin-top: 5px;
  color: var(--sm-table-text-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.sm-table-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* scroll container */
.sm-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--sm-table-bg);
}

.sm-table-scroll::-webkit-scrollbar {
  height: 9px;
}

.sm-table-scroll::-webkit-scrollbar-thumb {
  background: #aebdce;
  border-radius: 999px;
}

.sm-table-scroll::-webkit-scrollbar-track {
  background: #e0e8f1;
}

/* table */
.sm-table {
  width: 100%;
  min-width: var(--sm-table-min-width);
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--sm-table-body-size);
  line-height: var(--sm-table-line-height);
  color: var(--sm-table-text);
  font-variant-numeric: tabular-nums;
}

.sm-table th,
.sm-table td {
  padding: var(--sm-table-pad-y) var(--sm-table-pad-x);
  border-bottom: 1px solid var(--sm-table-border);
  vertical-align: middle;
  background: transparent;
}

.sm-table tbody tr:last-child td {
  border-bottom: 0;
}

.sm-table thead th {
  position: relative;
  background: var(--sm-table-head-bg);
  color: #2f435c;
  font-size: var(--sm-table-head-size);
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-weight: 800;
  white-space: nowrap;
  border-bottom: 1px solid var(--sm-table-border-strong);
}

.sm-table tbody tr:hover td {
  background: var(--sm-table-hover);
}

/* optional alternate columns */
.sm-table-wrap[data-sm-striped-cols] .sm-table th:nth-child(even),
.sm-table-wrap[data-sm-striped-cols] .sm-table td:nth-child(even) {
  background-color: var(--sm-table-col-alt);
}

/* alignment helpers */
.sm-table__cell--num {
  text-align: right;
}

.sm-table__cell--center {
  text-align: center;
}

.sm-table__cell--nowrap {
  white-space: nowrap;
}

/* sticky header */
.sm-table-wrap[data-sm-sticky-head] .sm-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
}

/* sticky first column */
.sm-table-wrap[data-sm-sticky-first] .sm-table th:first-child,
.sm-table-wrap[data-sm-sticky-first] .sm-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: inherit;
  box-shadow: 1px 0 0 0 var(--sm-table-border);
}

.sm-table-wrap[data-sm-sticky-first] .sm-table thead th:first-child {
  z-index: 5;
}

/* sort buttons */
.sm-table th[data-sm-sortable] {
  cursor: pointer;
  user-select: none;
  padding-right: 30px;
}

.sm-table th[data-sm-sortable]::after {
  content: "▲▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-54%);
  color: var(--sm-table-sort);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -1px;
  opacity: 1;
}

.sm-table th[data-sm-sort-dir="asc"]::after {
  content: "▲";
  color: var(--sm-table-sort-active);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.sm-table th[data-sm-sort-dir="desc"]::after {
  content: "▼";
  color: var(--sm-table-sort-active);
  font-size: 0.78rem;
  letter-spacing: 0;
}

/* status cells */
.sm-table__highlight--positive,
.sm-table__highlight--negative,
.sm-table__highlight--neutral {
  font-weight: 700;
  border-radius: 6px;
}

.sm-table__highlight--positive {
  background: var(--sm-table-pos-bg);
  color: var(--sm-table-pos-text);
}

.sm-table__highlight--negative {
  background: var(--sm-table-neg-bg);
  color: var(--sm-table-neg-text);
}

.sm-table__highlight--neutral {
  background: var(--sm-table-neutral-bg);
  color: var(--sm-table-neutral-text);
}

/* row labels */
.sm-table__label--positive {
  color: var(--sm-table-pos-text);
  font-weight: 700;
}

.sm-table__label--negative {
  color: var(--sm-table-neg-text);
  font-weight: 700;
}

.sm-table__label--neutral {
  color: var(--sm-table-neutral-text);
  font-weight: 700;
}

/* delta values */
.sm-table__delta--up {
  color: var(--sm-table-pos-text);
  font-weight: 700;
}

.sm-table__delta--down {
  color: var(--sm-table-neg-text);
  font-weight: 700;
}

.sm-table__delta--flat {
  color: var(--sm-table-text-soft);
  font-weight: 700;
}

/* links */
.sm-table__team-link,
.sm-table__entity-link {
  color: var(--sm-table-link);
  text-decoration: none;
  font-weight: 700;
}

.sm-table__team-link:hover,
.sm-table__entity-link:hover {
  color: var(--sm-table-link-hover);
  text-decoration: underline;
}

.sm-table__team-sub {
  display: block;
  margin-top: 2px;
  color: var(--sm-table-text-soft);
  font-size: 0.81em;
  font-weight: 400;
}

/* buttons */
.sm-table__link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #163f78;
  border-radius: 9px;
  background: #ffffff;
  color: #163f78;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.sm-table__link-btn:hover {
  background: #12345f;
  border-color: #12345f;
}

.sm-table__link-btn--ghost {
  background: #ffffff;
  color: #163f78;
}

.sm-table__link-btn--ghost:hover {
  background: #eaf1f8;
  color: #12345f;
  border-color: #12345f;
}

.sm-table__link-btn--dark {
  background: #13233a;
  border-color: #13233a;
  color: #ffffff;
}

.sm-table__link-btn--dark:hover {
  background: #0f1a2a;
  border-color: #0f1a2a;
}

/* footer / notes */
.sm-table-footer {
  padding: 11px 16px 13px 16px;
  color: #334861;
  font-size: 0.84rem;
  border-top: 1px solid var(--sm-table-border);
  background: #f0f4f8;
}

.sm-table__scroll-hint {
  display: none;
  margin-top: 6px;
  color: #334861;
  font-size: 0.83rem;
}

/* plain/minimal table */
.sm-table-wrap.sm-table-wrap--plain .sm-table-card {
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid var(--sm-table-border);
  background: #ffffff;
}

.sm-table-wrap.sm-table-wrap--plain .sm-table thead th {
  background: #e9f0f7;
}

.sm-table-wrap.sm-table-wrap--plain .sm-table td,
.sm-table-wrap.sm-table-wrap--plain .sm-table th {
  border-bottom-color: #bdc9d8;
}

/* mobile */
@media (max-width: 800px) {
  .sm-table-toolbar {
    gap: 10px;
    padding: 12px 12px;
  }

  .sm-table-toolbar__title {
    font-size: 1.1rem;
  }

  .sm-table-toolbar__meta {
    font-size: 0.8rem;
    margin-top: 4px;
  }

  .sm-table-toolbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .sm-table__link-btn {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .sm-table-wrap {
    margin-bottom: 18px;
  }

  .sm-table-wrap[data-sm-layout="matchup"] {
    --sm-table-pad-x: 9px;
    --sm-table-pad-y: 7px;
    --sm-table-body-size: 0.84rem;
    --sm-table-head-size: 0.72rem;
    --sm-table-min-width: 360px;
  }

  .sm-table-wrap:not([data-sm-layout="matchup"]) .sm-table {
    min-width: 620px;
  }

  .sm-table__scroll-hint {
    display: block;
  }
}

.sm-table-toolbar__main {
  min-width: 0;
  flex: 1 1 auto;
}

@media (max-width: 800px) {
  .sm-table-wrap[data-sm-layout="matchup"] .sm-table-toolbar {
    display: block;
  }

  .sm-table-wrap[data-sm-layout="matchup"] .sm-table-toolbar__actions {
    display: block;
    width: auto;
    margin-top: 10px;
  }

  .sm-table-wrap[data-sm-layout="matchup"] .sm-table__link-btn {
    display: inline-flex;
  }
}

.sm-table-wrap[data-sm-layout="matchup"] .sm-table th:first-child,
.sm-table-wrap[data-sm-layout="matchup"] .sm-table td:first-child {
  white-space: nowrap;
}

.sm-table-wrap[data-sm-layout="matchup"] .sm-table th:not(:first-child),
.sm-table-wrap[data-sm-layout="matchup"] .sm-table td:not(:first-child) {
  text-align: right;
}

.sm-table-wrap[data-sm-layout="matchup"] .sm-table {
  table-layout: fixed;
}

.sm-table-wrap[data-sm-layout="matchup"] .sm-table th:first-child,
.sm-table-wrap[data-sm-layout="matchup"] .sm-table td:first-child {
  width: 46%;
}

.sm-table-wrap[data-sm-layout="matchup"] .sm-table th:nth-child(2),
.sm-table-wrap[data-sm-layout="matchup"] .sm-table td:nth-child(2),
.sm-table-wrap[data-sm-layout="matchup"] .sm-table th:nth-child(3),
.sm-table-wrap[data-sm-layout="matchup"] .sm-table td:nth-child(3) {
  width: 27%;
}

.sm-table-wrap[data-sm-layout="matchup"] .sm-table th:first-child,
.sm-table-wrap[data-sm-layout="matchup"] .sm-table td:first-child {
  width: 44%;
}

.sm-table-wrap[data-sm-layout="matchup"] .sm-table th:nth-child(2),
.sm-table-wrap[data-sm-layout="matchup"] .sm-table td:nth-child(2),
.sm-table-wrap[data-sm-layout="matchup"] .sm-table th:nth-child(3),
.sm-table-wrap[data-sm-layout="matchup"] .sm-table td:nth-child(3) {
  width: 28%;
}



/* ===== Source: sharp-chart.css ===== */
.sm-chart {
  position: relative;
  width: 100%;
}

.sm-chart__area {
  position: relative;
  padding: 14px 0;
}

.sm-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}

.sm-chart__grid line {
  stroke: var(--sm-color-line);
  stroke-width: 1;
}

.sm-chart__line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sm-chart__line--fade {
  opacity: .16;
}

.sm-chart__crosshair {
  stroke: #1f242e;
  stroke-opacity: .18;
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.sm-chart__dot {
  stroke: #fff;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.sm-chart__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sm-chart__y-tick {
  position: absolute;
  transform: translate(-100%, -50%);
  color: var(--sm-color-muted);
  font-family: var(--sm-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-right: 6px;
}

.sm-chart__x-tick {
  position: absolute;
  transform: translateX(-50%);
  color: var(--sm-color-muted);
  font-family: var(--sm-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.sm-chart__x-tick--start { transform: translateX(0); }
.sm-chart__x-tick--end { transform: translateX(-100%); }

.sm-chart__float-label {
  position: absolute;
  white-space: nowrap;
}

.sm-chart__float-label-name {
  font-family: var(--sm-font-heading);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: uppercase;
}

.sm-chart__float-label-value {
  font-family: var(--sm-font-heading);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sm-chart__hover-box {
  position: absolute;
  top: 10px;
  left: 0;
  background: rgba(255,255,255,.98);
  border: 1px solid #e8e8eb;
  border-radius: 12px;
  padding: 10px 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .08s ease;
  max-width: calc(100% - 20px);
  box-shadow: var(--sm-shadow-soft);
}

.sm-chart__hover-box.is-showing { opacity: 1; }

.sm-chart__hover-time {
  font-family: var(--sm-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--sm-color-muted);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.sm-chart__hover-note {
  margin-top: 5px;
  font-family: var(--sm-font-body);
  font-size: 13px;
  font-weight: 400;
  color: #1f242e;
  line-height: 1.35;
  white-space: normal;
  max-width: 520px;
  overflow-wrap: anywhere;
}

.sm-chart__hover-note:empty { display: none; }

@media (max-width: 900px) {
  .sm-chart__line { stroke-width: 3; }
  .sm-chart__y-tick, .sm-chart__x-tick { font-size: 11px; }
  .sm-chart__float-label-name { font-size: 12px; }
  .sm-chart__float-label-value { font-size: 24px; }
}

@media (max-width: 640px) {
  .sm-chart__area { padding: 10px 0; }
  .sm-chart__line { stroke-width: 2.5; }
  .sm-chart__y-tick, .sm-chart__x-tick { font-size: 10px; }
  .sm-chart__float-label-name { font-size: 10px; }
  .sm-chart__float-label-value { font-size: 18px; }
}

@media (max-width: 460px) {
  .sm-chart__y-tick, .sm-chart__x-tick { font-size: 9px; }
  .sm-chart__float-label-name { font-size: 9px; }
  .sm-chart__float-label-value { font-size: 15px; }
}



.sm-h2h__zero-line {
  stroke: rgba(120, 126, 138, 0.55);
  stroke-width: 1.5;
}

.sm-h2h__bar {
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sm-h2h__bar.is-active {
  opacity: 1;
}

.sm-h2h__hover-dot {
  stroke: #fff;
  stroke-width: 2;
}

.sm-h2h__team-label {
  position: absolute;
  right: 0;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.sm-h2h__value-label {
  position: absolute;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.sm-h2h__value-label.is-showing {
  opacity: 1;
}



/* ===== Source: matchup-tile-grid.css ===== */
/* =========================================================
   SHARPMODELS MATCHUP TILE GRID
   Reusable for hub pages and matchup index pages
   ========================================================= */

.sm-matchup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 18px 18px 18px;
}

.sm-matchup-tile {
  border: 1px solid #d1dbe7;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.sm-matchup-tile__meta {
  color: #334861;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.sm-matchup-tile__title {
  margin: 0 0 10px 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.4rem;
  line-height: 1;
}

.sm-matchup-tile__title a {
  color: #13233a;
  text-decoration: none;
}

.sm-matchup-tile__title a:hover {
  text-decoration: underline;
}

.sm-matchup-tile__hero {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.sm-matchup-tile__team {
  text-align: center;
}

.sm-matchup-tile__helmet {
  width: 46px;
  height: auto;
  display: block;
  margin: 0 auto 4px auto;
}

.sm-matchup-tile__helmet--flip {
  transform: scaleX(-1);
  transform-origin: center;
}

.sm-matchup-tile__team-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #163f78;
  line-height: 1.2;
}

.sm-matchup-tile__center {
  text-align: center;
}

.sm-matchup-tile__label {
  margin-bottom: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334861;
  font-weight: 800;
}

.sm-matchup-tile__bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: center;
}

.sm-matchup-tile__pct {
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.4rem;
  line-height: 1;
}

.sm-matchup-tile__pct--left {
  text-align: right;
  color: #241773;
}

.sm-matchup-tile__pct--right {
  text-align: left;
  color: #E31837;
}

.sm-matchup-tile__bar {
  display: flex;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #dbe4ef;
}

.sm-matchup-tile__bar-left {
  background: #241773;
}

.sm-matchup-tile__bar-right {
  background: #E31837;
}

.sm-matchup-tile__margin {
  margin-top: 10px;
  color: #334861;
  font-size: 0.9rem;
}

.sm-matchup-tile__footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 780px) {
  .sm-matchup-grid {
    grid-template-columns: 1fr;
  }

  .sm-matchup-tile__hero {
    grid-template-columns: 50px 1fr 50px;
    gap: 10px;
  }

  .sm-matchup-tile__helmet {
    width: 40px;
  }
}

.sm-matchup-tile__team-name a {
  text-decoration: none;
}

.sm-matchup-tile__team-name a:hover {
  text-decoration: underline;
}



/* ===== Source: matchup-page.css ===== */
/* =========================================================
   MATCHUP PAGE
   ========================================================= */

.sm-matchup__section {
  margin-bottom: 26px;
}

/* generic white card blocks for non-table sections */
.sm-matchup__card {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}

.sm-matchup__card-header {
  padding: 18px 20px 0 20px;
}

.sm-matchup__card-title,
.sm-table-toolbar__title,
.sm-sidepanel__title,
.sm-matchup__faq-title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

/* =========================================================
   HERO
   ========================================================= */

.sm-hero-card {
  background: #fff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.sm-hero-card__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.sm-hero-card__status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dde8f5;
  color: #2d5b92;
  border: 1px solid #b3c9e4;
  font-size: 0.82rem;
  font-weight: 700;
}

.sm-hero-card__date {
  font-size: 0.86rem;
  color: #334861;
  margin-bottom: 8px;
}

.sm-hero-card__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2.2rem;
  line-height: 0.98;
  color: #13233a;
}

.sm-hero-card__summary {
  margin: 10px 0 0;
  color: #334861;
  font-size: 0.95rem;
  line-height: 1.45;
}

.sm-hero-card__teams {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.2fr) minmax(220px, 1fr);
  gap: 20px;
  align-items: center;
}

.sm-hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sm-hero-team--left,
.sm-hero-team--right {
  justify-self: center;
}

.sm-hero-team__helmet-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  margin-bottom: 10px;
}

.sm-hero-team__helmet {
  width: 92px;
  height: auto;
  display: block;
}

.sm-hero-team__helmet--flip {
  transform: scaleX(-1);
  transform-origin: center;
}

.sm-hero-team__name {
  display: inline-block;
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.8rem;
  line-height: 1;
  color: #13233a;
  text-decoration: none;
}

.sm-hero-team__name:hover {
  text-decoration: underline;
}

.sm-hero-team__meta-line {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  color: #334861;
  font-size: 0.92rem;
  font-weight: 700;
}

.sm-hero-team__form {
  margin-top: 8px;
  color: #334861;
  font-size: 0.88rem;
}

.sm-hero-card__center {
  text-align: center;
}

.sm-hero-card__prob-label {
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667991;
}

.sm-hero-card__bar-wrap {
  display: grid;
  grid-template-columns: 68px 1fr 68px;
  gap: 14px;
  align-items: center;
}

.sm-hero-card__pct {
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sm-hero-card__pct--left {
  text-align: right;
}

.sm-hero-card__pct--right {
  text-align: left;
}

.sm-hero-card__bar {
  position: relative;
  display: flex;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #dbe4ef;
}

.sm-hero-card__bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--split, 50%);
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(19, 35, 58, 0.06);
  pointer-events: none;
}

.sm-hero-card__bar-left,
.sm-hero-card__bar-right {
  height: 100%;
}

.sm-hero-card__middle-meta {
  margin-top: 12px;
  color: #5f7190;
  font-weight: 700;
  font-size: 0.92rem;
}

/* =========================================================
   CHART CARD
   ========================================================= */

.sm-matchup__chart-wrap {
  padding: 12px 18px 18px 18px;
}

.sm-matchup__impact-chart {
  min-height: 340px;
}

/* =========================================================
   RECENT RESULTS
   ========================================================= */

.sm-matchup__results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 16px 18px 18px 18px;
}

.sm-matchup__results-card {
  border: 1px solid #d1dbe7;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.sm-matchup__results-team {
  margin: 0 0 12px 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.3rem;
  line-height: 1;
  color: #13233a;
}

.sm-matchup__results-team a {
  color: inherit;
  text-decoration: none;
}

.sm-matchup__results-team a:hover {
  text-decoration: underline;
}

.sm-matchup__results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm-matchup__result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
}

.sm-matchup__result-row--win {
  background: #eef8f1;
  border-color: #cce9d6;
}

.sm-matchup__result-row--loss {
  background: #fdf1ef;
  border-color: #f1cec9;
}

.sm-matchup__result-left {
  min-width: 0;
}

.sm-matchup__result-line1 {
  font-weight: 700;
  color: #163f78;
  margin-bottom: 3px;
  font-size: 0.95rem;
}

.sm-matchup__result-line2,
.sm-matchup__result-line3 {
  color: #334861;
  font-size: 0.78rem;
  line-height: 1.35;
}

.sm-matchup__result-score {
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.7rem;
  line-height: 1;
  color: #13233a;
}

.sm-matchup__result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.sm-matchup__result-row:hover {
  text-decoration: none;
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.sm-sidepanel {
  position: sticky;
  top: 60px;
}

.sm-sidepanel__card {
  background: #fff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 18px;
}

.sm-sidepanel__title {
  margin-bottom: 18px;
}

.sm-sidepanel__group + .sm-sidepanel__group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #cfdbe8;
}

.sm-sidepanel__label {
  margin-bottom: 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334861;
  font-weight: 800;
}

.sm-sidepanel__link {
  display: block;
  padding: 4px 0;
  margin: 0 0 10px 0;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
  line-height: 1.35;
  font-size: 0.95rem;
}

.sm-sidepanel__link:hover {
  color: #102f59;
  text-decoration: underline;
}

/* =========================================================
   FAQ
   ========================================================= */

.sm-matchup__faq-body {
  padding: 14px 18px 18px 18px;
}

.sm-matchup__faq-item + .sm-matchup__faq-item {
  margin-top: 10px;
}

.sm-matchup__faq-button {
  width: 100%;
  text-align: left;
  border: 1px solid #c8d3df;
  background: #ffffff;
  color: #13233a;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.sm-matchup__faq-button:hover {
  border-color: #c5d2e2;
}

.sm-matchup__faq-answer {
  padding: 10px 14px 2px 14px;
  color: #5f7190;
  line-height: 1.5;
  font-size: 0.95rem;
}

.sm-matchup__faq-answer p {
  margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .container-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    padding: 24px 0px;
  }

  .sm-hero-card__title {
    font-size: 2.25rem;
  }

  .sm-hero-card__teams {
    grid-template-columns: minmax(180px, 1fr) minmax(260px, 1fr) minmax(180px, 1fr);
  }

  .sm-hero-team__name {
    font-size: 1.6rem;
  }

  .sm-hero-card__pct {
    font-size: 2.1rem;
  }

  .sm-hero-team__helmet {
    width: 86px;
  }
}

@media (max-width: 1040px) {
  .container-grid {
    grid-template-columns: 1fr;
    padding: 24px 0px;
  }

  .sm-sidepanel {
    position: static;
  }
}

/* keep hero horizontal on mobile and remove excess chart whitespace */
@media (max-width: 780px) {
  .container-grid {
    padding: 16px 0px;
  }

  .sm-hero-card {
    padding: 16px;
  }

  .sm-hero-card__title {
    font-size: 1.9rem;
  }

  .sm-hero-card__teams {
    grid-template-columns: 120px minmax(0, 1fr) 120px;
    gap: 10px;
    align-items: center;
  }

  .sm-hero-team__helmet {
    width: 64px;
  }

  .sm-hero-team__name {
    font-size: 1.2rem;
  }

  .sm-hero-team__meta-line {
    flex-direction: column;
    gap: 2px;
    font-size: 0.78rem;
    margin-top: 8px;
  }

  .sm-hero-team__form {
    font-size: 0.78rem;
    margin-top: 6px;
  }

  .sm-hero-card__bar-wrap {
    grid-template-columns: 50px 1fr 50px;
    gap: 8px;
  }

  .sm-hero-card__pct {
    font-size: 1.65rem;
  }

  .sm-hero-card__prob-label {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }

  .sm-hero-card__middle-meta {
    margin-top: 10px;
    font-size: 0.86rem;
  }

  .sm-matchup__chart-wrap {
    padding: 10px 12px 12px 12px;
  }

  .sm-matchup__impact-chart {
    min-height: 210px;
  }

  .sm-matchup__results-grid {
    grid-template-columns: 1fr;
  }

  .sm-matchup__card-title,
  .sm-table-toolbar__title,
  .sm-sidepanel__title,
  .sm-matchup__faq-title {
    font-size: 1.4rem;
  }

  .sm-matchup__results-team {
    font-size: 1.15rem;
  }

  .sm-matchup__result-score {
    font-size: 1.45rem;
  }
}





/* ===== Source: nfl-teams-page.css ===== */
/* =========================================================
   NFL TEAMS INDEX PAGE
   ========================================================= */

.container-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px 0px;
  align-items: start;
}

.left {
  min-width: 0;
}

.right {
  min-width: 0;
}

.sm-teams-page__section {
  margin-bottom: 26px;
}

/* =========================================================
   HERO
   ========================================================= */

.sm-teams-hero {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.sm-teams-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sm-teams-hero__kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dde8f5;
  color: #2d5b92;
  border: 1px solid #b3c9e4;
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-teams-hero__updated {
  color: #334861;
  font-size: 0.92rem;
}

.sm-teams-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.sm-teams-hero__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2.7rem;
  line-height: 0.98;
  color: #13233a;
}

.sm-teams-hero__summary {
  margin: 10px 0 0 0;
  color: #334861;
  font-size: 1rem;
  line-height: 1.45;
}

.sm-teams-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sm-teams-stat {
  border: 1px solid #d1dbe7;
  border-radius: 12px;
  background: #f0f4f8;
  padding: 12px 14px;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(34px, auto) auto;
  align-content: start;
}

.sm-teams-stat__label {
  color: #334861;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.sm-teams-stat__value {
  color: #13233a;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.75rem;
  line-height: 1.05;
}

/* =========================================================
   TITLES
   ========================================================= */

.sm-teams-page__section-title,
.sm-teams-sidepanel__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

/* =========================================================
   TEAM CELL WITH MINI HELMET
   ========================================================= */

.sm-teams-team {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
}

.sm-teams-team:hover .sm-teams-team__name {
  text-decoration: underline;
}

.sm-teams-team__name {
  color: #163f78;
}

.sm-teams-team__helmet {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.sm-teams-team__helmet--dot {
  border-radius: 50%;
  border: 1px solid #c8d3df;
  position: relative;
  overflow: hidden;
}

.sm-teams-team__helmet--dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--helmet-main, #1f4c8f);
}

.sm-teams-team__helmet--dot::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  right: 1px;
  bottom: 1px;
  border-radius: 50%;
  background: var(--helmet-accent, #ffffff);
  border: 1px solid rgba(255,255,255,0.5);
}

/* guessed colors */
.seahawks { --helmet-main: #002244; --helmet-accent: #69be28; }
.bills { --helmet-main: #00338d; --helmet-accent: #c60c30; }
.rams { --helmet-main: #003594; --helmet-accent: #ffd100; }
.bengals { --helmet-main: #fb4f14; --helmet-accent: #000000; }
.broncos { --helmet-main: #0a2343; --helmet-accent: #fb4f14; }
.texans { --helmet-main: #03202f; --helmet-accent: #a71930; }
.eagles { --helmet-main: #004c54; --helmet-accent: #a5acaf; }
.patriots { --helmet-main: #002244; --helmet-accent: #c60c30; }
.lions { --helmet-main: #0076b6; --helmet-accent: #b0b7bc; }
.jaguars { --helmet-main: #006778; --helmet-accent: #d7a22a; }
.vikings { --helmet-main: #4f2683; --helmet-accent: #ffc62f; }
.niners { --helmet-main: #aa0000; --helmet-accent: #b3995d; }
.ravens { --helmet-main: #241773; --helmet-accent: #9e7c0c; }
.packers { --helmet-main: #203731; --helmet-accent: #ffb612; }
.bears { --helmet-main: #0b162a; --helmet-accent: #c83803; }
.chargers { --helmet-main: #0080c6; --helmet-accent: #ffc20e; }
.chiefs { --helmet-main: #e31837; --helmet-accent: #ffb81c; }

/* =========================================================
   DELTAS
   ========================================================= */

.sm-table__delta--up {
  color: #1b653d;
  font-weight: 700;
}

.sm-table__delta--down {
  color: #a2332e;
  font-weight: 700;
}

.sm-table__delta--flat {
  color: #334861;
  font-weight: 700;
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.sm-teams-sidepanel {
  position: sticky;
  top: 20px;
}

.sm-teams-sidepanel__card {
  background: #fff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 18px;
}

.sm-teams-sidepanel__title {
  margin-bottom: 18px;
}

.sm-teams-sidepanel__group + .sm-teams-sidepanel__group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #cfdbe8;
}

.sm-teams-sidepanel__label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334861;
  font-weight: 800;
}

.sm-teams-sidepanel__link {
  display: block;
  padding: 4px 0;
  margin: 0 0 10px 0;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
  line-height: 1.4;
}

.sm-teams-sidepanel__link:hover {
  color: #102f59;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1040px) {
  .container-grid {
    grid-template-columns: 1fr;
  }

  .sm-teams-sidepanel {
    position: static;
  }
}

@media (max-width: 780px) {
  .container-grid {
    padding: 16px 0px;
  }

  .sm-teams-hero {
    padding: 16px;
  }

  .sm-teams-hero__main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sm-teams-hero__title {
    font-size: 2.2rem;
  }

  .sm-teams-page__section-title,
  .sm-teams-sidepanel__title {
    font-size: 1.75rem;
  }

  .sm-teams-team {
    gap: 10px;
  }
}



/* ===== Source: nfl-ratings-page.css ===== */
/* =========================================================
   NFL RATINGS PAGE
   ========================================================= */

.container-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px 0px;
  align-items: start;
}

.left {
  min-width: 0;
}

.right {
  min-width: 0;
}

.sm-ratings-page__section {
  margin-bottom: 26px;
}

/* =========================================================
   HERO
   ========================================================= */

.sm-ratings-hero {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.sm-ratings-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sm-ratings-hero__kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dde8f5;
  color: #2d5b92;
  border: 1px solid #b3c9e4;
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-ratings-hero__updated {
  color: #334861;
  font-size: 0.92rem;
}

.sm-ratings-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.sm-ratings-hero__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2.7rem;
  line-height: 0.98;
  color: #13233a;
}

.sm-ratings-hero__summary {
  margin: 10px 0 0 0;
  color: #334861;
  font-size: 1rem;
  line-height: 1.45;
}

.sm-ratings-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sm-ratings-stat {
  border: 1px solid #d1dbe7;
  border-radius: 12px;
  background: #f0f4f8;
  padding: 12px 14px;
  min-width: 0;

  display: grid;
  grid-template-rows: minmax(34px, auto) auto;
  align-content: start;
}

.sm-ratings-stat__label {
  color: #334861;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.sm-ratings-stat__value {
  color: #13233a;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.75rem;
  line-height: 1.05;
}

.sm-ratings-stat__value--up {
  color: #1b653d;
}

.sm-ratings-stat__value--down {
  color: #a2332e;
}

/* =========================================================
   TITLES
   ========================================================= */

.sm-ratings-page__section-title,
.sm-ratings-sidepanel__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

/* =========================================================
   TEAM CELL WITH HELMET
   ========================================================= */

.sm-ratings-team {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
}

.sm-ratings-team:hover .sm-ratings-team__name {
  text-decoration: underline;
}

.sm-ratings-team__name {
  color: #163f78;
}

.sm-ratings-team__helmet {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.sm-ratings-team__helmet svg {
  width: 28px;
  height: 28px;
  display: block;
}

.sm-ratings-team__helmet--dot {
  border-radius: 50%;
  border: 1px solid #c8d3df;
  position: relative;
  overflow: hidden;
}

.sm-ratings-team__helmet--dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--helmet-main, #1f4c8f);
}

.sm-ratings-team__helmet--dot::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  right: 1px;
  bottom: 1px;
  border-radius: 50%;
  background: var(--helmet-accent, #ffffff);
  border: 1px solid rgba(255,255,255,0.5);
}

/* guessed team colors */
.broncos { --helmet-main: #0a2343; --helmet-accent: #fb4f14; }
.texans { --helmet-main: #03202f; --helmet-accent: #a71930; }
.eagles { --helmet-main: #004c54; --helmet-accent: #a5acaf; }
.patriots { --helmet-main: #002244; --helmet-accent: #c60c30; }
.lions { --helmet-main: #0076b6; --helmet-accent: #b0b7bc; }
.jaguars { --helmet-main: #006778; --helmet-accent: #d7a22a; }
.vikings { --helmet-main: #4f2683; --helmet-accent: #ffc62f; }
.niners { --helmet-main: #aa0000; --helmet-accent: #b3995d; }
.ravens { --helmet-main: #241773; --helmet-accent: #9e7c0c; }
.packers { --helmet-main: #203731; --helmet-accent: #ffb612; }
.bears { --helmet-main: #0b162a; --helmet-accent: #c83803; }
.chargers { --helmet-main: #0080c6; --helmet-accent: #ffc20e; }
.chiefs { --helmet-main: #e31837; --helmet-accent: #ffb81c; }

/* =========================================================
   DELTAS
   ========================================================= */

.sm-table__delta--up {
  color: #1b653d;
  font-weight: 700;
}

.sm-table__delta--down {
  color: #a2332e;
  font-weight: 700;
}

.sm-table__delta--flat {
  color: #334861;
  font-weight: 700;
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.sm-ratings-sidepanel {
  position: sticky;
  top: 20px;
}

.sm-ratings-sidepanel__card {
  background: #fff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 18px;
}

.sm-ratings-sidepanel__title {
  margin-bottom: 18px;
}

.sm-ratings-sidepanel__group + .sm-ratings-sidepanel__group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #cfdbe8;
}

.sm-ratings-sidepanel__label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334861;
  font-weight: 800;
}

.sm-ratings-sidepanel__link {
  display: block;
  padding: 4px 0;
  margin: 0 0 10px 0;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
  line-height: 1.4;
}

.sm-ratings-sidepanel__link:hover {
  color: #102f59;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1040px) {
  .container-grid {
    grid-template-columns: 1fr;
  }

  .sm-ratings-sidepanel {
    position: static;
  }
}

@media (max-width: 780px) {
  .container-grid {
    padding: 16px 0px;
  }

  .sm-ratings-hero {
    padding: 16px;
  }

  .sm-ratings-hero__main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sm-ratings-hero__title {
    font-size: 2.2rem;
  }

  .sm-ratings-page__section-title,
  .sm-ratings-sidepanel__title {
    font-size: 1.75rem;
  }

  .sm-ratings-team {
    gap: 10px;
  }
}



/* ===== Source: nfl-standings-page.css ===== */
/* =========================================================
   NFL STANDINGS PAGE
   ========================================================= */

.container-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px 0px;
  align-items: start;
}

.left {
  min-width: 0;
}

.right {
  min-width: 0;
}

.sm-standings-page__section {
  margin-bottom: 26px;
}

/* =========================================================
   HERO
   ========================================================= */

.sm-standings-hero {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.sm-standings-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sm-standings-hero__kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dde8f5;
  color: #2d5b92;
  border: 1px solid #b3c9e4;
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-standings-hero__updated {
  color: #334861;
  font-size: 0.92rem;
}

.sm-standings-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.sm-standings-hero__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2.7rem;
  line-height: 0.98;
  color: #13233a;
}

.sm-standings-hero__summary {
  margin: 10px 0 0 0;
  color: #334861;
  font-size: 1rem;
  line-height: 1.45;
}

.sm-standings-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sm-standings-stat {
  border: 1px solid #d1dbe7;
  border-radius: 12px;
  background: #f0f4f8;
  padding: 12px 14px;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(34px, auto) auto;
  align-content: start;
}

.sm-standings-stat__label {
  color: #334861;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.sm-standings-stat__value {
  color: #13233a;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.75rem;
  line-height: 1.05;
}

/* =========================================================
   TITLES
   ========================================================= */

.sm-standings-page__section-title,
.sm-standings-sidepanel__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

/* =========================================================
   TEAM CELL WITH MINI HELMET
   ========================================================= */

.sm-standings-team {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
}

.sm-standings-team:hover .sm-standings-team__name {
  text-decoration: underline;
}

.sm-standings-team__name {
  color: #163f78;
}

.sm-standings-team__helmet {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.sm-standings-team__helmet--dot {
  border-radius: 50%;
  border: 1px solid #c8d3df;
  position: relative;
  overflow: hidden;
}

.sm-standings-team__helmet--dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--helmet-main, #1f4c8f);
}

.sm-standings-team__helmet--dot::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  right: 1px;
  bottom: 1px;
  border-radius: 50%;
  background: var(--helmet-accent, #ffffff);
  border: 1px solid rgba(255,255,255,0.5);
}

/* guessed colors */
.chiefs { --helmet-main: #e31837; --helmet-accent: #ffb81c; }
.bengals { --helmet-main: #fb4f14; --helmet-accent: #000000; }
.bills { --helmet-main: #00338d; --helmet-accent: #c60c30; }
.texans { --helmet-main: #03202f; --helmet-accent: #a71930; }
.ravens { --helmet-main: #241773; --helmet-accent: #9e7c0c; }
.jaguars { --helmet-main: #006778; --helmet-accent: #d7a22a; }

.eagles { --helmet-main: #004c54; --helmet-accent: #a5acaf; }
.seahawks { --helmet-main: #002244; --helmet-accent: #69be28; }
.lions { --helmet-main: #0076b6; --helmet-accent: #b0b7bc; }
.niners { --helmet-main: #aa0000; --helmet-accent: #b3995d; }
.rams { --helmet-main: #003594; --helmet-accent: #ffd100; }
.vikings { --helmet-main: #4f2683; --helmet-accent: #ffc62f; }

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.sm-standings-sidepanel {
  position: sticky;
  top: 20px;
}

.sm-standings-sidepanel__card {
  background: #fff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 18px;
}

.sm-standings-sidepanel__title {
  margin-bottom: 18px;
}

.sm-standings-sidepanel__group + .sm-standings-sidepanel__group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #cfdbe8;
}

.sm-standings-sidepanel__label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334861;
  font-weight: 800;
}

.sm-standings-sidepanel__link {
  display: block;
  padding: 4px 0;
  margin: 0 0 10px 0;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
  line-height: 1.4;
}

.sm-standings-sidepanel__link:hover {
  color: #102f59;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1040px) {
  .container-grid {
    grid-template-columns: 1fr;
  }

  .sm-standings-sidepanel {
    position: static;
  }
}

@media (max-width: 780px) {
  .container-grid {
    padding: 16px;
  }

  .sm-standings-hero {
    padding: 16px;
  }

  .sm-standings-hero__main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sm-standings-hero__title {
    font-size: 2.2rem;
  }

  .sm-standings-page__section-title,
  .sm-standings-sidepanel__title {
    font-size: 1.75rem;
  }

  .sm-standings-team {
    gap: 10px;
  }
}



/* ===== Source: nfl-season-page.css ===== */
/* =========================================================
   NFL INDIVIDUAL SEASON PAGE
   ========================================================= */

.container-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  max-width: 1520px;
  margin: 0 auto;
  align-items: start;
}

.left {
  min-width: 0;
}

.right {
  min-width: 0;
}

.sm-season-page__section {
  margin-bottom: 26px;
}

/* =========================================================
   HERO
   ========================================================= */

.sm-season-hero {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.sm-season-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sm-season-hero__kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dde8f5;
  color: #2d5b92;
  border: 1px solid #b3c9e4;
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-season-hero__updated {
  color: #334861;
  font-size: 0.92rem;
}

.sm-season-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.sm-season-hero__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2.7rem;
  line-height: 0.98;
  color: #13233a;
}

.sm-season-hero__summary {
  margin: 10px 0 0 0;
  color: #334861;
  font-size: 1rem;
  line-height: 1.45;
}

.sm-season-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sm-season-stat {
  border: 1px solid #d1dbe7;
  border-radius: 12px;
  background: #f0f4f8;
  padding: 12px 14px;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(34px, auto) auto;
  align-content: start;
}

.sm-season-stat__label {
  color: #334861;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.sm-season-stat__value {
  color: #13233a;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.75rem;
  line-height: 1.05;
}

/* =========================================================
   TITLES / CARD
   ========================================================= */

.sm-season-page__section-title,
.sm-season-sidepanel__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

.sm-season-page__card {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}

.sm-season-page__card-header {
  padding: 18px 20px 0 20px;
}

.sm-table__delta--up {
  color: #1b653d;
  font-weight: 700;
}

.sm-table__delta--down {
  color: #a2332e;
  font-weight: 700;
}

.sm-table__delta--flat {
  color: #334861;
  font-weight: 700;
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.sm-season-sidepanel {
  position: sticky;
  top: 20px;
}

.sm-season-sidepanel__card {
  background: #fff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 18px;
}

.sm-season-sidepanel__title {
  margin-bottom: 18px;
}

.sm-season-sidepanel__group + .sm-season-sidepanel__group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #cfdbe8;
}

.sm-season-sidepanel__label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334861;
  font-weight: 800;
}

.sm-season-sidepanel__link {
  display: block;
  padding: 4px 0;
  margin: 0 0 10px 0;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
  line-height: 1.4;
}

.sm-season-sidepanel__link:hover {
  color: #102f59;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1040px) {
  .container-grid {
    grid-template-columns: 1fr;
  }

  .sm-season-sidepanel {
    position: static;
  }
}

@media (max-width: 780px) {
  .container-grid {
    padding: 16px 0px;
  }

  .sm-season-hero {
    padding: 16px;
  }

  .sm-season-hero__main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sm-season-hero__title {
    font-size: 2.2rem;
  }

  .sm-season-page__section-title,
  .sm-season-sidepanel__title {
    font-size: 1.75rem;
  }
}



/* ===== Source: team-page.css ===== */
/* =========================================================
   TEAM PAGE
   ========================================================= */

.container-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px 0px;
  align-items: start;
}

.left {
  min-width: 0;
}

.right {
  min-width: 0;
}

.sm-team-page__section {
  margin-bottom: 26px;
}

/* =========================================================
   CARD SYSTEM
   ========================================================= */

.sm-team-page__card {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}

.sm-team-page__card-header {
  padding: 18px 20px 0 20px;
}

.sm-team-page__card-header--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 0 20px;
}

.sm-team-page__section-title,
.sm-team-sidepanel__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

.sm-team-page__header-link {
  color: #163f78;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sm-team-page__header-link:hover {
  text-decoration: underline;
}

/* =========================================================
   HERO
   ========================================================= */

.sm-team-hero {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.sm-team-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sm-team-hero__kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dde8f5;
  color: #2d5b92;
  border: 1px solid #b3c9e4;
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-team-hero__updated {
  color: #334861;
  font-size: 0.92rem;
}

.sm-team-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.sm-team-hero__identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.sm-team-hero__helmet-wrap {
  flex: 0 0 auto;
}

.sm-team-hero__helmet {
  width: 112px;
  height: auto;
  display: block;
}

.sm-team-hero__copy {
  min-width: 0;
}

.sm-team-hero__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2.7rem;
  line-height: 0.98;
  color: #13233a;
}

.sm-team-hero__summary {
  margin: 10px 0 0 0;
  color: #334861;
  font-size: 1rem;
  line-height: 1.45;
}

.sm-team-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sm-team-stat {
  border: 1px solid #d1dbe7;
  border-radius: 12px;
  background: #f0f4f8;
  padding: 12px 14px;
}

.sm-team-stat__label {
  color: #334861;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 6px;
}

.sm-team-stat__value {
  color: #13233a;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.75rem;
  line-height: 1;
}

.sm-team-stat__value--down {
  color: #a2332e;
}

.sm-team-stat__value--up {
  color: #1b653d;
}

/* =========================================================
   CHART
   ========================================================= */

.sm-team-page__chart-wrap {
  padding: 12px 18px 18px 18px;
}

.sm-team-page__chart-placeholder {
  min-height: 340px;
  border-radius: 10px;
  background: linear-gradient(to bottom, #ffffff, #f0f4f8);
}

/* =========================================================
   RECENT RESULTS
   ========================================================= */

.sm-team-results {
  padding: 16px 18px 18px 18px;
}

.sm-team-results__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm-team-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid transparent;
}

.sm-team-result--win {
  background: #eef8f1;
  border-color: #cce9d6;
}

.sm-team-result--loss {
  background: #fdf1ef;
  border-color: #f1cec9;
}

.sm-team-result__left {
  min-width: 0;
}

.sm-team-result__line1 {
  font-weight: 700;
  color: #163f78;
  margin-bottom: 3px;
}

.sm-team-result__line2 {
  color: #334861;
  font-size: 0.83rem;
  line-height: 1.35;
}

.sm-team-result__score {
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

/* =========================================================
   FAQ
   ========================================================= */

.sm-team-faq {
  padding: 14px 18px 18px 18px;
}

.sm-team-faq__item + .sm-team-faq__item {
  margin-top: 10px;
}

.sm-team-faq__button {
  width: 100%;
  text-align: left;
  border: 1px solid #c8d3df;
  background: #ffffff;
  color: #13233a;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.sm-team-faq__button:hover {
  border-color: #c5d2e2;
}

.sm-team-faq__answer {
  padding: 10px 14px 2px 14px;
  color: #5f7190;
  line-height: 1.5;
}

.sm-team-faq__answer p {
  margin: 0;
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.sm-team-sidepanel {
  position: sticky;
  top: 20px;
}

.sm-team-sidepanel__card {
  background: #fff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 18px;
}

.sm-team-sidepanel__title {
  margin-bottom: 18px;
}

.sm-team-sidepanel__group + .sm-team-sidepanel__group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #cfdbe8;
}

.sm-team-sidepanel__label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334861;
  font-weight: 800;
}

.sm-team-sidepanel__link {
  display: block;
  padding: 4px 0;
  margin: 0 0 10px 0;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
  line-height: 1.4;
}

.sm-team-sidepanel__link:hover {
  color: #102f59;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .container-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    padding: 24px 0px;
  }

  .sm-team-hero__title {
    font-size: 2.6rem;
  }

  .sm-team-hero__helmet {
    width: 108px;
  }
}

@media (max-width: 1040px) {
  .container-grid {
    grid-template-columns: 1fr;
  }

  .sm-team-sidepanel {
    position: static;
  }
}

@media (max-width: 920px) {
  .sm-team-hero {
    padding: 18px 20px;
  }

  .sm-team-hero__main {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .sm-team-hero__identity {
    align-items: flex-start;
    gap: 16px;
  }

  .sm-team-hero__helmet {
    width: 96px;
  }

  .sm-team-hero__title {
    font-size: 2.35rem;
  }

  .sm-team-hero__summary {
    max-width: none;
  }

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

@media (max-width: 780px) {
  .container-grid {
    padding: 16px 0px;
  }

  .sm-team-hero {
    padding: 16px;
  }

  .sm-team-hero__identity {
    gap: 14px;
  }

  .sm-team-hero__helmet {
    width: 84px;
  }

  .sm-team-hero__title {
    font-size: 2.1rem;
  }

  .sm-team-hero__summary {
    font-size: 0.98rem;
  }

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

  .sm-team-page__chart-placeholder {
    min-height: 220px;
  }

  .sm-team-page__section-title,
  .sm-team-sidepanel__title {
    font-size: 1.75rem;
  }

  .sm-team-page__card-header--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .sm-team-hero__identity {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    text-align: left;
  }

  .sm-team-hero__helmet {
    width: 72px;
  }

  .sm-team-hero__copy {
    text-align: left;
  }

  .sm-team-hero__title {
    font-size: 1.9rem;
    line-height: 0.98;
  }

  .sm-team-hero__summary {
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
  }

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

  .sm-team-stat__value {
    font-size: 1.5rem;
  }

  .sm-team-page .sm-table-toolbar__actions {
    gap: 8px;
  }
}



/* ===== Source: nfl-team-head-to-head-page.css ===== */
/* =========================================================
   NFL TEAM HEAD TO HEAD PAGE
   ========================================================= */

.container-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px 0px;
  align-items: start;
}

.left {
  min-width: 0;
}

.right {
  min-width: 0;
}

.sm-team-h2h-page__section {
  margin-bottom: 26px;
}

/* =========================================================
   HERO
   ========================================================= */

.sm-team-h2h-hero {
  background: #ffffff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.sm-team-h2h-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sm-team-h2h-hero__kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dde8f5;
  color: #2d5b92;
  border: 1px solid #b3c9e4;
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-team-h2h-hero__updated {
  color: #334861;
  font-size: 0.92rem;
}

.sm-team-h2h-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.sm-team-h2h-hero__identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sm-team-h2h-hero__helmet {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
}

.sm-team-h2h-hero__helmet--dot {
  border-radius: 50%;
  border: 1px solid #c8d3df;
  position: relative;
  overflow: hidden;
}

.sm-team-h2h-hero__helmet--dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--helmet-main, #241773);
}

.sm-team-h2h-hero__helmet--dot::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  right: 4px;
  bottom: 4px;
  border-radius: 50%;
  background: var(--helmet-accent, #9e7c0c);
  border: 1px solid rgba(255,255,255,0.5);
}

.sm-team-h2h-hero__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2.7rem;
  line-height: 0.98;
  color: #13233a;
}

.sm-team-h2h-hero__summary {
  margin: 10px 0 0 0;
  color: #334861;
  font-size: 1rem;
  line-height: 1.45;
}

.sm-team-h2h-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sm-team-h2h-stat {
  border: 1px solid #d1dbe7;
  border-radius: 12px;
  background: #f0f4f8;
  padding: 12px 14px;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(34px, auto) auto;
  align-content: start;
}

.sm-team-h2h-stat__label {
  color: #334861;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.sm-team-h2h-stat__value {
  color: #13233a;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.75rem;
  line-height: 1.05;
}

.sm-team-h2h-stat__value--up {
  color: #1b653d;
}

.sm-team-h2h-stat__value--down {
  color: #a2332e;
}

/* =========================================================
   TITLES
   ========================================================= */

.sm-team-h2h-page__section-title,
.sm-team-h2h-sidepanel__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

/* =========================================================
   OPPONENT LINKS
   ========================================================= */

.sm-team-h2h-opponent {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
}

.sm-team-h2h-opponent:hover .sm-team-h2h-opponent__name {
  text-decoration: underline;
}

.sm-team-h2h-opponent__name {
  color: #163f78;
}

.sm-team-h2h-opponent__helmet {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.sm-team-h2h-opponent__helmet--dot {
  border-radius: 50%;
  border: 1px solid #c8d3df;
  position: relative;
  overflow: hidden;
}

.sm-team-h2h-opponent__helmet--dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--helmet-main, #1f4c8f);
}

.sm-team-h2h-opponent__helmet--dot::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  right: 1px;
  bottom: 1px;
  border-radius: 50%;
  background: var(--helmet-accent, #ffffff);
  border: 1px solid rgba(255,255,255,0.5);
}

/* team colors */
.ravens { --helmet-main: #241773; --helmet-accent: #9e7c0c; }
.steelers { --helmet-main: #101820; --helmet-accent: #ffb612; }
.bengals { --helmet-main: #fb4f14; --helmet-accent: #000000; }
.browns { --helmet-main: #311d00; --helmet-accent: #ff3c00; }
.titans { --helmet-main: #0c2340; --helmet-accent: #4b92db; }
.chiefs { --helmet-main: #e31837; --helmet-accent: #ffb81c; }
.bills { --helmet-main: #00338d; --helmet-accent: #c60c30; }
.patriots { --helmet-main: #002244; --helmet-accent: #c60c30; }
.colts { --helmet-main: #002c5f; --helmet-accent: #a2aaad; }
.dolphins { --helmet-main: #008e97; --helmet-accent: #fc4c02; }

/* =========================================================
   DELTAS
   ========================================================= */

.sm-table__delta--up {
  color: #1b653d;
  font-weight: 700;
}

.sm-table__delta--down {
  color: #a2332e;
  font-weight: 700;
}

.sm-table__delta--flat {
  color: #334861;
  font-weight: 700;
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.sm-team-h2h-sidepanel {
  position: sticky;
  top: 20px;
}

.sm-team-h2h-sidepanel__card {
  background: #fff;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 18px;
}

.sm-team-h2h-sidepanel__title {
  margin-bottom: 18px;
}

.sm-team-h2h-sidepanel__group + .sm-team-h2h-sidepanel__group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #cfdbe8;
}

.sm-team-h2h-sidepanel__label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334861;
  font-weight: 800;
}

.sm-team-h2h-sidepanel__link {
  display: block;
  padding: 4px 0;
  margin: 0 0 10px 0;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
  line-height: 1.4;
}

.sm-team-h2h-sidepanel__link:hover {
  color: #102f59;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1040px) {
  .container-grid {
    grid-template-columns: 1fr;
  }

  .sm-team-h2h-sidepanel {
    position: static;
  }
}

@media (max-width: 780px) {
  .container-grid {
    padding: 16px 0px;
  }

  .sm-team-h2h-hero {
    padding: 16px;
  }

  .sm-team-h2h-hero__main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sm-team-h2h-hero__title {
    font-size: 2.2rem;
  }

  .sm-team-h2h-page__section-title,
  .sm-team-h2h-sidepanel__title {
    font-size: 1.75rem;
  }

  .sm-team-h2h-hero__identity {
    align-items: flex-start;
  }

  .sm-team-h2h-hero__helmet {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }
}



/* ===== Source: season-impact.css ===== */
.sm-season-impact-grid-wrap {
  padding: 16px;
}

.sm-season-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sm-season-impact-card {
  border-radius: 14px;
}

.sm-season-impact-card__body {
  padding: 0 14px 14px 14px;
}

.sm-season-impact-table-wrap {
  margin: 0;
}

.sm-season-impact-table-wrap .sm-table-card {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.sm-season-impact-table {
  min-width: 0;
  table-layout: fixed;
}

.sm-season-impact-table th:first-child,
.sm-season-impact-table td:first-child {
  text-align: left;
  width: 28%;
}

.sm-season-impact-table th:not(:first-child),
.sm-season-impact-table td:not(:first-child) {
  width: 18%;
}

.sm-season-impact-table .sm-table__cell--num {
  text-align: right;
}

.sm-season-impact-table__row--win td {
  background: var(--sm-table-pos-bg);
}

.sm-season-impact-table__row--loss td {
  background: var(--sm-table-neg-bg);
}

.sm-season-impact-table__row--neutral td {
  background: transparent;
}

@media (max-width: 800px) {
  .sm-season-impact-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   FINAL SHARED OVERRIDES
   These come last so repeated page CSS is normalised.
   ========================================================= */

.container-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.sm-sidepanel,
.sm-league-sidepanel,
.sm-season-sidepanel,
.sm-team-sidepanel,
.sm-team-h2h-sidepanel,
.sm-h2h-sidepanel {
  position: sticky;
  top: 160px;
}

.sm-sidepanel__card,
.sm-league-sidepanel__card,
.sm-season-sidepanel__card,
.sm-team-sidepanel__card,
.sm-team-h2h-sidepanel__card,
.sm-h2h-sidepanel__card {
  padding: 18px;
}

.sm-team-page__chart-wrap,
.sm-matchup__chart-wrap {
  padding: 12px 18px 18px 18px;
}

.sm-matchup-grid,
.sm-season-impact-grid {
  gap: 18px;
}

@media (max-width: 800px) {
  .container-grid {
    grid-template-columns: 1fr;
  }

  .sm-matchup-grid,
  .sm-season-impact-grid,
  .sm-matchup__results-grid {
    grid-template-columns: 1fr;
  }

  .sm-team-page__chart-wrap,
  .sm-matchup__chart-wrap,
  .sm-season-impact-grid-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sm-table-wrap:not([data-sm-layout="matchup"]) .sm-table {
    min-width: 580px;
  }
}

@media (max-width: 560px) {
  .sm-table-wrap:not([data-sm-layout="matchup"]) .sm-table {
    min-width: 540px;
  }
}


/* =========================================================
   CLEANUP LAYER V2
   Shared component fixes after merge.
   ========================================================= */

img {
  max-width: 100%;
  height: auto;
}

.sm-table td {
  vertical-align: middle;
}

.sm-table__team-cell {
  min-width: 220px;
}

.sm-playoff-team,
.sm-team-h2h-opponent {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--sm-color-link);
  font-weight: 700;
}

.sm-playoff-team__helmet,
.sm-team-h2h-opponent__helmet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.sm-playoff-team__svg,
.sm-team-h2h-opponent__svg,
.sm-h2h-team__helmet,
.sm-team-hero__helmet,
.sm-team-h2h-hero__helmet {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.sm-playoff-team__name,
.sm-team-h2h-opponent__name {
  display: inline-block;
  line-height: 1.2;
}

.sm-h2h-hero {
  padding: 18px 20px 20px 20px;
  display: grid;
  gap: 20px;
}

.sm-h2h-hero__top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.sm-h2h-hero__meta {
  display: grid;
  gap: 10px;
}

.sm-h2h-hero__summary {
  margin: 0;
  color: var(--sm-color-text-soft);
  font-size: 1rem;
  line-height: 1.45;
}

.sm-h2h-hero__versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.sm-h2h-team {
  display: grid;
  gap: 10px;
  align-items: center;
}

.sm-h2h-team--left {
  justify-items: start;
}

.sm-h2h-team--right {
  justify-items: end;
}

.sm-h2h-team__helmet-link {
  display: inline-flex;
  width: clamp(110px, 20vw, 180px);
  text-decoration: none;
}

.sm-h2h-team__name {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.sm-h2h-hero__center {
  display: grid;
  gap: 8px;
  text-align: center;
  min-width: 180px;
}

.sm-h2h-hero__record-label {
  color: var(--sm-color-text-muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.sm-h2h-hero__record {
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.sm-h2h-hero__center-note {
  color: var(--sm-color-text-soft);
  line-height: 1.35;
}

.sm-h2h-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.sm-h2h-stat__value--up,
.sm-team-h2h-stat__value--up {
  color: #0f6b3f;
}

.sm-h2h-stat__value--down,
.sm-team-h2h-stat__value--down {
  color: #b23a2a;
}

.sm-h2h-meetings {
  padding: 0 16px 16px 16px;
}

.sm-h2h-meetings__list {
  display: grid;
  gap: 12px;
}

.sm-h2h-meeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--sm-color-border-soft);
  border-radius: 12px;
  background: var(--sm-color-surface-soft);
}

.sm-h2h-meeting__body {
  min-width: 0;
}

.sm-h2h-meeting__line1 {
  font-weight: 700;
  line-height: 1.3;
}

.sm-h2h-meeting__line2 {
  margin-top: 4px;
  color: var(--sm-color-text-soft);
  line-height: 1.35;
}

.sm-h2h-meeting__actions {
  flex: 0 0 auto;
}

.sm-season-impact-grid-wrap {
  padding: 16px;
}

.sm-season-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sm-season-impact-card {
  background: var(--sm-color-surface);
  border: 1px solid var(--sm-color-border);
  border-radius: var(--sm-radius-card);
  box-shadow: var(--sm-shadow-card);
  overflow: hidden;
}

.sm-season-impact-card__toolbar {
  border-bottom: 1px solid var(--sm-color-border-soft);
}

.sm-season-impact-card__body {
  padding: 0;
}

.sm-season-impact-table-wrap {
  margin: 0;
}

.sm-season-impact-table-card {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

.sm-season-impact-table {
  min-width: 100%;
  table-layout: auto;
}

.sm-season-impact-table th,
.sm-season-impact-table td {
  white-space: nowrap;
}

.sm-season-impact-table th:first-child,
.sm-season-impact-table td:first-child {
  width: 34%;
  text-align: left;
}

.sm-season-impact-table th:not(:first-child),
.sm-season-impact-table td:not(:first-child) {
  width: 16.5%;
}

.sm-season-impact-table .sm-table__cell--num {
  text-align: right;
}

.sm-season-impact-table__row--win td {
  background: var(--sm-table-pos-bg);
}

.sm-season-impact-table__row--loss td {
  background: var(--sm-table-neg-bg);
}

.sm-season-impact-table__row--neutral td {
  background: transparent;
}

@media (max-width: 980px) {
  .sm-h2h-hero__versus {
    grid-template-columns: 1fr;
  }

  .sm-h2h-team,
  .sm-h2h-team--left,
  .sm-h2h-team--right {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 800px) {
  .sm-h2h-hero {
    padding: 16px;
  }

  .sm-h2h-team__helmet-link {
    width: clamp(88px, 28vw, 130px);
  }

  .sm-h2h-meeting {
    flex-direction: column;
    align-items: flex-start;
  }

  .sm-h2h-meeting__actions {
    width: 100%;
  }

  .sm-season-impact-grid {
    grid-template-columns: 1fr;
  }

  .sm-season-impact-table {
    min-width: 560px;
  }
}


/* =========================================================
   CLEANUP LAYER V3
   Final sizing, heading, and helmet consistency tweaks.
   ========================================================= */

.sm-table th.sm-table__cell--compact-index,
.sm-table td.sm-table__cell--compact-index {
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  padding-left: 10px;
  padding-right: 10px;
}

.sm-table th.sm-table__cell--compact-team,
.sm-table td.sm-table__cell--compact-team {
  width: 220px;
}

.sm-table th.sm-table__cell--compact-2,
.sm-table td.sm-table__cell--compact-2 {
  width: 220px;
}

@media (max-width: 800px) {
  .sm-table th.sm-table__cell--compact-index,
  .sm-table td.sm-table__cell--compact-index {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

.sm-playoff-team {
  gap: 10px;
}

.sm-playoff-team__helmet {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.sm-playoff-team__svg {
  width: 28px;
  height: 28px;
}

.sm-team-hero__helmet-wrap {
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-team-hero__helmet {
  width: 100%;
  max-width: 220px;
  max-height: 150px;
  object-fit: contain;
}

.sm-team-h2h-opponent__helmet {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.sm-team-h2h-opponent__svg {
  width: 24px;
  height: 24px;
}

.sm-h2h-team__helmet-link {
  width: clamp(88px, 15vw, 140px);
}

.sm-h2h-team__helmet {
  width: 100%;
  max-width: 140px;
  max-height: 100px;
}

.sm-h2h-team__helmet--flip {
  transform: scaleX(-1);
  transform-origin: center;
}

.sm-season-impact-card__toolbar,
.sm-season-impact-section__toolbar {
  border-bottom: 0;
}

.sm-season-impact-section__title,
.sm-season-impact-card .sm-table-toolbar__title {
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  color: var(--sm-color-text);
  line-height: 1;
}

.sm-season-impact-section__title {
  margin: 0;
  font-size: 2rem;
}

.sm-season-impact-card .sm-table-toolbar__title {
  margin: 0;
  font-size: 1.55rem;
}

.sm-season-impact-table thead th {
  letter-spacing: 0.06em;
}

.sm-season-impact-grid-wrap {
  padding-top: 8px;
}

@media (max-width: 800px) {
  .sm-team-hero__helmet-wrap {
    width: 150px;
  }

  .sm-team-hero__helmet {
    max-width: 150px;
    max-height: 104px;
  }

  .sm-h2h-team__helmet-link {
    width: 92px;
  }

  .sm-h2h-team__helmet {
    max-width: 92px;
    max-height: 72px;
  }

  .sm-season-impact-section__title {
    font-size: 1.7rem;
  }

  .sm-season-impact-card .sm-table-toolbar__title {
    font-size: 1.3rem;
  }
}


/* =========================================================
   V4 final overrides
   Tighten head-to-head hero to match desired layout
   ========================================================= */

.sm-h2h-hero {
  gap: 18px;
}

.sm-h2h-hero__versus {
  grid-template-columns: 190px minmax(260px, 1fr) 190px;
  align-items: end;
  gap: 20px;
}

.sm-h2h-team {
  gap: 8px;
  align-self: end;
}

.sm-h2h-team--left,
.sm-h2h-team--right {
  justify-items: center;
  text-align: center;
}

.sm-h2h-team__helmet-link {
  width: 118px;
  max-width: 100%;
  justify-content: center;
  align-self: end;
}

.sm-h2h-team__helmet {
  display: block;
  width: 100%;
  height: auto;
}

.sm-h2h-team__name {
  display: inline-block;
  margin-top: 2px;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  line-height: 1;
  font-weight: 400;
  color: var(--sm-color-text);
}

.sm-h2h-hero__center {
  min-width: 0;
  align-self: center;
}

.sm-h2h-hero__record-label {
  font-size: 0.95rem;
}

.sm-h2h-hero__record {
  font-size: clamp(2.7rem, 5vw, 4rem);
}

.sm-h2h-hero__center-note {
  font-size: 0.98rem;
  font-weight: 700;
}

.sm-h2h-hero__stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.sm-h2h-stat {
  min-width: 0;
}

.sm-h2h-stat__value {
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
}

@media (max-width: 1180px) {
  .sm-h2h-hero__versus {
    grid-template-columns: 160px minmax(220px, 1fr) 160px;
  }

  .sm-h2h-team__helmet-link {
    width: 106px;
  }

  .sm-h2h-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .sm-h2h-hero__versus {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 14px;
  }

  .sm-h2h-team__helmet-link {
    width: 96px;
  }

  .sm-h2h-team__name {
    font-size: 1.7rem;
  }

  .sm-h2h-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sm-h2h-team__helmet-link {
    width: 82px;
  }

  .sm-h2h-team__name {
    font-size: 1.45rem;
  }

  .sm-h2h-hero__record {
    font-size: 2.8rem;
  }

  .sm-h2h-hero__stats {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   PLAYOFF CLINCH / LIVE SEEDING SECTION
   ========================================================= */

.sm-playoff-clinch-section {
  margin-bottom: 26px;
}

.sm-playoff-clinch-section__card {
  overflow: hidden;
}

.sm-playoff-clinch-section__title {
  margin: 0;
}

.sm-playoff-clinch-section__meta {
  margin-top: 6px;
}

.sm-playoff-clinch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 18px 18px;
}

.sm-playoff-clinch-column {
  min-width: 0;
}

.sm-playoff-clinch-column__header {
  margin-bottom: 12px;
}

.sm-playoff-clinch-column__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2.5rem;
  line-height: 0.95;
  color: var(--sm-color-text);
}

.sm-playoff-clinch-column__meta {
  margin-top: 4px;
  color: var(--sm-color-text-muted);
  font-size: 0.98rem;
}

.sm-playoff-clinch-column__cards {
  display: grid;
  gap: 14px;
}

.sm-playoff-clinch-card {
  position: relative;
  border: 1px solid var(--sm-color-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.98) 100%);
  box-shadow: var(--sm-shadow-card);
  overflow: hidden;
}

.sm-playoff-clinch-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--sm-team-primary, #163f78);
}

.sm-playoff-clinch-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 16px 18px 16px 22px;
}

.sm-playoff-clinch-card__link:hover .sm-playoff-clinch-card__team {
  text-decoration: underline;
}

.sm-playoff-clinch-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sm-playoff-clinch-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sm-playoff-clinch-card__seed {
  flex: 0 0 auto;
  min-width: 20px;
  color: var(--sm-color-text-muted);
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.9rem;
  line-height: 1;
}

.sm-playoff-clinch-card__helmet {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sm-playoff-clinch-card__svg {
  width: 52px;
  height: 52px;
  display: block;
}

.sm-playoff-clinch-card__team-block {
  min-width: 0;
}

.sm-playoff-clinch-card__team {
  color: var(--sm-color-link);
  font-weight: 800;
  font-size: 1.32rem;
  line-height: 1.1;
}

.sm-playoff-clinch-card__record {
  margin-top: 4px;
  color: var(--sm-color-text-soft);
  font-size: 0.98rem;
}

.sm-playoff-clinch-card__meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.sm-playoff-clinch-card__status {
  color: var(--sm-color-text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: right;
}

.sm-playoff-clinch-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sm-team-primary, #163f78) 18%, #c8d3df);
  background: color-mix(in srgb, var(--sm-team-primary, #163f78) 10%, #ffffff);
  color: var(--sm-color-text);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.sm-playoff-clinch-card__bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--sm-color-border-soft);
}

.sm-playoff-clinch-card__clinch {
  color: var(--sm-color-text);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
}

.sm-playoff-clinch-card__note {
  margin-top: 6px;
  color: var(--sm-color-text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.sm-playoff-clinch-card--clinched {
  background: linear-gradient(180deg, color-mix(in srgb, var(--sm-team-primary, #163f78) 8%, #ffffff) 0%, #ffffff 100%);
}

.sm-playoff-clinch-card--bubble {
  background: linear-gradient(180deg, rgba(255,248,235,0.96) 0%, rgba(255,255,255,0.98) 100%);
}

.sm-playoff-clinch-card--eliminated {
  background: linear-gradient(180deg, rgba(251,245,245,0.98) 0%, #ffffff 100%);
}

@media (max-width: 980px) {
  .sm-playoff-clinch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .sm-playoff-clinch-column__title {
    font-size: 2rem;
  }

  .sm-playoff-clinch-grid {
    padding: 0 14px 14px;
    gap: 14px;
  }

  .sm-playoff-clinch-card__link {
    padding: 14px 14px 14px 18px;
  }

  .sm-playoff-clinch-card__helmet,
  .sm-playoff-clinch-card__svg {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 560px) {
  .sm-playoff-clinch-card__top {
    flex-direction: column;
    align-items: stretch;
  }

  .sm-playoff-clinch-card__meta {
    justify-items: start;
  }

  .sm-playoff-clinch-card__status {
    text-align: left;
  }

  .sm-playoff-clinch-card__team {
    font-size: 1.18rem;
  }

  .sm-playoff-clinch-card__seed {
    font-size: 1.65rem;
  }
}

/* ===== V7 playoff clinch cleanup ===== */
.sm-playoff-clinch-column__cards {
  grid-auto-rows: 1fr;
}

.sm-playoff-clinch-card {
  height: 100%;
}

.sm-playoff-clinch-card__link {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sm-playoff-clinch-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(148px, 32%, 210px);
  align-items: start;
  gap: 16px;
}

.sm-playoff-clinch-card__identity {
  display: grid;
  grid-template-columns: 24px 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sm-playoff-clinch-card__seed {
  min-width: 24px;
  text-align: center;
}

.sm-playoff-clinch-card__helmet {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}

.sm-playoff-clinch-card__svg {
  width: 54px;
  height: 54px;
}

.sm-playoff-clinch-card__team {
  font-size: 1.28rem;
  line-height: 1.02;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sm-playoff-clinch-card__record {
  margin-top: 6px;
}

.sm-playoff-clinch-card__meta {
  min-width: 0;
  width: 100%;
  align-content: start;
  justify-items: end;
}

.sm-playoff-clinch-card__status {
  width: 100%;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sm-playoff-clinch-card__badge {
  max-width: 100%;
}

.sm-playoff-clinch-card__bottom {
  margin-top: auto;
  min-height: 96px;
}

.sm-playoff-clinch-card__clinch {
  line-height: 1.38;
}

.sm-playoff-clinch-card__note {
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .sm-playoff-clinch-card__top {
    grid-template-columns: minmax(0, 1fr) 176px;
    gap: 14px;
  }

  .sm-playoff-clinch-card__identity {
    grid-template-columns: 22px 50px minmax(0, 1fr);
    gap: 12px;
  }

  .sm-playoff-clinch-card__helmet,
  .sm-playoff-clinch-card__svg {
    width: 50px;
    height: 50px;
  }

  .sm-playoff-clinch-card__team {
    font-size: 1.2rem;
  }
}

@media (max-width: 800px) {
  .sm-playoff-clinch-card__top {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .sm-playoff-clinch-card__identity {
    grid-template-columns: 20px 46px minmax(0, 1fr);
    gap: 10px;
  }

  .sm-playoff-clinch-card__helmet,
  .sm-playoff-clinch-card__svg {
    width: 46px;
    height: 46px;
  }

  .sm-playoff-clinch-card__team {
    font-size: 1.12rem;
  }

  .sm-playoff-clinch-card__status {
    font-size: 0.84rem;
  }

  .sm-playoff-clinch-card__bottom {
    min-height: 88px;
  }
}

@media (max-width: 560px) {
  .sm-playoff-clinch-card__top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sm-playoff-clinch-card__meta {
    justify-items: start;
  }

  .sm-playoff-clinch-card__status {
    text-align: left;
  }

  .sm-playoff-clinch-card__badge {
    align-self: flex-start;
  }

  .sm-playoff-clinch-card__bottom {
    min-height: 0;
  }
}


/* ===== V8 playoff clinch medium-screen fix ===== */
.sm-playoff-clinch-section__toolbar {
  border-bottom: none;
  padding-bottom: 8px;
}

.sm-playoff-clinch-section__meta {
  margin-bottom: 0;
}

.sm-playoff-clinch-card__team {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.sm-playoff-clinch-card__status {
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 1100px) {
  .sm-playoff-clinch-grid {
    grid-template-columns: 1fr;
  }

  .sm-playoff-clinch-column__cards {
    grid-auto-rows: auto;
  }

  .sm-playoff-clinch-card {
    height: auto;
  }

  .sm-playoff-clinch-card__top {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 16px;
  }

  .sm-playoff-clinch-card__identity {
    grid-template-columns: 24px 52px minmax(0, 1fr);
  }

  .sm-playoff-clinch-card__team {
    font-size: 1.22rem;
  }

  .sm-playoff-clinch-card__bottom {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .sm-playoff-clinch-grid {
    padding: 0 14px 14px;
    gap: 14px;
  }

  .sm-playoff-clinch-card__top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sm-playoff-clinch-card__meta {
    justify-items: start;
    width: 100%;
  }

  .sm-playoff-clinch-card__status {
    width: 100%;
    text-align: left;
  }

  .sm-playoff-clinch-card__badge {
    align-self: flex-start;
    max-width: none;
  }
}


/* =========================================================
   V9 CLEAN MEDIUM BREAKPOINT SYSTEM
   Switch to compact layouts earlier so medium screens behave
   more like the stable small/mobile layouts instead of waiting
   until content is already cramped.
   ========================================================= */

:root {
  --sm-breakpoint-medium-wide: 1100px;
  --sm-breakpoint-medium: 900px;
}

/* remove divider under playoff clinch heading */
.sm-playoff-clinch-section .sm-table-toolbar,
.sm-playoff-clinch-section__card > .sm-table-toolbar,
.sm-playoff-clinch-section__card > .sm-season-impact-section__toolbar,
.sm-playoff-clinch-section__card > .sm-playoff-clinch-section__toolbar {
  border-bottom: none;
}

@media (max-width: 1100px) {
  /* shared compact spacing */
  .container-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
  }

  .sm-section-title,
  .sm-league-page__section-title,
  .sm-league-sidepanel__title,
  .sm-teams-page__section-title,
  .sm-ratings-page__section-title,
  .sm-standings-page__section-title,
  .sm-playoff-page__section-title,
  .sm-seasons-page__section-title,
  .sm-season-page__section-title,
  .sm-team-page__section-title,
  .sm-team-sidepanel__title,
  .sm-team-h2h-page__section-title,
  .sm-team-h2h-sidepanel__title,
  .sm-h2h-page__section-title,
  .sm-sidepanel__title,
  .sm-matchup__card-title,
  .sm-table-toolbar__title,
  .sm-matchup__faq-title,
  .sm-season-impact-section__title,
  .sm-season-impact-card .sm-table-toolbar__title {
    font-size: 2rem;
    line-height: 1.02;
    font-weight: bold;
  }

  .sm-team-hero,
  .sm-team-h2h-hero,
  .sm-h2h-hero,
  .sm-matchup__card,
  .sm-playoff-clinch-section__card,
  .sm-h2h-page__card,
  .sm-team-h2h-sidepanel__card,
  .sm-h2h-sidepanel__card {
    border-radius: 14px;
  }

  /* generic table compacting earlier */
  .sm-table-wrap {
    --sm-table-pad-x: 10px;
    --sm-table-pad-y: 8px;
    --sm-table-body-size: 0.88rem;
    --sm-table-head-size: 0.73rem;
    --sm-table-toolbar-pad: 12px 14px;
  }

  .sm-table__link-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .sm-table th.sm-table__cell--compact-index,
  .sm-table td.sm-table__cell--compact-index {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
  }

  .sm-table th.sm-table__cell--compact-team,
  .sm-table td.sm-table__cell--compact-team {
    width: 160px;
    min-width: 160px;
  }

  .sm-table th.sm-table__cell--compact-2,
  .sm-table td.sm-table__cell--compact-2 {
    width: 160px;
    min-width: 160px;
  }

  /* matchup prediction hero */
  .sm-hero-card__title {
    font-size: 2rem;
    line-height: 0.98;
  }

  .sm-hero-card__summary {
    font-size: 0.98rem;
  }

  .sm-hero-card__teams {
    grid-template-columns: 110px minmax(0, 1fr) 110px;
    gap: 12px;
  }

  .sm-hero-card__pct {
    font-size: 2.1rem;
  }

  .sm-hero-card__bar-wrap {
    width: 100%;
  }

  .sm-hero-card__prob-label {
    font-size: 0.72rem;
  }

  .sm-hero-card__middle-meta {
    font-size: 0.92rem;
  }

  /* charts / results / season impact */
  .sm-matchup__chart-wrap {
    padding: 10px 12px 12px;
  }

  .sm-matchup__impact-chart {
    min-height: 220px;
  }

  .sm-matchup__results-grid,
  .sm-season-impact-grid {
    grid-template-columns: 1fr;
  }

  .sm-matchup__results-team {
    font-size: 1.2rem;
  }

  .sm-matchup__result-score {
    font-size: 1.5rem;
  }

  /* team hero compact earlier */
  .sm-team-hero {
    padding: 16px 18px;
  }

  .sm-team-hero__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .sm-team-hero__identity {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .sm-team-hero__helmet,
  .sm-team-hero__svg {
    width: 118px;
    height: 118px;
  }

  .sm-team-hero__title {
    font-size: 2.2rem;
    line-height: 0.95;
  }

  .sm-team-hero__summary {
    font-size: 0.98rem;
    max-width: none;
  }

  .sm-team-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* h2h page compact earlier */
  .sm-h2h-hero {
    padding: 18px 20px 20px;
  }

  .sm-h2h-hero__versus {
    gap: 16px;
  }

  .sm-h2h-team,
  .sm-h2h-team--left,
  .sm-h2h-team--right {
    flex: 0 1 160px;
  }

  .sm-h2h-team__helmet,
  .sm-team-h2h-opponent__svg,
  .sm-team-h2h-opponent__helmet,
  .sm-team-h2h-hero__helmet {
    width: 84px;
    height: 84px;
  }

  .sm-h2h-team__name {
    font-size: 1rem;
  }

  .sm-h2h-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* playoff clinch: switch to safe stacked layout earlier */
  .sm-playoff-clinch-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px 16px;
  }

  .sm-playoff-clinch-column__title {
    font-size: 2.1rem;
  }

  .sm-playoff-clinch-column__cards {
    gap: 12px;
  }

  .sm-playoff-clinch-card__link {
    padding: 14px 14px 14px 18px;
  }

  .sm-playoff-clinch-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .sm-playoff-clinch-card__identity {
    grid-template-columns: 24px 46px minmax(0, 1fr);
    display: grid;
    align-items: center;
    gap: 12px;
  }

  .sm-playoff-clinch-card__helmet,
  .sm-playoff-clinch-card__svg {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .sm-playoff-clinch-card__team {
    font-size: 1.12rem;
    line-height: 1.08;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .sm-playoff-clinch-card__record {
    font-size: 0.92rem;
  }

  .sm-playoff-clinch-card__meta {
    justify-items: start;
    gap: 6px;
  }

  .sm-playoff-clinch-card__status {
    text-align: left;
    font-size: 0.95rem;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .sm-playoff-clinch-card__badge {
    font-size: 0.8rem;
  }

  .sm-playoff-clinch-card__bottom {
    margin-top: 10px;
    padding-top: 10px;
  }

  .sm-playoff-clinch-card__clinch {
    font-size: 0.98rem;
  }

  .sm-playoff-clinch-card__note {
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .sm-section-title,
  .sm-league-page__section-title,
  .sm-league-sidepanel__title,
  .sm-teams-page__section-title,
  .sm-ratings-page__section-title,
  .sm-standings-page__section-title,
  .sm-playoff-page__section-title,
  .sm-seasons-page__section-title,
  .sm-season-page__section-title,
  .sm-team-page__section-title,
  .sm-team-sidepanel__title,
  .sm-team-h2h-page__section-title,
  .sm-team-h2h-sidepanel__title,
  .sm-h2h-page__section-title,
  .sm-sidepanel__title,
  .sm-matchup__card-title,
  .sm-table-toolbar__title,
  .sm-matchup__faq-title,
  .sm-season-impact-section__title,
  .sm-season-impact-card .sm-table-toolbar__title {
    font-size: 1.55rem;
  }

  .sm-team-hero__identity {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
  }

  .sm-team-hero__helmet,
  .sm-team-hero__svg {
    width: 92px;
    height: 92px;
  }

  .sm-team-hero__title {
    font-size: 1.95rem;
  }

  .sm-team-hero__stats,
  .sm-h2h-hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .sm-hero-card__teams {
    grid-template-columns: 92px minmax(0, 1fr) 92px;
    gap: 10px;
  }

  .sm-hero-card__pct {
    font-size: 1.8rem;
  }

  .sm-h2h-hero__versus {
    grid-template-columns: 1fr;
  }

  .sm-h2h-team,
  .sm-h2h-team--left,
  .sm-h2h-team--right {
    flex: 0 1 auto;
  }

  .sm-h2h-team__helmet,
  .sm-team-h2h-opponent__svg,
  .sm-team-h2h-opponent__helmet,
  .sm-team-h2h-hero__helmet {
    width: 72px;
    height: 72px;
  }

  .sm-playoff-clinch-column__title {
    font-size: 1.85rem;
  }
}

@media (max-width: 700px) {
  .sm-team-hero__identity {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
  }

  .sm-team-hero__helmet,
  .sm-team-hero__svg {
    width: 80px;
    height: 80px;
  }

  .sm-team-hero__title {
    font-size: 1.7rem;
  }

  .sm-team-hero__stats,
  .sm-h2h-hero__stats {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   V10 mobile hero fixes
   ========================================================= */

/* Team hero: reduce helmet/title sooner and keep clean side-by-side layout */
@media (max-width: 560px) {
  .sm-team-hero {
    padding: 14px 16px;
  }

  .sm-team-hero__top {
    margin-bottom: 12px;
  }

  .sm-team-hero__main {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sm-team-hero__identity {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .sm-team-hero__helmet-wrap {
    width: 72px;
  }

  .sm-team-hero__helmet,
  .sm-team-hero__svg {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
  }

  .sm-team-hero__title {
    font-size: 1.45rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sm-team-hero__summary {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .sm-team-hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .sm-team-hero__identity {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .sm-team-hero__helmet-wrap {
    width: 64px;
  }

  .sm-team-hero__helmet,
  .sm-team-hero__svg {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
  }

  .sm-team-hero__title {
    font-size: 1.3rem;
  }

  .sm-team-hero__summary {
    font-size: 0.88rem;
  }
}

/* Head-to-head hero: keep title on one line on phones and tighten spacing */
@media (max-width: 700px) {
  .sm-h2h-hero__title {
    font-size: 1.9rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sm-h2h-hero__summary {
    font-size: 0.92rem;
    line-height: 1.4;
  }
}

@media (max-width: 560px) {
  .sm-h2h-hero {
    padding: 14px 16px 16px;
  }

  .sm-h2h-hero__versus {
    gap: 10px;
  }

  .sm-h2h-team__helmet-link {
    width: 72px;
  }

  .sm-h2h-team__helmet {
    max-width: 72px;
    max-height: 56px;
  }

  .sm-h2h-team__name {
    font-size: 1.2rem;
    line-height: 1;
  }

  .sm-h2h-hero__record {
    font-size: 2.4rem;
  }
}



/* =========================
   v11: H2H stat card sizing/alignment
   ========================= */
.sm-h2h-stats .sm-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 88px;
}

.sm-h2h-stats .sm-stat-card__label,
.sm-h2h-stats .sm-card-label,
.sm-h2h-stats .sm-mini-stat__label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted, #7689a6);
}

.sm-h2h-stats .sm-stat-card__value,
.sm-h2h-stats .sm-card-value,
.sm-h2h-stats .sm-mini-stat__value {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    margin-top: auto;
}

/* long text values like team name + number should stay on one line and sit lower */
.sm-h2h-stats .sm-stat-card__value--text,
.sm-h2h-stats .sm-card-value--text,
.sm-h2h-stats .sm-mini-stat__value--text {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

/* specific H2H value text clean-up */
.sm-h2h-stats .sm-stat-card--text .sm-stat-card__value,
.sm-h2h-stats .sm-stat-card--winner .sm-stat-card__value,
.sm-h2h-stats .sm-stat-card--woe .sm-stat-card__value {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

/* fallback for generic last child value markup inside H2H cards */
.sm-h2h-stats .sm-stat-card > :last-child {
    margin-top: auto;
    white-space: nowrap;
}



/* =========================
   v12: Head-to-head stat card text values
   ========================= */
.sm-h2h-hero__stats {
    align-items: stretch;
}

.sm-h2h-stat {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 128px;
}

.sm-h2h-stat__label {
    margin-bottom: 8px;
}

.sm-h2h-stat__value {
    margin-top: auto;
    line-height: 1.05;
}

.sm-h2h-stat--text .sm-h2h-stat__value,
.sm-h2h-stat__value--text {
    font-size: 16px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
    letter-spacing: 0;
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 700px) {
    .sm-h2h-stat--text .sm-h2h-stat__value,
    .sm-h2h-stat__value--text {
        font-size: 15px !important;
    }
}



/* =========================
   v13: H2H stat values smaller and single-line
   ========================= */
.sm-h2h-stat {
    min-height: 118px;
}

.sm-h2h-stat__value {
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: auto;
    align-self: flex-start;
    letter-spacing: 0;
}

/* Slightly smaller for long numeric/text values */
.sm-h2h-stat--text .sm-h2h-stat__value,
.sm-h2h-stat__value--text {
    font-size: 15px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Keep the central all-time record unaffected */
.sm-h2h-hero__record .sm-h2h-hero__record-value,
.sm-h2h-record__value {
    font-size: inherit !important;
    font-weight: inherit !important;
    white-space: normal !important;
}

@media (max-width: 700px) {
    .sm-h2h-stat__value {
        font-size: 16px !important;
    }

    .sm-h2h-stat--text .sm-h2h-stat__value,
    .sm-h2h-stat__value--text {
        font-size: 14px !important;
    }
}



/* =========================
   v14: Keep H2H hero left/center/right on mobile
   ========================= */

/* Desktop and base: explicit 3-column layout */
.sm-h2h-hero__top,
.sm-h2h-hero-main,
.sm-h2h-hero__main {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(180px, 1.5fr) minmax(90px, 1fr);
    align-items: end;
    gap: 16px;
}

/* Team blocks left/right */
.sm-h2h-hero__team,
.sm-h2h-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    min-width: 0;
}

.sm-h2h-hero__team--left,
.sm-h2h-team--left {
    justify-self: start;
}

.sm-h2h-hero__team--right,
.sm-h2h-team--right {
    justify-self: end;
}

/* Center record block */
.sm-h2h-hero__record,
.sm-h2h-record {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    min-width: 0;
    text-align: center;
}

/* Constrain helmets */
.sm-h2h-hero__team img,
.sm-h2h-hero__team svg,
.sm-h2h-team img,
.sm-h2h-team svg {
    width: clamp(72px, 10vw, 108px);
    max-width: 108px;
    height: auto;
    flex: 0 0 auto;
}

/* Team names under helmets */
.sm-h2h-hero__team-name,
.sm-h2h-team__name {
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
}

/* Keep title on one line when possible */
.sm-h2h-hero h1,
.sm-h2h-hero .sm-page-title,
.sm-h2h-hero__title {
    white-space: nowrap;
}

/* Mobile: do NOT stack the three hero columns */
@media (max-width: 700px) {
    .sm-h2h-hero__top,
    .sm-h2h-hero-main,
    .sm-h2h-hero__main {
        grid-template-columns: minmax(72px, 90px) 1fr minmax(72px, 90px) !important;
        gap: 10px !important;
        align-items: end !important;
    }

    .sm-h2h-hero__team img,
    .sm-h2h-hero__team svg,
    .sm-h2h-team img,
    .sm-h2h-team svg {
        width: 72px !important;
        max-width: 72px !important;
    }

    .sm-h2h-hero__team-name,
    .sm-h2h-team__name {
        font-size: 0.9rem !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }

    .sm-h2h-hero__record-label,
    .sm-h2h-record__label {
        font-size: 0.72rem !important;
    }

    .sm-h2h-hero__record-value,
    .sm-h2h-record__value {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 0.95 !important;
        white-space: nowrap !important;
    }

    .sm-h2h-hero__record-note,
    .sm-h2h-record__note {
        font-size: 0.95rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    /* Cancel earlier mobile stacking rules if present */
    .sm-h2h-hero__team,
    .sm-h2h-team,
    .sm-h2h-hero__record,
    .sm-h2h-record {
        order: initial !important;
    }
}

/* Very small phones: still left/center/right, just tighter */
@media (max-width: 430px) {
    .sm-h2h-hero__top,
    .sm-h2h-hero-main,
    .sm-h2h-hero__main {
        grid-template-columns: 76px 1fr 76px !important;
        gap: 8px !important;
    }

    .sm-h2h-hero__team img,
    .sm-h2h-hero__team svg,
    .sm-h2h-team img,
    .sm-h2h-team svg {
        width: 64px !important;
        max-width: 64px !important;
    }

    .sm-h2h-hero__team-name,
    .sm-h2h-team__name {
        font-size: 0.82rem !important;
    }

    .sm-h2h-hero__record-note,
    .sm-h2h-record__note {
        font-size: 0.82rem !important;
    }
}



/* =========================
   v15: H2H hero mirrors matchup layout on mobile
   Keep team SVGs left/right, facing inward, with centered record block.
   ========================= */

/* Base H2H hero row */
.sm-h2h-hero__top,
.sm-h2h-hero-main,
.sm-h2h-hero__main {
    display: grid !important;
    grid-template-columns: minmax(96px, 140px) 1fr minmax(96px, 140px) !important;
    align-items: center !important;
    gap: 18px !important;
}

/* Side team blocks match matchup-style layout */
.sm-h2h-hero__team,
.sm-h2h-team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
}

.sm-h2h-hero__team--left,
.sm-h2h-team--left {
    justify-self: start !important;
}

.sm-h2h-hero__team--right,
.sm-h2h-team--right {
    justify-self: end !important;
}

/* Center block */
.sm-h2h-hero__record,
.sm-h2h-record {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    text-align: center !important;
}

/* Helmet sizing */
.sm-h2h-hero__team img,
.sm-h2h-hero__team svg,
.sm-h2h-team img,
.sm-h2h-team svg {
    width: 92px !important;
    max-width: 92px !important;
    height: auto !important;
    display: block !important;
    flex: 0 0 auto !important;
}

/* Make right-side SVG face inward like matchup */
.sm-h2h-hero__team--right img,
.sm-h2h-hero__team--right svg,
.sm-h2h-team--right img,
.sm-h2h-team--right svg {
    transform: scaleX(-1) !important;
    transform-origin: center center !important;
}

/* Team names directly under helmets */
.sm-h2h-hero__team-name,
.sm-h2h-team__name {
    margin-top: 8px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* Matchup-like compact mobile layout */
@media (max-width: 700px) {
    .sm-h2h-hero__top,
    .sm-h2h-hero-main,
    .sm-h2h-hero__main {
        grid-template-columns: 86px 1fr 86px !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .sm-h2h-hero__team,
    .sm-h2h-team {
        justify-content: start !important;
    }

    .sm-h2h-hero__team img,
    .sm-h2h-hero__team svg,
    .sm-h2h-team img,
    .sm-h2h-team svg {
        width: 64px !important;
        max-width: 64px !important;
    }

    .sm-h2h-hero__team-name,
    .sm-h2h-team__name {
        font-size: 0.88rem !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }

    .sm-h2h-hero__record-label,
    .sm-h2h-record__label {
        font-size: 0.72rem !important;
        line-height: 1.05 !important;
        margin-bottom: 4px !important;
    }

    .sm-h2h-hero__record-value,
    .sm-h2h-record__value {
        font-size: clamp(1.9rem, 8vw, 3rem) !important;
        line-height: 0.95 !important;
        white-space: nowrap !important;
        margin-bottom: 4px !important;
    }

    .sm-h2h-hero__record-note,
    .sm-h2h-record__note {
        font-size: 0.92rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }
}

/* Very small phones: still use same matchup-like structure */
@media (max-width: 430px) {
    .sm-h2h-hero__top,
    .sm-h2h-hero-main,
    .sm-h2h-hero__main {
        grid-template-columns: 72px 1fr 72px !important;
        gap: 8px !important;
    }

    .sm-h2h-hero__team img,
    .sm-h2h-hero__team svg,
    .sm-h2h-team img,
    .sm-h2h-team svg {
        width: 56px !important;
        max-width: 56px !important;
    }

    .sm-h2h-hero__team-name,
    .sm-h2h-team__name {
        font-size: 0.8rem !important;
    }

    .sm-h2h-hero__record-note,
    .sm-h2h-record__note {
        font-size: 0.82rem !important;
    }
}



/* v16: real H2H mobile row fix */
.sm-h2h-hero__versus{display:grid!important;grid-template-columns:minmax(84px,120px) minmax(0,1fr) minmax(84px,120px)!important;align-items:center!important;gap:14px!important}
.sm-h2h-team{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-width:0!important}
.sm-h2h-team--left{justify-self:start!important}
.sm-h2h-team--right{justify-self:end!important}
.sm-h2h-team__helmet-link{width:92px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important}
.sm-h2h-team__helmet{width:92px!important;max-width:92px!important;height:auto!important;display:block!important}
.sm-h2h-team__helmet--flip{transform:scaleX(-1)!important;transform-origin:center center!important}
.sm-h2h-team__name{margin-top:4px!important;text-align:center!important;white-space:nowrap!important;font-size:.95rem!important;line-height:1.05!important}
.sm-h2h-hero__center{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;text-align:center!important}
.sm-h2h-hero__record-label{font-size:.78rem!important;line-height:1.05!important;margin:0!important}
.sm-h2h-hero__record{font-size:clamp(2.05rem,7vw,3rem)!important;line-height:.95!important;white-space:nowrap!important;margin:0!important}
.sm-h2h-hero__center-note{font-size:.95rem!important;line-height:1.15!important;white-space:nowrap!important;margin:0!important}
@media (max-width:980px){.sm-h2h-hero__versus{grid-template-columns:92px minmax(0,1fr) 92px!important;align-items:center!important;gap:10px!important}.sm-h2h-team__helmet-link{width:72px!important}.sm-h2h-team__helmet{width:72px!important;max-width:72px!important}.sm-h2h-team__name{font-size:.9rem!important}.sm-h2h-hero__record{font-size:clamp(1.9rem,9vw,2.8rem)!important}.sm-h2h-hero__center-note{font-size:.88rem!important}}
@media (max-width:640px){.sm-h2h-hero__versus{grid-template-columns:76px minmax(0,1fr) 76px!important;gap:8px!important}.sm-h2h-team__helmet-link{width:60px!important}.sm-h2h-team__helmet{width:60px!important;max-width:60px!important}.sm-h2h-team__name{font-size:.82rem!important}.sm-h2h-hero__record-label{font-size:.72rem!important}.sm-h2h-hero__record{font-size:clamp(1.8rem,10vw,2.5rem)!important}.sm-h2h-hero__center-note{font-size:.8rem!important}}
@media (max-width:430px){.sm-h2h-hero__versus{grid-template-columns:68px minmax(0,1fr) 68px!important;gap:6px!important}.sm-h2h-team__helmet-link{width:54px!important}.sm-h2h-team__helmet{width:54px!important;max-width:54px!important}.sm-h2h-team__name{font-size:.78rem!important}.sm-h2h-hero__record-label{font-size:.68rem!important}.sm-h2h-hero__record{font-size:1.7rem!important}.sm-h2h-hero__center-note{font-size:.76rem!important}}


/* v17: tighter mobile tables */
@media (max-width: 820px) {
  .sm-table th,
  .sm-table td,
  .sharpmodels-table th,
  .sharpmodels-table td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .sm-table th,
  .sharpmodels-table th {
    font-size: 11px !important;
    line-height: 1.05 !important;
  }

  .sm-table td,
  .sharpmodels-table td {
    line-height: 1.15 !important;
    min-height: 0 !important;
  }

  .sm-table tr,
  .sharpmodels-table tr {
    height: auto !important;
    min-height: 0 !important;
  }

  .team-cell,
  .opponent-cell,
  .sm-team-cell,
  .sm-opponent-cell,
  .sm-table__team-cell,
  .sm-table__opponent-cell {
    gap: 8px !important;
    align-items: center !important;
    min-height: 0 !important;
  }

  .team-cell img,
  .team-cell svg,
  .opponent-cell img,
  .opponent-cell svg,
  .sm-team-cell img,
  .sm-team-cell svg,
  .sm-opponent-cell img,
  .sm-opponent-cell svg,
  .sm-table__team-cell img,
  .sm-table__team-cell svg,
  .sm-table__opponent-cell img,
  .sm-table__opponent-cell svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    flex: 0 0 22px !important;
  }

  .team-name,
  .opponent-name,
  .sm-team-name,
  .sm-opponent-name,
  .sm-table__team-name,
  .sm-table__opponent-name {
    line-height: 1.08 !important;
  }

  .sm-h2h-opponent-table th,
  .sm-h2h-opponent-table td,
  .sm-h2h-by-opponent th,
  .sm-h2h-by-opponent td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .sm-h2h-opponent-table tr,
  .sm-h2h-by-opponent tr {
    height: auto !important;
  }

  .sm-table-scroll,
  .sm-table-wrap,
  .sm-table-wrapper {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 640px) {
  .sm-table th,
  .sm-table td,
  .sharpmodels-table th,
  .sharpmodels-table td {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  .team-cell img,
  .team-cell svg,
  .opponent-cell img,
  .opponent-cell svg,
  .sm-team-cell img,
  .sm-team-cell svg,
  .sm-opponent-cell img,
  .sm-opponent-cell svg,
  .sm-table__team-cell img,
  .sm-table__team-cell svg,
  .sm-table__opponent-cell img,
  .sm-table__opponent-cell svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    flex: 0 0 20px !important;
  }

  .team-name,
  .opponent-name,
  .sm-team-name,
  .sm-opponent-name,
  .sm-table__team-name,
  .sm-table__opponent-name {
    font-size: 0.96rem !important;
    line-height: 1.06 !important;
  }

  .sm-h2h-opponent-table th,
  .sm-h2h-by-opponent th {
    white-space: nowrap !important;
  }
}



/* =========================
   v18: one standard table system
   Apply same icon sizing, spacing and row density across standard tables.
   ========================= */

/* Standard table rhythm */
.sm-table th,
.sm-table td,
.sharpmodels-table th,
.sharpmodels-table td {
  vertical-align: middle !important;
}

.sm-table td,
.sharpmodels-table td {
  line-height: 1.12 !important;
}

/* Shared team/opponent cell layout */
.team-cell,
.opponent-cell,
.sm-team-cell,
.sm-opponent-cell,
.sm-table__team-cell,
.sm-table__opponent-cell,
.sm-table td:first-child,
.sharpmodels-table td:first-child {
  vertical-align: middle !important;
}

/* Where the generator uses explicit wrappers */
.team-cell,
.opponent-cell,
.sm-team-cell,
.sm-opponent-cell,
.sm-table__team-cell,
.sm-table__opponent-cell {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
}

/* Shared SVG/image sizing for all standard tables */
.team-cell img,
.team-cell svg,
.opponent-cell img,
.opponent-cell svg,
.sm-team-cell img,
.sm-team-cell svg,
.sm-opponent-cell img,
.sm-opponent-cell svg,
.sm-table__team-cell img,
.sm-table__team-cell svg,
.sm-table__opponent-cell img,
.sm-table__opponent-cell svg,
.sm-table td:first-child img,
.sm-table td:first-child svg,
.sharpmodels-table td:first-child img,
.sharpmodels-table td:first-child svg {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  flex: 0 0 28px !important;
  display: inline-block !important;
}

/* Shared text sizing */
.team-name,
.opponent-name,
.sm-team-name,
.sm-opponent-name,
.sm-table__team-name,
.sm-table__opponent-name {
  line-height: 1.08 !important;
}

/* Playoff chances was ending up with tiny helmets */
.sm-playoff-chances-table td:first-child img,
.sm-playoff-chances-table td:first-child svg,
.sm-playoff-chance-table td:first-child img,
.sm-playoff-chance-table td:first-child svg {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  flex: 0 0 28px !important;
}

/* Head-to-head by opponent specific clean-up */
.sm-h2h-opponent-table tr,
.sm-h2h-by-opponent tr {
  height: auto !important;
}

.sm-h2h-opponent-table td,
.sm-h2h-opponent-table th,
.sm-h2h-by-opponent td,
.sm-h2h-by-opponent th {
  vertical-align: middle !important;
}

/* Compact mode earlier */
@media (max-width: 980px) {
  .sm-table th,
  .sm-table td,
  .sharpmodels-table th,
  .sharpmodels-table td {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }

  .team-cell,
  .opponent-cell,
  .sm-team-cell,
  .sm-opponent-cell,
  .sm-table__team-cell,
  .sm-table__opponent-cell {
    gap: 9px !important;
  }

  .team-cell img,
  .team-cell svg,
  .opponent-cell img,
  .opponent-cell svg,
  .sm-team-cell img,
  .sm-team-cell svg,
  .sm-opponent-cell img,
  .sm-opponent-cell svg,
  .sm-table__team-cell img,
  .sm-table__team-cell svg,
  .sm-table__opponent-cell img,
  .sm-table__opponent-cell svg,
  .sm-table td:first-child img,
  .sm-table td:first-child svg,
  .sharpmodels-table td:first-child img,
  .sharpmodels-table td:first-child svg,
  .sm-playoff-chances-table td:first-child img,
  .sm-playoff-chances-table td:first-child svg,
  .sm-playoff-chance-table td:first-child img,
  .sm-playoff-chance-table td:first-child svg {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    flex: 0 0 26px !important;
  }
}

@media (max-width: 820px) {
  .sm-table th,
  .sm-table td,
  .sharpmodels-table th,
  .sharpmodels-table td {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  .sm-table th,
  .sharpmodels-table th {
    font-size: 11px !important;
    line-height: 1.02 !important;
  }

  .team-cell,
  .opponent-cell,
  .sm-team-cell,
  .sm-opponent-cell,
  .sm-table__team-cell,
  .sm-table__opponent-cell {
    gap: 8px !important;
  }

  .team-cell img,
  .team-cell svg,
  .opponent-cell img,
  .opponent-cell svg,
  .sm-team-cell img,
  .sm-team-cell svg,
  .sm-opponent-cell img,
  .sm-opponent-cell svg,
  .sm-table__team-cell img,
  .sm-table__team-cell svg,
  .sm-table__opponent-cell img,
  .sm-table__opponent-cell svg,
  .sm-table td:first-child img,
  .sm-table td:first-child svg,
  .sharpmodels-table td:first-child img,
  .sharpmodels-table td:first-child svg,
  .sm-playoff-chances-table td:first-child img,
  .sm-playoff-chances-table td:first-child svg,
  .sm-playoff-chance-table td:first-child img,
  .sm-playoff-chance-table td:first-child svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    flex: 0 0 24px !important;
  }

  .team-name,
  .opponent-name,
  .sm-team-name,
  .sm-opponent-name,
  .sm-table__team-name,
  .sm-table__opponent-name {
    font-size: 0.98rem !important;
    line-height: 1.05 !important;
  }

  /* H2H by opponent rows should not look stretched */
  .sm-h2h-opponent-table td,
  .sm-h2h-opponent-table th,
  .sm-h2h-by-opponent td,
  .sm-h2h-by-opponent th {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }
}

@media (max-width: 640px) {
  .sm-table th,
  .sm-table td,
  .sharpmodels-table th,
  .sharpmodels-table td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .team-cell img,
  .team-cell svg,
  .opponent-cell img,
  .opponent-cell svg,
  .sm-team-cell img,
  .sm-team-cell svg,
  .sm-opponent-cell img,
  .sm-opponent-cell svg,
  .sm-table__team-cell img,
  .sm-table__team-cell svg,
  .sm-table__opponent-cell img,
  .sm-table__opponent-cell svg,
  .sm-table td:first-child img,
  .sm-table td:first-child svg,
  .sharpmodels-table td:first-child img,
  .sharpmodels-table td:first-child svg,
  .sm-playoff-chances-table td:first-child img,
  .sm-playoff-chances-table td:first-child svg,
  .sm-playoff-chance-table td:first-child img,
  .sm-playoff-chance-table td:first-child svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    flex: 0 0 22px !important;
  }

  .team-name,
  .opponent-name,
  .sm-team-name,
  .sm-opponent-name,
  .sm-table__team-name,
  .sm-table__opponent-name {
    font-size: 0.95rem !important;
    line-height: 1.04 !important;
  }
}



/* =========================
   v19: one true standard team-cell system for all normal tables
   standings, ratings, playoff chances, h2h-by-opponent
   ========================= */

.sm-standard-team,
.sm-ratings-team,
.sm-standings-team,
.sm-playoff-team,
.sm-team-h2h-opponent {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  text-decoration: none !important;
  color: var(--sm-color-link) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
}

.sm-standard-team__helmet,
.sm-ratings-team__helmet,
.sm-standings-team__helmet,
.sm-playoff-team__helmet,
.sm-team-h2h-opponent__helmet {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  flex: 0 0 28px !important;
}

.sm-standard-team__svg,
.sm-ratings-team__svg,
.sm-standings-team__svg,
.sm-playoff-team__svg,
.sm-team-h2h-opponent__svg {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
}

.sm-standard-team__name,
.sm-ratings-team__name,
.sm-standings-team__name,
.sm-playoff-team__name,
.sm-team-h2h-opponent__name {
  display: inline-block !important;
  line-height: 1.06 !important;
  font-size: 1rem !important;
}

.sm-table th.sm-table__cell--compact-team,
.sm-table td.sm-table__cell--compact-team {
  width: 300px !important;
  min-width: 190px !important;
}

.sm-table th.sm-table__cell--compact-2,
.sm-table td.sm-table__cell--compact-2 {
  width: 120px !important;
  min-width: 120px !important;
}

@media (max-width: 980px) {
  .sm-standard-team,
  .sm-ratings-team,
  .sm-standings-team,
  .sm-playoff-team,
  .sm-team-h2h-opponent {
    gap: 9px !important;
  }

  .sm-standard-team__helmet,
  .sm-ratings-team__helmet,
  .sm-standings-team__helmet,
  .sm-playoff-team__helmet,
  .sm-team-h2h-opponent__helmet,
  .sm-standard-team__svg,
  .sm-ratings-team__svg,
  .sm-standings-team__svg,
  .sm-playoff-team__svg,
  .sm-team-h2h-opponent__svg {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    flex-basis: 26px !important;
  }

  .sm-table th.sm-table__cell--compact-team,
  .sm-table td.sm-table__cell--compact-team {
    width: 180px !important;
    min-width: 180px !important;
  }

  .sm-table th.sm-table__cell--compact-2,
  .sm-table td.sm-table__cell--compact-2 {
    width: 180px !important;
    min-width: 180px !important;
  }
}

@media (max-width: 820px) {
  .sm-standard-team,
  .sm-ratings-team,
  .sm-standings-team,
  .sm-playoff-team,
  .sm-team-h2h-opponent {
    gap: 8px !important;
  }

  .sm-standard-team__helmet,
  .sm-ratings-team__helmet,
  .sm-standings-team__helmet,
  .sm-playoff-team__helmet,
  .sm-team-h2h-opponent__helmet,
  .sm-standard-team__svg,
  .sm-ratings-team__svg,
  .sm-standings-team__svg,
  .sm-playoff-team__svg,
  .sm-team-h2h-opponent__svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    flex-basis: 24px !important;
  }

  .sm-standard-team__name,
  .sm-ratings-team__name,
  .sm-standings-team__name,
  .sm-playoff-team__name,
  .sm-team-h2h-opponent__name {
    font-size: 0.98rem !important;
    line-height: 1.04 !important;
  }

  .sm-table th.sm-table__cell--compact-team,
  .sm-table td.sm-table__cell--compact-team {
    width: 170px !important;
    min-width: 170px !important;
  }

  /* specifically stop stretched H2H-opponent rows */
  .sm-team-h2h-page__section .sm-table td,
  .sm-team-h2h-page__section .sm-table th {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }
}

@media (max-width: 640px) {
  .sm-standard-team__helmet,
  .sm-ratings-team__helmet,
  .sm-standings-team__helmet,
  .sm-playoff-team__helmet,
  .sm-team-h2h-opponent__helmet,
  .sm-standard-team__svg,
  .sm-ratings-team__svg,
  .sm-standings-team__svg,
  .sm-playoff-team__svg,
  .sm-team-h2h-opponent__svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    flex-basis: 22px !important;
  }

  .sm-standard-team__name,
  .sm-ratings-team__name,
  .sm-standings-team__name,
  .sm-playoff-team__name,
  .sm-team-h2h-opponent__name {
    font-size: 0.95rem !important;
  }

  .sm-table th.sm-table__cell--compact-team,
  .sm-table td.sm-table__cell--compact-team {
    width: 160px !important;
    min-width: 160px !important;
  }

  .sm-table th.sm-table__cell--compact-2,
  .sm-table td.sm-table__cell--compact-2 {
    width: 160px !important;
    min-width: 160px !important;
  }
}

  /* h2hchart */

.sm-bar-chart {
  position: relative;
  width: 100%;
}

.sm-bar-chart__area {
  position: relative;
  padding: 4px 0 10px;
}

.sm-bar-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}

.sm-bar-chart__grid line {
  stroke: var(--sm-color-line);
  stroke-width: 1;
}

.sm-bar-chart__zero-line {
  stroke: #1f242e;
  stroke-opacity: 0.24;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.sm-bar-chart__bar {
  vector-effect: non-scaling-stroke;
  transition: opacity 0.08s ease;
}

.sm-bar-chart__crosshair {
  stroke: #1f242e;
  stroke-opacity: 0.18;
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.sm-bar-chart__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sm-bar-chart__y-tick {
  position: absolute;
  transform: translate(-100%, -50%);
  color: var(--sm-color-muted);
  font-family: var(--sm-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-right: 6px;
}

.sm-bar-chart__x-tick {
  position: absolute;
  transform: translateX(-50%);
  color: var(--sm-color-muted);
  font-family: var(--sm-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.sm-bar-chart__x-tick--start {
  transform: translateX(0);
}

.sm-bar-chart__x-tick--end {
  transform: translateX(-100%);
}

.sm-bar-chart__hover-box {
  position: absolute;
  top: 10px;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e8e8eb;
  border-radius: 12px;
  padding: 10px 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.08s ease;
  max-width: calc(100% - 20px);
  box-shadow: var(--sm-shadow-soft);
}

.sm-bar-chart__hover-box.is-showing {
  opacity: 1;
}

.sm-bar-chart__hover-time {
  font-family: var(--sm-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--sm-color-muted);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.sm-bar-chart__hover-value {
  margin-top: 5px;
  font-family: var(--sm-font-heading);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sm-bar-chart__hover-note {
  margin-top: 5px;
  font-family: var(--sm-font-body);
  font-size: 13px;
  font-weight: 400;
  color: #1f242e;
  line-height: 1.35;
  white-space: normal;
  max-width: 520px;
  overflow-wrap: anywhere;
}

.sm-bar-chart__hover-note:empty {
  display: none;
}

@media (max-width: 900px) {
  .sm-bar-chart__y-tick,
  .sm-bar-chart__x-tick {
    font-size: 11px;
  }

  .sm-bar-chart__hover-value {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .sm-bar-chart__area {
    padding: 2px 0 2px;
  }

  .sm-bar-chart__hover-box {
    padding: 8px 10px;
  }

  .sm-bar-chart__hover-value {
    font-size: 18px;
  }

  .sm-bar-chart__hover-note {
    font-size: 12px;
  }
}

.btn-arrow-after::after,
.arrow-after::after {
    content: "";
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-left: 7px;
    vertical-align: -2px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c4577' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.btn-arrow-before::before,
.arrow-before::before {
    content: "";
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-right: 7px;
    vertical-align: -2px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c4577' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H5'/%3E%3Cpath d='M11 6l-6 6 6 6'/%3E%3C/svg%3E");
}

.sm-link {
  color: #163f78;
  text-decoration: none;
  font-weight: 700;
}

.sm-link:hover {
  text-decoration: underline;
}

.sm-matchup-tile__link-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
}

.sm-matchup-tile__link-wrapper:hover {
  text-decoration: none;
}


/* footer */

.sm-footer {
  width: 100%;
  margin-top: 40px;
  background: #13233a;
  color: #dbe6f3;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sm-footer__shell {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.sm-footer__inner {
  padding: 38px 0 34px 0;
}

.sm-footer__about {
  width: 100%;
  margin-bottom: 30px;
}

.sm-footer__brand {
  margin: 0 0 12px 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.7rem;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.sm-footer__text {
  margin: 0 0 10px 0;
  max-width: 980px;
  font-size: 1rem;
  line-height: 1.55;
  color: #c6d4e6 !important;
}

.sm-footer__text--small {
  font-size: 0.92rem;
  color: #9fb3cc !important;
}

.sm-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 34px;
}

.sm-footer__col {
  min-width: 0;
}

.sm-footer__heading {
  margin: 0 0 14px 0;
  font-size: 0.9rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #ffffff;
}

.sm-footer__col a {
  display: block;
  margin: 0 0 10px 0;
  color: #dbe6f3;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

.sm-footer__col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.sm-footer__bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.08);
}

.sm-footer__bottom-inner {
  padding: 16px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #9fb3cc;
  text-align: center;
}

.sm-footer__bottom-sep {
  margin: 0 8px;
}

@media (max-width: 980px) {
  .sm-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

@media (max-width: 800px) {
  .sm-footer {
    margin-top: 28px;
  }

  .sm-footer__shell {
    padding: 0 16px;
  }

  .sm-footer__inner {
    padding: 28px 0 24px 0;
  }

  .sm-footer__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sm-footer__brand {
    font-size: 1.45rem;
  }

  .sm-footer__text {
    font-size: 0.95rem;
  }

  .sm-footer__col a {
    margin-bottom: 8px;
    font-size: 0.96rem;
  }

  .sm-footer__bottom-inner {
    padding: 14px 0;
    font-size: 0.84rem;
  }
}

.sm-projection--win {
    color: #006400;
    font-weight: 600;
}



.sm-date-jump-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    background: var(--sm-white);
    color: var(--sm-light-blue);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(11, 37, 69, 0.05);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sm-date-jump-link span {
    color: var(--sm-dark-blue);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.sm-date-jump-link:hover,
.sm-date-jump-link:focus {
    background: var(--sm-hover);
    border-color: var(--sm-light-blue);
    color: var(--sm-dark-blue);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
    outline: none;
}

.sm-date-nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.sm-date-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    background: var(--sm-white);
    color: var(--sm-dark-blue);
    font-size: 22px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.15s ease;
}

.sm-date-arrow:hover {
    background: var(--sm-hover);
    border-color: var(--sm-light-blue);
    color: var(--sm-dark-blue);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
}

.sm-date-arrow.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* footer */

.sm-nav-picker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sm-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    background: var(--sm-white);
    color: var(--sm-dark-blue);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sm-nav-arrow:hover,
.sm-nav-arrow:focus {
    background: var(--sm-hover);
    border-color: var(--sm-light-blue);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
    outline: none;
}

.sm-nav-arrow.is-disabled,
.sm-nav-arrow.is-hidden {
    display: none !important;
}

.sm-nav-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.sm-nav-select {
    min-width: 180px;
    height: 44px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    background: var(--sm-white);
    color: var(--sm-dark-blue);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 1px 2px rgba(11, 37, 69, 0.05);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--sm-dark-blue) 50%),
        linear-gradient(135deg, var(--sm-dark-blue) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 18px,
        calc(100% - 12px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.sm-nav-select:hover,
.sm-nav-select:focus {
    border-color: var(--sm-light-blue);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
}

@media (max-width: 640px) {
    .sm-nav-picker {
        gap: 8px;
       
    }

    .sm-nav-arrow {
        width: 42px;
        height: 42px;
    }

    .sm-nav-select {
        min-width: 150px;
        height: 42px;
        font-size: 14px;
    }
}

.sm-matchup-tile__team-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   H2H SEARCH FILTER
   ========================================================= */

.sm-h2h-filter {
  padding: 16px 20px 16px 20px;
  display: grid;
  gap: 8px;
}

.sm-h2h-filter__label {
  color: #334861;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.sm-h2h-filter__box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sm-h2h-filter__input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c8d3df;
  border-radius: 12px;
  background: #f0f4f8;
  color: #13233a;
  font-size: 0.98rem;
  padding: 10px 14px;
  outline: none;
}

.sm-h2h-filter__input:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
  background: #ffffff;
}

.sm-h2h-filter__clear {
  min-height: 42px;
  border: 1px solid #c8d3df;
  border-radius: 12px;
  background: #ffffff;
  color: #163f78;
  font-weight: 800;
  padding: 0 14px;
  cursor: pointer;
}

.sm-h2h-filter__clear:hover {
  background: #dde8f5;
}

.sm-h2h-filter__count {
  min-height: 18px;
  color: #334861;
  font-size: 0.86rem;
}

@media (max-width: 560px) {
  .sm-h2h-filter {
    padding: 0 14px 14px 14px;
  }

  .sm-h2h-filter__box {
    flex-direction: column;
    align-items: stretch;
  }
}


@media (max-width: 560px) {
  .sm-matchup__chart-wrap {
    padding: 8px 14px 18px 26px;
  }

  .sm-matchup__impact-chart .sm-chart__area {
    height: 310px;
    padding: 0;
    overflow: visible;
  }

  .sm-matchup__impact-chart .sm-chart__svg {
    width: calc(100% - 96px);
    height: 310px;
    display: block;
    margin-left: 30px;
  }

  .sm-matchup__impact-chart .sm-chart__overlay {
    position: absolute;
    inset: 0 auto auto 0;
    width: calc(100% - 96px);
    height: 310px;
    overflow: visible;
  }

  .sm-matchup__impact-chart .sm-chart__y-tick {
    left: 32px !important;
    transform: translate(-100%, -50%);
    padding-right: 5px;
    font-size: 11px;
    white-space: nowrap;
  }

  .sm-matchup__impact-chart .sm-chart__float-label {
    transform: translateX(6px);
    max-width: 90px;
    white-space: normal;
  }

  .sm-matchup__impact-chart .sm-chart__float-label-name {
    font-size: 11px;
    line-height: 1;
  }

  .sm-matchup__impact-chart .sm-chart__float-label-value {
    font-size: 28px;
    line-height: 0.92;
  }

  .sm-matchup__impact-chart .sm-chart__x-tick {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  #sm-h2h-margin-chart {
    min-height: 0 !important;
  }

  #sm-h2h-margin-chart .sm-bar-chart__area {
    height: 300px !important;
    min-height: 300px !important;
    padding: 0 !important;
  }

  #sm-h2h-margin-chart .sm-bar-chart__svg {
    height: 300px !important;
    width: 100% !important;
    display: block;
  }
}


@media (max-width: 800px) {

  .sm-h2h-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .sm-h2h-stat {
    padding: 14px 16px;
    min-height: 116px;
  }

  .sm-h2h-stat__label {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .sm-h2h-stat__value {
    font-size: 2rem;
    line-height: 1.05;
  }

  .sm-h2h-stat__value--text {
    font-size: 1.35rem;
    line-height: 1.2;
  }
}


@media (max-width: 560px) {
  .sm-hero-card {
    padding: 18px 16px;
  }

  .sm-hero-card__teams {
    grid-template-columns: minmax(72px, 1fr) minmax(120px, 1.4fr) minmax(72px, 1fr);
    gap: 8px;
    align-items: start;
  }

  .sm-hero-team__helmet {
    width: 58px;
  }

  .sm-hero-team__name {
    font-size: 1.05rem;
  }

  .sm-hero-team__meta-line {
    flex-direction: column;
    gap: 2px;
    font-size: 0.78rem;
    margin-top: 6px;
  }

  .sm-hero-team__form {
    font-size: 0.72rem;
  }

  .sm-hero-card__prob-label {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }

  .sm-hero-card__bar-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
  }

  .sm-hero-card__pct {
    font-size: 1.85rem;
  }

  .sm-hero-card__pct--left {
    text-align: right;
  }

  .sm-hero-card__pct--right {
    text-align: left;
  }

  .sm-hero-card__bar {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 12px;
    min-width: 90px;
  }

  .sm-hero-card__middle-meta {
    font-size: 0.82rem;
    line-height: 1.25;
    margin-top: 8px;
  }
}

@media (max-width: 390px) {
  .sm-hero-card__teams {
    grid-template-columns: 68px minmax(110px, 1fr) 68px;
    gap: 6px;
  }

  .sm-hero-card__pct {
    font-size: 1.65rem;
  }

  .sm-hero-team__helmet {
    width: 52px;
  }

  .sm-hero-team__name {
    font-size: 0.95rem;
  }
}



/* =========================================================
   TEAM HERO V2
   compact app-style team/year navigation hero
   ========================================================= */

.sm-team-hero-v2 {
  background: var(--sm-color-surface, #ffffff);
  border: 1px solid var(--sm-color-border, #c8d3df);
  border-radius: var(--sm-radius-card, 14px);
  box-shadow: var(--sm-shadow-card, 0 10px 24px rgba(16, 24, 40, 0.05));
  padding: 18px 20px;
  margin-bottom: 24px;
  overflow: hidden;
}

.sm-team-hero-v2__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: center;
}

.sm-team-hero-v2__identity {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.sm-team-hero-v2__icon {
  width: 112px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-team-hero-v2__icon .sm-team-hero__helmet {
  width: 112px;
  max-width: 112px;
  max-height: 92px;
  height: auto;
  display: block;
}

.sm-team-hero-v2__title-wrap {
  min-width: 0;
}

.sm-team-hero-v2__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
  color: var(--sm-color-text, #13233a);
}

.sm-team-hero-v2__subtitle {
  margin-top: 7px;
  color: var(--sm-color-text-muted, #334861);
  font-size: 0.95rem;
  line-height: 1.35;
}

.sm-team-hero-v2__controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  justify-self: stretch;
}

.sm-nav-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.sm-nav-picker:has(.sm-nav-arrow--prev) {
  grid-template-columns: 38px minmax(0, 1fr);
}

.sm-nav-picker:has(.sm-nav-arrow--next) {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.sm-nav-picker:has(.sm-nav-arrow--prev):has(.sm-nav-arrow--next) {
  grid-template-columns: 38px minmax(0, 1fr) 38px;
}

.sm-nav-select {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--sm-color-border-soft, #d1dbe7);
  border-radius: 10px;
  background: #f0f4f8;
  color: var(--sm-color-text, #13233a);
  font-family: var(--font-body, "Open Sans", Arial, sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0 34px 0 12px;
}

.sm-nav-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--sm-color-border-soft, #d1dbe7);
  border-radius: 10px;
  background: #ffffff;
  color: var(--sm-color-link, #163f78);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.sm-nav-arrow:hover {
  background: #dde8f5;
}

.sm-nav-arrow.is-disabled,
.sm-nav-arrow.is-hidden {
  display: none !important;
}

.sm-team-hero-v2__picker--year {
  grid-template-columns: 48px minmax(0, 1fr) 48px;
}

.sm-team-hero-v2__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.sm-team-hero-v2__stat {
  border: 1px solid var(--sm-color-border-soft, #d1dbe7);
  border-radius: 12px;
  background: var(--sm-color-surface-soft, #f0f4f8);
  padding: 11px 13px;
  min-width: 0;
}

.sm-team-hero-v2__stat-label {
  color: var(--sm-color-text-muted, #334861);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.sm-team-hero-v2__stat-value {
  color: var(--sm-color-text, #13233a);
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.75rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .sm-team-hero-v2__top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sm-team-hero-v2__controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .sm-team-hero-v2 {
    padding: 14px;
  }

  .sm-team-hero-v2__identity {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .sm-team-hero-v2__icon {
    width: 76px;
    height: 64px;
  }

  .sm-team-hero-v2__icon .sm-team-hero__helmet {
    width: 76px;
    max-width: 76px;
    max-height: 64px;
  }

  .sm-team-hero-v2__title {
    font-size: 1.8rem;
  }

  .sm-team-hero-v2__subtitle {
    font-size: 0.84rem;
  }

  .sm-team-hero-v2__controls {
    grid-template-columns: 1fr;
  }

  .sm-nav-picker {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .sm-nav-arrow {
    width: 34px;
    height: 36px;
    font-size: 1.45rem;
  }

  .sm-nav-select {
    height: 36px;
    font-size: 0.86rem;
  }

  .sm-team-hero-v2__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  .sm-team-hero-v2__stat {
    padding: 10px 12px;
  }

  .sm-team-hero-v2__stat-value {
    font-size: 1.55rem;
  }
}

.sm-hero-team__match-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
  max-width: 220px;
}

.sm-hero-team__match-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--sm-color-border-soft, #d1dbe7);
  border-radius: 9px;
  background: #f0f4f8;
  color: var(--sm-color-link, #163f78);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: background 0.15s ease;
}

.sm-hero-team__match-nav-btn:hover {
  background: #dde8f5;
  color: var(--sm-color-link-hover, #102f59);
}

@media (max-width: 780px) {
  .sm-hero-team__match-nav {
    max-width: none;
  }

  .sm-hero-team__match-nav-btn {
    font-size: 0.74rem;
    padding: 6px 8px;
  }
}


/* =========================================================
   MATCHUP HERO V2
   ========================================================= */

.sm-matchup-hero-v2 {
  background: var(--sm-color-surface, #ffffff);
  border: 1px solid var(--sm-color-border, #c8d3df);
  border-radius: var(--sm-radius-card, 14px);
  box-shadow: var(--sm-shadow-card, 0 10px 24px rgba(16, 24, 40, 0.05));
  padding: 22px 24px;
  margin-bottom: 24px;
  overflow: hidden;
}

.sm-matchup-hero-v2__top {
  max-width: 980px;
}

.sm-matchup-hero-v2__status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #dde8f5;
  border: 1px solid #b3c9e4;
  color: #174778;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.sm-matchup-hero-v2__date {
  color: var(--sm-color-text-muted, #334861);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.sm-matchup-hero-v2__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 0.95;
  color: var(--sm-color-text, #13233a);
}

.sm-matchup-hero-v2__summary {
  max-width: 760px;
  margin: 10px 0 0 0;
  color: var(--sm-color-text-muted, #334861);
  font-size: 1rem;
  line-height: 1.45;
}

.sm-matchup-hero-v2__main {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(280px, 1.35fr) minmax(150px, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
}

.sm-matchup-hero-v2__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.sm-matchup-hero-v2__team-icon {
  width: 86px;
  height: 86px;
  display: block;
  margin-bottom: 8px;
}

.sm-matchup-hero-v2__team-icon--flip {
  transform: scaleX(-1);
}

.sm-matchup-hero-v2__team-name {
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  color: var(--sm-color-text, #13233a);
  font-size: 1.7rem;
  line-height: 1;
  text-decoration: none;
}

.sm-matchup-hero-v2__team-name:hover {
  text-decoration: underline;
}

.sm-matchup-hero-v2__team-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 9px;
  color: #526783;
  font-weight: 800;
  font-size: 0.94rem;
}

.sm-matchup-hero-v2__form {
  margin-top: 8px;
  color: #8a99ad;
  font-size: 0.92rem;
}

.sm-matchup-hero-v2__center {
  min-width: 0;
  text-align: center;
}

.sm-matchup-hero-v2__prob-label {
  color: var(--sm-color-text-muted, #334861);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  margin-bottom: 8px;
}

.sm-matchup-hero-v2__pct-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 8px;
}

.sm-matchup-hero-v2__pct {
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.9;
}

.sm-matchup-hero-v2__bar {
  display: flex;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #e0e8f1;
}

.sm-matchup-hero-v2__bar-left,
.sm-matchup-hero-v2__bar-right {
  height: 100%;
}

.sm-matchup-hero-v2__bar-left {
  border-right: 3px solid #ffffff;
}

.sm-matchup-hero-v2__margin {
  margin-top: 11px;
  color: #526783;
  font-weight: 800;
  line-height: 1.3;
}

.sm-matchup-team-nav {
  margin-top: 12px;
  width: 100%;
  max-width: 210px;
}

.sm-matchup-team-nav__label {
  display: none;
}

.sm-matchup-team-nav__links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.sm-matchup-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--sm-color-border-soft, #d1dbe7);
  border-radius: 999px;
  background: #f0f4f8;
  color: var(--sm-color-link, #163f78);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.sm-matchup-nav-link:hover {
  background: #dde8f5;
  color: var(--sm-color-link-hover, #102f59);
}

/* Tablet */
@media (max-width: 900px) {
  .sm-matchup-hero-v2 {
    padding: 18px;
  }

  .sm-matchup-hero-v2__main {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "center center"
      "team1 team2";
    gap: 22px 18px;
  }

  .sm-matchup-hero-v2__center {
    grid-area: center;
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }

  .sm-matchup-hero-v2__team--left {
    grid-area: team1;
  }

  .sm-matchup-hero-v2__team--right {
    grid-area: team2;
  }
}

/* Mobile */
@media (max-width: 620px) {
  .sm-matchup-hero-v2 {
    padding: 14px;
    border-radius: 12px;
  }

  .sm-matchup-hero-v2__status {
    min-height: 30px;
    padding: 0 11px;
    font-size: 0.78rem;
    margin-bottom: 12px;
  }

  .sm-matchup-hero-v2__date {
    font-size: 0.84rem;
  }

  .sm-matchup-hero-v2__title {
    font-size: 2rem;
    line-height: 0.98;
  }

  .sm-matchup-hero-v2__summary {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .sm-matchup-hero-v2__main {
    margin-top: 20px;
    gap: 18px 12px;
  }

  .sm-matchup-hero-v2__team-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 6px;
  }

  .sm-matchup-hero-v2__team-name {
    font-size: 1.25rem;
  }

  .sm-matchup-hero-v2__team-meta {
    display: grid;
    gap: 3px;
    font-size: 0.84rem;
    margin-top: 7px;
  }

  .sm-matchup-hero-v2__form {
    font-size: 0.8rem;
  }

  .sm-matchup-hero-v2__prob-label {
    font-size: 0.74rem;
    margin-bottom: 6px;
  }

  .sm-matchup-hero-v2__pct {
    font-size: 1.8rem;
  }

  .sm-matchup-hero-v2__bar {
    height: 16px;
  }



  .sm-matchup-team-nav {
    margin-top: 9px;
    max-width: none;
  }

  .sm-matchup-team-nav__links {
    gap: 6px;
    flex-wrap: wrap;
  }

  .sm-matchup-nav-link {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.76rem;
  }
}

/* Small mobile */
@media (max-width: 430px) {
  .sm-matchup-hero-v2__title {
    font-size: 1.75rem;
  }

  .sm-matchup-hero-v2__main {
    grid-template-columns: 1fr 1fr;
  }

  .sm-matchup-hero-v2__team-icon {
    width: 52px;
    height: 52px;
  }

  .sm-matchup-hero-v2__team-name {
    font-size: 1.1rem;
  }

  .sm-matchup-nav-link {
    width: 100%;
  }
}

.sm-matchup-team-nav__links {
    flex-wrap: nowrap;
}

@media (max-width: 620px) {
  .sm-matchup-hero-v2__team-name {
      font-size: 1.4rem;
  }
}

.sm-matchup-hero-v2__subtitle {
  margin-top: 8px;
  color: var(--sm-color-text-muted, #334861);
  font-size: 0.95rem;
  line-height: 1.3;
}

.sm-matchup-hero-v2__pct {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.sm-matchup-hero-v2__margin {
    font-size: 0.95rem;
    font-weight: 700;
}

.sm-matchup-nav-link {
    border-radius: 8px;
    min-height: 26px;
    padding: 0 10px;
    font-size: 0.74rem;
}

.sm-ratings-year-picker {
  max-width: 430px;
  margin: 0 0 18px 0;
}

.sm-ratings-year-picker__picker {
  width: 100%;
}

@media (max-width: 620px) {
  .sm-ratings-year-picker {
    max-width: none;
    margin-bottom: 14px;
  }
}

.sm-ratings-year-picker {
    margin: 0 0 12px 0;
}

.sm-ratings-year-picker {
    max-width: 520px;
}

.sm-standings-year-picker {
  max-width: 520px;
  margin: 0 0 14px 0;
}

.sm-standings-year-picker__picker {
  width: 100%;
}

@media (max-width: 620px) {
  .sm-standings-year-picker {
    max-width: none;
    margin-bottom: 14px;
  }
}

.sm-h2h-matchup-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.sm-h2h-matchup-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sm-h2h-matchup-team .sm-standard-team__helmet {
  flex: 0 0 auto;
}

.sm-h2h-matchup-team .sm-standard-team__name {
  font-weight: 700;
  color: var(--sm-color-link, #163f78);
}

@media (max-width: 620px) {
  .sm-table-wrap[data-sm-layout="h2h-index"] {
    --sm-table-min-width: 520px;
  }

  .sm-h2h-matchup-link {
    gap: 3px;
  }
}

.sm-h2h-filter__note {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--sm-color-text-muted);
  line-height: 1.35;
}

.sm-sidepanel__title,
.sm-league-sidepanel__title {
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 800px) {
  .sm-sidepanel__title,
  .sm-league-sidepanel__title {
    font-size: 1.55rem;
  }
}

.sm-table__link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--sm-color-link, #163f78);
  color: var(--sm-color-link, #163f78);
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.sm-table__link-btn:hover {
  background: #dde8f5;
  text-decoration: none;
}

@media (max-width: 620px) {
  .sm-table-toolbar {
    align-items: flex-start;
  }

  .sm-table-toolbar__actions {
    margin-top: 8px;
  }
}   SHARPMODELS TABLE ALIGNMENT + MOBILE SCROLL AFFORDANCE V5
   Fixes: left-aligned text headers/cells, consistent numeric alignment,
   better balanced generated table column maps, and stronger mobile fades.
   ========================================================= */

/* Default table alignment: text reads from the left; numbers use helpers. */
.sm-table th,
.sm-table td {
  text-align: left;
}

.sm-table thead th {
  text-align: left;
}

.sm-table__cell--num,
.sm-table td.sm-table__cell--num,
.sm-table th.sm-table__cell--num {
  text-align: right !important;
}

.sm-table__cell--center,
.sm-table td.sm-table__cell--center,
.sm-table th.sm-table__cell--center {
  text-align: center !important;
}

/* Sort arrows should sit close to the header label, not make the label look centred. */
.sm-table th[data-sm-sortable] {
  padding-right: 34px !important;
}

.sm-table th[data-sm-sortable]::after {
  right: 13px;
}

/* Team directory: keep Conference and Division visually balanced on desktop. */
.sm-table-wrap[data-sm-layout="teams"] { --sm-table-min-width: 720px; }
.sm-table-wrap[data-sm-layout="teams"] .sm-table th:nth-child(1),
.sm-table-wrap[data-sm-layout="teams"] .sm-table td:nth-child(1) { width: 40%; }
.sm-table-wrap[data-sm-layout="teams"] .sm-table th:nth-child(2),
.sm-table-wrap[data-sm-layout="teams"] .sm-table td:nth-child(2) { width: 20%; text-align: left; }
.sm-table-wrap[data-sm-layout="teams"] .sm-table th:nth-child(3),
.sm-table-wrap[data-sm-layout="teams"] .sm-table td:nth-child(3) { width: 40%; text-align: left; }

/* Ratings: rank/rating columns numeric; team column left. */
.sm-table-wrap[data-sm-layout="ratings"] .sm-table th:nth-child(2),
.sm-table-wrap[data-sm-layout="ratings"] .sm-table td:nth-child(2) { text-align: left; }

/* Standings: rank numeric, team/division left, stats right. */
.sm-table-wrap[data-sm-layout="standings"] .sm-table th:nth-child(2),
.sm-table-wrap[data-sm-layout="standings"] .sm-table td:nth-child(2),
.sm-table-wrap[data-sm-layout="standings"] .sm-table th:nth-child(3),
.sm-table-wrap[data-sm-layout="standings"] .sm-table td:nth-child(3) { text-align: left; }

/* Results/schedule: date left, matchup left, result columns keep their helper alignment. */
.sm-table-wrap[data-sm-layout="recent-results"] .sm-table th:nth-child(1),
.sm-table-wrap[data-sm-layout="recent-results"] .sm-table td:nth-child(1),
.sm-table-wrap[data-sm-layout="recent-results"] .sm-table th:nth-child(2),
.sm-table-wrap[data-sm-layout="recent-results"] .sm-table td:nth-child(2),
.sm-table-wrap[data-sm-layout="results"] .sm-table th:nth-child(1),
.sm-table-wrap[data-sm-layout="results"] .sm-table td:nth-child(1),
.sm-table-wrap[data-sm-layout="results"] .sm-table th:nth-child(2),
.sm-table-wrap[data-sm-layout="results"] .sm-table td:nth-child(2),
.sm-table-wrap[data-sm-layout="schedule"] .sm-table th:nth-child(1),
.sm-table-wrap[data-sm-layout="schedule"] .sm-table td:nth-child(1),
.sm-table-wrap[data-sm-layout="schedule"] .sm-table th:nth-child(2),
.sm-table-wrap[data-sm-layout="schedule"] .sm-table td:nth-child(2) { text-align: left; }

/* H2H: matchup/opponent left, metrics right/centre via existing helper classes. */
.sm-table-wrap[data-sm-layout="h2h-index"] .sm-table th:nth-child(1),
.sm-table-wrap[data-sm-layout="h2h-index"] .sm-table td:nth-child(1),
.sm-table-wrap[data-sm-layout="h2h-opponents"] .sm-table th:nth-child(1),
.sm-table-wrap[data-sm-layout="h2h-opponents"] .sm-table td:nth-child(1) { text-align: left; }

/* Mobile: force a useful overflow width and make the swipe affordance obvious. */
@media (max-width: 800px) {
  .sm-table-card {
    position: relative;
  }

  .sm-table-scroll {
    position: relative;
  }

  .sm-table-wrap[data-sm-layout="teams"] { --sm-table-min-width: 640px; }
  .sm-table-wrap[data-sm-layout="teams"] .sm-table th:nth-child(1),
  .sm-table-wrap[data-sm-layout="teams"] .sm-table td:nth-child(1) { width: 285px; }
  .sm-table-wrap[data-sm-layout="teams"] .sm-table th:nth-child(2),
  .sm-table-wrap[data-sm-layout="teams"] .sm-table td:nth-child(2) { width: 120px; }
  .sm-table-wrap[data-sm-layout="teams"] .sm-table th:nth-child(3),
  .sm-table-wrap[data-sm-layout="teams"] .sm-table td:nth-child(3) { width: 235px; }

  .sm-table-card::before,
  .sm-table-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    transition: opacity 160ms ease;
  }

  .sm-table-card::before {
    left: 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.96) 28%, rgba(255,255,255,0.64) 62%, rgba(255,255,255,0) 100%);
  }

  .sm-table-card::after {
    right: 0;
    background: linear-gradient(270deg, #ffffff 0%, rgba(255,255,255,0.96) 28%, rgba(255,255,255,0.64) 62%, rgba(255,255,255,0) 100%);
  }

  .sm-table-wrap.has-horizontal-scroll:not(.is-scroll-start) .sm-table-card::before {
    opacity: 1;
  }

  .sm-table-wrap.has-horizontal-scroll:not(.is-scroll-end) .sm-table-card::after {
    opacity: 1;
  }

  .sm-table__scroll-hint {
    display: none !important;
  }

  .sm-table-wrap.has-horizontal-scroll .sm-table__scroll-hint {
    display: flex !important;
    position: sticky;
    left: 0;
    z-index: 35;
    align-items: center;
    gap: 8px;
    padding: 9px var(--sm-table-inset-mobile) 10px;
    border-top: 1px solid var(--sm-table-border);
    background: #f0f4f8;
    color: #163f78;
    font-size: 0.78rem;
    font-weight: 900;
  }

  .sm-table-wrap.has-horizontal-scroll .sm-table__scroll-hint::before {
    content: "↔";
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .sm-table-wrap[data-sm-layout="teams"] { --sm-table-min-width: 620px; }
  .sm-table-wrap[data-sm-layout="teams"] .sm-table th:nth-child(1),
  .sm-table-wrap[data-sm-layout="teams"] .sm-table td:nth-child(1) { width: 270px; }
  .sm-table-wrap[data-sm-layout="teams"] .sm-table th:nth-child(2),
  .sm-table-wrap[data-sm-layout="teams"] .sm-table td:nth-child(2) { width: 110px; }
  .sm-table-wrap[data-sm-layout="teams"] .sm-table th:nth-child(3),
  .sm-table-wrap[data-sm-layout="teams"] .sm-table td:nth-child(3) { width: 240px; }
}

/* =========================================================
   FINAL TABLE-ONLY MOBILE FADES
   The fade belongs to .sm-table-scroll, not .sm-table-card.
   It uses position: sticky so the fade stays pinned to the visible
   left/right edge while the table scrolls horizontally.
   ========================================================= */

@media (max-width: 800px) {

  /* Kill any old whole-card fades */
  .sm-table-wrap .sm-table-card::before,
  .sm-table-wrap .sm-table-card::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: none !important;
  }

  .sm-table-wrap .sm-table-scroll {
    position: relative !important;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sm-table-wrap .sm-table-scroll::before,
  .sm-table-wrap .sm-table-scroll::after {
    content: "" !important;
    display: block !important;
    position: sticky;
    top: 0;
    bottom: 0;
    width: 28px;
    min-width: 28px;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .sm-table-wrap .sm-table-scroll::before {
    left: 0;
    float: left;
    margin-right: -28px;
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.72) 45%,
      rgba(255,255,255,0) 100%
    );
  }

  .sm-table-wrap .sm-table-scroll::after {
    right: 0;
    float: right;
    margin-left: -28px;
    background: linear-gradient(
      to left,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.72) 45%,
      rgba(255,255,255,0) 100%
    );
  }

  .sm-table-wrap.has-horizontal-scroll:not(.is-scroll-start) .sm-table-scroll::before {
    opacity: 1;
  }

  .sm-table-wrap.has-horizontal-scroll:not(.is-scroll-end) .sm-table-scroll::after {
    opacity: 1;
  }
}

/* =========================================================
   TABLE-ONLY MOBILE FADES - JS POSITIONED OVERLAYS
   These overlays are placed over the scrollable table area only,
   never over the table/card title.
   ========================================================= */

/* Disable every previous pseudo-element fade attempt */
.sm-table-card::before,
.sm-table-card::after,
.sm-table-scroll::before,
.sm-table-scroll::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: none !important;
}

/* The card is the positioning context for the fade overlays */
.sm-table-card {
  position: relative;
}

.sm-table-fade-left,
.sm-table-fade-right {
  display: none;
}

@media (max-width: 800px) {
  .sm-table-fade-left,
  .sm-table-fade-right {
    display: block;
    position: absolute;
    width: 34px;
    pointer-events: none;
    z-index: 30;
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .sm-table-fade-left {
    left: 0;
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.98) 0%,
      rgba(255,255,255,0.82) 40%,
      rgba(255,255,255,0) 100%
    );
  }

  .sm-table-fade-right {
    right: 0;
    background: linear-gradient(
      to left,
      rgba(255,255,255,0.98) 0%,
      rgba(255,255,255,0.82) 40%,
      rgba(255,255,255,0) 100%
    );
  }

  .sm-table-wrap.has-horizontal-scroll:not(.is-scroll-start) .sm-table-fade-left {
    opacity: 1;
  }

  .sm-table-wrap.has-horizontal-scroll:not(.is-scroll-end) .sm-table-fade-right {
    opacity: 1;
  }
}

/* =========================================================
   MOBILE POWER RATINGS TABLE TIGHTENING
   Aim: Rank + Team + Rating visible without horizontal scroll.
   ========================================================= */

@media (max-width: 800px) {

  /* Power ratings tables */
  .sm-table-wrap[data-sm-layout="ratings"],
  .sm-table-wrap[data-sm-table-type="ratings"],
  .sm-table-wrap.sm-ratings-table {
    --sm-table-min-width: 0;
    --sm-table-pad-x: 8px;
    --sm-table-pad-y: 9px;
  }

  .sm-table-wrap[data-sm-layout="ratings"] .sm-table,
  .sm-table-wrap[data-sm-table-type="ratings"] .sm-table,
  .sm-table-wrap.sm-ratings-table .sm-table {
    min-width: 0 !important;
    table-layout: fixed;
  }

  /* Remove sort arrows from the Rank column only */
  .sm-table-wrap[data-sm-layout="ratings"] .sm-table th:first-child::after,
  .sm-table-wrap[data-sm-table-type="ratings"] .sm-table th:first-child::after,
  .sm-table-wrap.sm-ratings-table .sm-table th:first-child::after {
    content: none !important;
    display: none !important;
  }

  .sm-table-wrap[data-sm-layout="ratings"] .sm-table th:first-child,
  .sm-table-wrap[data-sm-table-type="ratings"] .sm-table th:first-child,
  .sm-table-wrap.sm-ratings-table .sm-table th:first-child {
    padding-right: 8px !important;
    width: 42px;
  }

  .sm-table-wrap[data-sm-layout="ratings"] .sm-table th:nth-child(2),
  .sm-table-wrap[data-sm-layout="ratings"] .sm-table td:nth-child(2),
  .sm-table-wrap[data-sm-table-type="ratings"] .sm-table th:nth-child(2),
  .sm-table-wrap[data-sm-table-type="ratings"] .sm-table td:nth-child(2),
  .sm-table-wrap.sm-ratings-table .sm-table th:nth-child(2),
  .sm-table-wrap.sm-ratings-table .sm-table td:nth-child(2) {
    width: auto;
  }

  .sm-table-wrap[data-sm-layout="ratings"] .sm-table th:last-child,
  .sm-table-wrap[data-sm-layout="ratings"] .sm-table td:last-child,
  .sm-table-wrap[data-sm-table-type="ratings"] .sm-table th:last-child,
  .sm-table-wrap[data-sm-table-type="ratings"] .sm-table td:last-child,
  .sm-table-wrap.sm-ratings-table .sm-table th:last-child,
  .sm-table-wrap.sm-ratings-table .sm-table td:last-child {
    width: 74px;
    text-align: right;
  }

  .sm-table-wrap[data-sm-layout="ratings"] .sm-table__team-link,
  .sm-table-wrap[data-sm-table-type="ratings"] .sm-table__team-link,
  .sm-table-wrap.sm-ratings-table .sm-table__team-link {
    white-space: nowrap;
  }
}


@media (max-width: 800px) {

  .sm-ratings-page .sm-table-wrap,
  .sm-ratings-page__card .sm-table-wrap {
    --sm-table-min-width: 0;
    --sm-table-pad-x: 8px;
    --sm-table-pad-y: 9px;
  }

  .sm-ratings-page .sm-table,
  .sm-ratings-page__card .sm-table {
    min-width: 0 !important;
    table-layout: fixed;
  }

  .sm-ratings-page .sm-table th:first-child::after,
  .sm-ratings-page__card .sm-table th:first-child::after {
    content: none !important;
    display: none !important;
  }

  .sm-ratings-page .sm-table th:first-child,
  .sm-ratings-page__card .sm-table th:first-child {
    padding-right: 8px !important;
    width: 42px;
  }

  .sm-ratings-page .sm-table th:last-child,
  .sm-ratings-page .sm-table td:last-child,
  .sm-ratings-page__card .sm-table th:last-child,
  .sm-ratings-page__card .sm-table td:last-child {
    width: 74px;
    text-align: right;
  }
}
.responsive-image {
    width: 100%;
    overflow: hidden;
}

.responsive-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}




/* =========================================================
   HOMEPAGE / GLOBAL LAYOUT REFINEMENTS
   Added: tighter homepage hero, narrower right rail, button-style links.
   ========================================================= */

.container-grid {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
}

.sm-home-hero {
  margin-bottom: 22px;
}

.sm-home-hero__inner {
  padding: 22px 24px;
}

.sm-home-hero__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: clamp(2.6rem, 4.3vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.sm-home-hero__summary {
  margin: 25px 0 0 0;
  max-width: 900px !important;
  color: var(--sm-color-text-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.sm-home-card__header--split {
  align-items: center;
}

.sm-button-link,
.sm-home-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #163f78;
  border-radius: 9px;
  background: #ffffff;
  color: #163f78;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.sm-button-link:hover,
.sm-home-card__more:hover {
  background: #dde8f5;
  color: #102f59;
  text-decoration: none;
}

.sm-sidepanel__card,
.sm-league-sidepanel__card,
.sm-season-sidepanel__card,
.sm-team-sidepanel__card,
.sm-team-h2h-sidepanel__card,
.sm-h2h-sidepanel__card {
  padding: 16px;
}

.sm-sidepanel__title,
.sm-league-sidepanel__title,
.sm-season-sidepanel__title,
.sm-team-sidepanel__title,
.sm-team-h2h-sidepanel__title,
.sm-h2h-sidepanel__title {
  font-size: 1.65rem;
  line-height: 0.98;
}

.sm-sidepanel__link {
  display: block;
  padding-right: 4px;
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .container-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
  }
}

@media (max-width: 1040px) {
  .container-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .sm-home-hero__inner {
    padding: 18px 18px;
  }

  .sm-home-hero__title {
    font-size: clamp(2.05rem, 11vw, 3.2rem);
  }

  .sm-home-card__header--split {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .sm-home-card__header--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   FINAL HOMEPAGE POLISH
   ========================================================= */

/* Slightly tighter homepage hero */
.sm-home-hero__inner {
  padding-top: 20px;
  padding-bottom: 20px;
}

.sm-home-hero__title {
  line-height: 0.92;
}

/* Let the main content dominate more than the sidebar */
.sm-sidepanel__link,
.sm-league-sidepanel__link,
.sm-season-sidepanel__link,
.sm-team-sidepanel__link,
.sm-team-h2h-sidepanel__link,
.sm-h2h-sidepanel__link {
  font-weight: 600;
}

/* Subtle premium interaction on matchup cards */
.sm-matchup-tile {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sm-matchup-tile:hover {
  transform: translateY(-2px);
  border-color: #c5d2e2;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

@media (max-width: 780px) {
  .sm-home-hero__inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

/* =========================================================
   FINAL SHARPMODELS CONTRAST PASS
   Put this at the very end of the file.
   ========================================================= */

:root {
  --sm-color-text: #13233a;
  --sm-color-text-soft: #334861;
  --sm-color-text-muted: #334861;
  --sm-color-border: #b7c5d6;
  --sm-color-border-soft: #c2cedc;
  --sm-color-surface-soft: #f0f4f8;

  --sm-table-text-soft: #334861;
  --sm-table-head-bg: #d8e2ee;
  --sm-table-border: #b7c5d6;
  --sm-table-border-strong: #aebccc;
  --sm-table-hover: #eef3f8;
}

/* General readable secondary text */
p,
[class*="__summary"],
[class*="__subtitle"],
[class*="__updated"],
[class*="__meta"],
[class*="__date"],
[class*="__form"],
[class*="__margin"],
[class*="__label"],
.sm-breadcrumbs,
.sm-breadcrumbs span,
.sm-table-toolbar__meta,
.sm-table-footer,
.sm-table__team-sub,
.sm-chart__y-tick,
.sm-chart__x-tick {
  color: #334861 !important;
}

/* Keep important labels strong but not black */
.sm-hero-card__prob-label,
.sm-matchup-tile__label,
.sm-matchup-hero-v2__prob-label,
.sm-table thead th,
.sm-sidepanel__label,
.sm-league-sidepanel__label,
.sm-home-sidepanel__label {
  color: #2f435c !important;
}

/* Specific generated classes used by the current pages */
.sm-home-hero__summary,
.sm-hero-card__summary,
.sm-league-hero__summary,
.sm-teams-hero__summary,
.sm-matchup-hero-v2__subtitle,
.sm-matchup-hero-v2__date,
.sm-matchup-hero-v2__form,
.sm-matchup-hero-v2__margin,
.sm-matchup-tile__meta,
.sm-matchup-tile__margin,
.sm-table-toolbar__meta,
.sm-matchup__faq-answer,
.sm-breadcrumbs,
.sm-breadcrumbs > span:not(.sm-breadcrumbs__sep) {
  color: #334861 !important;
}

/* Breadcrumb separators should be visible but still secondary */
.sm-breadcrumbs__sep {
  color: #5a6d85 !important;
}

/* Card outlines and pale areas: less washed out */
.sm-card,
.sm-home-card,
.sm-hero-card,
.sm-matchup__card,
.sm-matchup-hero-v2,
.sm-sidepanel__card,
.sm-league-sidepanel__card,
.sm-table-card,
.sm-matchup-tile,
.sm-home-hero,
.sm-league-hero,
.sm-teams-hero {
  border-color: #b7c5d6 !important;
}

.sm-stat-card,
.sm-league-stat,
.sm-teams-stat,
.sm-season-stat,
.sm-team-stat,
.sm-team-h2h-stat,
.sm-h2h-stat {
  background: #f0f4f8 !important;
  border-color: #c2cedc !important;
}

/* Table headers and rows */
.sm-table thead th {
  background: #d8e2ee !important;
  border-bottom-color: #aebccc !important;
}

.sm-table td,
.sm-table th {
  border-bottom-color: #c2cedc !important;
}

.sm-table tbody tr:hover td {
  background: #eef3f8 !important;
}

/* Pills/status badges */
.sm-kicker,
.sm-league-hero__kicker,
.sm-season-hero__kicker,
.sm-team-hero__kicker,
.sm-team-h2h-hero__kicker,
.sm-h2h-hero__kicker,
.sm-hero-card__status,
.sm-matchup-hero-v2__status {
  background: #dbe8f6 !important;
  color: #123f78 !important;
  border-color: #b3c9e4 !important;
}

/* Do not let generic label override team names or coloured percentages */
.sm-matchup-tile__team-name,
.sm-matchup-tile__pct,
.sm-matchup-hero-v2__pct,
.sm-hero-card__pct {
  color: inherit;
}

/* optional micro-adjustments only */

.sm-matchup-tile__meta,
.sm-matchup-hero-v2__date {
    color: #41556f !important;
}

.sm-home-hero__summary,
.sm-matchup-hero-v2__subtitle {
    color: #3f536d !important;
}


@media (max-width: 560px) {
  .sm-hero-card__teams {
    grid-template-columns: 92px minmax(0, 1fr) 92px;
    gap: 8px;
  }

  .sm-hero-team__helmet {
    width: 52px;
  }

  .sm-hero-team__name {
    font-size: 1rem;
  }

  .sm-hero-team__meta-line {
    font-size: 0.72rem;
  }

  .sm-hero-team__form {
    font-size: 0.72rem;
  }

  .sm-hero-card__pct {
    font-size: 1.35rem;
  }

  .sm-hero-card__bar {
    height: 14px;
  }

  .sm-hero-card__middle-meta {
    font-size: 0.8rem;
  }

  .sm-hero-card__title {
    font-size: 1.65rem;
  }

  .sm-matchup__card-title,
  .sm-table-toolbar__title,
  .sm-sidepanel__title,
  .sm-matchup__faq-title {
    font-size: 1.25rem;
  }

  .sm-matchup__impact-chart {
    min-height: 180px;
  }

  .sm-matchup__result-score {
    font-size: 0.85rem;
  }
}


/* =========================================================
   MOBILE CARD/TABLE TOOLBARS
   Stack title, meta and button vertically on small screens
   so headings do not get squeezed beside action buttons.
   ========================================================= */

@media (max-width: 800px) {
  .sm-table-toolbar,
  .sm-card-header--split,
  .sm-league-page__card-header--split,
  .sm-team-page__card-header--split,
  .sm-home-card__header--split {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
  }

  .sm-table-toolbar > div,
  .sm-table-toolbar__main {
    width: 100%;
    min-width: 0;
  }

  .sm-table-toolbar__title,
  .sm-section-title,
  .sm-home-card__title,
  .sm-matchup__card-title {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .sm-table-toolbar__actions {
    width: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2px;
  }

  .sm-table__link-btn,
  .sm-home-link-btn {
    min-height: 34px;
    padding: 7px 13px;
    font-size: 0.9rem;
  }
}

@media (max-width: 800px) {

  .sm-home-card__title,
  .sm-table-toolbar__title,
  .sm-matchup__card-title,
  .sm-section-title {
    font-size: 1.4rem !important;
    line-height: 1.05;
  }

}
.sm-breadcrumbs__back {
    margin-right: 14px;
}


.sm-breadcrumbs__back {
    margin-right: 14px;
    position: relative;
    top: 1px;
}

@media (max-width: 1100px) {

  .right-column,
  .sm-page-sidebar,
  .sm-league-sidepanel {
    display: none;
  }

}
.sm-header__hamburger {
  display: none;
}

@media (max-width: 1100px) {

  .sm-header__hamburger {
    display: flex;
  }

}

.sm-header__mobile {
  display: none;
  background: var(--sm-color-navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sm-header__mobile.is-open {
  display: block;
}

.sm-header__mobile-inner {
  padding: 16px;
}

.sm-header__mobile .sm-sidepanel__card {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.sm-header__mobile .sm-sidepanel__group {
  margin-bottom: 24px;
}

.sm-header__mobile .sm-sidepanel__title {
  color: #fff;
}

.sm-header__mobile .sm-sidepanel__label {
  color: rgba(255,255,255,0.6);
}

.sm-header__mobile .sm-sidepanel__link {
  color: #fff;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}


@media (max-width: 1100px) {

    .right {
        display: none;
    }

}


/* =========================================================
   MOBILE CONTEXT SIDEBAR MENU
   ========================================================= */

.sm-header__mobile {
  display: none;
}

.sm-header__mobile.is-open {
  display: block;
}

.sm-header__mobile-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 22px 28px 26px;
}

.sm-header__mobile-sidebar {
  width: 100%;
}

@media (min-width: 1121px) {
  .sm-header__mobile {
    display: none !important;
  }
}

@media (max-width: 1120px) {
  .sm-header__hamburger {
    display: flex !important;
  }

  .container-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .container-grid > .right {
    display: none !important;
  }

  .sm-header__mobile {
    background: #102844;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sm-header__mobile .sm-league-sidepanel,
  .sm-header__mobile .sm-sidepanel {
    display: block !important;
    position: static !important;
    top: auto !important;
    width: 100%;
    color: #ffffff;
  }

  .sm-header__mobile .sm-league-sidepanel__card,
  .sm-header__mobile .sm-sidepanel__card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .sm-header__mobile .sm-league-sidepanel__title,
  .sm-header__mobile .sm-sidepanel__title {
    color: #ffffff !important;
    margin: 0 0 18px 0;
    font-size: 1.8rem;
  }

  .sm-header__mobile .sm-league-sidepanel__group,
  .sm-header__mobile .sm-sidepanel__group {
    margin: 0;
    padding: 0;
  }

  .sm-header__mobile .sm-league-sidepanel__group + .sm-league-sidepanel__group,
  .sm-header__mobile .sm-sidepanel__group + .sm-sidepanel__group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }

  .sm-header__mobile .sm-league-sidepanel__label,
  .sm-header__mobile .sm-sidepanel__label {
    color: rgba(255, 255, 255, 0.72) !important;
    margin-bottom: 10px;
  }

  .sm-header__mobile .sm-league-sidepanel__link,
  .sm-header__mobile .sm-sidepanel__link {
    color: #ffffff !important;
    display: block;
    padding: 8px 0;
    margin: 0 0 6px 0;
    font-size: 1rem;
    line-height: 1.35;
    text-decoration: none;
  }

  .sm-header__mobile .sm-league-sidepanel__link:hover,
  .sm-header__mobile .sm-sidepanel__link:hover {
    color: #9ee8ff !important;
    text-decoration: underline;
  }
}

@media (max-width: 560px) {
  .sm-header__mobile-inner {
    padding: 18px 18px 22px;
  }

  .sm-header__mobile .sm-league-sidepanel__title,
  .sm-header__mobile .sm-sidepanel__title {
    font-size: 1.55rem;
  }

  .sm-header__mobile .sm-league-sidepanel__link,
  .sm-header__mobile .sm-sidepanel__link {
    font-size: 0.96rem;
  }
}

.sm-header__mobile .sm-sidepanel__title,
.sm-header__mobile .sm-league-sidepanel__title {
  font-size: 1.35rem;
  line-height: 1.05;
  margin-bottom: 14px;
}

.sm-header__mobile .sm-sidepanel__link.arrow-after::after,
.sm-header__mobile .sm-league-sidepanel__link.arrow-after::after {
  color: inherit !important;
  opacity: 0.72;
}

.sm-header__mobile .arrow-after::after {
  border-color: #ffffff !important;
  filter: brightness(0) invert(1);
}

@media (max-width: 560px) {
  .sm-header__mobile .sm-sidepanel__title,
  .sm-header__mobile .sm-league-sidepanel__title {
    font-size: 1.2rem;
  }
}

@media (max-width: 800px) {

  .sm-table th[data-sm-sortable]::after,
  .sm-table th[data-sm-sort-dir="asc"]::after,
  .sm-table th[data-sm-sort-dir="desc"]::after {
    display: none !important;
    content: none !important;
  }

  .sm-table th[data-sm-sortable] {
    padding-right: var(--sm-table-pad-x) !important;
    cursor: default !important;
  }

}
