.header-table-link { display: none; }
.home-table-jumps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 0 clamp(12px, 1.4vw, 22px);
  border-block: 1px solid #bdcbbf;
  background: #f0f3eb;
}
.home-table-jumps a,
.search-shortcuts a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  padding: .25rem clamp(.6rem, 2vw, 2rem);
  color: #204c35;
  font: 600 1rem/1.55 var(--tiran-interface);
}
.home-table-jumps a:first-child {
  color: #fffcef;
  background: #193f2e;
}
.home-table-jumps a .ico { width: 18px; height: 18px; }
.home-table-jumps .team-mark { width: 22px; height: 16px; flex-basis: 22px; }
.home-table-jumps a:is(:hover,:focus-visible),
.search-shortcuts a:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: .2em; }
.search-shortcuts { display: flex; flex-wrap: wrap; flex: none; gap: 0 12px; }
.search-shortcuts a { padding-inline: 0; font-size: var(--type-label); }
.home-recent-games {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 clamp(12px,3vw,42px);
}
.home-recent-games li { container: recent-result / inline-size; min-inline-size: 0; border-bottom: 1px solid #d3ddd1; }
tr[id^="club-"] { scroll-margin-block-start: 20px; }
tr[id^="club-"]:target > * { background: #e6eddb; box-shadow: inset 0 -2px #a67925; }
@media (max-width: 78em) {
  .header-table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: .45rem;
    color: inherit;
    font: 650 1rem/1.5 var(--tiran-interface);
  }
}
@media (max-width: 600px) {
  .home-recent-games { grid-template-columns: minmax(0,1fr); }
  .home-table-jumps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .home-table-jumps a:first-child { grid-column: 1 / -1; justify-content: flex-start; padding-inline: 10px; }
  .home-table-jumps a { padding-inline: 2px; font-size: 1rem; }
  .home-table-jumps .side-team { gap: .28em; }
  .home-table-jumps .team-mark { width: 18px; height: 14px; flex-basis: 18px; }
}
@media (max-width: 450px) {
  .site-header .saved-tool { display: none; }
  .site-header .head-inner { gap: 8px; }
}
@media print {
  .home-table-jumps, .header-table-link { display: none; }
}
.home-result-date { grid-column: 1 / -1; font-size: var(--type-caption); line-height: 1.5; color: #43574a; text-align: center; }
.home-recent-games li a { border-block-end: 0; }
.home-botola-games.home-recent-games .home-match-score { background: var(--score-paper); color: var(--score-ink); }
@container recent-result (max-width: 24rem) {
  .home-recent-games li a {
    grid-template-columns: minmax(0,1fr) auto;
    gap: .24rem .65rem;
  }
  .home-botola-games.home-recent-games a > .side-team {
    grid-column: 1;
    flex-direction: row;
    justify-content: flex-start;
    text-align: start;
  }
  .home-recent-games .side-team:first-child { grid-row: 1; }
  .home-recent-games .side-team ~ .side-team { grid-row: 2; }
  .home-recent-games .home-match-score { display: contents; }
  .home-recent-games .home-match-score > b {
    grid-column: 2;
    min-inline-size: 1.6em;
    padding-inline: .25em;
    background: var(--score-paper);
    color: var(--score-ink);
    text-align: center;
    border-radius: 3px;
    font-variant-numeric: tabular-nums;
  }
  .home-recent-games .home-match-score > b:first-child { grid-row: 1; }
  .home-recent-games .home-match-score > b:last-child { grid-row: 2; }
  .home-recent-games .home-match-score > i { display: none; }
  .home-recent-games .home-result-date { grid-row: 3; text-align: start; }
}
@media (max-width: 600px) {
  .home-table-jumps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
  .home-table-jumps a:first-child { grid-column: auto; justify-content: center; padding-inline: 2px; }
}

/* Position labels stay visible in the compact, full and print versions. */
.stand-champions, .stand-quarter { --band-ink: #145646; --band-accent: #22836b; }
.stand-confed { --band-ink: #75480a; --band-accent: #a66b1f; }
.stand-title { --band-ink: #254e81; --band-accent: #376bab; }
.stand-survival { --band-ink: #3e4c5b; --band-accent: #778697; }
.stand-playoff { --band-ink: #82460a; --band-accent: #b16b21; }
.stand-drop, .stand-risk { --band-ink: #8c2739; --band-accent: #b34356; }
.stand-guide { margin-block: .25rem 1.1rem; padding: .8rem 1rem; border-block-start: 2px solid #234d3f; background: #f1f3ed; color: #20382f; }
.stand-guide h3 { font: 700 1.13rem/1.65 var(--tiran-interface); }
.stand-guide ul { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; list-style: none; padding: 0; margin: .55rem 0; }
.stand-guide li { border-inline-start: 4px solid var(--band-accent); padding-inline-start: .42rem; color: var(--band-ink); font: 700 .93rem/1.65 var(--tiran-interface); }
.stand-guide li bdi { font-variant-numeric: tabular-nums; }
.stand-guide p { max-width: 82ch; margin-block: .25rem; font-size: 1rem; line-height: 1.8; }
.stand-guide .stand-provisional { color: #4e5a54; font-size: .9rem; }
.stand-guide summary { width: fit-content; min-height: 32px; padding-block: .2em; font-weight: 650; cursor: pointer; }
.stand-guide details a { color: #235642; display: inline-block; margin-inline-end: 1em; padding-block: .25em; text-decoration: underline; text-underline-offset: .2em; }
.stand-tag { display: block; width: max-content; max-width: 100%; white-space: normal; color: var(--band-ink); font: 650 .82rem/1.55 var(--tiran-interface); }
:is(.lt-sheet .st-table,.st-table,.home-league table) tr[class^="stand-"]>td:first-child { border-inline-start: 4px solid var(--band-accent,transparent); box-shadow: none; }
:is(.lt-sheet .st-table,.st-table) .stand-boundary>:is(th,td) { border-block-start: 2px solid var(--band-accent); }
.lt-sheet:has(.st-table-panel ~ .st-table-panel) .st-table caption { position: static; width: auto; height: auto; clip-path: none; margin: 0; white-space: normal; }
.stand-guide :is(summary,a):focus-visible { outline: 3px solid #ac483d; outline-offset: 2px; }
@media print { .stand-guide { break-inside: avoid; } .stand-guide details { display: none; } .stand-tag { color: #171717; } }
