/* White home containers: inset ladder rows and the shared search-feed treatment. */
.home-ladder-live.afl-ladder,
.home-sections .home-most-searched-card {
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  background: #fff;
  color: #192b43;
  box-shadow: 0 2px 7px #192b4305;
  padding: 18px;
}
.home-ladder-live.afl-ladder::before,
.home-sections .home-most-searched-card::before { content: none; }
#homeLadderHost { min-width: 0; }
.home-ladder-live .ladder-header { flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0 0 16px; border-bottom: 1px solid #e1e7ef; }
.home-ladder-live .ladder-header .competition-switch { float: none; margin: 0 0 0 auto; }
.home-ladder-live .home-leaders-heading-icon { background: #edf2f8; }
.home-ladder-live .home-season-leaders-title { margin: 0; color: #192b43; font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-transform: none; }
.home-ladder-live .ladder-grid { gap: 8px; }
.home-ladder-live :is(.ladder-grid-head, .ladder-item) {
  grid-template-columns: minmax(0, 1fr) repeat(4, 27px) 44px 31px;
  column-gap: 5px;
  padding: 10px 8px;
}
.home-ladder-live .ladder-grid-head { padding-top: 0; padding-bottom: 0; font-size: .64rem; letter-spacing: .035em; }
.home-ladder-live .ladder-grid-body { gap: 6px; }
.home-ladder-live.afl-ladder .ladder-item {
  border: 1px solid #e1e7ef;
  border-left: 3px solid var(--card-edge, var(--team-primary, #192b43));
  border-radius: 9px;
  background: #fff;
  color: #192b43;
  min-height: 44px;
}
.home-ladder-live.afl-ladder .ladder-item:hover { background: #f7f9fc; }
.home-ladder-live .ladder-cell.club { min-width: 0; gap: 7px; }
.home-ladder-live.afl-ladder .team-rank { width: 21px; height: 24px; border-radius: 0; background: transparent; color: #192b43; font-size: .75rem; font-weight: 600; }
.home-ladder-live.afl-ladder .team-logo { width: 20px; height: 20px; }
.home-ladder-live .team-name-link { min-width: 0; }
.home-ladder-live.afl-ladder .team-name { font-size: .75rem; line-height: 1.3; font-weight: 500; white-space: normal; overflow-wrap: anywhere; }
.home-ladder-live .team-name-link:hover .team-name { color: #192b43; text-decoration: none; }
.home-ladder-live .ladder-head.stat { text-align: center; }
.home-ladder-live :is(.ladder-cell.stat, .stat-value) { color: #192b43; font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.home-ladder-live :is(.ladder-cell.stat b, .points-cell) { font-weight: 600; }
.home-ladder-live .ladder-cell.points-cell { font-weight: 700; }
.home-ladder-live.afl-ladder .ladder-divider { height: 1px; margin: 2px 3px; background: #cbd5e1; }
.home-ladder-live .home-ladder-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: #62738b; font-size: .75rem; }
.home-ladder-live .ladder-toggle { margin: 0 0 0 auto; border: 1px solid #e1e7ef; border-radius: 8px; padding: 8px 10px; font-size: .75rem; min-height: 34px; color: #192b43; }
.home-ladder-live .ladder-toggle::after { content: ''; width: 6px; height: 6px; margin: -3px 2px 0 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.home-ladder-live .ladder-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }
.home-ladder-live :is(.team-name-link, .ladder-toggle):focus-visible { outline: 3px solid #2975c5; outline-offset: 3px; }

.home-sections .home-most-searched-card { gap: 14px; min-height: 0; }
.home-most-searched-card .home-most-searched-heading-row { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding-bottom: 16px; }
.home-most-searched-card .home-live-queries-title { font-size: 1.125rem; }
.home-most-searched-card .home-most-searched-list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.home-most-searched-card .home-most-searched-row { display: block; min-height: 0; padding: 0; border: 0; }
.home-most-searched-card .home-most-searched-question {
  display: grid;
  grid-template-columns: minmax(76px, max-content) minmax(0, 1fr) 8px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
  color: #192b43;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  transition: border-color .15s ease, background-color .15s ease;
}
.home-most-searched-card .home-most-searched-question::after { content: ''; width: 6px; height: 6px; border-top: 1.5px solid #64748b; border-right: 1.5px solid #64748b; transform: rotate(45deg); }
.home-most-searched-card .home-most-searched-question:hover { background: #f7f9fc; border-color: #cbd5e1; color: #192b43; text-decoration: none; }
.home-most-searched-card .home-most-searched-question:focus-visible { outline: 3px solid #2975c5; outline-offset: -3px; color: #192b43; text-decoration: none; }
.home-most-searched-card .home-most-searched-text { min-width: 0; color: #192b43; font-size: .875rem; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.home-most-searched-card .home-most-searched-count { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 5px; padding: 6px; background: #edf2f8; color: #526176; font-size: .6875rem; font-weight: 500; line-height: 1.3; text-align: center; white-space: nowrap; }
.home-most-searched-card .home-most-searched-count strong { color: inherit; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-most-searched-card .home-most-searched-pagination { justify-content: space-between; padding-top: 14px; border-top: 1px solid #e1e7ef; gap: 8px; }
.home-most-searched-card .home-most-searched-page-link { border-color: #e1e7ef; border-radius: 8px; color: #192b43; font-size: .75rem; font-weight: 500; }
.home-most-searched-card .home-most-searched-page-link.is-disabled { background: #fff; color: #94a3b8; }
.home-most-searched-card .home-most-searched-page-status { font-weight: 500; font-variant-numeric: tabular-nums; }
.home-most-searched-card .home-most-searched-empty { background: #fff; }

@media (max-width: 820px) {
  .home-ladder-live.afl-ladder { padding: 12px; }
  .home-ladder-live :is(.ladder-grid-head, .ladder-item) { grid-template-columns: minmax(0, 1fr) repeat(4, 24px) 40px 27px; column-gap: 4px; padding-left: 5px; padding-right: 5px; }
  .home-ladder-live .ladder-cell.club { gap: 5px; }
  .home-ladder-live .home-season-leaders-title { font-size: 1.12rem; }
  .home-ladder-live .home-leaders-heading-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .home-ladder-live .home-ladder-footer { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .home-sections .home-most-searched-card { padding: 13px; }
  .home-most-searched-card .home-most-searched-question { grid-template-columns: 58px minmax(0, 1fr) 8px; gap: 9px; padding: 9px 10px; }
  .home-most-searched-card .home-most-searched-count { flex-direction: column; gap: 0; padding: 6px 3px; white-space: normal; overflow-wrap: anywhere; }
  .home-most-searched-card .home-most-searched-text { font-size: .8125rem; }
}
@media (max-width: 380px) {
  .home-ladder-live :is(.ladder-grid-head, .ladder-item) { grid-template-columns: minmax(0, 1fr) repeat(4, 20px) 36px 23px; column-gap: 2px; padding-left: 3px; padding-right: 3px; }
  .home-ladder-live .ladder-cell.club { gap: 3px; }
  .home-ladder-live.afl-ladder .team-rank { width: 17px; }
  .home-ladder-live.afl-ladder .team-logo { width: 17px; height: 17px; }
  .home-ladder-live :is(.ladder-cell.stat, .stat-value, .team-name) { font-size: .6875rem; }
}
@media (pointer: coarse) {
  .home-ladder-live .ladder-toggle,
  .home-most-searched-card .home-most-searched-page-link { min-height: 44px; }
}
/* Keep the initial desktop-sized shell compact until the mobile feed arrives. */
@media (max-width: 820px) {
  .home-most-searched-list > .home-most-searched-row:nth-child(n + 6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-most-searched-card .home-most-searched-question { transition: none; }
}
