/* ── PAGE HERO ─────────────────────────────────────────────────── */
.page-hero {
  padding: 120px 0 60px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(222,122,31,0.12), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(224,180,74,0.06), transparent 60%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.page-hero-inner { max-width: 760px; margin: 0 auto; }
.page-title {
  font-family: 'Rye', serif;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--cream);
  margin: 10px 0 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.page-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.page-hero-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.page-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.page-pill:hover {
  background: rgba(222,122,31,0.12);
  border-color: rgba(222,122,31,0.3);
  color: var(--orange-pale);
}

/* ── PAGE LAYOUT — full width, no sidebar ───────────────────────── */
.page-main { padding: 0 0 80px; }
.page-layout {
  display: block;
}

/* ── STICKY SECTION NAV BAR (replaces sidebar) ──────────────────── */
.page-sidebar {
  position: sticky;
  top: 68px;          /* sits just below the main nav */
  z-index: 50;
  background: rgba(14,11,9,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}

.sidebar-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-section {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding-right: 6px;
  margin-right: 6px;
}
.sidebar-section:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
  margin-left: auto; /* push quick links to the right */
}

.sidebar-label {
  display: none; /* hidden — groups implied by visual separation */
}

.sidebar-nav a {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  padding: 14px 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  display: flex;
  align-items: center;
}
.sidebar-nav a:hover {
  color: var(--cream);
  border-bottom-color: rgba(222,122,31,0.4);
}
.sidebar-nav a.active {
  color: var(--orange-pale);
  border-bottom-color: var(--orange-light);
}

/* Content gets full width with comfortable reading measure */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 24px 0;
}

/* ── WIKI CONTENT ──────────────────────────────────────────────── */

.wiki-section {
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 48px;
}
.wiki-section:last-child { border-bottom: none; margin-bottom: 0; }

.wiki-section h2 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--cream);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.wiki-section h3 {
  font-size: 18px;
  color: var(--cream);
  margin: 24px 0 12px;
}
.wiki-section p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* Callouts */
.wiki-callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.7;
  border-left: 3px solid;
}
.callout-gold   { background: rgba(229,185,79,0.08); border-color: rgba(229,185,79,0.5); color: var(--cream); }
.callout-blue   { background: rgba(120,199,242,0.08); border-color: rgba(120,199,242,0.4); color: var(--cream); }
.callout-green  { background: rgba(99,212,99,0.08); border-color: rgba(99,212,99,0.4); color: var(--cream); }
.callout-danger { background: rgba(239,95,95,0.08); border-color: rgba(239,95,95,0.5); color: #ef9f9f; font-weight: 800; font-size: 15px; }

/* Steps */
.wiki-steps { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.wiki-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(38,31,27,0.9), rgba(22,18,15,0.95));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.step-n {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(222,122,31,0.2);
  border: 1px solid rgba(222,122,31,0.4);
  color: var(--orange-light);
  font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wiki-step > div { font-size: 14px; color: var(--muted); line-height: 1.65; padding-top: 4px; }
.wiki-step strong { color: var(--cream); }

/* Lists */
.wiki-list {
  display: flex; flex-direction: column; gap: 10px;
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}
.wiki-list li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.72;
  padding-left: 22px;
  position: relative;
}
.wiki-list li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--orange-light);
  font-size: 12px;
  top: 3px;
}
.wiki-list strong { color: var(--cream); }

/* Links */
.wiki-link { color: var(--orange-light); text-decoration: underline; text-underline-offset: 3px; }
.wiki-link:hover { color: var(--orange-pale); }

/* CTA Box */
.wiki-cta-box {
  background: linear-gradient(180deg, rgba(43,35,28,0.95), rgba(24,20,17,0.98));
  border: 1px solid rgba(222,122,31,0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-top: 32px;
}
.wiki-cta-box p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }

/* ── WIKI CURRENCY GRID ─────────────────────────────────────────── */
.wiki-currency-grid {
  display: flex; flex-direction: column; gap: 14px;
  margin: 18px 0;
}
.wiki-currency {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(38,31,27,0.9), rgba(22,18,15,0.95));
}
.hay-c     { border-color: rgba(229,185,79,0.25); }
.crystal-c { border-color: rgba(120,199,242,0.25); }
.dkv-c     { border-color: rgba(215,179,90,0.25); }
.wc-icon { font-size: 36px; flex-shrink: 0; }
.wc-body h3 { font-size: 18px; color: var(--cream); margin-bottom: 6px; }
.wc-body p  { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 8px; }
.wiki-tag {
  display: inline-block;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(229,185,79,0.1); color: var(--hay); border: 1px solid rgba(229,185,79,0.2);
}
.crystal-tag { background: rgba(120,199,242,0.1); color: var(--crystal); border-color: rgba(120,199,242,0.2); }
.dkv-tag     { background: rgba(215,179,90,0.1); color: var(--dkv); border-color: rgba(215,179,90,0.2); }

/* ── BUSINESS LIST ──────────────────────────────────────────────── */
.biz-list { display: flex; flex-direction: column; gap: 6px; margin: 18px 0; }
.biz-item {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, rgba(36,29,25,0.9), rgba(22,18,15,0.95));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
}
.biz-item.biz-special { border-color: rgba(229,185,79,0.2); }
.biz-num { color: rgba(229,185,79,0.4); font-weight:900; font-size:13px; min-width:28px; font-family:'Rye',serif; }
.biz-name { color: var(--cream); font-weight: 800; flex: 1; }
.biz-curr { font-size: 12px; font-weight: 700; }
.hay-text     { color: var(--hay); }
.crystal-text { color: var(--crystal); }
.dkv-text     { color: var(--dkv); }

/* ── MANAGER TIER TABLE ─────────────────────────────────────────── */
.manager-tier-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  margin: 18px 0;
}
.mt-row {
  display: grid; grid-template-columns: 100px 100px 1fr;
  gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  background: linear-gradient(180deg, rgba(36,29,25,0.9), rgba(22,18,15,0.95));
}
.mt-row:last-child { border-bottom: none; }
.mt-header {
  background: rgba(255,255,255,0.03);
  font-size: 11px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-2);
  padding: 10px 16px;
}
.mt-row.mt-nft { background: rgba(229,185,79,0.05); border-color: rgba(229,185,79,0.15); }
.mt-tier  { font-weight: 800; color: var(--cream); }
.mt-skim  { font-weight: 900; }
.mt-note  { color: var(--muted); font-size: 13px; }
.danger-text { color: var(--danger); }
.warn-text   { color: #f0a548; }
.ok-text     { color: #78c7f2; }
.green-text  { color: var(--green); }
.gold-text   { color: var(--hay); }

/* ── PRESTIGE KEEPS ─────────────────────────────────────────────── */
.keeps-grid {
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 10px; margin: 16px 0;
}
.keep-card {
  background: linear-gradient(180deg, rgba(38,31,27,0.95), rgba(22,18,15,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  font-size: 12px; font-weight: 800; color: var(--cream);
}
.keep-ico { font-size: 22px; margin-bottom: 6px; }

/* ── TRAIT TABLES ───────────────────────────────────────────────── */
.w3-action-bar { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }

.bonus-caps-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 18px 0;
}
.cap-item {
  flex: 1; min-width: 160px;
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  border: 1px solid;
}
.speed-cap { background: rgba(120,199,242,0.08); border-color: rgba(120,199,242,0.3); }
.prod-cap  { background: rgba(99,212,99,0.08);   border-color: rgba(99,212,99,0.3);   }
.cost-cap  { background: rgba(240,165,72,0.08);  border-color: rgba(240,165,72,0.3);  }
.cap-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin-bottom: 6px; }
.cap-val   { font-family: 'Rye', serif; font-size: 26px; }
.speed-cap .cap-val { color: #78c7f2; }
.prod-cap  .cap-val { color: #63d463; }
.cost-cap  .cap-val { color: #f0a548; }

.one-of-one-banner {
  background: linear-gradient(135deg, rgba(60,45,10,0.95), rgba(30,22,5,0.98));
  border: 1px solid rgba(245,200,66,0.35);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 18px 0;
  text-align: center;
}
.oo1-header { font-family:'Rye',serif; font-size:18px; color:var(--hay); margin-bottom:8px; }
.oo1-stats  { font-size:15px; font-weight:900; color:var(--cream); margin-bottom:10px; }
.oo1-note   { font-size:13px; color:var(--muted); margin-bottom:6px; }
.oo1-list   { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.oo1-list span {
  background: rgba(245,200,66,0.12); border:1px solid rgba(245,200,66,0.3);
  border-radius:99px; padding:4px 14px;
  font-size:13px; font-weight:800; color:var(--hay);
}

/* Trait tabs */
.trait-tabs {
  display: flex; gap: 8px; margin: 24px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 12px;
}
.trait-tab {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 9px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 800;
  color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.trait-tab:hover { background: rgba(255,255,255,0.07); color: var(--cream); }
.trait-tab.active {
  background: rgba(222,122,31,0.15);
  border-color: rgba(222,122,31,0.4);
  color: var(--orange-pale);
}

.trait-tab-content { }
.trait-tab-content.hidden { display: none; }

.trait-intro {
  font-size: 14px; color: var(--muted);
  margin-bottom: 18px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
}

.trait-group { margin-bottom: 22px; }
.trait-type-label {
  font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--orange-light); margin-bottom: 10px;
  font-family: 'Nunito', sans-serif;
}
.trait-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.trait-pill {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid; border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
}
.trait-name   { color: var(--cream); font-weight: 700; }
.trait-bonus  { font-weight: 900; font-size: 12px; }
.trait-rarity { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }

/* Rarity legend */
.rarity-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin: 24px 0;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
}
.rl-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.rl-dot  { width:12px; height:12px; border-radius:50%; border:2px solid; flex-shrink:0; display:inline-block; }

/* ── NAV ACTIVE STATE ────────────────────────────────────────────── */
.page-nav-active { color: var(--orange-pale) !important; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-sidebar { top: 66px; }
  .sidebar-nav a { padding: 12px 10px; font-size: 12px; }
  .keeps-grid { grid-template-columns: repeat(3,1fr); }
  .trait-tabs { flex-wrap: wrap; }
  .bonus-caps-bar { flex-direction: column; }
}
@media (max-width: 600px) {
  .page-hero { padding: 100px 0 44px; }
  .biz-item .biz-curr { display: none; }
  .keeps-grid { grid-template-columns: repeat(2,1fr); }
  .mt-row { grid-template-columns: 90px 80px 1fr; gap: 8px; font-size: 13px; }
  .oo1-list { flex-direction: column; align-items: center; }
  .trait-tabs { flex-direction: column; }
}
