/* ==========================================================================
   Living Atlas — sub-page styles (/world/, /rankings/).
   Loaded after atlas.css and reuses its tokens and fonts, so these pages read as
   part of the same book rather than a bolt-on.
   ========================================================================== */

.lc-atlas-sub main { padding-top: var(--header-height); }

/* ------------------------------------------------------------------ hero -- */
.sub-hero {
  position: relative;
  display: flex;
  min-height: 52vh;
  align-items: flex-end;
  padding: 0 0 clamp(38px, 5vw, 74px);
  overflow: hidden;
}
.sub-hero-image {
  position: absolute;
  inset: 0;
  background-position: center 46%;
  background-size: cover;
  transform: scale(1.04);
}
.sub-hero-ink {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,10,.88) 0%, rgba(7,9,10,.42) 34%, rgba(7,9,10,.86) 78%, var(--ink) 100%),
    radial-gradient(70% 60% at 22% 60%, rgba(7,9,10,.55), transparent 70%);
}
.sub-hero-content {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 34px);
}
.sub-hero-content h1 {
  margin: 10px 0 14px;
  color: var(--bone);
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: clamp(38px, 6vw, 82px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.sub-hero-copy {
  max-width: 620px;
  color: var(--bone-dim);
  font-family: "TLC Garamond", Georgia, serif;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.62;
}
.eyebrow.red { color: var(--vermilion); }

/* ------------------------------------------------------------ realm index -- */
.realm-index { padding: clamp(48px, 6vw, 92px) 0 clamp(60px, 7vw, 110px); }
.realm-index-grid {
  display: grid;
  width: var(--page);
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 34px);
  gap: clamp(18px, 2vw, 30px);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.realm-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19,23,25,.72), rgba(7,9,10,.86));
  transition: transform 420ms cubic-bezier(.2,.7,.2,1), border-color 420ms ease;
}
.realm-card:hover { transform: translateY(-4px); border-color: rgba(212,191,137,.42); }
.realm-card-image {
  height: 190px;
  background-position: center;
  background-size: cover;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}
.realm-card:hover .realm-card-image { transform: scale(1.05); }
.realm-card-body { position: relative; padding: 22px 24px 26px; }
.realm-card-index {
  position: absolute;
  top: -20px;
  right: 20px;
  color: var(--gold);
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: 30px;
  text-shadow: 0 4px 16px rgba(0,0,0,.85);
}
.realm-card h2 {
  margin: 4px 0 2px;
  color: var(--bone);
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}
.realm-card h3 {
  margin: 0 0 10px;
  color: var(--gold-pale);
  font-family: "TLC Garamond", Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
}
.realm-card-copy { margin: 0 0 16px; color: var(--bone-dim); font-size: 14px; line-height: 1.6; }
.realm-index-note {
  width: var(--page);
  margin: clamp(34px, 4vw, 56px) auto 0;
  padding: 0 clamp(16px, 2vw, 34px);
  color: var(--bone-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}
.realm-index-note b { color: var(--gold-pale); }

/* -------------------------------------------------------------- rankings -- */
.rank-section { padding: clamp(40px, 5vw, 80px) 0 clamp(60px, 7vw, 110px); }
.rank-wrap {
  display: grid;
  width: var(--page);
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 34px);
  gap: clamp(22px, 3vw, 44px);
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}
.rank-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.rank-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank-table thead th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  text-align: left;
  text-transform: uppercase;
  background: rgba(7,9,10,.6);
  white-space: nowrap;
}
.rank-table tbody tr { border-bottom: 1px solid rgba(212,191,137,.09); transition: background 220ms ease; }
.rank-table tbody tr:hover { background: rgba(120,212,237,.035); }
.rank-table tbody tr.is-top .rank-pos { color: var(--gold-pale); }
.rank-table td { padding: 13px 14px; color: var(--bone-dim); vertical-align: middle; }
.rank-pos {
  width: 54px;
  color: var(--gold-dark);
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.rank-name { color: var(--bone); font-weight: 600; }
.rank-level {
  width: 56px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.rank-class b { display: block; color: var(--bone); font-size: 13px; font-weight: 600; }
.rank-class i { color: var(--gold-pale); font-size: 12.5px; font-style: normal; }
.rank-class small { display: block; margin-top: 2px; color: var(--bone-dim); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; opacity: .7; }
.rank-guild { max-width: 220px; font-size: 13px; }
.rank-caste { color: var(--gold-pale); font-size: 12.5px; white-space: nowrap; }
.rank-table .muted { opacity: .4; }
.rank-main { min-width: 0; }
.rank-note, .rank-empty {
  margin-top: 20px;
  color: var(--bone-dim);
  font-size: 12.5px;
  text-align: center;
}
.rank-empty { padding: 40px 0; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .rank-wrap { grid-template-columns: 1fr; }
  .sub-hero { min-height: 42vh; }
  .rank-guild { max-width: 140px; }
}
@media (max-width: 620px) {
  .realm-index-grid { grid-template-columns: 1fr; }
  .rank-table { font-size: 13px; }
  .rank-table td, .rank-table thead th { padding: 10px 9px; }
  .rank-class small { display: none; }
}

/* ==========================================================================
   MOBILE MENU — rebuilt.
   The prototype's mobile nav is position:fixed *inside* .site-header, which has
   backdrop-filter — and that makes the header a containing block for fixed
   descendants. The panel therefore resolved against a 72px header and collapsed
   to 120px while its links needed ~390px, and .header-actions (Account, Play
   Free) was display:none, so neither was reachable on a phone at all.
   This panel is appended to <body> by atlas.js, so no ancestor can trap it.
   ========================================================================== */
.lc-menu {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0 24px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: rgba(5, 8, 9, 0.98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 280ms cubic-bezier(.2,.7,.2,1), transform 280ms cubic-bezier(.2,.7,.2,1), visibility 280ms;
}
.lc-menu.is-open { opacity: 1; visibility: visible; transform: none; }

.lc-menu-top {
  display: flex;
  height: 72px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  margin: 0 -24px;
  padding: 0 20px 0 24px;
  border-bottom: 1px solid var(--line);
}
.lc-menu-top img { width: 84px; height: auto; }
.lc-menu-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--bone);
  background: transparent;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.lc-menu-close:hover { border-color: var(--cyan); color: var(--cyan); }

.lc-menu nav.lc-menu-links { display: flex; flex-direction: column; padding: 8px 0 4px; }
.lc-menu-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 17px 2px;
  border-bottom: 1px solid rgba(212,191,137,.1);
  color: var(--bone);
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: 21px;
  letter-spacing: .01em;
  text-decoration: none;
}
.lc-menu-links a small {
  color: var(--gold-dark);
  font-family: "TLC Inter", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.lc-menu-links a:active { color: var(--gold-pale); }

.lc-menu-actions { display: grid; margin-top: auto; padding-top: 26px; gap: 10px; }
.lc-menu-actions .button { width: 100%; justify-content: center; text-align: center; }
.lc-menu-actions .lc-menu-account {
  display: block;
  padding: 15px 0;
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: "TLC Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}
.lc-menu-actions .lc-menu-account:hover { border-color: var(--cyan); color: var(--cyan); }
.lc-menu-note {
  padding-top: 16px;
  color: var(--bone-dim);
  font-size: 10px;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  opacity: .55;
}

/* the original in-header panel is replaced entirely */
@media (max-width: 900px) {
  .site-header nav { display: none !important; }
}
@media (min-width: 901px) {
  .lc-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lc-menu { transition: opacity 1ms, visibility 1ms; transform: none; }
}

/* ------------------------------------------------- leaderboard: icons + MP -- */
.rank-champion { display: flex; align-items: center; gap: 12px; }
.rank-avatar {
  position: relative;
  display: grid;
  width: 44px; height: 44px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(19,23,25,.9);
}
.rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* the champion's god tints their portrait ring */
.rank-avatar.god-brahma { border-color: rgba(224,178,84,.75); box-shadow: 0 0 0 1px rgba(224,178,84,.22); }
.rank-avatar.god-vishnu { border-color: rgba(181,74,59,.8);  box-shadow: 0 0 0 1px rgba(181,74,59,.24); }
.rank-avatar.god-shiva  { border-color: rgba(120,212,237,.7); box-shadow: 0 0 0 1px rgba(120,212,237,.22); }
.rank-who b { display: block; color: var(--bone); font-size: 14px; font-weight: 600; }
.rank-who small {
  display: block; margin-top: 2px;
  color: var(--bone-dim);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .75;
}
.rank-god { width: 54px; text-align: center; }
.rank-god img { display: inline-block; width: 26px; height: 26px; }
.rank-mp {
  width: 112px;
  color: var(--gold-pale);
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.rank-table tbody tr.is-top .rank-mp { color: #f0dcab; }

@media (max-width: 900px) { .rank-who small { display: none; } .rank-avatar { width: 36px; height: 36px; } }
@media (max-width: 620px) { .rank-god, .rank-level { display: none; } .rank-mp { width: 84px; font-size: 13px; } }

/* ------------------------------------------------- homepage top-10 板 ------- */
.top-ten { position: relative; padding: clamp(46px, 5vw, 88px) 0; }
.top-ten-inner { width: var(--page); margin: 0 auto; padding: 0 clamp(16px, 2vw, 34px); }
.top-ten-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.top-ten-head h2 { margin: 6px 0 0; color: var(--bone); font-family: "TLC Marcellus", Georgia, serif; font-size: clamp(28px, 3.4vw, 46px); font-weight: 400; }
.top-ten-list { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.top-ten-row {
  display: grid;
  grid-template-columns: 46px 44px minmax(0,1fr) 30px 96px;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(13,17,18,.94);
}
.top-ten-row .tt-pos { color: var(--gold-dark); font-family: "TLC Marcellus", Georgia, serif; font-size: 15px; font-variant-numeric: tabular-nums; }
.top-ten-row:nth-child(-n+3) .tt-pos { color: var(--gold-pale); }
.top-ten-row .tt-name { min-width: 0; }
.top-ten-row .tt-name b { display: block; overflow: hidden; color: var(--bone); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.top-ten-row .tt-name small { color: var(--bone-dim); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.top-ten-row .tt-god img { width: 24px; height: 24px; display: block; }
.top-ten-row .tt-mp { color: var(--gold-pale); font-family: "TLC Marcellus", Georgia, serif; font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 620px) {
  .top-ten-row { grid-template-columns: 34px 36px minmax(0,1fr) 76px; padding: 10px 12px; }
  .top-ten-row .tt-god { display: none; }
}

/* ------------------------------------------------------- nav Guide dropdown -- */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop-t i { margin-left: 5px; font-size: 8px; font-style: normal; opacity: .7; }
.nav-drop-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 50%;
  display: flex;
  min-width: 208px;
  flex-direction: column;
  padding: 8px 0;
  border: 1px solid var(--line);
  background: rgba(7,9,10,.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 54px -26px #000;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop-menu a {
  padding: 10px 18px !important;
  color: rgba(239,234,224,.78) !important;
  font-size: 11px !important;
  letter-spacing: .13em !important;
  text-align: left;
  white-space: nowrap;
}
.nav-drop-menu a:hover { color: var(--bone) !important; background: rgba(120,212,237,.05); }
.nav-drop-menu a::after, .nav-drop-menu a + a::before { display: none !important; content: none !important; }

/* ------------------------------------------------------------------- news -- */
.news-section { padding: clamp(44px, 5vw, 84px) 0 clamp(60px, 7vw, 110px); }
.news-wrap { width: var(--page); margin: 0 auto; padding: 0 clamp(16px, 2vw, 34px); }
.news-list { display: grid; gap: clamp(16px, 2vw, 26px); }
.news-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19,23,25,.7), rgba(7,9,10,.86));
  transition: border-color 380ms ease, transform 380ms cubic-bezier(.2,.7,.2,1);
}
.news-card:hover { border-color: rgba(212,191,137,.4); transform: translateY(-3px); }
.news-media { display: block; min-height: 190px; }
.news-media span { display: block; width: 100%; height: 100%; background-position: center; background-size: cover; }
.news-body { padding: 24px 28px 26px; }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.news-tag {
  padding: 4px 10px;
  border: 1px solid rgba(181,74,59,.42);
  color: var(--vermilion);
  font-size: 9px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase;
}
.news-meta time { color: var(--bone-dim); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.news-body h2 { margin: 0 0 8px; font-family: "TLC Marcellus", Georgia, serif; font-size: 25px; font-weight: 400; }
.news-body h2 a { color: var(--bone); text-decoration: none; }
.news-body h2 a:hover { color: var(--gold-pale); }
.news-body p { margin: 0 0 14px; color: var(--bone-dim); font-size: 14.5px; line-height: 1.66; }
.news-empty { padding: clamp(50px, 7vw, 96px) 24px; border: 1px solid var(--line); text-align: center; }
.news-empty h2 { margin: 0 0 10px; color: var(--bone); font-family: "TLC Marcellus", Georgia, serif; font-size: 30px; font-weight: 400; }
.news-empty p { max-width: 460px; margin: 0 auto 22px; color: var(--bone-dim); font-size: 15px; line-height: 1.66; }
.news-pager { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.news-pager .page-numbers {
  display: grid; min-width: 40px; height: 40px; place-items: center;
  border: 1px solid var(--line); color: var(--bone-dim); font-size: 12px; text-decoration: none;
}
.news-pager .page-numbers.current, .news-pager .page-numbers:hover { border-color: var(--gold); color: var(--gold-pale); }

@media (max-width: 760px) {
  .news-card { grid-template-columns: 1fr; }
  .news-media { min-height: 170px; }
}

/* dropdown children inside the mobile menu read as sub-items, not siblings */
.lc-menu-links a.is-sub {
  padding: 12px 2px 12px 20px;
  border-bottom: 1px solid rgba(212,191,137,.06);
  color: var(--bone-dim);
  font-family: "TLC Inter", system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
}
.lc-menu-links a.is-sub::before { margin-right: 10px; color: var(--gold-dark); content: "—"; }

/* ------------------------------------------------------ Kruma front tabs -- */
.front-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; border: 1px solid var(--line); }
.front-tab {
  position: relative;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  color: var(--bone-dim);
  text-align: center;
  text-decoration: none;
  transition: background 240ms ease, color 240ms ease;
}
.front-tab:last-child { border-right: 0; }
.front-tab b { display: block; color: var(--bone); font-family: "TLC Marcellus", Georgia, serif; font-size: 16px; font-weight: 400; }
.front-tab small { display: block; margin-top: 3px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.front-tab i { display: block; margin-top: 4px; color: var(--gold-dark); font-size: 9px; font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.front-tab:hover { background: rgba(120,212,237,.04); }
.front-tab.is-active { background: rgba(120,212,237,.07); }
.front-tab.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--cyan); content: ""; }
.front-tab.is-active b { color: var(--gold-pale); }
.front-tab.is-empty { opacity: .55; }
.rank-level { white-space: nowrap; }
@media (max-width: 620px) {
  .front-tabs { grid-template-columns: 1fr; }
  .front-tab { border-right: 0; border-bottom: 1px solid var(--line); }
  .rank-level { display: table-cell; font-size: 11px; }
}

/* ==========================================================================
   TRIBES — compacted into three columns.
   Was: copy | portrait, with an 8-across selector strip spanning the full width
   underneath and a 660px-tall portrait cell — roughly 900px of page for one
   section. Now: the eight characters sit on the LEFT as a 2-column block beside
   the copy and portrait, which cuts the section height by about half.
   ========================================================================== */
.tribes { padding: clamp(64px, 6.5vw, 104px) 0 !important; }

.tribes .tribe-layout {
  display: grid !important;
  grid-template-columns: 188px minmax(0, 1fr) minmax(0, .88fr) !important;
  align-items: center;
  column-gap: clamp(26px, 3vw, 52px) !important;
  row-gap: 0 !important;
}

/* col 1 — the eight characters, two across */
.tribes .tribe-selector {
  grid-column: 1 !important;
  grid-row: 1 !important;
  grid-template-columns: repeat(2, 1fr) !important;
  margin-top: 0 !important;
  border: 1px solid var(--line) !important;
}
.tribes .tribe-selector button {
  height: 88px !important;
  padding: 8px 4px !important;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tribes .tribe-selector button:nth-child(2n) { border-right: 0; }
.tribes .tribe-selector button:nth-last-child(-n+2) { border-bottom: 0; }
.tribes .tribe-selector img { width: 40px !important; height: 40px !important; }
.tribes .tribe-selector span { margin-top: 5px; font-size: 7px; }

/* col 2 — the copy */
.tribes .tribe-copy { grid-column: 2 !important; grid-row: 1 !important; text-align: left !important; }
.tribes .tribe-copy h2 { font-size: clamp(32px, 3.4vw, 52px) !important; letter-spacing: -.03em; }
.tribes .tribe-copy > p:not(.eyebrow) {
  max-width: 460px !important;
  margin: 16px 0 20px !important;
  font-size: clamp(15px, 1.2vw, 18px) !important;
  line-height: 1.55;
}
.tribes .selected-tribe { max-width: 460px; margin: 0 !important; padding: 16px 0 !important; }
.tribes .selected-tribe h3 { margin: 4px 0 6px; font-size: clamp(28px, 2.6vw, 38px); }
.tribes .selected-tribe div { flex-wrap: wrap; gap: 4px 14px; font-size: 14.5px; }

/* col 3 — the portrait, no longer reserving 660px */
.tribes .tribe-portrait {
  grid-column: 3 !important;
  grid-row: 1 !important;
  min-height: clamp(330px, 34vw, 430px) !important;
}
.tribes .tribe-portrait > img { width: min(300px, 26vw) !important; height: min(300px, 26vw) !important; }
.tribes .portrait-ring { width: min(324px, 28vw) !important; height: min(324px, 28vw) !important; }
.tribes .tribe-portrait::before { width: min(370px, 32vw) !important; height: min(370px, 32vw) !important; }
.tribes .tribe-portrait::after  { width: min(450px, 39vw) !important; height: min(450px, 39vw) !important; }
.tribes .portrait-name { bottom: 6px; font-size: clamp(40px, 6vw, 92px) !important; }

/* ---- tablet: drop to two columns, characters stay two-across on the left --- */
@media (max-width: 1180px) {
  .tribes .tribe-layout { grid-template-columns: 170px minmax(0, 1fr) !important; }
  .tribes .tribe-portrait { display: none !important; }
  .tribes .tribe-selector img { width: 36px !important; height: 36px !important; }
}

/* ---- phone: one column, characters go four-across under the copy ---------- */
@media (max-width: 720px) {
  .tribes .tribe-layout { display: flex !important; flex-direction: column; }
  .tribes .tribe-copy { order: 1; text-align: center !important; }
  .tribes .tribe-copy > p:not(.eyebrow),
  .tribes .selected-tribe { margin-right: auto !important; margin-left: auto !important; }
  .tribes .tribe-selector {
    order: 2;
    grid-template-columns: repeat(4, 1fr) !important;
    margin-top: 22px !important;
  }
  .tribes .tribe-selector button { height: 78px !important; border-right: 1px solid var(--line); }
  .tribes .tribe-selector button:nth-child(2n) { border-right: 1px solid var(--line); }
  .tribes .tribe-selector button:nth-child(4n) { border-right: 0; }
  .tribes .tribe-selector button:nth-last-child(-n+4) { border-bottom: 0; }
  .tribes .tribe-selector img { width: 34px !important; height: 34px !important; }
  .tribes .selected-tribe div { justify-content: center; }
}

/* ==========================================================================
   REALM STATUS STRIP — the liveness signal, directly under the hero.
   ========================================================================== */
.realm-status { border-bottom: 1px solid var(--line); background: rgba(7,9,10,.72); }
.realm-status-inner {
  display: grid;
  width: var(--page);
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 34px);
  grid-template-columns: repeat(6, 1fr);
}
/* the fixed chapter rail sits at z-index 6 over the left gutter and was clipping
   the first cell by 32px — inset the strip so it starts where the rest of the
   page's content does */
@media (min-width: 1025px) {
  .realm-status-inner { padding-left: calc(var(--rail-width) + 26px); }
}
.rs-cell {
  padding: 15px 18px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.rs-cell:first-child { border-left: 1px solid var(--line); text-align: left; }
.rs-cell:last-child { border-right: 1px solid var(--line); }
.rs-cell b {
  display: block;
  color: var(--bone);
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.rs-cell small {
  display: block;
  margin-top: 3px;
  color: var(--bone-dim);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .17em;
  text-transform: uppercase;
  opacity: .78;
}
.rs-live b { font-family: "TLC Inter", system-ui, sans-serif; font-size: 13px; font-weight: 650; letter-spacing: .06em; }
.rs-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #5fd39b;
  box-shadow: 0 0 10px rgba(95,211,155,.85);
  animation: rs-pulse 2.6s ease-in-out infinite;
}
.rs-dot.is-off { background: var(--bone-dim); box-shadow: none; animation: none; }
@keyframes rs-pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

@media (max-width: 900px) {
  .realm-status-inner { grid-template-columns: repeat(3, 1fr); }
  .rs-cell { border-bottom: 1px solid var(--line); }
  .rs-cell:first-child { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 480px) {
  .realm-status-inner { grid-template-columns: repeat(2, 1fr); }
  .rs-cell { padding: 12px 10px; }
}

/* ==========================================================================
   CLOSING CTA — the page previously ended with 4,300px and no ask.
   ========================================================================== */
.closing-cta { position: relative; padding: clamp(64px, 7vw, 118px) 0; overflow: hidden; text-align: center; }
.closing-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 130% at 50% 0%, rgba(120,212,237,.07), transparent 62%),
              radial-gradient(70% 100% at 50% 100%, rgba(192,164,102,.07), transparent 60%);
}
.closing-cta-inner { position: relative; width: var(--page); margin: 0 auto; padding: 0 clamp(16px, 2vw, 34px); }
.closing-cta h2 {
  margin: 8px 0 12px;
  color: var(--bone);
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: clamp(34px, 4.6vw, 68px);
  font-weight: 400;
  letter-spacing: -.02em;
}
.closing-cta-copy {
  max-width: 540px;
  margin: 0 auto 26px;
  color: var(--bone-dim);
  font-family: "TLC Garamond", Georgia, serif;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.6;
}
.closing-cta-actions { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.closing-cta-actions .button { padding: 15px 38px; }

/* -------------------------------------------------- patch log + events -- */
.log-list { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.log-entry { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; padding: 24px 26px; background: rgba(13,17,18,.94); }
.log-date { text-align: center; }
.log-date b { display: block; color: var(--gold); font-family: "TLC Marcellus", Georgia, serif; font-size: 34px; font-weight: 400; line-height: 1; }
.log-date span { display: block; margin-top: 4px; color: var(--bone-dim); font-size: 9.5px; letter-spacing: .18em; }
.log-body h2 { margin: 9px 0 8px; font-family: "TLC Marcellus", Georgia, serif; font-size: 23px; font-weight: 400; }
.log-body h2 a { color: var(--bone); text-decoration: none; }
.log-body h2 a:hover { color: var(--gold-pale); }
.log-body p { margin: 0 0 12px; color: var(--bone-dim); font-size: 14.5px; line-height: 1.64; }

.event-featured { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(19,23,25,.72), rgba(7,9,10,.86)); }
.event-featured-media { position: relative; min-height: 300px; background: rgba(19,23,25,.9) center/cover; }
.event-live { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 100px; background: rgba(181,74,59,.92); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.event-live .dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.event-featured-body { padding: 30px 34px 34px; }
.event-featured-body h2 { margin: 10px 0 10px; font-family: "TLC Marcellus", Georgia, serif; font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; }
.event-featured-body h2 a { color: var(--bone); text-decoration: none; }
.event-featured-body p { color: var(--bone-dim); font-size: 15px; line-height: 1.62; }
.event-meta { display: flex; gap: 10px; align-items: baseline; margin: 16px 0 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.event-meta span { color: var(--bone-dim); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.event-meta b { color: var(--bone); font-weight: 500; font-size: 14px; }

@media (max-width: 760px) {
  .log-entry { grid-template-columns: 64px minmax(0,1fr); gap: 16px; padding: 18px 18px; }
  .log-date b { font-size: 26px; }
  .event-featured { grid-template-columns: 1fr; }
  .event-featured-media { min-height: 190px; }
}

/* ==========================================================================
   DOWNLOADS — the conversion endpoint.
   ========================================================================== */
.dl-section { padding: clamp(46px, 5vw, 84px) 0 clamp(60px, 7vw, 110px); }
.dl-wrap { width: var(--page); margin: 0 auto; padding: 0 clamp(16px, 2vw, 34px); }

/* current build panel */
.dl-build { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); border: 1px solid var(--line); margin-bottom: clamp(18px, 2vw, 30px); }
.dl-build-main { padding: clamp(26px, 3vw, 40px); border-right: 1px solid var(--line); }
.dl-build-main h2 { margin: 8px 0 12px; color: var(--bone); font-family: "TLC Marcellus", Georgia, serif; font-size: clamp(32px, 4vw, 56px); font-weight: 400; line-height: 1.02; }
.dl-build-main > p { max-width: 420px; margin: 0 0 20px; color: var(--bone-dim); font-size: 15px; line-height: 1.6; }
.dl-build-main small { display: block; margin-top: 12px; color: var(--bone-dim); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.dl-build-facts { display: grid; grid-template-columns: repeat(2, 1fr); }
.dl-build-facts > div { display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dl-build-facts > div:nth-child(2n) { border-right: 0; }
.dl-build-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.dl-build-facts b { color: var(--bone); font-family: "TLC Marcellus", Georgia, serif; font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.dl-build-facts small { margin-top: 3px; color: var(--bone-dim); font-size: 9px; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; opacity: .8; }

/* platform cards */
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.dl-plat { display: flex; flex-direction: column; padding: 24px 22px 26px; background: rgba(13,17,18,.94); }
.dl-plat.is-soon { background: rgba(10,13,14,.94); }
.dl-plat-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.dl-glyph { display: grid; width: 46px; height: 46px; flex: none; place-items: center; border: 1px solid var(--line); color: var(--gold); font-family: "TLC Inter", system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.dl-plat.is-live .dl-glyph { border-color: rgba(192,164,102,.6); color: var(--gold-pale); }
.dl-plat-head h3 { margin: 0; color: var(--bone); font-family: "TLC Marcellus", Georgia, serif; font-size: 19px; font-weight: 400; }
.dl-plat-head span { color: var(--bone-dim); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.dl-badge { align-self: flex-start; padding: 4px 10px; margin-bottom: 12px; border: 1px solid var(--line); color: var(--bone-dim); font-size: 9px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.dl-plat.is-live .dl-badge { border-color: rgba(95,211,155,.45); color: #7fd7ab; }
.dl-plat.is-beta .dl-badge { border-color: rgba(120,212,237,.45); color: var(--cyan); }
.dl-plat-copy { margin: 0 0 16px; color: var(--bone-dim); font-size: 13.5px; line-height: 1.62; }
.dl-specs { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.dl-specs li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(212,191,137,.08); }
.dl-specs span { color: var(--bone-dim); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.dl-specs b { color: var(--bone); font-size: 13px; font-weight: 500; text-align: right; }
.dl-plat-cta { display: flex; flex-direction: column; gap: 9px; margin-top: auto; align-items: center; }
.dl-plat-cta .button { width: 100%; justify-content: center; text-align: center; }

/* install steps */
.dl-howto { margin-top: clamp(38px, 4.5vw, 68px); }
.dl-howto > h2 { margin: 0 0 22px; color: var(--bone); font-family: "TLC Marcellus", Georgia, serif; font-size: clamp(26px, 3vw, 42px); font-weight: 400; }
.dl-howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.dl-steps { padding: 24px 24px 26px; background: rgba(13,17,18,.94); scroll-margin-top: 100px; }
.dl-steps h3 { margin: 0 0 14px; color: var(--gold-pale); font-family: "TLC Marcellus", Georgia, serif; font-size: 18px; font-weight: 400; }
.dl-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: dlstep; }
.dl-steps li { position: relative; padding: 0 0 14px 34px; color: var(--bone-dim); font-size: 13.5px; line-height: 1.62; counter-increment: dlstep; }
.dl-steps li::before { position: absolute; top: 0; left: 0; display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line); color: var(--gold); content: counter(dlstep); font-family: "TLC Marcellus", Georgia, serif; font-size: 11px; }
.dl-steps li b { color: var(--bone); font-weight: 600; }
.dl-help { margin-top: 20px; color: var(--bone-dim); font-size: 13px; text-align: center; }
.dl-help a { color: var(--gold-pale); }

@media (max-width: 1100px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .dl-build { grid-template-columns: 1fr; } .dl-build-main { border-right: 0; border-bottom: 1px solid var(--line); }
                             .dl-howto-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px)  { .dl-grid { grid-template-columns: 1fr; } .dl-build-facts { grid-template-columns: 1fr; }
                             .dl-build-facts > div { border-right: 0; } }

/* ==========================================================================
   DOC PAGES — FAQs, Support and future long-form pages.
   ========================================================================== */
.doc-section { padding: clamp(44px, 5vw, 84px) 0 clamp(60px, 7vw, 110px); }
.doc-wrap, .sup-wrap { width: var(--page); margin: 0 auto; padding: 0 clamp(16px, 2vw, 34px); }
.doc-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(26px, 3.5vw, 60px); align-items: start; }

/* sticky contents rail */
.doc-toc { position: sticky; top: 96px; display: flex; flex-direction: column; }
.doc-toc-title { margin-bottom: 12px; color: var(--gold); font-family: "TLC Marcellus", Georgia, serif; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.doc-toc > a { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(212,191,137,.1); color: var(--bone-dim); font-size: 13.5px; text-decoration: none; transition: color 220ms ease; }
.doc-toc > a b { color: var(--gold-dark); font-family: "TLC Marcellus", Georgia, serif; font-weight: 400; }
.doc-toc > a:hover { color: var(--bone); }
.doc-toc-aside { margin-top: 22px; padding: 18px; border: 1px solid var(--line); }
.doc-toc-aside p { margin: 0 0 12px; color: var(--bone-dim); font-size: 13px; }
.doc-toc-aside .button { width: 100%; justify-content: center; }

.doc-group { margin-bottom: clamp(34px, 4vw, 58px); scroll-margin-top: 100px; }
.doc-group h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px; color: var(--bone); font-family: "TLC Marcellus", Georgia, serif; font-size: clamp(24px, 2.8vw, 38px); font-weight: 400; }
.doc-num { color: var(--gold-dark); font-size: .55em; }

/* accordion */
.faq-item { border: 1px solid var(--line); margin-bottom: 10px; background: rgba(13,17,18,.7); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; color: var(--bone); cursor: pointer; font-family: "TLC Garamond", Georgia, serif; font-size: 17px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; width: 13px; height: 13px; flex: none; }
.faq-item summary i::before, .faq-item summary i::after { position: absolute; top: 50%; left: 0; width: 13px; height: 1px; background: var(--gold); content: ""; transition: transform 260ms ease; }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-item[open] summary { color: var(--gold-pale); }
.faq-item:hover { border-color: rgba(212,191,137,.36); }
.faq-answer { padding: 0 20px 18px; color: var(--bone-dim); font-size: 14.5px; line-height: 1.7; }
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong, .faq-answer b { color: var(--bone); font-weight: 600; }
.faq-answer a { color: var(--gold-pale); }
.faq-answer ul, .faq-answer ol { margin: 0 0 12px; padding-left: 20px; }
.faq-answer li { margin-bottom: 6px; }
.faq-answer table { width: 100%; margin: 6px 0 12px; border: 1px solid var(--line); border-collapse: collapse; font-size: 13px; }
.faq-answer th, .faq-answer td { padding: 9px 12px; border-bottom: 1px solid rgba(212,191,137,.1); text-align: left; }
.faq-answer th { color: var(--gold); font-family: "TLC Marcellus", Georgia, serif; font-weight: 400; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.faq-answer .req-cell, .faq-answer .req-grid { color: var(--bone-dim); }

/* support */
.sup-primary { padding: clamp(26px, 3vw, 44px); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(19,23,25,.72), rgba(7,9,10,.86)); text-align: center; }
.sup-primary h2 { margin: 8px 0 12px; color: var(--bone); font-family: "TLC Marcellus", Georgia, serif; font-size: clamp(26px, 3.2vw, 44px); font-weight: 400; }
.sup-primary p { max-width: 520px; margin: 0 auto 20px; color: var(--bone-dim); font-size: 15px; line-height: 1.62; }
.sup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 18px; border: 1px solid var(--line); background: var(--line); }
.sup-card { display: flex; flex-direction: column; padding: 24px 26px 26px; background: rgba(13,17,18,.94); }
.sup-card h3 { margin: 0 0 10px; color: var(--gold-pale); font-family: "TLC Marcellus", Georgia, serif; font-size: 20px; font-weight: 400; }
.sup-card-body { margin-bottom: 14px; color: var(--bone-dim); font-size: 14px; line-height: 1.65; }
.sup-card-body p { margin: 0 0 10px; }
.sup-card-body p:last-child { margin-bottom: 0; }
.sup-card-body strong { color: var(--bone); }
.sup-card > a { margin-top: auto; }
.sup-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 18px; border: 1px solid var(--line); background: var(--line); }
.sup-more a { padding: 18px 20px; background: rgba(13,17,18,.94); text-decoration: none; transition: background 220ms ease; }
.sup-more a:hover { background: rgba(120,212,237,.04); }
.sup-more b { display: block; color: var(--bone); font-family: "TLC Marcellus", Georgia, serif; font-size: 16px; font-weight: 400; }
.sup-more span { display: block; margin-top: 3px; color: var(--bone-dim); font-size: 11.5px; }

@media (max-width: 1000px) {
  .doc-wrap { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .doc-toc > a { border-bottom: 0; padding: 7px 0; }
  .doc-toc-aside { display: none; }
  .sup-more { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .sup-grid, .sup-more { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 15.5px; padding: 14px 16px; }
  .faq-answer { padding: 0 16px 16px; }
  .faq-answer table { display: block; overflow-x: auto; }
}

/* the system-requirements grid is carried over inside one FAQ answer; it was
   styled by the old style.css, which these pages no longer load */
.faq-answer .req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 12px 0 4px; border: 1px solid var(--line); background: var(--line); }
.faq-answer .req-cell { padding: 16px 18px; background: rgba(10,13,14,.96); }
.faq-answer .req-cell.coming { opacity: .72; }
.faq-answer .req-cell .rc-h { margin-bottom: 9px; color: var(--gold-pale); font-family: "TLC Marcellus", Georgia, serif; font-size: 15px; letter-spacing: .02em; }
.faq-answer .req-cell ul { margin: 0; padding: 0; list-style: none; }
.faq-answer .req-cell li { position: relative; padding: 0 0 6px 15px; color: var(--bone-dim); font-size: 13px; line-height: 1.55; }
.faq-answer .req-cell li::before { position: absolute; top: 8px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-dark); content: ""; }
.faq-answer .req-cell li:last-child { padding-bottom: 0; }
@media (max-width: 620px) { .faq-answer .req-grid { grid-template-columns: 1fr; } }

/* each support card carries a glyph (⚿, ❖ …) from the old markup in .ic-cap.
   Style it as a badge rather than let it render as a bare character. */
.sup-card-body .ic-head { display: block; margin: 0 0 12px; }
.sup-card-body .ic-cap {
  display: grid;
  width: 38px; height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-pale);
  font-size: 17px;
  line-height: 1;
}
.sup-card-body em { color: var(--bone); font-style: italic; }
