/*
 * WAFL FootyFacts — Index page styles
 * File: /assets/css/index-pages.css
 *
 * Requires site.css, loaded first.
 *
 * Homepage: <body class="home-page">
 * Team index: <body class="team-page">
 *
 * Homepage rules retain compatibility with the latest preview.
 * Team-specific rules are scoped to .team-page.
 */

/* ==========================================================
   1. Homepage hero
   ========================================================== */

.hero {
  background: var(--ink);
  color: var(--surface);
}

.hero-layout {
  display: grid;
  gap: 23px;
  padding-block: 25px 28px;
}

.hero-copy,
.season-panel {
  min-width: 0;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1 {
  max-width: 620px;
  margin: 0 0 13px;
  font-size: clamp(29px, 7vw, 42px);
  line-height: 1.12;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-description {
  max-width: 570px;
  margin: 0 0 18px;
  color: var(--header-muted);
  font-size: 14px;
  line-height: 1.65;
}

.hero-actions {
  display: grid;
  gap: 10px;
}
/* ==========================================================
   2. Homepage current-season panel
   Layout: season heading → full-width ladder → season links
   ========================================================== */

.home-page .season-panel {
  min-width: 0;
  overflow: hidden;
  background: #24272d;
  border: 1px solid #414650;
  border-radius: 12px;
}

.home-page .season-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 15px;
  padding: 20px;
  border-bottom: 1px solid #414650;
}

.home-page .season-panel h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.5px;
}

.home-page .season-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--yellow);
  font-size: 12px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Stack the ladder and navigation, rather than placing
   them beside one another. */
.home-page .season-panel-body {
  display: block;
  margin: 0;
  padding: 0;
}

.home-page .season-panel .home-ladder {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.home-page .season-panel .home-ladder-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

/* Full-width ladder. The minimum width keeps numbers
   readable on small screens, with horizontal scrolling. */
.home-page .season-panel .home-ladder-table {
  width: 100%;
  min-width: 440px;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--surface);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* Column widths correspond to the <colgroup> in index.php. */
.home-page .home-ladder-table .position-column {
  width: 7%;
}

.home-page .home-ladder-table .team-column {
  width: 38%;
}

.home-page .home-ladder-table .stat-column {
  width: 6%;
}

.home-page .home-ladder-table .percentage-column {
  width: 15%;
}

.home-page .season-panel .home-ladder-table th,
.home-page .season-panel .home-ladder-table td {
  padding: 6px 4px;
  vertical-align: middle;
  text-align: center;
  border: 0;
  background: transparent;
  line-height: 1.4;
}

.home-page .season-panel .home-ladder-table thead th {
  padding-top: 10px;
  padding-bottom: 8px;
  font-weight: 700;
  color: var(--yellow);
}

/* Keep abbreviation tooltips without dotted underlines. */
.home-page .home-ladder-table abbr[title] {
  text-decoration: none;
  border-bottom: none;
}

.home-page .season-panel .home-ladder-table tbody .ladder-team {
  text-align: left;
  white-space: nowrap;
  font-weight: 400;
}

/* Bold the top-five team names only. */
.home-page .season-panel .home-ladder-table tbody tr:nth-child(-n+5) .ladder-team {
  font-weight: 700;
}

/* Yellow line across all cells below fifth place. */
.home-page .season-panel .home-ladder-table tbody tr:nth-child(5) > * {
  border-bottom: 2px solid var(--yellow);
}

.home-page .home-ladder-empty {
  margin: 0;
  padding: 20px;
  color: var(--header-muted);
  font-size: 13px;
}

/* Navigation beneath the ladder: one column on small phones. */
.home-page .season-panel .season-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid #414650;
}

.home-page .season-panel .season-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 14px 8px;
  border: 0;
  border-bottom: 1px solid #414650;
  border-radius: 0;
  background: transparent;
  color: #e2e5eb;
  font-size: 13px;
  text-decoration: none;
}

.home-page .season-panel .season-links a > span:first-child {
  min-width: 0;
  flex-shrink: 1;
}

.home-page .season-panel .season-links a > span:last-child {
  flex-shrink: 0;
}

.home-page .season-panel .season-links a:last-child {
  border-bottom: 0;
}

.home-page .season-panel .season-links a:focus-visible,
.home-page .season-panel .season-home:focus-visible,
.home-page .season-panel .home-ladder-scroll:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

/* Two-column navigation, matching the supplied layout. */
@media (min-width: 480px) {
  .home-page .season-panel .season-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .home-page .season-panel .season-links a:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (hover: hover) {
  .home-page .season-panel .season-links a:hover {
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.03);
  }
}

/* ==========================================================
   3. Homepage resources and additional record links
   ========================================================== */

.season-tools,
.records-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.tool-card .icon {
  background: #fff4c4;
  color: #675519;
}

.records-extra {
  margin-top: 12px;
}

.records-extra a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-width: 0;
  min-height: 48px;
  padding: 13px 16px;
  background: #e9ecf1;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.records-extra a > span {
  flex-shrink: 0;
}

/* ==========================================================
   4. Homepage community and missing-data panels
   ========================================================== */

.community {
  display: grid;
  gap: 15px;
  margin-top: 27px;
}

.community > * {
  min-width: 0;
}

.help-panel {
  padding: 21px;
  background: var(--ink);
  border-radius: 11px;
  color: var(--surface);
}

.help-panel .eyebrow {
  color: var(--yellow);
}

.help-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.help-panel p {
  max-width: 530px;
  margin: 0 0 18px;
  color: var(--header-muted);
  font-size: 13px;
}

.help-panel .button {
  width: 100%;
}

.community-links {
  display: grid;
  gap: 10px;
}

.community-links .card {
  align-items: center;
}

/* ==========================================================
   5. Team-index profile header
   ========================================================== */

.team-page .team-hero {
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--ink);
  border-radius: 13px;
  color: var(--surface);
}

.team-page .hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
}

.team-page .hero-main > div:last-child {
  min-width: 0;
}

.team-page .team-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 68px;
  flex: 0 0 58px;
  background: var(--surface);
  border-bottom: 8px solid #aeb4be;
  border-radius: 12px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 900;
}

.team-page .team-hero .eyebrow {
  color: var(--yellow);
}

.team-page .team-hero h1 {
  margin: 0 0 9px;
  font-size: clamp(28px, 5vw, 43px);
  line-height: 1.15;
}

.team-page .hero-description {
  margin: 0;
  font-size: 13px;
}

.team-page .hero-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 13px 20px;
  background: #24272c;
  color: var(--header-muted);
  font-size: 11px;
}

/* ==========================================================
   6. Team-index featured match-archive link
   ========================================================== */

.team-page .featured {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px;
  background: #fff8dc;
  border: 1px solid #e5d28a;
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  text-decoration: none;
}

.team-page .featured > div {
  min-width: 0;
}

.team-page .featured h2 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -0.4px;
}

.team-page .featured p {
  margin: 0;
  color: #675d3e;
  font-size: 13px;
}

.team-page .featured-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: var(--yellow);
  border-radius: 9px;
  font-size: 23px;
}

/* ==========================================================
   7. Team-index navigation cards
   ========================================================== */

.team-page .nav-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.team-page .nav-card h3 {
  margin: 1px 0 6px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.team-page .nav-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.team-page .card-arrow {
  flex-shrink: 0;
  padding-top: 2px;
  color: #697483;
}

.team-page .history-card {
  align-items: center;
}

/* Support link retained from the original team preview. */
.team-page .support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid #b7bec8;
  border-radius: var(--radius-small);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

/* Optional mock-up destination panel; remove for production. */
.team-page .destination {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px dashed #b9c0ca;
  border-radius: 9px;
  scroll-margin-top: 20px;
}

.team-page .destination h2 {
  margin: 0 0 5px;
  font-size: 15px;
}

.team-page .destination p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* ==========================================================
   8. Wider phones
   ========================================================== */

@media (min-width: 480px) {
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-actions .button {
    flex: 1 1 190px;
  }

  .season-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card {
    position: relative;
    flex-direction: column;
    padding: 17px;
  }

  .tool-card > .arrow {
    position: absolute;
    top: 18px;
    right: 17px;
  }

  .season-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }
}

/* ==========================================================
   9. Tablets
   ========================================================== */

@media (min-width: 700px) {
  .hero-layout {
    padding-block: 34px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .season-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .records-extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .help-panel .button {
    width: auto;
  }

  .team-page .hero-main {
    gap: 24px;
    padding: 30px;
  }

  .team-page .team-badge {
    width: 78px;
    height: 86px;
    flex-basis: 78px;
    font-size: 28px;
  }

  .team-page .hero-footer {
    gap: 10px 24px;
    padding: 13px 30px;
  }

  .team-page .featured {
    padding: 21px 24px;
  }

  .team-page .nav-card {
    padding: 20px;
  }

  .team-page .support-link {
    width: auto;
    flex-shrink: 0;
  }
}

/* ==========================================================
   10. Desktop
   ========================================================== */

@media (min-width: 1000px) {
  .hero-layout {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 40px;
    padding-block: 40px;
  }

  .hero h1 {
    font-size: 51px;
    letter-spacing: -1.8px;
  }

  .hero-actions .button {
    flex: 0 1 auto;
  }

  .season-tools {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .community {
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
  }

  .help-panel {
    padding: 25px;
  }
}

/* ==========================================================
   11. Hover and motion preferences
   ========================================================== */

@media (hover: hover) {
  .season-results:hover {
    background: #f0c21c;
  }

  .season-links a:hover {
    color: var(--yellow);
  }

  .records-extra a:hover,
  .team-page .support-link:hover {
    background: #fff4c4;
  }

  .team-page .featured:hover {
    background: #fff2ba;
  }

  .team-page .nav-card:hover {
    background: #fffdf4;
    border-color: #c5a325;
    box-shadow: 0 4px 16px #17191c08;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .season-results,
  .records-extra a,
  .team-page .featured,
  .team-page .nav-card,
  .team-page .support-link {
    transition: background 120ms ease, border-color 120ms ease;
  }
}

/* ==========================================================
   12. Homepage carousel
   Requires the existing season-panel and ladder styles.
   ========================================================== */

.home-page .home-carousel {
  min-width: 0;
}

/* Explicitly preserve hidden elements before JS initialisation. */
.home-page .home-carousel [hidden] {
  display: none !important;
}

/* All slides contribute to the same grid row's height.
   This prevents the panel jumping when slides change. */
.home-page .home-carousel.is-ready .home-carousel-slides {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.home-page .home-carousel.is-ready .home-carousel-slide {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-page .home-carousel.is-ready .home-carousel-slide.is-active {
  visibility: visible;
  pointer-events: auto;
}

/* Placeholder content: no invented statistics or standings. */
.home-page .carousel-placeholder {
  padding: 24px 20px;
}

.home-page .carousel-kicker {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.home-page .carousel-placeholder h3 {
  margin: 0 0 14px;
  color: var(--surface);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.home-page .carousel-placeholder > p:not(.carousel-kicker) {
  margin: 0 0 16px;
  color: var(--header-muted);
  font-size: 14px;
  line-height: 1.65;
}

.home-page .carousel-placeholder .carousel-data-note {
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid #414650;
  font-size: 12px;
}

/* Persistent navigation beneath every slide. */
.home-page .home-carousel-controls {
  padding: 10px 12px 4px;
  border-top: 1px solid #414650;
  background: #202329;
}

.home-page .home-carousel-control-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-page .carousel-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #505763;
  border-radius: 8px;
  background: transparent;
  color: var(--surface);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.home-page .carousel-toggle {
  min-width: 58px;
  font-size: 12px;
  font-weight: 700;
}

.home-page .carousel-position {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  color: var(--header-muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
}

.home-page .carousel-position [data-carousel-name] {
  color: var(--surface);
  font-size: 12px;
  font-weight: 650;
}

.home-page .carousel-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

/* The visible dots are small; their touch targets are 44px. */
.home-page .carousel-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.home-page .carousel-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid #aeb6c3;
  border-radius: 50%;
  background: transparent;
}

.home-page .carousel-indicator[aria-current="true"]::before {
  border-color: var(--yellow);
  background: var(--yellow);
}

.home-page .carousel-control:focus-visible,
.home-page .carousel-indicator:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

@media (hover: hover) {
  .home-page .carousel-control:hover {
    border-color: var(--yellow);
    color: var(--yellow);
  }

  .home-page .carousel-indicator:hover::before {
    border-color: var(--yellow);
  }
}
/* Homepage carousel: fixture spacing and typography */
.home-page .home-carousel .carousel-fixtures {
  padding: 0 22px 18px;
}

/* Match the inset used by the milestone placeholder. */
.home-page .home-carousel .carousel-fixtures-intro {
  padding: 24px 0 18px;
}

.home-page .home-carousel .carousel-fixtures-intro .carousel-kicker {
  margin: 0 0 10px;
}

.home-page .home-carousel .carousel-fixtures-intro h3 {
  margin: 0;
  color: var(--surface);
  font-size: 22px;
  line-height: 1.3;
}

.home-page .home-carousel .carousel-fixtures-notice {
  margin: 10px 0 0;
  color: var(--header-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Remove browser-default bullets and list indentation. */
.home-page .home-carousel .carousel-fixture-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .home-carousel .carousel-fixture {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid #414650;
  list-style: none;
}

.home-page .home-carousel .carousel-fixture-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  color: var(--surface);
  font-size: 15px;
  line-height: 1.5;
}

.home-page .home-carousel .carousel-fixture-home,
.home-page .home-carousel .carousel-fixture-away {
  font-weight: 750;
  text-align: left;
}

.home-page .home-carousel .carousel-fixture-vs {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 400;
}

/* Date/time on one line; venue beneath it. */
.home-page .home-carousel .carousel-fixture-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 6px;
  color: var(--header-muted);
  font-size: 12px;
  line-height: 1.5;
}

.home-page .home-carousel .carousel-fixture-venue {
  margin-left: 0;
  text-align: left;
}

.home-page .home-carousel .carousel-fixtures-empty {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid #414650;
  color: var(--header-muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 479px) {
  .home-page .home-carousel .carousel-fixtures {
    padding-right: 16px;
    padding-left: 16px;
  }
}
/* Next-round fixtures: two columns on wider screens */
@media (min-width: 480px) {
  .home-page .home-carousel .carousel-fixture-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    column-gap: 24px;
    align-items: start;
  }

  .home-page .home-carousel .carousel-fixture {
    min-width: 0;
    padding: 12px 0;
  }

  .home-page .home-carousel .carousel-fixture-teams {
    font-size: 14px;
  }
}

/* Keep fixtures in their original order on mobile. */
@media (max-width: 479px) {
  .home-page .home-carousel .carousel-fixture-list {
    display: block;
  }
}
/* Homepage carousel: upcoming player milestones */
.home-page .home-carousel .carousel-milestones {
  padding: 20px 22px;
}

.home-page .home-carousel .carousel-milestones-note {
  margin: 0 0 18px;
  color: var(--header-muted, #c5cbd3);
  font-size: 13px;
  line-height: 1.5;
}

.home-page .home-carousel .carousel-milestone-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.home-page .home-carousel .carousel-milestone-group {
  min-width: 0;
}

.home-page .home-carousel .carousel-milestone-heading {
  margin: 0 0 8px;
  color: var(--yellow, #ffcc00);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.home-page .home-carousel .carousel-milestone-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .home-carousel .carousel-milestone-player {
  margin: 0;
  padding: 4px 0;
  color: var(--surface, #fff);
  font-size: 14px;
  line-height: 1.5;
  list-style: none;
  overflow-wrap: anywhere;
}

.home-page .home-carousel .carousel-milestone-count {
  font-weight: 700;
}

.home-page .home-carousel .carousel-milestone-team {
  color: var(--header-muted, #c5cbd3);
}

.home-page .home-carousel .carousel-milestones-empty {
  margin: 0;
  color: var(--header-muted, #c5cbd3);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 479px) {
  .home-page .home-carousel .carousel-milestones {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-page .home-carousel .carousel-milestone-groups {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================
   Slide 5: Rodriguez Shield
   Matches the Slide 1 ladder styling
   ========================================================== */

.home-page .home-carousel .carousel-shield {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.home-page .home-carousel .carousel-shield-season {
  margin: 0;
  padding: 12px 20px 6px;
  color: var(--header-muted, #c5cbd3);
  font-size: 13px;
  font-weight: 400;
}

.home-page .home-carousel .carousel-shield-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
}

/* Full-width table, with scrolling only on smaller screens. */
.home-page .home-carousel .carousel-shield-table {
  width: 100%;
  min-width: 440px;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--surface, #fff);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* Column widths total 100%. */
.home-page .carousel-shield-table .shield-position-column {
  width: 6%;
}

.home-page .carousel-shield-table .shield-team-column {
  width: 28%;
}

.home-page .carousel-shield-table .shield-stat-column {
  width: 11%;
}

.home-page .carousel-shield-table .shield-total-column {
  width: 11%;
}

/* Plain background: no alternating rows or hover shading. */
.home-page .home-carousel .carousel-shield-table thead,
.home-page .home-carousel .carousel-shield-table tbody,
.home-page .home-carousel .carousel-shield-table tbody tr,
.home-page .home-carousel .carousel-shield-table tbody tr:nth-child(even),
.home-page .home-carousel .carousel-shield-table tbody tr:hover {
  background: transparent;
}

.home-page .home-carousel .carousel-shield-table th,
.home-page .home-carousel .carousel-shield-table td {
  padding: 6px 4px;
  vertical-align: middle;
  text-align: center;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 400;
  line-height: 1.4;
}

.home-page .home-carousel .carousel-shield-table thead th {
  padding-top: 10px;
  padding-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  white-space: nowrap;
}

/* Keep tooltips without dotted underlines. */
.home-page .carousel-shield-table abbr[title] {
  text-decoration: none;
  border-bottom: none;
}

/* Wrap longer team names to keep the team column narrow. */
.home-page .home-carousel .carousel-shield-table tbody .shield-team {
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: 400;
}



/* Total points bold use the same styling as the other numbers. */
.home-page .home-carousel .carousel-shield-table .carousel-shield-total {
  background: transparent;
  color: inherit;
  font-weight: 700;
}

.home-page .home-carousel .carousel-shield-key {
  margin: 0;
  padding: 12px 20px;
  color: var(--header-muted, #c5cbd3);
  font-size: 11px;
  line-height: 1.5;
}

.home-page .home-carousel .carousel-shield-empty {
  margin: 0;
  padding: 20px;
  color: var(--header-muted, #c5cbd3);
  font-size: 13px;
}

.home-page .home-carousel .carousel-shield-table-wrap:focus-visible {
  outline: 2px solid var(--yellow, #ffcc00);
  outline-offset: -2px;
}

/* Accessible caption, visually hidden. */
.home-page .home-carousel .carousel-shield-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Current-season button beneath the main hero links. */
.home-page .hero-season-action {
  margin-top: 24px;
  width:100%;
}
