/* Homepage-only discovery and card layer. Shared header, intro, and featured hero stay unchanged. */
.homepage .home-section {
  scroll-margin-top: 100px;
  margin-top: clamp(30px, 4vw, 46px);
}

.homepage .home-discovery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.homepage .home-discovery-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #334b57;
  border-radius: 7px;
  background: #12212c;
  color: #d6e6e8;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.homepage .home-discovery-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.homepage .home-section .section-heading {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 15px;
}

.homepage .home-section .section-heading h2 {
  min-width: 0;
  white-space: normal;
  line-height: 1.22;
  text-wrap: balance;
}

.homepage .home-section .section-heading > a {
  flex-shrink: 0;
  max-width: 37%;
  text-align: right;
  line-height: 1.5;
  padding-top: 5px;
}

.homepage .home-section-intro {
  max-width: 75ch;
  margin: -4px 0 18px;
  color: #b3c6cc;
  font-size: 14px;
  line-height: 1.65;
}

.homepage .home-section-intro strong {
  color: #d8e8e9;
  font-weight: 700;
}

.homepage .home-card-kicker {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .065em;
  text-transform: uppercase;
}

/* Six latest stories: two readable editorial columns while space allows. */
.homepage .home-news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.homepage .home-news-grid .news-card {
  min-width: 0;
  border-color: #304853;
  border-radius: 9px;
  background: #111f2b;
}

.homepage .home-news-grid .news-card:hover {
  transform: none;
  border-color: #89a56b;
  box-shadow: none;
}

.homepage .home-news-grid .news-image {
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.homepage .home-news-grid .news-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a1722;
}

.homepage .home-news-grid .news-card-body {
  min-width: 0;
  padding: 15px;
}

.homepage .home-news-grid h3 {
  min-height: 0;
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.35;
  text-wrap: balance;
}

.homepage .home-news-grid h3 a,
.homepage .home-news-grid p,
.homepage .home-news-grid .card-meta {
  overflow-wrap: anywhere;
}

.homepage .home-news-grid h3 a {
  text-decoration: none;
}

.homepage .home-news-grid p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 0;
  margin: 8px 0 14px;
  color: #b9cdd2;
  font-size: 14px;
  line-height: 1.58;
}

.homepage .home-news-grid .card-meta {
  line-height: 1.55;
}

/* Dated previews are editorial cards, not live-score fixtures. */
.homepage .home-preview-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.homepage .home-preview-card {
  position: relative;
  min-width: 0;
  padding: 17px 19px;
  border: 1px solid #38555d;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: linear-gradient(105deg, #172c32, #111e2a);
}

.homepage .home-preview-card:hover {
  border-color: #9caf70;
}

.homepage .home-preview-card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  text-wrap: balance;
}

.homepage .home-preview-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.homepage .home-preview-card p {
  margin: 0 0 5px;
  color: #c2d8dd;
  font-size: 14px;
  line-height: 1.55;
}

.homepage .home-preview-card time,
.homepage .home-timing-note {
  overflow-wrap: anywhere;
}

.homepage .home-preview-card small,
.homepage .home-timing-note {
  color: #9eb8c0;
  font-size: 12px;
  line-height: 1.5;
}

.homepage .home-timing-note {
  display: block;
  margin: 7px 0 0;
}

.homepage .home-analysis-feature {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 17px;
  border: 1px solid #455c61;
  border-radius: 12px;
  background: linear-gradient(125deg, #162932, #11202c);
}

.homepage .home-analysis-image {
  position: relative;
  display: flex;
  flex: 0 0 38%;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #0b1522;
}

.homepage .home-analysis-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.homepage .home-analysis-feature > div {
  min-width: 0;
}

.homepage .home-analysis-feature h3 {
  margin: 7px 0 9px;
  font-size: 23px;
  line-height: 1.2;
  text-wrap: balance;
}

.homepage .home-analysis-feature h3 a {
  color: var(--ink);
  text-decoration: none;
}

.homepage .home-analysis-feature p {
  margin: 0 0 10px;
  color: #b8cdd2;
  font-size: 14px;
  line-height: 1.65;
}

.homepage .home-analysis-feature small {
  color: #a5bdc4;
  font-size: 11px;
  line-height: 1.55;
}

.homepage .home-cover-note {
  position: absolute;
  bottom: 6px;
  left: 7px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #0b1522dc;
  color: #d7e7e8;
  font-size: 9px;
}

.homepage .home-team-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.homepage .home-team-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 89px;
  padding: 13px 28px 13px 14px;
  border: 1px solid #304853;
  border-radius: 8px;
  background: #111e2a;
  text-decoration: none;
}

.homepage .home-team-links a:hover {
  border-color: #a4be75;
}

.homepage .home-team-links strong {
  color: var(--gold);
  font-size: 16px;
}

.homepage .home-team-links span {
  color: #b6cbd2;
  font-size: 12px;
  line-height: 1.55;
}

.homepage .home-team-links b {
  position: absolute;
  top: 13px;
  right: 12px;
  color: #9bbdb5;
  font-size: 13px;
}

.homepage .home-supporting-link {
  margin: 13px 0 0;
  color: #aabec6;
  font-size: 13px;
  line-height: 1.8;
}

.homepage .home-supporting-link a,
.homepage .home-archive-guides a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Insights retain a compact three-column desktop grid; each item remains legible. */
.homepage .home-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.homepage .home-guide-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #314653;
  border-radius: 10px;
  background: #111e2a;
}

.homepage .home-guide-card:hover {
  border-color: #89a56b;
}

.homepage .home-guide-card > a {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1722;
}

.homepage .home-guide-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.homepage .home-guide-body {
  min-width: 0;
  padding: 14px;
}

.homepage .home-guide-body h3 {
  margin: 7px 0 10px;
  font-size: 17px;
  line-height: 1.32;
  text-wrap: balance;
}

.homepage .home-guide-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.homepage .home-guide-body p {
  margin: 0 0 11px;
  color: #aabfc7;
  font-size: 14px;
  line-height: 1.58;
}

.homepage .home-guide-body small {
  display: block;
  color: #9fb7bf;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.homepage .home-guide-body small a {
  color: #c7e681;
  text-underline-offset: 2px;
}

.homepage .home-ground-grid .home-guide-body h3 {
  font-size: 16px;
}

/* Six earnings cards use the same restrained hierarchy without implying live values. */
.homepage .home-earnings-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.homepage .home-earnings-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #304853;
  border-radius: 8px;
  background: #111f2b;
}

.homepage .home-earnings-card:hover {
  border-color: #a4be75;
}

.homepage .home-earnings-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.homepage .home-earnings-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.homepage .home-earnings-card span {
  color: #a9c0c9;
  font-size: 12px;
  line-height: 1.5;
}

.homepage .home-earnings-card small {
  color: #91aab3;
  font-size: 11px;
  line-height: 1.5;
}

/* Sidebar additions: useful dated previews and section discovery, never live scores. */
.homepage .home-upcoming-list {
  display: flex;
  flex-direction: column;
  padding: 0 13px;
}

.homepage .home-upcoming-card {
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.homepage .home-upcoming-card:last-child {
  border-bottom: 0;
}

.homepage .home-upcoming-card:hover h3 a {
  color: var(--gold);
}

.homepage .home-upcoming-card h3 {
  margin: 5px 0 6px;
  font-size: 15px;
  line-height: 1.35;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.homepage .home-upcoming-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.homepage .home-upcoming-card p {
  margin: 0;
  color: #b6cbd0;
  font-size: 13px;
  line-height: 1.5;
}

.homepage .home-upcoming-card time {
  overflow-wrap: anywhere;
}

.homepage .home-upcoming-card small.home-timing-note {
  margin-top: 5px;
  font-size: 11px;
}

.homepage .home-tournament-rail .home-rail-links {
  display: grid;
  gap: 8px;
  padding: 11px 13px 13px;
}

.homepage .home-tournament-rail .home-rail-links a {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #304853;
  border-radius: 7px;
  background: #122430;
}

.homepage .home-tournament-rail .home-rail-links a:hover {
  border-color: #a4be75;
}

.homepage .home-tournament-rail .home-rail-links strong {
  color: var(--gold);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.homepage .home-tournament-rail .home-rail-links span {
  color: #afc4cc;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.homepage .home-coverage-note {
  margin: 0;
  padding: 10px 13px 13px;
  border-top: 1px solid var(--line);
  color: #9fb6bd;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.homepage .home-coverage-note a {
  color: var(--gold);
  text-underline-offset: 2px;
}

.homepage .home-archive-guides {
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.homepage .home-archive-guides p {
  margin: 0 0 12px;
  color: #afc4cc;
  font-size: 14px;
  line-height: 1.75;
}

.homepage .home-snapshot-note {
  line-height: 1.7;
}

.homepage .home-news-grid a:focus-visible,
.homepage .home-discovery-nav a:focus-visible,
.homepage .home-preview-list a:focus-visible,
.homepage .home-team-links a:focus-visible,
.homepage .home-analysis-feature a:focus-visible,
.homepage .home-guide-card a:focus-visible,
.homepage .home-earnings-card a:focus-visible,
.homepage .home-league-card a:focus-visible,
.homepage .home-upcoming-card a:focus-visible,
.homepage .home-rail-links a:focus-visible,
.homepage .home-archive-guides a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 3px;
}

@media (max-width: 1030px) {
  .homepage .home-guide-grid,
  .homepage .home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage .home-team-links,
  .homepage .home-earnings-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage .home-league-card {
    grid-template-columns: 1fr 1fr;
  }

  .homepage .home-league-card nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .homepage .home-analysis-feature {
    gap: 14px;
  }

  .homepage .home-analysis-feature h3 {
    font-size: 21px;
  }
}

@media (max-width: 900px) {
  .homepage .home-news-grid,
  .homepage .home-guide-grid,
  .homepage .home-earnings-list,
  .homepage .home-team-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .homepage .home-discovery-nav {
    gap: 7px;
  }

  .homepage .home-discovery-nav a {
    padding: 6px 9px;
    font-size: 11px;
  }

  .homepage .home-section .section-heading {
    flex-wrap: wrap;
    gap: 7px;
  }

  .homepage .home-section .section-heading > a {
    max-width: none;
    padding: 0;
    text-align: left;
  }

  .homepage .home-section-intro {
    font-size: 13px;
  }

  .homepage .home-guide-grid,
  .homepage .home-earnings-list,
  .homepage .home-team-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage .home-analysis-feature {
    align-items: flex-start;
    padding: 13px;
  }

  .homepage .home-analysis-image {
    flex-basis: 33%;
    align-self: flex-start;
  }

  .homepage .home-analysis-feature h3 {
    font-size: 20px;
  }

  .homepage .home-preview-card h3 {
    font-size: 17px;
  }
}

@media (max-width: 620px) {
  .homepage .home-guide-grid,
  .homepage .home-earnings-list,
  .homepage .home-team-links {
    grid-template-columns: 1fr;
  }

  .homepage .home-guide-card {
    display: grid;
    grid-template-columns: 32% minmax(0, 1fr);
  }

  .homepage .home-guide-card > a {
    display: flex;
    align-items: center;
    height: 100%;
    aspect-ratio: auto;
  }

  .homepage .home-guide-card img {
    height: auto;
  }

  .homepage .home-guide-body {
    padding: 13px;
  }

  .homepage .home-guide-body h3 {
    font-size: 16px;
  }

  .homepage .home-guide-body p {
    font-size: 13px;
  }

  .homepage .home-cover-note {
    display: none;
  }

  .homepage .home-earnings-card {
    padding: 13px;
  }

  .homepage .home-earnings-card h3 {
    font-size: 15px;
  }
}

@media (max-width: 440px) {
  .homepage .home-news-grid {
    gap: 10px;
  }

  .homepage .home-news-grid .news-card-body {
    padding: 13px;
  }

  .homepage .home-news-grid h3 {
    font-size: 16px;
    line-height: 1.4;
  }

  .homepage .home-news-grid .home-card-kicker {
    font-size: 9px;
  }

  .homepage .home-news-grid p {
    -webkit-line-clamp: 3;
    font-size: 13px;
  }

  .homepage .home-news-grid .card-meta {
    font-size: 10px;
  }

  .homepage .home-analysis-feature {
    display: block;
  }

  .homepage .home-analysis-image {
    float: right;
    width: 30%;
    margin: 0 0 9px 12px;
  }

  .homepage .home-analysis-feature > div {
    min-width: 0;
  }

  .homepage .home-analysis-feature::after {
    display: block;
    clear: both;
    content: "";
  }

  .homepage .home-league-card {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .homepage .home-league-card nav {
    margin-top: 6px;
  }

  .homepage .home-ground-grid .home-guide-body h3 {
    font-size: 15px;
  }
}

@media (max-width: 390px) {
  .homepage .home-guide-card {
    grid-template-columns: 30% minmax(0, 1fr);
  }

  .homepage .home-guide-body {
    padding: 12px;
  }

  .homepage .home-guide-body h3 {
    font-size: 15px;
  }

  .homepage .home-guide-body p {
    font-size: 12px;
  }

  .homepage .home-upcoming-list {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage .home-news-grid .news-card,
  .homepage .home-team-links a,
  .homepage .home-guide-card,
  .homepage .home-earnings-card,
  .homepage .home-tournament-rail .home-rail-links a {
    transition: none;
  }
}
