/* V136 — the server-rendered Rift Lab detail body, and the detail hero that carries
   the <h1> naming the entity.

   Scoped to .riftlab-hero-detail and .rl-detail so it cannot reach the tool panels
   around it. Direction is handled with logical properties (inline-start/end,
   text-align:start, margin-inline) so the whole section mirrors under
   html[dir="rtl"] without a mirrored ruleset — the bilingual data spans are already
   swapped by the two rules at the end of rift-hub-v123.css and are not repeated here.

   The body is replaced by assets/js/pages/rift-lab.js as soon as the client tool
   boots, so everything here is what a visitor sees for one paint and what a crawler
   that runs no JavaScript sees for good. It is styled to be readable on its own
   rather than to compete with the interactive guide that follows it. */

.riftlab-hero-detail {
  --rld-line: var(--rl-border, rgba(55, 239, 129, .18));
  --rld-key: var(--rl-green, #35ef82);
  --rld-dim: var(--rl-muted, #8f9aa5);
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--rld-line);
  text-align: start;
}

.rl-detail-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rl-detail-crumbs a { color: var(--rld-dim); text-decoration: none; }
.rl-detail-crumbs a:hover { color: var(--rld-key); }
.rl-detail-crumbs a + a::before { content: "/"; margin-inline-end: 8px; color: var(--rld-dim); opacity: .6; }

.riftlab-hero-detail h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.rl-detail-h1-name { font-weight: 800; color: #fff; }
.rl-detail-h1-kind { font-weight: 600; color: var(--rld-dim); }

.riftlab-hero-detail .riftlab-tabs { margin-top: 4px; }

/* The champion detail page is a full-bleed cinematic layout whose container is
   unpadded, so the hero needs its own gutter there. */
.nx-rift-champion-detail .riftlab-hero-detail { padding-inline: max(16px, calc((100vw - 1480px) / 2 + 24px)); }
.nx-rift-champion-detail .riftlab-hero-detail > .container { width: 100%; max-width: none; padding: 0; }

/* ------------------------------------------------------------------ the body */

.rl-detail {
  --rlh-line: var(--rl-border, rgba(55, 239, 129, .18));
  --rlh-key: var(--rl-green, #35ef82);
  --rlh-dim: var(--rl-muted, #8f9aa5);
  --rlh-card: var(--rl-panel, #0c1218);
  --rlh-card2: var(--rl-panel2, #101820);
  --rld-line: var(--rlh-line);
  --rld-key: var(--rlh-key);
  --rld-dim: var(--rlh-dim);
  display: block;
  padding: 24px;
  border: 1px solid var(--rlh-line);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--rlh-card2), var(--rlh-card));
  text-align: start;
}
.nx-rift-champion-detail .rl-detail { margin-inline: max(16px, calc((100vw - 1480px) / 2 + 24px)); margin-top: 20px; }

.rl-detail-head { margin-bottom: 18px; }
.rl-detail-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border: 1px solid var(--rld-line);
  border-radius: 999px;
  color: var(--rld-key);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rl-detail-head p { margin: 0; color: var(--rld-dim); font-size: 14px; line-height: 1.7; }

.rl-detail h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.rl-detail h3 { margin: 18px 0 8px; font-size: 15px; line-height: 1.4; }
.rl-detail p { color: #cdd6dd; font-size: 14px; line-height: 1.75; }

.rl-detail-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rld-line);
}
.rl-detail-block > p { color: var(--rld-dim); }

/* facts ------------------------------------------------------------------- */

.rl-detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 4px;
}
.rl-detail-facts > div {
  padding: 10px 12px;
  border: 1px solid var(--rld-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.rl-detail-facts dt {
  margin: 0 0 4px;
  color: var(--rld-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rl-detail-facts dd { margin: 0; color: #e7edf2; font-size: 14px; line-height: 1.5; }
.rl-detail-tier, .rl-detail-stat { color: var(--rld-key); font-weight: 700; }
.rl-detail-statline { margin-top: 10px; color: var(--rld-dim); font-size: 13px; }

/* abilities ---------------------------------------------------------------- */

.rl-detail-abilities { display: grid; gap: 12px; }
.rl-detail-abilities article {
  padding: 12px 14px;
  border: 1px solid var(--rld-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.rl-detail-abilities h3 { margin: 0 0 6px; font-size: 14px; }
.rl-detail-abilities h3 em {
  margin-inline-end: 8px;
  color: var(--rld-key);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .12em;
}
.rl-detail-abilities p { margin: 0; font-size: 13px; }

/* build -------------------------------------------------------------------- */

.rl-detail-build, .rl-detail-runes, .rl-detail-situational, .rl-detail-roster, .rl-detail-sources {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rl-detail-build { counter-reset: rl-build; }
.rl-detail-build li, .rl-detail-runes li, .rl-detail-situational li, .rl-detail-roster li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rld-line);
  font-size: 14px;
}
.rl-detail-build li::before {
  counter-increment: rl-build;
  content: counter(rl-build, decimal-leading-zero);
  color: var(--rld-key);
  font-size: 11px;
  font-weight: 700;
}
.rl-detail-runes, .rl-detail-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; }
.rl-detail li a { color: #e7edf2; text-decoration: none; border-bottom: 1px solid transparent; }
.rl-detail li a:hover { color: var(--rld-key); border-bottom-color: currentColor; }
.rl-detail-situational li > span:first-child {
  min-width: 150px;
  color: var(--rld-dim);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rl-detail-roster small { color: var(--rld-dim); font-size: 12px; }
/* The matchup rows carry more per-pick data than the plain rosters: the pick's
   in-game title and how many other reviewed pages name it as an answer. */
.rl-detail-matchups li { align-items: baseline; }
.rl-detail-epithet { flex: 1 1 auto; color: var(--rld-dim); font-size: 12px; font-style: italic; }
.rl-detail-cited { color: var(--rld-key); font-size: 12px; font-weight: 700; }
.rl-detail-cited::after { content: "×"; margin-inline-start: 2px; opacity: .55; font-weight: 400; }
.rl-detail-roster em { margin-inline-start: auto; color: var(--rld-key); font-style: normal; font-size: 12px; font-weight: 700; }

.rl-detail-more { margin-top: 14px; }
.rl-detail-more a { color: var(--rld-key); font-weight: 600; }

.rl-detail-sources { margin-top: 10px; }
.rl-detail-sources li { padding: 4px 0; color: var(--rld-dim); font-size: 12px; }
.rl-detail-sources a { color: var(--rld-dim); }

/* The item host is a shell with its own placeholder styling; the detail body
   supplies its own frame, so the shell must not add a second one around it. */
.rl-detail-shell > .rl-detail { border: 0; padding: 0; background: none; }

@media (max-width: 640px) {
  .rl-detail { padding: 18px 16px; }
  .rl-detail-situational li > span:first-child { min-width: 0; flex: 1 0 100%; }
  .rl-detail-roster em { margin-inline-start: 0; }
}
