/* OSRS HomeClanSpotlight proportions and component styling, with Warframe colours. */
.directory .spotlight-hub {
  --spotlight-edge: var(--frame-edge);
  --spotlight-outline: var(--line);
  --spotlight-panel: var(--panel-gradient);
  --spotlight-inset: var(--inset-gradient);
  width: 100%;
  margin: 0 0 20px;
}
.spotlight-hub .spotlight-stage { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 0; min-height: 0; overflow: hidden; border: 1px solid var(--spotlight-edge); border-radius: var(--panel-radius); background: var(--spotlight-panel); box-shadow: var(--panel-shadow); }
.spotlight-hub .spotlight-feature { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: stretch; gap: 0; min-width: 0; min-height: 280px; padding: 20px; border: 0; border-radius: 0; background: var(--feature-gradient); }
.spotlight-hub .spotlight-feature::before { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: var(--panel-radius); background: var(--feature-overlay); pointer-events: none; }
.spotlight-feature__art { position: absolute; z-index: -2; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: var(--panel-radius); object-fit: cover; }
.spotlight-feature__heading { display: flex; align-items: center; margin: 0 0 14px; }
.spotlight-feature__heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .14em; line-height: 20px; text-transform: uppercase; text-shadow: 0 1px 3px #000b; }
.spotlight-hub svg { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.spotlight-feature__heading h2 svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.spotlight-feature__identity { display: flex; align-items: center; gap: 12px; }
.site-frame .spotlight-hub .spotlight-feature .clan-sigil { flex: 0 0 60px; width: 60px; height: 60px; padding: 4px; border: 1px solid var(--spotlight-edge); border-radius: var(--control-radius); background: var(--inset-gradient); color: var(--accent-strong); font-size: 26px; font-weight: 750; filter: none; box-shadow: var(--inset-shadow); overflow: hidden; }
.spotlight-hub .clan-sigil img { display: block; width: 100%; height: 100%; border-radius: var(--control-radius); object-fit: cover; }
.spotlight-hub .spotlight-feature__content { display: block; min-width: 0; }
.spotlight-hub .spotlight-feature h3 { max-width: none; margin: 0 0 5px; font-family: inherit; font-size: 25px; font-weight: 750; letter-spacing: -.025em; line-height: 1.2; overflow-wrap: anywhere; text-shadow: 0 1px 4px #000b; }
.spotlight-hub .spotlight-feature h3 a { color: #f0efe8; text-decoration: none; }
.spotlight-hub .spotlight-feature h3 a:hover { color: var(--accent-strong); }
.spotlight-hub .spotlight-feature__content > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--muted-bright); font-size: 12px; font-weight: 500; line-height: 1.5; text-shadow: 0 1px 3px #000b; }
.spotlight-tags-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-top: 12px; }
.spotlight-tag-groups { display: grid; gap: 6px; min-width: 0; }
.spotlight-hub .tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.spotlight-hub .tag-list li, .spotlight-feature__meta > span { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 4px 8px; border: 1px solid var(--spotlight-edge); border-radius: var(--control-radius); background: var(--spotlight-inset); box-shadow: var(--inset-shadow); color: var(--muted-bright); font-size: 10px; line-height: 1.5; }
.spotlight-hub .spotlight-playstyles li { color: var(--ink); font-size: 11px; font-weight: 650; }
.spotlight-hub .spotlight-playstyles svg { color: var(--accent); width: 13px; height: 13px; }
.spotlight-hub .spotlight-view { display: inline-flex; align-items: center; justify-content: center; justify-self: end; gap: 10px; min-height: 32px; padding: 5px 10px; border: 1px solid var(--spotlight-edge); border-radius: var(--control-radius); background: var(--control-gradient); box-shadow: var(--control-shadow); color: var(--accent-strong); font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; text-decoration: none; transition: background-color 140ms ease, color 140ms ease; }
.spotlight-hub .spotlight-view:is(:hover, :focus-visible) { background: var(--control-hover-gradient); box-shadow: var(--control-hover-shadow); color: var(--ink); }
.spotlight-view > span { font-size: 14px; }
.spotlight-feature__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.spotlight-feature__meta > span { padding: 5px 8px; font-size: 11px; }
.spotlight-feature__meta .spotlight-selection { color: var(--accent-strong); }
.spotlight-hub .spotlight-feature__note { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.spotlight-hub .spotlight-feature__empty { margin-block: auto; }
.spotlight-hub .spotlight-race { display: flex; min-width: 0; flex-direction: column; padding: 20px; border: 0; border-left: 1px solid var(--spotlight-edge); border-radius: 0; background: var(--panel-shade); box-shadow: inset 1px 0 0 #ffffff08; }
.spotlight-hub .spotlight-race__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 0; border: 0; }
.spotlight-race__title { display: flex; align-items: center; gap: 6px; }
.spotlight-hub .spotlight-race__header h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 750; letter-spacing: -.01em; line-height: 1.4; }
.spotlight-race__title h3 a { color: inherit; text-decoration: none; }
.spotlight-race__title h3 a:hover { color: var(--accent-strong); }
.spotlight-race__title h3 a > span { font-size: 18px; font-weight: 400; }
.spotlight-help { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-inset); color: var(--muted-bright); font-size: 12px; font-weight: 700; cursor: help; }
.spotlight-help:is(:hover, :focus-visible) { color: var(--accent-strong); border-color: var(--accent); }
.spotlight-hub .spotlight-countdown { display: inline-flex; align-items: center; min-width: 0; gap: 5px; margin-left: auto; white-space: nowrap; }
.spotlight-hub .spotlight-countdown span { color: var(--muted-bright); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.spotlight-hub .spotlight-countdown strong { min-width: 5ch; color: var(--accent-strong); font-family: inherit; font-size: 11px; font-weight: 750; letter-spacing: 0; }
.spotlight-countdown > svg { color: var(--muted-bright); width: 12px; height: 12px; }
.spotlight-race__intro { margin: 4px 0 14px; color: var(--muted); font-size: 12px; line-height: 20px; }
.spotlight-hub .spotlight-race ol { display: grid; gap: 8px; }
.spotlight-hub .spotlight-race li { display: block; min-height: 0; padding: 0; border: 1px solid var(--spotlight-edge); border-radius: var(--panel-radius); background: var(--standing-gradient); box-shadow: var(--standing-shadow); }
.spotlight-hub .spotlight-race li > .spotlight-contender { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 9px 10px; border: 0; border-radius: var(--control-radius); background: none; color: var(--ink); white-space: normal; text-decoration: none; transition: background-color 140ms ease; }
.spotlight-hub .spotlight-race li > .spotlight-contender:is(:hover, :focus-visible) { background: #ffffff05; }
.site-frame .spotlight-hub .spotlight-contender .clan-sigil { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--inset-gradient); box-shadow: var(--inset-shadow); color: var(--accent-strong); font-size: 13px; font-weight: 650; letter-spacing: .03em; overflow: hidden; }
.spotlight-contender__identity { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.spotlight-contender__rank { color: var(--muted); font-size: 10px; line-height: 1.3; }
.spotlight-hub .spotlight-race li.is-selected { border-color: var(--line-strong); }
.spotlight-contender__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.spotlight-contender:hover .spotlight-contender__name { color: var(--accent-strong); }
.spotlight-contender__count { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 40px; padding: 4px 7px; border-left: 1px solid var(--line); line-height: 1.2; }
.spotlight-contender__count strong { color: var(--accent-strong); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.spotlight-contender__count > span { color: var(--muted); font-size: 9px; }
.spotlight-leaderboard { margin-top: auto; }
.spotlight-leaderboard > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; padding-top: 14px; color: var(--accent-strong); font-size: 11px; font-weight: 700; line-height: 16px; cursor: pointer; list-style: none; }
.spotlight-leaderboard > summary::-webkit-details-marker { display: none; }
.spotlight-leaderboard > summary:hover { color: var(--ink); }
.spotlight-leaderboard__body { max-height: 20rem; overflow: auto; overscroll-behavior: contain; margin-top: 10px; padding: 8px 2px 2px; border-top: 1px solid var(--line); }
.spotlight-leaderboard__body > p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.spotlight-hub .spotlight-race li.spotlight-race__empty { padding: 12px; color: var(--muted-bright); font-size: 12px; line-height: 1.5; }
@media (max-width: 767px) {
  .spotlight-hub .spotlight-stage { grid-template-columns: minmax(0, 1fr); }
  .spotlight-hub .spotlight-feature, .spotlight-hub .spotlight-race { padding: 18px; }
  .spotlight-hub .spotlight-race { border-left: 0; border-top: 1px solid var(--spotlight-edge); box-shadow: inset 0 1px 0 #ffffff08; }
  .spotlight-hub .spotlight-feature::before, .spotlight-feature__art { border-radius: var(--panel-radius); }
  .spotlight-feature__heading { margin-bottom: 12px; }
  .site-frame .spotlight-hub .spotlight-feature .clan-sigil { flex-basis: 54px; width: 54px; height: 54px; font-size: 23px; }
  .spotlight-hub .spotlight-feature h3 { font-size: 23px; }
  .spotlight-hub .spotlight-view { min-height: 40px; }
  .spotlight-leaderboard > summary { min-height: 44px; }
}
@media (max-width: 400px) {
  .spotlight-hub .spotlight-feature, .spotlight-hub .spotlight-race { padding: 14px; }
  .spotlight-tags-action { gap: 8px; }
  .spotlight-hub .spotlight-view { gap: 6px; padding-inline: 8px; }
  .spotlight-hub .spotlight-race li > .spotlight-contender { gap: 8px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .spotlight-hub :is(.spotlight-view, .spotlight-contender) { transition: none; }
}
