/* Site shell (portal pages). The guide itself keeps assets/css/style.css. */
.sitenav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.sitenav__link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 700;
  text-decoration: none;
}
.sitenav__link:hover,
.sitenav__link.is-active {
  color: var(--gold-hi);
  background: rgba(233, 196, 106, 0.08);
}
.langs {
  display: flex;
  gap: 4px;
}
.langs__btn {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-mute);
  text-decoration: none;
}
.langs__btn.is-on {
  color: var(--gold-hi);
  border-color: var(--gold-deep);
}
/* favorites: star for the current page + link to /favorites/ with the count (FavButtons.astro) */
.favs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.favs__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-mute);
  cursor: pointer;
}
.favs__btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.favs__btn:hover,
.favs__btn:focus-visible {
  border-color: var(--gold-deep);
  color: var(--gold);
}
.favs__toggle.is-on {
  color: var(--gold-hi);
  border-color: var(--gold-deep);
}
.favs__toggle.is-on svg {
  fill: currentColor;
}
.favs__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--gold-hi);
  color: #1a1209;
  font: 800 11px/18px var(--font-body);
  text-align: center;
}
.mnav__head .favs__count {
  position: static;
  display: inline-block;
  margin-right: 6px;
  vertical-align: 1px;
}
.fav-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 24px);
  padding: 11px 16px;
  border: 1px solid var(--gold-deep);
  border-radius: 12px;
  background: #1c150d;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.fav-toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
}
.fav-toast a {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .favs__link {
    display: none;
  }
}
/* keep the menu on one line: only the logo mark next to it when the header gets crowded
   (guide pages also carry quest search and progress in the header) */
@media (max-width: 1100px) {
  .topbar .brand__name {
    display: none;
  }
}
@media (max-width: 1699px) {
  .topbar__inner:has(.searchbtn) .brand__name {
    display: none;
  }
}
/* narrow tablets with the desktop menu: the star stays, the list link moves to the toast and the phone menu */
@media (min-width: 761px) and (max-width: 900px) {
  .favs__link {
    display: none;
  }
  .topbar .topbar__inner {
    gap: 12px;
  }
  .topbar .sitenav__link {
    padding: 8px 7px;
  }
}
/* /favorites/ list */
.favpage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 900px;
  margin: 18px 0 10px;
  color: var(--text-dim);
}
.favpage__clear {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  color: var(--text-mute);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.favpage__clear:hover {
  border-color: #a5463b;
  color: #ff9c8f;
}
.favpage__list {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.favpage__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.favpage__item:hover {
  border-color: var(--gold-deep);
}
.favpage__link,
.favpage__link:hover {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none !important;
}
.favpage__link:hover b {
  color: var(--gold-hi);
}
.favpage__link img,
.favpage__noimg {
  flex-shrink: 0;
  width: 120px;
  height: 63px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}
.favpage__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.favpage__text b {
  color: var(--gold);
  font-size: 16px;
  line-height: 1.3;
}
.favpage__text small {
  color: var(--text-mute);
  font-size: 13px;
}
.favpage__del {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  color: var(--text-mute);
  font-size: 15px;
  cursor: pointer;
}
.favpage__del:hover {
  border-color: #a5463b;
  color: #ff9c8f;
}
.favpage__empty {
  margin-top: 18px;
}
@media (max-width: 560px) {
  .favpage__link img,
  .favpage__noimg {
    width: 84px;
    height: 44px;
  }
}
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.page h1 {
  font: 700 clamp(30px, 4vw, 48px)/1.1 var(--font-display);
  color: var(--gold);
  margin: 0 0 12px;
}
.page h2 {
  font: 700 28px/1.2 var(--font-display);
  color: var(--gold);
  margin: 36px 0 14px;
}
.lead {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 760px;
}
.gcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 170px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(180deg, #1d1610, #120e0a);
  transition:
    transform 0.15s,
    border-color 0.15s;
}
a.gcard:hover {
  transform: translateY(-2px);
  border-color: var(--gold-deep);
}
.gcard__art {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 150% auto;
  background-position: 70% 20%;
  opacity: 0.55;
}
.gcard__name,
.gcard__meta {
  position: relative;
}
.gcard__name {
  font: 700 22px/1.2 var(--font-display);
  color: var(--gold);
}
.gcard__meta {
  font-size: 14px;
  color: var(--text-dim);
}
.gcard.is-soon {
  opacity: 0.5;
}
.notice {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-dim);
  max-width: 860px;
}
/* work-in-progress note on the leveling index: RU + EN paragraph */
.notice--wip {
  margin: 0 0 22px;
  border-color: rgba(232, 193, 92, 0.35);
}
.notice--wip p {
  margin: 0;
  line-height: 1.55;
}
.notice--wip p + p {
  margin-top: 8px;
}
.notice--wip b {
  color: var(--gold);
  font-weight: 600;
}
.sitefooter {
  text-align: left;
}
.sitefooter .footer-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-dim);
  font: inherit;
  cursor: pointer;
}
.sitefooter .footer-link:hover {
  text-decoration: underline;
}
@media (max-width: 760px) {
  .sitenav {
    display: none;
  }
  .page {
    padding: 18px 16px 40px;
  }
}
/* portal links that look like buttons/cards: no underline on hover */
.sitenav__link:hover,
.langs__btn:hover,
.brand:hover,
a.gcard:hover,
.sitefooter a:hover {
  text-decoration: none;
}

/* ---------- Home hero: text + countdown, logo medallion and glows behind ---------- */
.hub-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 44px 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(520px 320px at 78% 40%, rgba(110, 198, 255, 0.1), transparent 70%),
    radial-gradient(700px 300px at 90% -10%, rgba(192, 57, 43, 0.3), transparent 70%),
    radial-gradient(600px 300px at 0% 110%, rgba(233, 196, 106, 0.08), transparent 70%),
    linear-gradient(180deg, #1d1610, #110d09);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(233, 196, 106, 0.08),
    inset 0 0 80px rgba(0, 0, 0, 0.55);
}
.hub-hero::before {
  /* the WowCamp medallion, big and faint behind the countdown */
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translateY(-50%);
  background: url('/assets/img/logo-mark.svg') center / contain no-repeat;
  opacity: 0.1;
  filter: blur(0.5px);
  pointer-events: none;
}
.hub-hero::after {
  content: '';
  position: absolute;
  left: 44px;
  right: 44px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.hub-hero > * {
  position: relative;
  z-index: 1;
}
.hub-hero__eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arcane);
  margin-bottom: 10px;
}
.hub-hero h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02;
  text-shadow:
    0 2px 0 #000,
    0 0 30px rgba(233, 196, 106, 0.25);
}
.hub-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hub-hero__cta .btn {
  padding: 12px 18px;
  font-size: 15px;
  text-decoration: none;
}
.hub-hero__cta .btn--ghost {
  border-color: var(--gold-deep);
  color: var(--gold);
}

.countdown {
  justify-self: end;
  width: min(100%, 460px);
  padding: 22px 22px 18px;
  text-align: center;
  border: 1px solid var(--gold-deep);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(40, 30, 18, 0.85), rgba(18, 13, 9, 0.85));
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 230, 160, 0.08),
    0 0 40px rgba(233, 196, 106, 0.08);
}
.countdown__title {
  font: 700 22px/1.2 var(--font-display);
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.countdown__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cd {
  padding: 12px 4px 10px;
  border-radius: 10px;
  border: 1px solid #6b5124;
  background: radial-gradient(120% 90% at 50% 0%, #3a2a16, #140f0a);
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 160, 0.18),
    inset 0 -8px 16px rgba(0, 0, 0, 0.4);
}
.cd b {
  display: block;
  font: 700 clamp(30px, 3.4vw, 44px)/1 var(--font-display);
  color: var(--gold-hi);
  text-shadow:
    0 0 14px rgba(255, 209, 0, 0.35),
    0 2px 0 #000;
  font-variant-numeric: tabular-nums;
}
.cd span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.countdown__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-mute);
}
.countdown.is-live .countdown__tiles {
  display: none;
}
@media (max-width: 960px) {
  .hub-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 22px;
  }
  .hub-hero::before {
    width: 360px;
    height: 360px;
    right: -90px;
    top: 120px;
    transform: none;
  }
  .countdown {
    justify-self: stretch;
    width: auto;
  }
}
@media (max-width: 420px) {
  .cd span {
    font-size: 10px;
    letter-spacing: 0.02em;
  }
}
/* class cards: art layer (classes that have it) or the class icon, then name, status and races */
.ccard {
  min-height: 190px;
}
.ccard .gcard__art {
  background-size: 120% auto;
  background-position: 60% 30%;
  opacity: 0.5;
}
.ccard__icon {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  border: 1px solid var(--gold-deep);
  box-shadow: 0 0 18px rgba(233, 196, 106, 0.15);
}
.ccard__races {
  position: relative;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 2px;
}

/* ---------- Race + class picker ("character creation") ---------- */
.charpick {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(110, 198, 255, 0.07), transparent 70%),
    linear-gradient(180deg, #1a140e, #110d09);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(233, 196, 106, 0.06);
}
.charpick__label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 4px 0 10px;
}
.charpick__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.ctile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 92px;
  padding: 10px 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
  transition:
    border-color 0.15s,
    transform 0.15s,
    background 0.15s;
}
.ctile img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #3a3226;
}
.ctile:hover:not(:disabled) {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}
.ctile.is-on {
  border-color: var(--gold-hi);
  background: linear-gradient(180deg, #3a2a16, #1c140c);
  color: var(--gold-hi);
  box-shadow: 0 0 16px rgba(255, 209, 0, 0.18);
}
.ctile.is-on img {
  border-color: var(--gold-hi);
}
.ctile.has-guide:not(.is-on)::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
}
.ctile.is-off {
  opacity: 0.28;
  cursor: not-allowed;
}
.ctile.is-off img {
  filter: grayscale(1);
}

.charpick__name {
  font: 700 28px/1.15 var(--font-display);
  color: var(--gold);
  text-shadow: 0 2px 0 #000;
}
.charpick__meta {
  color: var(--text-dim);
  margin: 2px 0 12px;
}
.charpick__go {
  padding: 11px 18px;
  text-decoration: none !important;
}
.charpick__go.is-disabled {
  filter: grayscale(1) brightness(0.7);
  cursor: default;
}
@media (max-width: 860px) {
  .charpick {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
  .ctile {
    width: 80px;
  }
}

/* Race landscape preview with the guide title and action centred over a dark overlay. */
.charpick__preview {
  --tint: #7fa35a;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
  padding: 32px 22px;
  border: 1px solid var(--gold-deep);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% 30%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%),
    linear-gradient(180deg, #1c150e, #0e0a07);
}
.charpick__photo {
  position: absolute;
  inset: 0;
  background: 72% center / cover no-repeat;
}
.charpick__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 10, 7, 0.32), rgba(14, 10, 7, 0.74) 50%, rgba(14, 10, 7, 0.88));
}
.charpick__preview > :not(.charpick__photo) {
  position: relative;
}
.charpick__photo.is-sky {
  background-image:
    radial-gradient(60% 70% at 50% 15%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--tint) 55%, #0b1424), transparent);
}
.charpick__go {
  align-self: center;
}
.charpick__factions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.fbtn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-dim);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.fbtn--horde.is-on {
  border-color: #c0392b;
  color: #ffb4a8;
  background: rgba(110, 26, 18, 0.45);
  box-shadow: 0 0 14px rgba(192, 57, 43, 0.3);
}
.fbtn--alliance.is-on {
  border-color: #4a7ad8;
  color: #b8d0ff;
  background: rgba(20, 40, 100, 0.45);
  box-shadow: 0 0 14px rgba(74, 122, 216, 0.3);
}
.ctile small {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-mute);
  margin-top: -4px;
}
.ctile[hidden] {
  display: none;
}
@media (max-width: 860px) {
  .charpick__preview {
    min-height: 300px;
  }
  .charpick__name {
    font-size: 24px;
  }
}

/* ---------- /classes/: class cards (classic icon in the class colour, roles, races, status) ---------- */
.ctls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1000px) {
  .ctls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ctls {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ctl {
  --cc: #e9c46a;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none !important;
  background:
    radial-gradient(260px 160px at 0% 0%, color-mix(in srgb, var(--cc) 14%, transparent), transparent 70%),
    linear-gradient(180deg, #1d1610, #120e0a);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--cc) 55%, transparent);
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
a.ctl:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cc) 60%, var(--line));
  box-shadow:
    inset 0 2px 0 var(--cc),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 22px color-mix(in srgb, var(--cc) 14%, transparent);
}
.ctl__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ctl__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid color-mix(in srgb, var(--cc) 70%, #000);
  box-shadow:
    0 0 0 1px #000,
    0 4px 14px rgba(0, 0, 0, 0.6),
    0 0 18px color-mix(in srgb, var(--cc) 22%, transparent);
}
.ctl__name {
  display: block;
  font: 700 25px/1.1 var(--font-display);
  color: var(--cc);
  text-shadow: 0 2px 0 #000;
}
.ctl__tag {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  color: var(--text-dim);
}
.ctl__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ctl__role {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.3);
}
.ctl__role--tank {
  color: #9cc3ff;
  border-color: rgba(90, 140, 220, 0.45);
}
.ctl__role--heal {
  color: #9ee6a8;
  border-color: rgba(80, 180, 100, 0.45);
}
.ctl__role--melee,
.ctl__role--ranged,
.ctl__role--caster {
  color: #ffb4a8;
  border-color: rgba(192, 57, 43, 0.45);
}
.ctl__races {
  display: grid;
  gap: 6px;
}
.ctl__fac {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
}
.ctl__fac small {
  width: 62px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ctl__fac--horde small {
  color: #e08a7e;
}
.ctl__fac--alliance small {
  color: #8fb0ee;
}
.ctl__none {
  font-size: 13px;
  color: var(--text-mute);
}
.ctl__fac img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #3a3226;
}
.ctl__fac--horde img {
  border-color: rgba(192, 57, 43, 0.55);
}
.ctl__fac--alliance img {
  border-color: rgba(74, 122, 216, 0.55);
}
.ctl__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.ctl__go {
  color: var(--gold-hi);
  font-weight: 800;
}
.ctl__soon {
  color: var(--text-mute);
}
.ctl__guide {
  color: var(--ok);
  font-weight: 700;
  font-size: 13px;
}
.ctl.is-soon .ctl__icon {
  filter: saturate(0.85);
}

/* ---------- guide page: search + progress inside the site header ---------- */
.topbar .searchbtn {
  flex-shrink: 0;
}
@media (max-width: 1360px) {
  .topbar .searchbtn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .topbar .searchbtn__text,
  .topbar .searchbtn kbd {
    display: none;
  }
}
@media (max-width: 1100px) {
  .topbar .total {
    display: none;
  }
}

/* ---------- class page (/classes/<class>/): hero, start block, story + cheat sheet, races, useful, FAQ ---------- */
.cls {
  --cc: #e9c46a;
}
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.crumbs a {
  color: var(--text-dim);
}
.cls-hero {
  position: relative;
  padding: 28px 30px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(520px 300px at 88% 30%, color-mix(in srgb, var(--cc) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #1d1610, #110d09);
  box-shadow:
    var(--shadow),
    inset 0 2px 0 color-mix(in srgb, var(--cc) 50%, transparent);
}
.cls-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 70% center / cover no-repeat;
  opacity: 0.42;
}
.cls-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #17110c 15%, rgba(23, 17, 12, 0.88) 45%, rgba(23, 17, 12, 0.12)),
    linear-gradient(0deg, #110d09, transparent 65%);
}
.cls-hero > :not(.cls-hero__bg) {
  position: relative;
  max-width: 760px;
}
.cls-hero__title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cls-hero__title h1 {
  margin: 0;
  color: var(--cc);
  text-shadow:
    0 2px 0 #000,
    0 0 26px color-mix(in srgb, var(--cc) 25%, transparent);
}
.cls-hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 2px solid color-mix(in srgb, var(--cc) 70%, #000);
  box-shadow:
    0 0 0 1px #000,
    0 6px 16px rgba(0, 0, 0, 0.6);
}
.cls-hero__tag {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 17px;
  font-style: italic;
}
.cls-hero__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  margin: 18px 0 14px;
}
.cls-hero__roles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cls-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: center;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid var(--gold-deep);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(58, 42, 22, 0.55), rgba(20, 15, 10, 0.8));
  box-shadow: 0 0 30px rgba(233, 196, 106, 0.08);
}
.cls-start h2 {
  margin: 0 0 6px !important;
}
.cls-start p {
  margin: 0;
  color: var(--text-dim);
}
.cls-start__cards {
  display: grid;
  gap: 10px;
}
.cls-picker {
  min-width: 0;
}
.cls-picker__label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 700;
}
.cls-picker__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.cls-picker__row img {
  border: 1px solid var(--gold-deep);
  border-radius: 9px;
}
.cls-picker select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--gold-deep);
  border-radius: 9px;
  background: #17110c;
  color: var(--text);
  color-scheme: dark;
  font: 600 16px var(--font-body);
  cursor: pointer;
}
.cls-picker select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.cls-picker .btn {
  white-space: nowrap;
  text-align: center;
}
.cls-picker > small {
  display: block;
  margin-top: 9px;
  color: var(--text-dim);
}
.cls-guide {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  min-height: 96px;
  border: 1px solid var(--gold-deep);
  border-radius: 12px;
  overflow: hidden;
  background: center 40% / cover no-repeat;
  text-decoration: none !important;
  isolation: isolate;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.cls-guide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 9, 6, 0.92) 30%, rgba(12, 9, 6, 0.45));
}
.cls-guide:hover {
  transform: translateY(-2px);
  border-color: var(--gold-hi);
}
.cls-guide img {
  border-radius: 10px;
  border: 1px solid var(--gold-deep);
}
.cls-guide__name {
  flex: 1;
  font: 700 22px/1.15 var(--font-display);
  color: var(--gold);
}
.cls-guide__name small {
  display: block;
  font: 600 14px/1.4 var(--font-body);
  color: var(--ok);
  margin-top: 2px;
}
.cls-guide__go {
  padding: 10px 16px;
  white-space: nowrap;
}
/* class PvP guide block: crimson instead of the gold leveling block */
.cls-start--pvp {
  border-color: rgba(192, 57, 43, 0.55);
  background: linear-gradient(180deg, rgba(92, 24, 18, 0.55), rgba(24, 10, 8, 0.85));
  box-shadow: 0 0 30px rgba(192, 57, 43, 0.12);
}
.cls-start--pvp h2 {
  color: #ffb4a8;
}
.cls-guide--pvp {
  border-color: rgba(192, 57, 43, 0.6);
}
.cls-guide--pvp::before {
  background: linear-gradient(90deg, rgba(24, 8, 6, 0.92) 30%, rgba(60, 14, 10, 0.5));
}
.cls-guide--pvp:hover {
  border-color: #ff8a78;
}
.cls-guide--pvp img {
  border-color: rgba(192, 57, 43, 0.6);
}
.cls-guide--pvp .cls-guide__name small {
  color: #ffb4a8;
}
.cls-start--pvp + .cls-start {
  margin-top: 14px;
}
.cls-soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 14px;
  color: var(--text-mute);
}
.cls-soon small {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}
.cls-soon span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cls-soon img {
  border-radius: 6px;
  filter: grayscale(0.6);
  opacity: 0.8;
}

.cls-body {
  display: grid;
  grid-template-columns: minmax(0, 780px) 340px;
  gap: 48px;
  align-items: start;
  margin-top: 10px;
}
.cls-story {
  font-size: 18px;
  line-height: 1.75;
}
.cls-story h2 {
  font-size: 26px !important;
  margin: 34px 0 10px !important;
}
.cls-story p {
  margin: 0 0 14px;
  color: var(--text);
}
.cls-story > section:first-child > p:first-of-type::first-letter {
  float: left;
  font: 700 3.6em/0.82 var(--font-display);
  color: var(--cc);
  padding: 6px 10px 0 0;
  text-shadow:
    0 2px 0 #000,
    0 0 18px color-mix(in srgb, var(--cc) 30%, transparent);
}
.cls-story b {
  color: var(--gold-hi);
}
.cls-cheat {
  position: sticky;
  top: calc(var(--top-h) + 20px);
  margin-top: 34px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #1d1610, #120e0a);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--cc) 45%, transparent);
}
.cls-cheat h2 {
  font-size: 22px !important;
  margin: 0 0 10px !important;
}
.cls-cheat dl {
  margin: 0;
  display: grid;
  gap: 0;
}
.cls-cheat dl > div {
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
}
.cls-cheat dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.cls-cheat dd {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.45;
}
.cls-cheat__go {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 10px;
  text-decoration: none !important;
}

.cls-races {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cls-fac {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}
.cls-fac h3 {
  margin: 0 0 8px;
  font: 700 13px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cls-fac--horde {
  border-color: rgba(192, 57, 43, 0.45);
}
.cls-fac--horde h3 {
  color: #e08a7e;
}
.cls-fac--alliance {
  border-color: rgba(74, 122, 216, 0.45);
}
.cls-fac--alliance h3 {
  color: #8fb0ee;
}
.cls-race {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.cls-race img {
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #3a3226;
}
.cls-race b {
  display: block;
  color: var(--gold);
  font-size: 16px;
}
.cls-race b small {
  color: var(--text-mute);
  font-weight: 600;
}
.cls-race__racial {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
}
.cls-race__why {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 2px;
}

.cls-useful {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.cls-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #1d1610, #120e0a);
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none !important;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.cls-card b {
  color: var(--gold);
  font-size: 16px;
}
.cls-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-deep);
}
/* class page: info blocks (text first, a small link into the guide at the bottom - no link wrapping the block) */
.cls-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #1d1610, #120e0a);
  color: var(--text-dim);
  font-size: 14px;
}
.cls-info b {
  color: var(--gold);
  font-size: 16px;
}
.cls-info p {
  margin: 0;
  flex: 1;
}
.cls-info > a {
  align-self: flex-start;
  font-size: 13px;
}
/* class page: leveling builds taken from the guide */
.cls-builds__note {
  color: var(--text-dim);
  margin: -4px 0 14px;
}
.cls-builds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.cls-build {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #1d1610, #120e0a);
  font-size: 14px;
  min-width: 0;
}
.cls-build__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}
.cls-build__head b {
  color: var(--gold);
  font-size: 17px;
}
.cls-build__tag {
  font-size: 12px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
}
.cls-build__pts {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-dim);
}
.cls-build__sub {
  margin: 0;
  color: var(--text-dim);
}
.cls-build__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.cls-build__steps li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.cls-build__lvl {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.cls-build__steps small {
  color: var(--text-dim);
}
.cls-build__why summary {
  cursor: pointer;
  color: var(--gold);
}
.cls-build__why p {
  margin: 6px 0 0;
  color: var(--text-dim);
}
.cls-build__go {
  align-self: flex-start;
  font-size: 13px;
}
/* class page: the guide's info sections, one expandable block each */
.cls-more-list {
  display: grid;
  gap: 10px;
}
.cls-more {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #1a140e, #110d09);
}
.cls-more > summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
.cls-more > summary::-webkit-details-marker {
  display: none;
}
.cls-more > summary b {
  color: var(--gold);
  font-size: 17px;
}
.cls-more > summary b::after {
  content: ' ▾';
  font-size: 13px;
  color: var(--text-dim);
}
.cls-more[open] > summary b::after {
  content: ' ▴';
}
.cls-more > summary small {
  color: var(--text-dim);
  font-size: 14px;
}
.cls-more__body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
  min-width: 0;
}
.cls-more__body > p {
  margin: 0;
}
.cls-more__guide {
  justify-self: start;
  font-size: 13px;
}
/* cards inside a section: at most 3 columns (each track at least a third of the row), a lone card or
   the last ones stretch, because auto-fit collapses the empty tracks */
.cls-more__cards {
  --gap: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(280px, calc((100% - 2 * var(--gap)) / 3)), 1fr));
  gap: var(--gap);
}
@media (max-width: 640px) {
  .cls-more__cards {
    grid-template-columns: 1fr;
  }
}
.cls-info ul {
  margin: 4px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}
.cls-info li small {
  display: block;
  color: var(--text-dim);
  opacity: 0.85;
}
.cls-info > small {
  color: var(--text-dim);
  opacity: 0.85;
}
.cls-info--wide {
  grid-column: 1 / -1;
}
.cls-faq {
  display: grid;
  gap: 8px;
  max-width: 900px;
}
.cls-faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.cls-faq summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 800;
  color: var(--gold);
  list-style: none;
}
.cls-faq summary::-webkit-details-marker {
  display: none;
}
.cls-faq summary::before {
  content: '+';
  display: inline-block;
  width: 18px;
  color: var(--cc);
}
.cls-faq details[open] summary::before {
  content: '−';
}
.cls-faq details p {
  margin: 0;
  padding: 0 16px 14px 34px;
  color: var(--text);
  line-height: 1.6;
}
/* changelog of a guide (PvP): bordered rows, the latest three shown, the rest behind a toggle row */
.gd-chlog {
  max-width: 900px;
}
.gd-chlog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
.gd-chlog__list li {
  padding: 12px 18px;
  line-height: 1.55;
  color: var(--text-dim);
}
.gd-chlog__list li + li {
  border-top: 1px solid var(--line);
}
.gd-chlog__list b {
  color: var(--text);
}
.gd-chlog:not(.is-open) .is-more {
  display: none;
}
.gd-chlog__toggle {
  display: block;
  width: 100%;
  margin-top: -1px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.gd-chlog__toggle:hover {
  color: var(--gold-hi);
}
.gd-chlog:has(.gd-chlog__toggle) .gd-chlog__list {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.cls-sources {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-mute);
}

@media (max-width: 1000px) {
  .cls-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .cls-cheat {
    position: static;
    order: -1;
    margin-top: 22px;
  }
  .cls-start {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .cls-hero {
    padding: 20px 18px;
  }
  .cls-hero__bg {
    opacity: 0.28;
    background-position: 65% center;
  }
  .cls-picker__row {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .cls-picker .btn {
    grid-column: 1 / -1;
  }
  .cls-hero__lead {
    font-size: 17px;
  }
  .cls-races {
    grid-template-columns: minmax(0, 1fr);
  }
  .cls-story {
    font-size: 17px;
  }
  .cls-guide {
    flex-wrap: wrap;
  }
  .cls-guide__go {
    width: 100%;
    text-align: center;
  }
}

/* ---------- guides (/guides/<slug>/): answer-first article, contents, notes, tables, launch time ---------- */
.gd h1 {
  max-width: 900px;
}
.gd__meta {
  font-size: 13px;
  color: var(--text-mute);
  margin: -4px 0 14px;
}
.gd__lead {
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 22px !important;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(233, 196, 106, 0.06);
  border-radius: 0 10px 10px 0;
}
/* contents | text | right column across the full page width (like the banner above): the text takes all the room
   between the side columns, so a wide screen has no empty margins */
.gd__wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  margin-top: 22px;
}
.gd-toc {
  position: sticky;
  top: calc(var(--top-h) + 20px);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 14px;
}
.gd-toc b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.gd-toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.gd-toc a {
  color: var(--text-dim);
}
.gd__body {
  font-size: 17px;
  line-height: 1.7;
}
.gd__body section {
  scroll-margin-top: calc(var(--top-h) + 16px);
}
.gd__body h2 {
  font-size: 26px !important;
  margin: 30px 0 10px !important;
}
.gd__body > section:first-of-type h2 {
  margin-top: 6px !important;
}
.gd__body p {
  margin: 0 0 12px;
}
.gd__body ul {
  margin: 0 0 14px;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.gd__body b {
  color: var(--gold-hi);
}
.gd-part {
  scroll-margin-top: calc(var(--top-h) + 16px);
}
.gd__body h3 {
  font-size: 20px !important;
  margin: 26px 0 8px !important;
}
.gd-build {
  margin: 6px 0 18px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}
.gd-build__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.gd-why {
  list-style: none;
  padding: 0 !important;
  margin: 0 0 12px !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 12px !important;
  font-size: 15px;
  line-height: 1.5;
}
.gd-why li {
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}
.gd-why__name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--gold-hi);
}
.gd-why__name img {
  border-radius: 4px;
  border: 1px solid var(--line);
}
.gd-why small {
  color: var(--text-mute);
}
.gd-why span {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
}
.gd-build__order summary {
  cursor: pointer;
  margin: 4px 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.gd-build .tal-trees {
  justify-content: center;
}
.gd-macros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin: 6px 0 16px;
}
.gd-macro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}
.gd-macro__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gd-macro__head b {
  font-size: 16px;
}
.gd-macro__copy {
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font: 600 13px/1.4 var(--font-body);
  cursor: pointer;
}
.gd-macro__copy:hover {
  color: var(--gold-hi);
  border-color: var(--gold-hi);
}
.gd-macro__code {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: #0a0806;
  color: #e8dcc4;
  font:
    14px/1.55 ui-monospace,
    Consolas,
    'Courier New',
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.gd-macro p {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}
.gd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 8px;
}
.gd-chips a {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.2);
}
.gd-chips a:hover {
  color: var(--gold-hi);
  border-color: var(--gold-hi);
}
.gd-table {
  overflow-x: auto;
  margin: 4px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.gd-table table,
.gd-launch table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.gd-table th,
.gd-table td,
.gd-launch th,
.gd-launch td {
  padding: 8px 12px;
  text-align: left;
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
}
.gd-table th,
.gd-launch th {
  border-top: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(0, 0, 0, 0.3);
}
.gd-note {
  display: grid;
  gap: 4px;
  margin: 6px 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  font-size: 15px;
}
.gd-note b {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gd-note--forever {
  border-color: rgba(110, 198, 255, 0.45);
  border-left-color: var(--arcane);
  background: rgba(26, 74, 102, 0.18);
}
.gd-note--forever b {
  color: var(--arcane);
}
.gd-note--warn {
  border-color: rgba(192, 57, 43, 0.45);
  border-left-color: #c0392b;
  background: rgba(110, 26, 18, 0.18);
}
.gd-note--warn b {
  color: #ffb4a8;
}
.gd-note--tip {
  border-color: rgba(185, 198, 214, 0.35);
  border-left-color: var(--hint);
  background: rgba(185, 198, 214, 0.06);
}
.gd-note--tip b {
  color: var(--hint);
}
.gd-launch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0 0 22px;
}
.gd-launch__table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
.gd-launch__mine {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-dim);
}
.gd-launch__warn {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #ffb4a8;
  border-top: 1px solid var(--line-soft);
}
.gd-related {
  margin-top: 10px;
}
/* guides hub: magazine grid - the main guide takes 2x2, the rest fill around it (3 columns, no gaps) */
.gd-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  margin-top: 8px;
}
.gd-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #1d1610, #120e0a);
  color: var(--text-dim);
  text-decoration: none !important;
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.gd-item:hover {
  transform: translateY(-3px);
  border-color: var(--gold-deep);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.gd-item__img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 7;
  background: #15100b center 40% / cover no-repeat;
}
.gd-item__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(18, 14, 10, 0.95));
}
.gd-item:hover .gd-item__img {
  filter: brightness(1.08);
}
.gd-item__crests {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4%;
}
.gd-item__crests img {
  width: 22%;
  max-width: 110px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8));
}
.gd-item__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 4px 18px 18px;
}
.gd-item__tag {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
}
.gd-item b {
  font: 700 21px/1.22 var(--font-display);
  color: var(--gold);
}
.gd-item__desc {
  font-size: 14px;
  line-height: 1.55;
}
.gd-item__meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: var(--text-mute);
}
.gd-item--main {
  grid-column: span 2;
  grid-row: span 2;
  border-color: var(--gold-deep);
}
.gd-item--main .gd-item__img {
  aspect-ratio: auto;
  flex: 1;
  min-height: 300px;
}
.gd-item--main .gd-item__body {
  flex: 0 0 auto;
  padding: 0 26px 26px;
  margin-top: -70px;
  position: relative;
  z-index: 1;
}
.gd-item--main b {
  font-size: 32px;
}
.gd-item--main .gd-item__desc {
  font-size: 16px;
  max-width: 640px;
}
@media (max-width: 1000px) {
  .gd-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gd-item--main {
    grid-row: auto;
  }
  .gd-item--main .gd-item__img {
    min-height: 220px;
  }
}
@media (max-width: 640px) {
  .gd-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .gd-item--main {
    grid-column: auto;
  }
  .gd-item--main b {
    font-size: 24px;
  }
  .gd-item--main .gd-item__body {
    margin-top: -40px;
    padding: 0 18px 18px;
  }
}

/* guide article banner: the same picture as its card, title over the bottom fade */
.gd-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  margin-bottom: 18px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #15100b center 40% / cover no-repeat;
}
.gd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 10, 7, 0.15) 20%, rgba(14, 10, 7, 0.92) 85%);
}
.gd-hero__text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  max-width: 920px;
}
.gd-hero h1 {
  margin: 0 !important;
  text-shadow:
    0 2px 0 #000,
    0 0 24px rgba(0, 0, 0, 0.8);
}
.gd-hero .gd__meta {
  margin: 0;
  color: var(--text-dim);
}
.gd-hero__crests {
  align-items: flex-start;
  padding-top: 18px;
}
@media (max-width: 640px) {
  .gd-hero {
    min-height: 220px;
    padding: 18px;
  }
}

/* wide screens: pages as wide as the header and the footer (style.css widens those at 1700 / 2200) */
@media (min-width: 1700px) {
  .page {
    max-width: 1760px;
  }
}
@media (min-width: 2200px) {
  .page {
    max-width: 2160px;
  }
}
@media (max-width: 1000px) {
  .gd__wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .gd-toc {
    position: static;
    margin-bottom: 18px;
  }
  .gd-launch {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* guide right column (wide screens): countdown, other guides with thumbnails, leveling guide */
.gd-side {
  position: sticky;
  top: calc(var(--top-h) + 20px);
  display: grid;
  gap: 16px;
}
.gd-side .countdown {
  width: auto;
  justify-self: stretch;
}
.gd-side__box {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.gd-side__box > b {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.gd-side__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none !important;
}
.gd-side__item:hover {
  background: rgba(233, 196, 106, 0.07);
  color: var(--gold-hi);
}
.gd-side__thumb {
  width: 64px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #15100b center / cover no-repeat;
}
.gd-side__cta {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--gold-deep);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(58, 42, 22, 0.6), rgba(20, 15, 10, 0.85));
  color: var(--gold);
  font: 700 18px/1.25 var(--font-display);
  text-decoration: none !important;
}
.gd-side__cta small {
  font: 800 11px/1.4 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.gd-side__cta:hover {
  border-color: var(--gold-hi);
}
@media (max-width: 1500px) {
  .gd__wrap {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .gd-side {
    display: none;
  }
}
@media (max-width: 1000px) {
  .gd__wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* tag keeps its own width in grid containers too (guide banner); banner crests sit in the top-right corner, clear of the title */
.gd-item__tag {
  justify-self: start;
}
.gd-hero__crests {
  inset: 18px 22px auto auto;
  gap: 10px;
  padding: 0;
  justify-content: flex-end;
}
.gd-hero__crests img {
  width: 84px;
  max-width: none;
}
@media (max-width: 760px) {
  .gd-hero__crests img {
    width: 52px;
  }
  .gd-hero__crests {
    inset: 12px 12px auto auto;
    gap: 4px;
  }
}

/* class page on wide screens: contents | story | cheat sheet, centred; the blocks below share that width */
.cls-body {
  grid-template-columns: 240px minmax(0, 780px) 340px;
  justify-content: center;
}
.cls-toc {
  margin-top: 34px;
}
.cls-story section {
  scroll-margin-top: calc(var(--top-h) + 16px);
}
.cls > section:not(.cls-start),
.cls-sources {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.cls-faq {
  max-width: none;
}
@media (max-width: 1500px) {
  .cls-body {
    grid-template-columns: minmax(0, 780px) 340px;
  }
  .cls-toc {
    display: none;
  }
}
@media (max-width: 1000px) {
  .cls-body {
    grid-template-columns: minmax(0, 1fr);
  }
}
.page.cls {
  max-width: 1480px;
}
/* news article: article + right column (no contents column) */
.nw__wrap {
  grid-template-columns: minmax(0, 1fr) 320px;
}
.nw-take {
  margin-top: 18px;
}
/* news: screenshots inside a section (one wide, or two side by side) */
.nw-figs {
  display: grid;
  gap: 12px;
  margin: 14px 0 6px;
}
.nw-figs--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nw-figs--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nw-fig {
  margin: 0;
}
.nw-fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.nw-figs--2 .nw-fig img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.nw-fig figcaption {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-mute);
}
@media (max-width: 640px) {
  .nw-figs--2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .nw-figs--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}
.nw-date {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-mute);
}
@media (max-width: 1500px) {
  .nw__wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .nw__wrap .gd-side {
    display: grid;
  }
}
@media (max-width: 1000px) {
  .nw__wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .nw__wrap .gd-side {
    position: static;
    margin-top: 20px;
  }
}

/* ---------- home: section heads with "all" links, extra guide links, classes strip ---------- */
.home-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px 0 14px;
}
.home-head h2 {
  margin: 0 !important;
}
.home-head a {
  font-weight: 700;
  color: var(--gold);
  text-decoration: none !important;
  white-space: nowrap;
}
.home-head a:hover {
  color: var(--gold-hi);
}
/* home: PvP block (crimson, like the PvP block on class pages) */
.home-pvp {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(192, 57, 43, 0.55);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(92, 24, 18, 0.5), rgba(24, 10, 8, 0.85));
  box-shadow: 0 0 30px rgba(192, 57, 43, 0.12);
}
.home-pvp__main {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 270px;
  padding: 20px;
  border: 1px solid rgba(192, 57, 43, 0.6);
  border-radius: 12px;
  overflow: hidden;
  background: #1a0d09 center / cover no-repeat;
  text-decoration: none !important;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.home-pvp__main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(14, 6, 4, 0.95) 15%, rgba(14, 6, 4, 0.35) 70%, rgba(14, 6, 4, 0.1));
}
.home-pvp__main:hover {
  transform: translateY(-2px);
  border-color: #ff8a78;
}
.home-pvp__main .gd-item__tag {
  align-self: flex-start;
}
.home-pvp__main b {
  font: 700 26px/1.2 var(--font-display);
  color: var(--gold);
}
.home-pvp__desc {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dim);
}
.home-pvp__main .btn {
  align-self: flex-start;
  margin-top: 6px;
}
.home-pvp__side {
  display: grid;
  align-content: start;
  gap: 10px;
}
.home-pvp__cls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(192, 57, 43, 0.45);
  border-left: 3px solid var(--cc);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.home-pvp__cls:hover {
  transform: translateY(-1px);
  border-color: #ff8a78;
  border-left-color: var(--cc);
}
.home-pvp__cls img {
  border-radius: 8px;
  border: 1px solid rgba(192, 57, 43, 0.6);
}
.home-pvp__cls span:not(.home-pvp__go) {
  flex: 1;
  display: grid;
  gap: 2px;
}
.home-pvp__cls b {
  font: 700 19px/1.2 var(--font-display);
  color: var(--cc);
}
.home-pvp__cls small {
  font-size: 13px;
  color: #ffb4a8;
}
.home-pvp__go {
  font-size: 20px;
  color: var(--gold);
}
.home-pvp__soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 0;
}
.home-pvp__soon small {
  margin-right: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.home-pvp__soon img {
  border-radius: 6px;
  filter: grayscale(1);
  opacity: 0.55;
}
/* home: beta census (ClassicPlus.io) - tabs all / PvP / PvE, faction split, class and race bars */
.census {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(42, 33, 23, 0.75), rgba(14, 11, 8, 0.9));
  box-shadow: 0 0 30px rgba(233, 196, 106, 0.06);
}
.census__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.census__tabs button {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-dim);
  font: 800 15px/1.2 var(--font-body);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.census__tabs button small {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mute);
}
.census__tabs button:hover {
  border-color: var(--gold-deep);
  color: var(--gold-hi);
}
.census__tabs button[aria-selected='true'] {
  border-color: var(--gold);
  background: rgba(233, 196, 106, 0.12);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(233, 196, 106, 0.18);
}
.census__tabs button[aria-selected='true'] small {
  color: var(--text-dim);
}
.census__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px 28px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}
.census__total {
  display: grid;
}
.census__total b {
  font: 700 38px/1.1 var(--font-display);
  color: var(--gold);
  white-space: nowrap;
}
.census__total small {
  font-size: 13px;
  color: var(--text-mute);
}
.census__fac-names {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.census__fname {
  display: flex;
  align-items: center;
  gap: 10px;
}
.census__fname--horde {
  flex-direction: row-reverse;
  text-align: right;
}
.census__fname img {
  border-radius: 7px;
  border: 1px solid rgba(74, 122, 216, 0.6);
}
.census__fname--horde img {
  border-color: rgba(192, 57, 43, 0.6);
}
.census__fname > span {
  display: grid;
}
.census__fname b {
  font: 700 19px/1.2 var(--font-display);
  color: #8fb0ee;
}
.census__fname--horde b {
  color: #e08a7e;
}
.census__fname small {
  font-size: 13px;
  color: var(--text-dim);
}
.census__fac-bar {
  display: flex;
  gap: 3px;
  height: 12px;
}
.census__fac-seg {
  flex-basis: 0;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #2d55a8, #4a7ad8);
}
.census__fac-seg--horde {
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #c0392b, #8e2419);
}
.census__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  margin-top: 16px;
}
.census__box {
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}
.census__box h3 {
  margin: 0 0 10px;
  font: 700 18px/1.2 var(--font-display);
  color: var(--gold);
}
.census__rows {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.census__row {
  --cc: var(--gold);
  display: grid;
  grid-template-columns: 28px minmax(84px, 7.5em) minmax(0, 1fr) 3.4em;
  align-items: center;
  gap: 10px;
}
.census__row img {
  border-radius: 6px;
  border: 1px solid #3a3226;
}
.census__name {
  display: grid;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
  color: var(--text);
}
.census__name small {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mute);
}
.census__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.census__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--cc);
  opacity: 0.85;
}
.census__val {
  font-weight: 800;
  font-size: 14px;
  text-align: right;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.census__races {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 22px;
}
.census__rgroup > small {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fb0ee;
}
.census__rgroup--alliance .census__row {
  --cc: #4a7ad8;
}
.census__rgroup--alliance .census__row img {
  border-color: rgba(74, 122, 216, 0.55);
}
.census__rgroup--horde > small {
  color: #e08a7e;
}
.census__rgroup--horde .census__row {
  --cc: #c0392b;
}
.census__rgroup--horde .census__row img {
  border-color: rgba(192, 57, 43, 0.55);
}
.census__note {
  margin: 14px 2px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-mute);
}
.census__note a {
  color: var(--text-dim);
}
.census__note a:hover {
  color: var(--gold-hi);
}
@media (max-width: 1100px) {
  .census__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .census {
    padding: 12px;
  }
  .census__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .census__total b {
    font-size: 32px;
  }
  .census__races {
    grid-template-columns: minmax(0, 1fr);
  }
  .census__row {
    grid-template-columns: 24px minmax(76px, 7em) minmax(0, 1fr) 3.2em;
    gap: 8px;
  }
  .census__row img {
    width: 24px;
    height: 24px;
  }
  .census__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .census__tabs button {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 6px;
    border-radius: 12px;
  }
}
@media (max-width: 900px) {
  .home-pvp {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-pvp__main {
    min-height: 220px;
  }
}
.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 14px;
}
.home-links a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none !important;
}
.home-links a:hover {
  border-color: var(--gold-deep);
  color: var(--gold-hi);
}
.home-classes {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
}
.home-cls {
  --cc: #e9c46a;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(120px 80px at 50% 0%, color-mix(in srgb, var(--cc) 14%, transparent), transparent 70%),
    rgba(0, 0, 0, 0.25);
  color: var(--cc);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.home-cls img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid color-mix(in srgb, var(--cc) 70%, #000);
  box-shadow:
    0 0 0 1px #000,
    0 4px 12px rgba(0, 0, 0, 0.5);
}
.home-cls:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cc) 55%, var(--line));
}
.home-cls small {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #12100c;
  background: var(--cc);
}
@media (max-width: 1100px) {
  .home-classes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .home-classes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- tools hub ---------- */
.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--gold-deep);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(58, 42, 22, 0.45), rgba(20, 15, 10, 0.85));
}
.tool-card h2 {
  margin: 8px 0 6px !important;
}
.tool-card p {
  margin: 0;
  color: var(--text-dim);
}
.tool-card--soon {
  grid-template-columns: minmax(0, 1fr);
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.25);
  opacity: 0.75;
}
.tool-card__text {
  display: grid;
  justify-items: start;
}
.tool-classes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.tool-classes--big {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  margin-top: 18px;
}
@media (max-width: 1000px) {
  .tool-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-classes--big {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .tool-classes,
  .tool-classes--big {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- talent calculator ---------- */
.tc-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tc-head h1 {
  margin: 0 !important;
  color: var(--cc);
}
.tc-head .gd__meta {
  margin: 4px 0 0;
}
.tc-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 10px;
}
.tc-classes__a {
  --cc: #e9c46a;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0.55;
  transition:
    opacity 0.15s,
    border-color 0.15s;
}
.tc-classes__a img {
  display: block;
  border-radius: 7px;
}
.tc-classes__a:hover {
  opacity: 1;
}
.tc-classes__a.is-on {
  opacity: 1;
  border-color: var(--cc);
  box-shadow: 0 0 12px color-mix(in srgb, var(--cc) 35%, transparent);
}
.tc-help {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 14px;
}
/* small card under the help text: the class page */
.tc-cls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cc);
  border-radius: 12px;
  background: color-mix(in srgb, var(--cc) 6%, transparent);
  text-decoration: none !important;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.tc-cls[hidden] {
  display: none;
}
.tc-cls img {
  flex: none;
  border-radius: 8px;
}
.tc-cls span {
  display: grid;
  gap: 2px;
}
.tc-cls b {
  color: var(--cc);
  font-size: 15px;
}
.tc-cls small {
  color: var(--text-dim);
  font-size: 13px;
}
.tc-cls i {
  margin-left: 6px;
  color: var(--cc);
  font-style: normal;
  transition: transform 0.15s;
}
.tc-cls:hover {
  border-color: var(--cc);
  background: color-mix(in srgb, var(--cc) 12%, transparent);
}
.tc-cls:hover i {
  transform: translateX(3px);
}
/* ready builds above the calculator (TalentPresets.astro) */
.tc-presets {
  margin: 0 0 18px;
}
.tc-presets:empty {
  display: none;
}
.tc-presets__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tc-presets__head h2 {
  margin: 0;
  font-size: 22px;
}
.tc-presets__tag {
  padding: 2px 9px;
  border: 1px solid rgba(192, 57, 43, 0.6);
  border-radius: 999px;
  background: rgba(110, 26, 18, 0.35);
  color: #f0a08f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.tc-presets__hint {
  margin: 6px 0 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.tc-presets__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.tc-preset {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-dim);
  text-decoration: none !important;
  transition: border-color 0.15s;
}
.tc-preset:hover {
  border-color: var(--gold-deep);
}
.tc-preset.is-on {
  border-color: var(--cc, var(--gold));
  background: rgba(231, 195, 104, 0.08);
}
.tc-preset img {
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid #3a3226;
}
.tc-preset b {
  display: block;
  color: var(--gold);
  font-size: 14px;
  line-height: 1.3;
}
.tc-preset small {
  font-size: 12px;
}
.tc-preset-info {
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cc, var(--gold));
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 15px;
  line-height: 1.6;
}
.tc-preset-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.tc-preset-info h3 small {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 400;
}
.tc-preset-info p {
  margin: 0 0 8px;
}
@media (max-width: 900px) {
  .tc-presets__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .tc-preset {
    gap: 8px;
    padding: 8px;
  }
  .tc-preset img {
    width: 24px;
    height: 24px;
  }
  .tc-preset b {
    font-size: 13px;
  }
  .tc-preset-info {
    padding: 10px 12px;
  }
}
.tc__bar {
  position: sticky;
  top: calc(var(--top-h) + 8px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 14, 10, 0.94);
  backdrop-filter: blur(6px);
}
/* phones: the bar with points and buttons is too tall to stay pinned over the trees - it scrolls away with the page */
@media (max-width: 760px) {
  .tc__bar {
    position: static;
  }
}
.tc__sum {
  font-size: 15px;
}
.tc__sum b {
  color: var(--gold-hi);
}
.tc__split {
  margin-left: 12px;
  color: var(--text-mute);
  font-size: 13px;
}
.tc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tc__btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--gold-deep);
  border-radius: 8px;
  background: rgba(58, 42, 22, 0.6);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
.tc__btn:hover {
  border-color: var(--gold-hi);
  color: var(--gold-hi);
}
.tc__btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.tc__btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-dim);
}
.tc__mode {
  display: none;
}
.tc__mode.is-on {
  border-color: #c0392b;
  color: #ffb4a8;
  background: rgba(110, 26, 18, 0.35);
}
@media (hover: none) {
  .tc__mode {
    display: inline-flex;
  }
}
.tc__trees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tc__tree {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(260px 140px at 50% 0%, color-mix(in srgb, var(--cc) 10%, transparent), transparent 70%),
    linear-gradient(180deg, #1a140e, #110d09);
}
.tc__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.tc__head img {
  border-radius: 6px;
  border: 1px solid #3a3226;
}
.tc__head b {
  flex: 1;
  font: 700 18px/1.2 var(--font-display);
  color: var(--gold);
}
.tc__head span {
  font-weight: 800;
  color: var(--gold-hi);
}
.tc__clear {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text-mute);
  line-height: 1;
}
.tc__clear:hover {
  color: #ffb4a8;
  border-color: #c0392b;
}
.tc__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  justify-items: center;
}
.tc__t {
  position: relative;
  z-index: 1;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  border: 2px solid #3a3226;
  background: #000;
  text-decoration: none !important;
  transition:
    transform 0.1s,
    border-color 0.15s,
    filter 0.15s;
  user-select: none;
}
.tc__t img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 7px;
}
.tc__t:hover {
  transform: scale(1.06);
}
.tc__t.is-locked img {
  filter: grayscale(1) brightness(0.55);
}
.tc__t.is-open {
  border-color: #4f8a3a;
}
.tc__t.is-some {
  border-color: #6fcf4f;
  box-shadow: 0 0 8px rgba(111, 207, 79, 0.35);
}
.tc__t.is-max {
  border-color: var(--gold-hi);
  box-shadow: 0 0 10px rgba(255, 209, 0, 0.35);
}
.tc__rank {
  position: absolute;
  right: -8px;
  bottom: -8px;
  min-width: 26px;
  padding: 0 4px;
  border-radius: 6px;
  border: 1px solid #3a3226;
  background: #0d0a07;
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.tc__t.is-open .tc__rank {
  color: #8fd26e;
}
.tc__t.is-some .tc__rank {
  color: #b6f59a;
  border-color: #4f8a3a;
}
.tc__t.is-max .tc__rank {
  color: var(--gold-hi);
  border-color: var(--gold-deep);
}
.tc__arrow {
  z-index: 0;
  align-self: stretch;
  justify-self: center;
  background: #3a3226;
  border-radius: 2px;
  pointer-events: none;
}
.tc__arrow--v {
  width: 4px;
}
.tc__arrow--h {
  height: 4px;
  align-self: center;
  justify-self: stretch;
}
.tc__arrow.is-on {
  background: var(--gold);
}
.tc__order {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.tc__order summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 800;
  color: var(--gold);
}
.tc__order ol {
  list-style: none;
  margin: 0;
  padding: 0 16px 14px;
  columns: 3 240px;
  column-gap: 24px;
  font-size: 14px;
}
.tc__order li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  break-inside: avoid;
}
.tc__order li span {
  min-width: 22px;
  color: var(--text-mute);
  font-weight: 800;
}
.tc__order small {
  color: var(--text-mute);
}
.tc__order p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--text-dim);
  font-size: 14px;
}
.tc-mine {
  margin-top: 26px;
}
.tc-save {
  display: flex;
  gap: 8px;
  max-width: 560px;
}
.tc-save input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.tc-saved {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-width: 560px;
}
.tc-saved li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}
.tc-saved a {
  flex: 1;
  font-weight: 700;
}
.tc-saved small {
  color: var(--text-mute);
}
.tc-saved button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text-mute);
}
.tc-saved__empty {
  color: var(--text-mute);
  font-size: 13px;
}
.tc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  font-weight: 700;
}
@media (max-width: 1000px) {
  .tc__trees {
    grid-template-columns: minmax(0, 1fr);
  }
  .tc__split {
    display: block;
    margin: 2px 0 0;
  }
}
/* talent calculator: compact like the in-game frame - fixed icon columns, the whole page centred */
.page.tc-page {
  max-width: 1140px;
}
.tc__trees {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tc__tree {
  padding: 12px 10px 14px;
}
.tc__grid {
  grid-template-columns: repeat(4, 50px);
  justify-content: center;
  gap: 14px 20px;
}
.tc__head {
  margin-bottom: 12px;
}
@media (max-width: 1000px) {
  .tc__trees {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
  }
}
/* calculator: keep its place before the script draws it, the h1 never wraps to a second line on desktop */
.tc {
  min-height: 640px;
}
.tc-head h1 {
  white-space: nowrap;
  font-size: clamp(26px, 3.4vw, 44px) !important;
}
@media (max-width: 700px) {
  .tc-head h1 {
    white-space: normal;
  }
  .tc {
    min-height: 0;
  }
}
/* always reserve the scrollbar's place: short and long pages keep the same width, nothing shifts between pages */
html {
  scrollbar-gutter: stable;
}

/* ---------- legacy planner ---------- */
.lc__grid {
  grid-template-rows: repeat(4, auto);
}
.tc__head b small {
  display: block;
  font: 600 12px/1.3 var(--font-body);
  color: var(--text-mute);
}
.lc__t.is-soon {
  border-style: dashed;
  opacity: 0.45;
  cursor: default;
}
.lc__t.is-soon img {
  filter: grayscale(1);
}
.lc__gates {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
}
.lc__picked {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.lc__picked h3 {
  margin: 0 0 8px;
  font: 700 18px/1.2 var(--font-display);
  color: var(--gold);
}
.lc__picked ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 15px;
}
.lc__picked li img {
  vertical-align: -3px;
  margin-right: 6px;
  border-radius: 4px;
}
.lc__picked b {
  color: var(--gold-hi);
}
.lc__picked p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}
.lg {
  margin-top: 30px;
}
.lg__top {
  padding: 16px 18px;
  border: 1px solid var(--gold-deep);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(58, 42, 22, 0.45), rgba(20, 15, 10, 0.85));
}
.lg__score {
  font-size: 17px;
}
.lg__score b {
  font: 700 30px/1 var(--font-display);
  color: var(--gold-hi);
  margin-right: 4px;
}
.lg__track {
  position: relative;
  height: 10px;
  margin: 26px 8px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
}
.lg__track > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #8a6420, var(--gold-hi));
}
.lg__mark {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-mute);
}
.lg__mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 18px;
  width: 2px;
  height: 16px;
  background: var(--line);
}
.lg__mark.is-on {
  color: var(--gold-hi);
}
.lg__rewards {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 6px 16px;
  font-size: 14px;
}
.lg__rewards li {
  color: var(--text-dim);
}
.lg__rewards li b {
  display: inline-block;
  min-width: 26px;
  color: var(--text-mute);
}
.lg__rewards li.is-on b {
  color: var(--gold-hi);
}
.lg__rewards small {
  color: var(--text-mute);
}
.lg__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-mute);
}
.lg__groups {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.lg__group {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.lg__group summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 800;
  color: var(--gold);
}
.lg__group summary span {
  color: var(--text-mute);
  font-weight: 700;
  margin-left: 6px;
}
.lg__group p {
  margin: 0 16px 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.lg__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 14px;
  padding: 0 16px 14px;
}
.lg__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.lg__item input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}
.lg-faq {
  margin-top: 30px;
}
.tool-card--link {
  text-decoration: none !important;
  color: var(--text);
}
.tool-card--link:hover {
  border-color: var(--gold-hi);
}
.tool-card--link .btn {
  justify-self: end;
}
/* Legacy perk «Талантливый герой» in the calculator bar */
.tc__tal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}
.tc__tal a {
  color: var(--arcane);
}
.tc__tal select {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #120e0a;
  color: var(--gold-hi);
  font: inherit;
  font-size: 13px;
}

/* ---------- news = a feed (guides = magazine cards): banner for the latest, dated lines below ---------- */
.nw-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}
.nw-feat {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  padding: 26px 28px;
  border: 1px solid var(--gold-deep);
  border-radius: 16px;
  overflow: hidden;
  background: #15100b center 40% / cover no-repeat;
  text-decoration: none !important;
  color: var(--text);
}
.nw-feat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 10, 7, 0.05) 25%, rgba(14, 10, 7, 0.94) 85%);
}
.nw-feat__text {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: start;
  max-width: 760px;
}
.nw-feat b {
  font: 700 32px/1.15 var(--font-display);
  color: var(--gold);
  text-shadow: 0 2px 0 #000;
}
.nw-feat__desc {
  color: var(--text-dim);
  font-size: 16px;
}
.nw-feat time {
  font-size: 13px;
  color: var(--text-mute);
}
.nw-feat:hover {
  border-color: var(--gold-hi);
}
.nw-list {
  display: grid;
  margin-top: 10px;
}
.nw-row {
  display: grid;
  grid-template-columns: 64px 200px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  text-decoration: none !important;
  transition: background 0.15s;
}
.nw-row:hover {
  background: rgba(233, 196, 106, 0.04);
}
.nw-row:hover .nw-row__title {
  color: var(--gold-hi);
}
.nw-row__date {
  display: grid;
  justify-items: center;
  line-height: 1;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}
.nw-row__date b {
  font: 700 26px/1 var(--font-display);
  color: var(--gold);
}
.nw-row__date span {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.nw-row__img {
  height: 112px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #15100b center / cover no-repeat;
}
.nw-row__body {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.nw-row__tag {
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(110, 198, 255, 0.1);
  border: 1px solid rgba(110, 198, 255, 0.35);
  color: var(--arcane);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nw-row__title {
  font: 700 20px/1.25 var(--font-display);
  color: var(--gold);
  transition: color 0.15s;
}
.nw-row__desc {
  font-size: 14px;
  line-height: 1.5;
}
.nw-row--compact {
  grid-template-columns: 56px 150px minmax(0, 1fr);
  padding: 12px 4px;
}
.nw-row--compact .nw-row__img {
  height: 84px;
}
.nw-row--compact .nw-row__title {
  font-size: 18px;
}
.nw-list--home {
  margin-top: 0;
  border-top: 1px solid var(--line-soft);
}
.nw-side__link {
  display: block;
  padding: 7px 6px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none !important;
}
.nw-side__link:hover {
  background: rgba(233, 196, 106, 0.07);
  color: var(--gold-hi);
}
.nw-side__all {
  color: var(--gold);
  font-weight: 800;
}
.nw-hub__side {
  position: sticky;
}
/* news article: shorter banner with the date in front */
.gd-hero--news {
  min-height: 220px;
}
@media (max-width: 1100px) {
  .nw-hub {
    grid-template-columns: minmax(0, 1fr);
  }
  .nw-hub__side {
    display: none;
  }
}
@media (max-width: 640px) {
  .nw-feat {
    min-height: 260px;
    padding: 18px;
  }
  .nw-feat b {
    font-size: 24px;
  }
  .nw-row,
  .nw-row--compact {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }
  .nw-row__img {
    display: none;
  }
  .nw-row__title {
    font-size: 17px;
  }
}
/* magazine grid: the main card takes 4 cells, so a lone last card would leave holes - stretch it over the free cells */
@media (min-width: 1001px) {
  .gd-list > .gd-item:last-child:nth-child(3n + 1):not(:first-child) {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .gd-list > .gd-item:last-child:nth-child(3n + 1):not(:first-child) .gd-item__img {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 220px;
  }
  .gd-list > .gd-item:last-child:nth-child(3n + 1):not(:first-child) .gd-item__img::after {
    background: linear-gradient(90deg, transparent 55%, rgba(18, 14, 10, 0.95));
  }
  .gd-list > .gd-item:last-child:nth-child(3n + 1):not(:first-child) .gd-item__body {
    padding: 22px 24px;
    justify-content: center;
  }
  .gd-list > .gd-item:last-child:nth-child(3n + 2):not(:nth-child(2)) {
    grid-column: span 2;
  }
}
@media (min-width: 641px) and (max-width: 1000px) {
  .gd-list > .gd-item:last-child:nth-child(2n):not(:first-child) {
    grid-column: 1 / -1;
  }
}
/* taller picture banners (owner: +50 px) */
.gd-hero {
  min-height: 330px;
}
.gd-hero--news {
  min-height: 390px;
  padding-top: 170px;
  background-position: 60% center;
}
.gd-hero--news h1 {
  font-size: clamp(28px, 3.2vw, 44px);
}
@media (max-width: 640px) {
  .gd-hero {
    min-height: 250px;
  }
  .gd-hero--news {
    min-height: 360px;
    padding-top: 190px;
    background-size: auto 240px;
    background-position: 60% top;
  }
  .gd-hero--news::before {
    background: linear-gradient(180deg, transparent 100px, rgba(21, 16, 11, 0.7) 170px, #15100b 240px);
  }
}

/* The PvP panorama keeps the duel clear on the right and the heading on the left. */
.gd-class-icon {
  position: absolute;
  z-index: 2;
  object-fit: contain;
  border: 1px solid var(--gold-deep);
  border-radius: 10px;
  background: #100d09;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}
.gd-item__class-icon {
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
}
.gd-hero__class-icon {
  top: 20px;
  right: 22px;
  width: 64px;
  height: 64px;
}
.gd-item--class-art .gd-item__img {
  background-position: 65% 35%;
}
/* Keep both the traveller and bear in the tall lead card's crop. */
.gd-item--main[href='/guides/before-release/'] .gd-item__img {
  background-position: 72% 40%;
}
.gd-hero--class-art,
.gd-hero--guide-art {
  min-height: 380px;
  background-position: 65% top;
}
.gd-hero--class-art::before,
.gd-hero--guide-art::before {
  background: linear-gradient(90deg, rgba(10, 10, 13, 0.94), rgba(10, 10, 13, 0.76) 36%, rgba(10, 10, 13, 0.08) 70%);
}
.gd-hero--class-art .gd-hero__text,
.gd-hero--guide-art .gd-hero__text {
  max-width: 48%;
}
.gd-hero--class-art h1,
.gd-hero--guide-art h1 {
  font-size: clamp(26px, 2.3vw, 40px);
  line-height: 1.15;
}
@media (max-width: 760px) {
  .gd-hero--class-art,
  .gd-hero--guide-art {
    padding-top: 215px;
    background-position: 65% top;
    background-size: auto 250px;
    background-color: #100f13;
  }
  .gd-hero--class-art::before,
  .gd-hero--guide-art::before {
    background: linear-gradient(180deg, transparent 130px, #100f13 250px);
  }
  .gd-hero--class-art .gd-hero__text,
  .gd-hero--guide-art .gd-hero__text {
    max-width: 100%;
  }
  .gd-hero__class-icon {
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
  }
}
.gd-hero--pvp-art {
  background-position: 65% 40%;
}
.gd-hero--pvp-art::before {
  background: linear-gradient(90deg, rgba(7, 13, 22, 0.88), rgba(7, 13, 22, 0.68) 36%, rgba(7, 13, 22, 0.08) 70%);
}
.gd-hero--pvp-art .gd-hero__text {
  max-width: 52%;
}
@media (max-width: 760px) {
  .gd-hero--pvp-art {
    padding-top: 195px;
    background-position: 72% top;
    background-size: auto 230px;
    background-color: #10151b;
  }
  .gd-hero--pvp-art::before {
    background: linear-gradient(180deg, transparent 100px, #10151b 235px);
  }
  .gd-hero--pvp-art .gd-hero__text {
    max-width: 100%;
  }
}

/* desktop: article and news banners another +50 px (owner, 22.10). Padding grows with min-height,
   so a banner whose long title already sets its height still gets the extra 50 px */
@media (min-width: 1001px) {
  .gd-hero {
    min-height: 380px;
  }
  .gd-hero--class-art,
  .gd-hero--guide-art {
    min-height: 430px;
    padding-top: 76px;
  }
  .gd-hero--pvp-art {
    padding-top: 76px;
  }
  .gd-hero--news {
    min-height: 440px;
    padding-top: 220px;
  }
}

/* ---------- site menu: drop-down under a section (hover / keyboard focus) ---------- */
.sitenav__item {
  position: relative;
  display: flex;
}
.sitenav__caret {
  margin-left: 5px;
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.15s;
}
.sitenav__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  min-width: 320px;
  padding: 14px 8px 8px;
  transform: translate(-50%, 6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s,
    transform 0.15s,
    visibility 0.15s;
}
.sitenav__menu::before {
  content: '';
  position: absolute;
  inset: 8px 0 0;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #221a12, #15100b);
  box-shadow: var(--shadow);
}
.sitenav__item:hover .sitenav__menu,
.sitenav__item:focus-within .sitenav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.sitenav__item:hover .sitenav__caret,
.sitenav__item:focus-within .sitenav__caret {
  transform: rotate(180deg);
}
.sitenav__sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--text-dim);
  text-decoration: none !important;
}
.sitenav__sub img {
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #3a3226;
}
.sitenav__sub b {
  display: block;
  color: var(--gold);
  font-size: 15px;
}
.sitenav__sub small {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.35;
}
.sitenav__sub:hover,
.sitenav__sub:focus-visible {
  background: rgba(233, 196, 106, 0.08);
}
.sitenav__sub:hover b {
  color: var(--gold-hi);
}

/* ---------- talent calculator hub ---------- */
.tth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--gold-deep);
  border-radius: 16px;
  background:
    radial-gradient(500px 240px at 90% 20%, rgba(110, 198, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(58, 42, 22, 0.45), rgba(20, 15, 10, 0.85));
}
.tth-hero h1 {
  margin: 0 0 10px !important;
}
.tth-hero__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  max-width: 760px;
}
.tth-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
}
.tth-facts li {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 104px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
}
.tth-facts b {
  font: 700 30px/1 var(--font-display);
  color: var(--gold-hi);
}
.tth-facts span {
  font-size: 12px;
  color: var(--text-mute);
}
.tth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tth-card {
  --cc: #e9c46a;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(260px 140px at 0% 0%, color-mix(in srgb, var(--cc) 13%, transparent), transparent 70%),
    linear-gradient(180deg, #1d1610, #120e0a);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--cc) 50%, transparent);
  color: var(--text-dim);
  text-decoration: none !important;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.tth-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cc) 60%, var(--line));
}
.tth-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tth-card__head img {
  border-radius: 10px;
  border: 2px solid color-mix(in srgb, var(--cc) 70%, #000);
  box-shadow: 0 0 0 1px #000;
}
.tth-card__head b {
  font: 700 22px/1.1 var(--font-display);
  color: var(--cc);
}
.tth-card__trees {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tth-tree {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 13px;
  color: var(--text);
}
.tth-tree img {
  border-radius: 50%;
}
.tth-card__go {
  margin-top: auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
}
.tth-card:hover .tth-card__go {
  color: var(--gold-hi);
}
.tth-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tth-steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.tth-steps__n {
  position: absolute;
  top: -10px;
  left: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #12100c;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.tth-steps img {
  border-radius: 8px;
  border: 1px solid #3a3226;
}
.tth-steps b {
  color: var(--gold);
}
.tth-steps p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}
.tth-forever {
  max-width: 900px;
}
.tth-forever p {
  line-height: 1.7;
}
@media (max-width: 1100px) {
  .tth-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .tth-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .tth-grid,
  .tth-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .tth-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tth-facts li {
    min-width: 0;
  }
}
/* legacy page: intro and text sections */
.lg-intro {
  max-width: 900px;
  font-size: 17px;
  line-height: 1.65;
  margin: 14px 0 10px;
}
.lg-text {
  max-width: 980px;
  margin-top: 30px;
}
.lg-text p {
  line-height: 1.7;
}
.lg-builds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
}
.lg-build {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-dim);
  text-decoration: none !important;
  transition: border-color 0.15s;
}
.lg-build:hover {
  border-color: var(--gold-deep);
}
.lg-build img {
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #3a3226;
}
.lg-build b {
  display: block;
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 3px;
}
.lg-build small {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .lg-builds {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* classes drop-down: 3x3 grid in class colours */
.sitenav__menu--grid {
  min-width: 470px;
}
.sitenav__menu--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.sitenav__cls {
  --cc: #e9c46a;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 9px;
  text-decoration: none !important;
}
.sitenav__cls img {
  grid-row: 1 / 3;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--cc) 60%, #000);
}
.sitenav__cls b {
  color: var(--cc);
  font-size: 14px;
  line-height: 1.1;
}
.sitenav__cls small {
  font-size: 11px;
  color: var(--text-mute);
}
.sitenav__cls small.is-page {
  color: var(--ok);
  font-weight: 700;
}
.sitenav__cls.is-soon img {
  filter: saturate(0.7);
  opacity: 0.85;
}
.sitenav__cls:hover {
  background: rgba(233, 196, 106, 0.08);
}
.sitenav__all {
  grid-column: 1 / -1;
  padding: 8px 10px 4px;
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none !important;
}
.sitenav__all:hover {
  color: var(--gold-hi);
}

/* ---------- phone menu: burger + slide-in panel (desktop menu is hidden at <=760px) ---------- */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-left: 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.burger:hover {
  border-color: var(--gold-deep);
}
.mnav {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.mnav.is-open {
  visibility: visible;
  pointer-events: auto;
}
.mnav__shade {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s;
}
.mnav.is-open .mnav__shade {
  opacity: 1;
}
.mnav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(320px 200px at 100% 0%, rgba(233, 196, 106, 0.1), transparent 70%),
    linear-gradient(180deg, #1d1610, #0f0b08);
  border-left: 1px solid var(--gold-deep);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mnav.is-open .mnav__panel {
  transform: translateX(0);
}
.mnav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  border-bottom: 1px solid var(--line);
}
.mnav__top .brand__name {
  font-size: 22px;
}
.mnav__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-dim);
}
.mnav__close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
/* folded group in the phone menu (classes): the head is a button, the grid opens under it */
.mnav__fold {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.mnav__chev {
  display: inline-block;
  transition: transform 0.2s;
}
.mnav__fold[aria-expanded='true'] .mnav__chev {
  transform: rotate(180deg);
}
.mnav__classes[hidden] {
  display: none;
}
.mnav__allcls {
  grid-column: 1 / -1;
  padding: 8px 6px 2px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}
.mnav__body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 14px 16px;
  overscroll-behavior: contain;
}
.mnav__sec {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  gap: 4px;
}
.mnav__sec--flat {
  gap: 0;
}
.mnav__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px;
  font: 700 21px/1.2 var(--font-display);
  color: var(--gold);
  text-decoration: none !important;
  border-radius: 8px;
}
.mnav__head span {
  font-size: 16px;
  color: var(--text-mute);
}
.mnav__head.is-active {
  color: var(--gold-hi);
  background: rgba(233, 196, 106, 0.07);
}
.mnav__row {
  --cc: var(--gold);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 6px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none !important;
}
.mnav__row img {
  border-radius: 7px;
  border: 1px solid #3a3226;
}
.mnav__row b {
  font-size: 15px;
  font-weight: 700;
}
.mnav__row small {
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
}
.mnav__row:active,
.mnav__row:hover {
  background: rgba(233, 196, 106, 0.07);
}
.mnav__classes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 2px 0;
}
.mnav__cls {
  --cc: #e9c46a;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--cc);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
}
.mnav__cls img {
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--cc) 60%, #000);
}
.mnav__cls.is-soon {
  opacity: 0.6;
}
.mnav__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.mnav__foot small {
  color: var(--text-mute);
  font-size: 12px;
}
html.mnav-lock,
html.mnav-lock body {
  overflow: hidden;
}
@media (max-width: 760px) {
  .burger {
    display: inline-flex;
  }
  .topbar__inner > .langs {
    display: none;
  }
  .topbar__inner {
    gap: 8px;
  }
  .brand__name small {
    display: none;
  }
}
@media (min-width: 761px) {
  .mnav {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar__inner > .brand {
    margin-right: auto;
  }
}

/* «Слушать статью» (components/ListenPlayer.astro): button in the article header, player bar at the bottom */
.tts-btn {
  justify-self: start;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  background: rgba(12, 9, 6, 0.75);
  color: var(--gold);
  font: 700 15px/1.2 var(--font-body);
  cursor: pointer;
}
.tts-btn:hover {
  border-color: var(--gold-hi);
  color: var(--gold-hi);
}
.tts-btn__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1208;
  font-size: 12px;
  padding-left: 2px;
}
.tts-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 60;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 24px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 14px;
  border: 1px solid var(--gold-deep);
  border-radius: 14px;
  background: rgba(16, 12, 8, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.tts-bar[hidden] {
  display: none;
}
.tts-bar__now {
  flex: 1 1 180px;
  min-width: 0;
  display: grid;
}
.tts-bar__now small {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.tts-bar__now b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--gold);
}
.tts-bar__ctrl {
  display: flex;
  gap: 6px;
}
.tts-bar button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}
.tts-bar button:hover {
  border-color: var(--gold-hi);
  color: var(--gold-hi);
}
.tts-bar .tts-bar__play {
  min-width: 46px;
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1208;
}
.tts-bar__opts {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mute);
}
.tts-bar__opts label {
  display: grid;
  gap: 2px;
}
.tts-bar select {
  max-width: 190px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f0b07;
  color: var(--text);
  font: 14px/1.3 var(--font-body);
}
.tts-on {
  background: rgba(233, 196, 106, 0.12);
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(233, 196, 106, 0.12);
}
body.tts-open .tts-root {
  padding-bottom: 120px;
}
body.tts-open .tts-root :is(p, li, h2, h3, summary) {
  cursor: pointer;
}
@media (max-width: 640px) {
  .tts-bar__opts {
    width: 100%;
  }
  .tts-bar__opts label {
    flex: 1;
  }
  .tts-bar select {
    max-width: none;
    width: 100%;
  }
}

/* /legal/: sources of every page, grouped by section (pages themselves don't list them) */
.lg-src__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}
.lg-src__nav a {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-decoration: none;
}
.lg-src__nav a:hover {
  color: var(--gold-hi);
  border-color: var(--gold-deep);
}
.lg-src {
  margin: 0 0 22px;
  scroll-margin-top: 90px;
}
.lg-src h3 {
  margin: 0 0 10px;
  color: var(--gold);
}
.lg-src__page {
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.lg-src__page summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.lg-src__page summary::-webkit-details-marker {
  display: none;
}
.lg-src__page summary::before {
  content: '+';
  flex: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
}
.lg-src__page[open] summary::before {
  content: '−';
}
.lg-src__page summary a {
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
}
.lg-src__page summary small {
  margin-left: auto;
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-mute);
  font-size: 0.8rem;
}
.lg-src__page ul {
  margin: 0;
  padding: 0 16px 12px 40px;
  line-height: 1.55;
}
.lg-src__page li {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.lg-src__page li span {
  color: var(--text-dim);
}
