/* The standalone Starless shell owns these defaults instead of the parent. */
*, ::before, ::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body { position: relative; display: flex; min-height: 100vh; flex-direction: column; margin: 0; background: var(--background); color: var(--foreground); font: 14px/1.5 var(--kol-font-ui), sans-serif; }
/* Keep off-canvas homepage content from widening Firefox's mobile viewport.
 * Horizontal shelves keep their own scroll containers. */
html:has(body.home),
body.home { overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.mainholder, .kol-theme-shell { position: relative; display: flex; min-width: 0; min-height: 0; flex: 1 0 auto; flex-direction: column; width: 100%; overflow: visible; }
#content, .kol-theme-content { width: 100%; max-width: 1180px; min-width: 0; flex: 1 0 auto; margin: 30px auto 0; position: relative; overflow: visible; }
.wrapper, .kol-theme-content__wrapper { width: 100%; max-width: none; min-width: 0; position: relative; margin: 0; overflow: visible; }
.clear { clear: both; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.kol-home-leaderboard__card {
  display: grid;
  grid-template-columns: 27px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border-inline-start: 1px solid var(--border);
}
.kol-home-leaderboard__card[href] {
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.kol-home-leaderboard__card[href]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}
.kol-home-translator-rankings-link {
  display: inline-flex;
  flex: none;
  min-height: 44px;
  align-items: center;
  padding-inline: 0.5rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  white-space: nowrap;
}
.kol-home-leaderboard__card[href] .kol-home-leaderboard__identity strong {
  color: var(--primary);
}
#kol-home-flame-keepers > li:first-child > .kol-home-leaderboard__card {
  border-inline-start-color: var(--primary);
}
#kol-home-translators > li:nth-child(-n + 3) > .kol-home-leaderboard__card,
#kol-home-interactors > li:nth-child(-n + 3) > .kol-home-leaderboard__card {
  border-inline-start-width: 2px;
}
#kol-home-translators > li:first-child > .kol-home-leaderboard__card,
#kol-home-interactors > li:first-child > .kol-home-leaderboard__card {
  border-inline-start-color: var(--rating);
}
@media (hover: hover) {
  .kol-home-leaderboard__card[href]:hover {
    background: color-mix(in srgb, var(--primary) 7%, transparent);
  }
  .kol-home-leaderboard__card[href]:hover .kol-home-leaderboard__identity strong {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .kol-home-leaderboard__card[href]:hover > img,
  .kol-home-leaderboard__card[href]:hover > .kol-home-avatar-fallback {
    opacity: .78;
  }
}
