:root {
  color-scheme: dark;
  --pve-bg: #0b121a;
  --pve-panel: #121d29;
  --pve-panel-soft: #172430;
  --pve-ink: #f0ede4;
  --pve-muted: #afbbc5;
  --pve-gold: #dfc27a;
  --pve-teal: #98c6bd;
  --pve-line: #2c3b48;
  --pve-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body.pve {
  margin: 0;
  background: var(--pve-bg);
  color: var(--pve-ink);
  font: 16px/1.75 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.pve a { color: var(--pve-gold); text-underline-offset: 5px; }
.pve a:hover { color: #f8e7b7; }
.pve a, .pve button, .pve summary { touch-action: manipulation; }
.pve button, .pve input, .pve select { font: inherit; }
.pve a:focus-visible, .pve button:focus-visible, .pve input:focus-visible,
.pve select:focus-visible, .pve summary:focus-visible {
  outline: 3px solid var(--pve-teal);
  outline-offset: 5px;
}
.pve img { display: block; max-width: 100%; height: auto; }
.pve p { margin: 0 0 18px; color: var(--pve-muted); }
.pve strong { color: var(--pve-ink); }
.pve h1, .pve h2 {
  margin: 0 0 24px;
  font-family: var(--pve-serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.13;
  text-wrap: balance;
}
.pve h1 { font-size: clamp(44px, 5.3vw, 76px); }
.pve h2 { font-size: clamp(31px, 3.3vw, 45px); }
.pve h3 { margin: 0 0 12px; font-size: 19px; line-height: 1.4; font-weight: 600; }
.pve h1 em { color: var(--pve-gold); font-weight: 400; }
.pve ul, .pve ol { padding-left: 24px; color: var(--pve-muted); }
.pve li { margin-bottom: 9px; }
.pve code { color: var(--pve-ink); font-size: .9em; overflow-wrap: anywhere; }
.pve [hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -90px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--pve-gold);
  color: var(--pve-bg) !important;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* The shared site identity stays above the shard's own navigation. */
.site-header { border-bottom: 1px solid var(--pve-line); background: #0c141d; }
.header-inner {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 17px;
}
.brand { display: inline-flex; gap: 13px; align-items: center; color: var(--pve-ink) !important; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  min-height: 43px;
  border: 1px solid #8c7951;
  color: var(--pve-gold);
  font: 20px/1 var(--pve-serif);
}
.brand-copy { display: block; font-size: 16px; font-weight: 650; line-height: 1.3; }
.brand-copy small { display: block; color: var(--pve-muted); margin-top: 5px; font-size: 10px; font-weight: 400; letter-spacing: .11em; text-transform: uppercase; }
.global-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 27px; }
.global-nav a { font-size: 12px; color: var(--pve-muted); text-decoration: none; padding-block: 7px; }
.global-nav a[aria-current="page"], .global-nav a[aria-current="true"] { color: var(--pve-gold); }
.section-nav { border-bottom: 1px solid var(--pve-line); background: #111b26; }
.section-nav > .wrap { display: flex; flex-wrap: wrap; gap: 0 35px; min-height: 55px; align-items: stretch; }
.section-nav a { display: inline-flex; align-items: center; min-height: 55px; padding: 12px 0; border-bottom: 2px solid transparent; text-decoration: none; color: var(--pve-muted); font-size: 13px; }
.section-nav a[aria-current="page"] { color: var(--pve-gold); border-color: var(--pve-gold); }

/* A generous opening keeps the real in-game screenshot intact. */
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 58px; padding-block: 80px 85px; }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--pve-gold) !important; font-size: 11px; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; font-weight: 700; margin-bottom: 20px !important; }
.lead { max-width: 780px; color: #c2cbd2 !important; font-size: 18px; line-height: 1.8; }
.hero-copy .lead { max-width: 470px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-block: 28px 18px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 11px 21px;
  gap: 18px;
  background: var(--pve-gold);
  border: 1px solid var(--pve-gold);
  border-radius: 3px;
  color: #17202a !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
  transition: background-color .15s ease, border-color .15s ease;
}
.button:hover { background: #efd89e; border-color: #efd89e; }
.button-secondary { color: var(--pve-ink) !important; background: #17232f; border-color: #3d4d5b; }
.button-secondary:hover { background: #1d2e3b; border-color: #8c7951; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 7px 19px; color: #91a3b1 !important; font-size: 11px; line-height: 1.6; margin-top: 22px !important; }
.hero-meta span + span { border-left: 1px solid var(--pve-line); padding-left: 19px; }
.hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  background: #111d28;
  border: 1px solid #40515d;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 20px 60px #0005;
}
.hero-visual img { width: 100%; height: auto; object-fit: contain; }
.hero-visual figcaption { padding: 15px 19px; border-top: 1px solid var(--pve-line); color: var(--pve-muted); font-size: 11px; line-height: 1.7; }
.hero-visual figcaption strong { color: var(--pve-gold); font-weight: 500; }

.section { padding-block: 65px; border-top: 1px solid var(--pve-line); }
.section-heading { max-width: 790px; margin-bottom: 35px; }
.section-heading .eyebrow { margin-bottom: 12px !important; }
.section-heading h2 { margin-bottom: 18px; }
.section-heading p:last-child { margin-bottom: 0; }
.portal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.portal-card { display: flex; flex-direction: column; padding: 26px 23px; border: 1px solid var(--pve-line); border-top-color: #867650; background: var(--pve-panel); border-radius: 3px; }
.card-number { display: block; margin-bottom: 26px; color: var(--pve-gold); font: 24px/1 var(--pve-serif); }
.portal-card h3 { font: 25px/1.2 var(--pve-serif); letter-spacing: -.02em; margin-bottom: 16px; }
.portal-card p { font-size: 13px; line-height: 1.85; }
.portal-card .text-link { margin-top: auto; align-self: flex-start; }
.text-link { display: inline-block; color: var(--pve-gold); font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px solid #7e7050; padding-bottom: 3px; }
.text-link:hover { border-bottom-color: var(--pve-gold); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; }
.feature-card { padding-top: 24px; border-top: 1px solid #5e6558; }
.feature-card h3 { font-size: 18px; }
.feature-card p { font-size: 14px; }
.feature-card .eyebrow { color: var(--pve-teal) !important; margin-bottom: 14px !important; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.panel { min-width: 0; padding: 32px; background: var(--pve-panel); border: 1px solid var(--pve-line); border-radius: 3px; }
.panel h2 { font-size: 32px; }
.panel p, .panel li { font-size: 14px; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.callout { padding: 22px 25px; background: #142923; border: 1px solid #37584d; border-left: 3px solid var(--pve-teal); border-radius: 2px; }
.callout p { color: #c1d2cc; font-size: 14px; }
.callout p:last-child { margin-bottom: 0; }
.callout h3 { color: #dceae3; }
.callout .eyebrow { color: var(--pve-teal) !important; margin-bottom: 10px !important; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; color: #8fa0ae; font-size: 11px; }
.breadcrumb a { color: #b9c5cd; text-decoration: none; }
.page-heading { max-width: 900px; padding-block: 47px 42px; }
.page-heading h1 { font-size: clamp(43px, 5.1vw, 66px); }
.page-heading .eyebrow { margin-bottom: 16px !important; }
.page-heading p:last-child { margin-bottom: 0; }

/* Wiki landing, filters, and readable article pages. */
.wiki-tools { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: end; gap: 18px; margin-bottom: 20px; }
.wiki-tools label { display: flex; flex-direction: column; gap: 8px; color: var(--pve-muted); font-size: 12px; }
.wiki-tools input, .wiki-tools select { display: block; width: 100%; min-height: 49px; padding: 11px 15px; color: var(--pve-ink); background: var(--pve-panel); border: 1px solid #42515e; border-radius: 3px; font-size: 14px; }
.wiki-tools input::placeholder { color: #8fa0ae; opacity: 1; }
.wiki-tools select { padding-right: 30px; }
.wiki-tools option { color: var(--pve-ink); background: var(--pve-panel); }
#wiki-results, #update-results { font-size: 12px; color: #91a3b1; margin-bottom: 25px; }
#wiki-empty, #update-empty { padding: 28px; border: 1px dashed #4b5d69; border-radius: 3px; color: var(--pve-muted); background: var(--pve-panel); }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid #3d5b55; border-radius: 2px; color: var(--pve-teal); font-size: 10px; font-weight: 600; letter-spacing: .055em; line-height: 1.6; }
.article-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 60px; padding-bottom: 70px; align-items: start; }
.wiki-sidebar { position: sticky; top: 28px; border: 1px solid var(--pve-line); background: #101b26; padding: 23px; border-radius: 3px; }
.wiki-sidebar > h2, .wiki-sidebar > h3 { color: var(--pve-gold); font: 20px/1.3 var(--pve-serif); margin-bottom: 19px; }
.wiki-sidebar .eyebrow { margin-bottom: 17px !important; }
.wiki-sidebar nav { display: grid; gap: 11px; }
.wiki-sidebar nav a { color: var(--pve-muted); font-size: 12px; text-decoration: none; line-height: 1.5; padding-block: 3px; }
.wiki-sidebar nav a[aria-current="page"], .wiki-sidebar nav a:hover { color: var(--pve-gold); }
.article-body { min-width: 0; max-width: 790px; }
.article-body section { padding-block: 34px; border-top: 1px solid var(--pve-line); scroll-margin-top: 28px; }
.article-body section:first-child { padding-top: 0; border-top: 0; }
.article-body h2 { font-size: 34px; margin-bottom: 21px; }
.article-body h3 { margin-top: 27px; font-size: 18px; }
.article-body p, .article-body li { font-size: 15px; }
.article-body details { margin-block: 14px; padding: 17px 20px; border: 1px solid var(--pve-line); background: #111d27; border-radius: 3px; }
.article-body summary { color: var(--pve-ink); cursor: pointer; font-size: 14px; font-weight: 600; }
.article-body details p { margin: 15px 0 0; font-size: 14px; }
.article-body .callout { margin-block: 26px; }
.article-body .callout h3 { margin-top: 0; }

/* Installation and release notes use the same restrained panels. */
.step-list { list-style: none; padding: 0 !important; margin: 0; counter-reset: install-step; }
.step-list li { display: flex; align-items: flex-start; gap: 19px; padding-block: 22px; margin: 0; border-top: 1px solid var(--pve-line); }
.step-list li:first-child { padding-top: 0; border-top: 0; }
.step-number { display: grid; place-items: center; flex: 0 0 36px; height: 36px; margin-top: 2px; color: var(--pve-gold); background: #16232c; border: 1px solid #776e51; border-radius: 50%; font: 19px/1 var(--pve-serif); }
.step-content { min-width: 0; }
.step-content h3 { margin-top: 0; }
.step-content p:last-child { margin-bottom: 0; }
.download-card { display: flex; gap: 25px; padding: 35px; border: 1px solid #796e4b; background: linear-gradient(125deg, #1b2d30, #15212e); border-radius: 4px; }
.download-icon { display: grid; place-items: center; flex: 0 0 54px; height: 62px; color: var(--pve-gold); border: 1px solid #8b7951; font: 28px/1 var(--pve-serif); }
.download-content { min-width: 0; flex: 1; }
.download-content h2 { font-size: 34px; margin-bottom: 18px; }
.download-content p { font-size: 14px; }
.download-content .actions { margin-bottom: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; margin: 24px 0 0; }
.facts-grid > div { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid #3a4d56; padding-block: 14px; }
.facts-grid dt { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #98aaaF; }
.facts-grid dd { font-size: 13px; line-height: 1.7; margin: 0; color: var(--pve-ink); overflow-wrap: anywhere; }
.update-list { display: grid; gap: 25px; padding-bottom: 70px; }
.update-card { padding: 35px 38px; background: var(--pve-panel); border: 1px solid var(--pve-line); border-left: 2px solid #89794f; border-radius: 3px; }
.update-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; font-size: 11px; color: #a2b2be; }
.update-card h2 { font-size: 34px; margin-bottom: 18px; }
.update-card p, .update-card li { font-size: 14px; }
.update-card ul:last-child, .update-card p:last-child { margin-bottom: 0; }
.site-footer { margin-top: 10px; border-top: 1px solid var(--pve-line); background: #0a1118; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 26px 40px; padding-block: 34px; font-size: 11px; }
.footer-inner strong { color: var(--pve-gold); font-size: 14px; font-weight: 500; }
.footer-inner p { max-width: 590px; margin-block: 9px 0; font-size: 11px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 3px; }
.footer-inner nav a { color: var(--pve-muted); text-decoration: none; }

@media (min-width: 1500px) {
  .hero-grid { padding-block: 95px; gap: 64px; }
}
@media (max-width: 1050px) {
  .wrap, .header-inner { width: calc(100% - 48px); }
  .global-nav { gap: 7px 18px; }
  .hero-grid { gap: 32px; padding-block: 65px; }
  .hero-copy h1 { font-size: 55px; }
  .hero-copy .lead { font-size: 16px; }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-card { padding: 27px; }
  .card-number { margin-bottom: 20px; }
  .feature-grid { gap: 25px; }
  .split { gap: 30px; }
  .article-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 35px; }
  .wiki-sidebar { padding: 19px; }
  .download-card { padding: 27px; gap: 18px; }
}
@media (max-width: 760px) {
  .wrap, .header-inner { width: calc(100% - 36px); }
  .header-inner { min-height: 0; flex-wrap: wrap; padding-block: 17px 12px; gap: 15px; }
  .brand-copy { font-size: 15px; }
  .brand-copy small { font-size: 9px; }
  .brand-mark { width: 34px; min-height: 39px; font-size: 18px; }
  .global-nav { width: 100%; justify-content: flex-start; gap: 5px 23px; }
  .global-nav a { font-size: 11px; padding-block: 3px; }
  .section-nav > .wrap { gap: 0 23px; }
  .section-nav a { font-size: 12px; min-height: 48px; padding-block: 11px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-block: 47px 50px; }
  .hero-copy { max-width: 580px; }
  .hero-copy h1 { font-size: clamp(46px, 9.2vw, 65px); }
  .hero-copy .lead { max-width: 560px; font-size: 17px; }
  .hero-visual { width: 100%; max-width: 620px; }
  .section { padding-block: 44px; }
  .section-heading { margin-bottom: 28px; }
  .feature-grid { grid-template-columns: 1fr; gap: 18px; }
  .feature-card { padding-top: 23px; }
  .feature-card p { max-width: 620px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .panel { padding: 26px; }
  .breadcrumb { margin-top: 24px; }
  .page-heading { padding-block: 35px; }
  .page-heading h1 { font-size: 49px; }
  .page-heading .lead { font-size: 17px; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; padding-bottom: 45px; }
  .wiki-sidebar { position: static; padding: 21px; }
  .wiki-sidebar nav { display: flex; flex-wrap: wrap; gap: 9px 22px; }
  .wiki-sidebar nav a { font-size: 12px; }
  .article-body { max-width: none; }
  .article-body section { padding-block: 28px; }
  .article-body h2 { font-size: 31px; }
  .update-card { padding: 27px; }
  .update-card h2 { font-size: 30px; }
  .update-list { padding-bottom: 45px; }
  .footer-inner { padding-block: 27px; gap: 22px; }
}
@media (max-width: 480px) {
  .portal-grid { grid-template-columns: 1fr; gap: 16px; }
  .portal-card { padding: 25px; }
  .portal-card h3 { font-size: 27px; }
  .portal-card p { font-size: 14px; }
  .hero-meta { gap: 7px 12px; }
  .hero-meta span + span { padding-left: 12px; }
  .hero-visual figcaption { padding: 13px 15px; }
  .actions { gap: 10px; }
  .button { padding-inline: 17px; }
  .wiki-tools { grid-template-columns: 1fr; gap: 14px; }
  .download-card { flex-direction: column; padding: 25px; gap: 20px; }
  .download-icon { width: 45px; flex-basis: auto; height: 49px; font-size: 24px; }
  .download-content h2 { font-size: 31px; }
  .facts-grid { grid-template-columns: 1fr; }
  .step-list li { gap: 15px; }
  .callout { padding: 21px; }
  .page-heading h1 { font-size: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pve *, .pve *::before, .pve *::after { transition: none !important; animation: none !important; }
}

/* Wide reference tables scroll inside the article on smaller screens. */
.reference-table { overflow-x: auto; margin-block: 24px; border: 1px solid var(--pve-line); border-radius: 3px; }
.reference-table:focus-visible { outline: 3px solid var(--pve-teal); outline-offset: 4px; }
.reference-table table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.reference-table caption { text-align: left; padding: 15px; color: var(--pve-gold); font-weight: 600; background: #111d27; }
.reference-table th, .reference-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--pve-line); min-width: 100px; }
.reference-table thead th { color: var(--pve-ink); background: #172430; }
.reference-table tbody th { font-weight: 500; color: var(--pve-ink); }
.reference-table td { color: var(--pve-muted); }
.reference-table tbody tr:nth-child(even) { background: #101b26; }
.reference-tools { margin-top: 24px; }
.reference-tools label { display: flex; flex-direction: column; gap: 8px; color: var(--pve-muted); font-size: 12px; }
.reference-tools input { width: min(100%, 440px); padding: 10px 14px; background: var(--pve-panel); color: var(--pve-ink); border: 1px solid #42515e; border-radius: 3px; }
.reference-tools p { margin-top: 10px; font-size: 12px; }
.creature-card[hidden], .loot-pool[hidden], tr[hidden] { display: none; }

/* The wiki reads as a directory and a document, with space instead of panels. */
body.pve.wiki-page {
  --pve-muted: #c5ced5;
  --pve-line: #34424d;
  font-size: 17px;
  line-height: 1.8;
}
.wiki-page main > .callout { padding: 15px 0; border: 0; border-bottom: 1px solid var(--pve-line); border-radius: 0; background: none; color: #b9c8d1; font-size: 13px; line-height: 1.7; }
.wiki-page .breadcrumb { color: #aebcc6; font-size: 12px; margin-top: 24px; }
.wiki-page .breadcrumb a { color: #c5ced5; }
.wiki-page .wiki-heading { padding: 30px 0 24px 260px; }
.wiki-page .wiki-heading h1 { font-size: clamp(36px, 4.3vw, 49px); margin-bottom: 15px; }
.wiki-page .wiki-heading .eyebrow { font-size: 10px; margin-bottom: 10px !important; }
.wiki-page .wiki-heading .lead { font-size: 17px; line-height: 1.75; color: #d1d8dd !important; }
.wiki-page .wiki-start { padding: 0 0 27px; margin: 0; font-size: 15px; color: #bbc9d0; }
.wiki-page .wiki-start p { margin-bottom: 0; font-size: inherit; }
.wiki-page .wiki-start a { display: inline; margin-inline: 6px; color: var(--pve-teal); }
.wiki-page .wiki-directory-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 52px; align-items: start; padding-bottom: 65px; }
.wiki-page .wiki-directory-body { min-width: 0; }
.wiki-page .wiki-topic-nav { position: sticky; top: 22px; padding-top: 2px; }
.wiki-page .wiki-topic-nav h2 { font: 600 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; margin-bottom: 15px; color: #dbe1e5; }
.wiki-page .wiki-topic-menu > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #dbe1e5; margin-bottom: 15px; }
.wiki-page .wiki-topic-nav nav { display: grid; gap: 5px; max-height: 65vh; overflow-y: auto; padding: 0 9px 3px 0; scrollbar-width: thin; scrollbar-color: #58666f transparent; }
.wiki-page .wiki-topic-nav a { display: block; padding-block: 4px; color: #c2ccd4; font-size: 14px; line-height: 1.6; text-decoration: none; }
.wiki-page .wiki-topic-nav a:hover { color: var(--pve-gold); text-decoration: underline; }
.wiki-page .wiki-tools { grid-template-columns: minmax(0, 1fr) 225px; gap: 17px; margin-bottom: 15px; }
.wiki-page .wiki-tools label, .wiki-page .reference-tools label { font-size: 13px; color: #c2ccd4; }
.wiki-page .wiki-tools input, .wiki-page .wiki-tools select, .wiki-page .reference-tools input { font-size: 15px; background: #111c26; border-color: #55636e; min-height: 46px; }
.wiki-page .wiki-tools input::placeholder, .wiki-page .reference-tools input::placeholder { color: #a4b3bd; opacity: 1; }
.wiki-page #wiki-results { font-size: 13px; color: #b8c5ce; margin-bottom: 21px; }
.wiki-page #wiki-empty { padding: 17px 0 28px; border: 0; background: none; border-radius: 0; }
.wiki-page .wiki-directory { min-width: 0; }
.wiki-page .wiki-topic { padding-block: 12px 22px; scroll-margin-top: 22px; }
.wiki-page .wiki-topic > h2 { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid #44515a; font-size: 27px; letter-spacing: -.02em; }
.wiki-page .wiki-topic > h2 > a { color: var(--pve-ink); text-decoration: none; }
.wiki-page .wiki-topic > h2 > a:hover { color: var(--pve-gold); }
.wiki-page .wiki-topic-count { font: 400 12px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; color: #aabac5; }
.wiki-page .wiki-link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 38px; list-style: none; padding: 0; margin: 0; }
.wiki-page .wiki-guide { min-width: 0; margin: 0; padding: 0; }
.wiki-page .wiki-guide-title { display: inline; color: #e4cb90; font-size: 16px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.wiki-page .wiki-guide-title:hover { text-decoration: underline; }
.wiki-page .wiki-guide p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: #c0cbd3; }

/* The contents list stays close to the article without enclosing the text. */
.wiki-page .article-layout { grid-template-columns: 208px minmax(0, 1fr); gap: 52px; padding-top: 26px; }
.wiki-page .wiki-sidebar.article-sidebar { padding: 0; border: 0; border-radius: 0; background: none; top: 22px; }
.wiki-page .wiki-back { display: inline-block; margin-bottom: 25px; font-size: 14px; color: var(--pve-teal); text-decoration: none; }
.wiki-page .wiki-back:hover { text-decoration: underline; }
.wiki-page .article-sidebar details { padding: 0; background: none; border: 0; border-radius: 0; margin: 0 0 25px; }
.wiki-page .article-sidebar summary { display: flex; align-items: center; gap: 9px; color: #dde3e6; padding-block: 3px; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; line-height: 1.5; }
.wiki-page .article-sidebar summary::-webkit-details-marker { display: none; }
.wiki-page .article-sidebar summary::before { content: "+"; color: var(--pve-gold); font: 18px/1 var(--pve-serif); width: 12px; }
.wiki-page .article-sidebar details[open] > summary::before { content: "−"; }
.wiki-page .article-sidebar nav { display: grid; gap: 7px; margin-top: 14px; padding: 1px 9px 4px 0; }
.wiki-page .wiki-contents nav { max-height: 60vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #58666f transparent; }
.wiki-page .wiki-nearby nav { max-height: 30vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #58666f transparent; }
.wiki-page .article-sidebar nav a { font-size: 14px; line-height: 1.65; color: #bcc8d0; padding-block: 2px; }
.wiki-page .article-sidebar nav a[aria-current="page"], .wiki-page .article-sidebar nav a:hover { color: var(--pve-gold); }
.wiki-page .article-body { max-width: 830px; }
.wiki-page .wiki-article-heading { padding: 0 0 27px; }
.wiki-page .wiki-article-heading h1 { font-size: clamp(36px, 3.9vw, 48px); margin-bottom: 18px; }
.wiki-page .wiki-article-heading .eyebrow { font-size: 10px; margin-bottom: 12px !important; }
.wiki-page .wiki-article-heading .lead { font-size: 18px; line-height: 1.8; color: #d1d8dd !important; }
.wiki-page .article-body section { padding-block: 30px; border-top-color: #3a4852; }
.wiki-page .article-body h2 { font-size: 31px; margin-bottom: 21px; }
.wiki-page .article-body h3 { font-size: 19px; margin: 26px 0 13px; }
.wiki-page .article-body p, .wiki-page .article-body li { font-size: 17px; line-height: 1.85; max-width: 74ch; }
.wiki-page .article-body p { color: #d0d8de; margin-bottom: 20px; }
.wiki-page .article-body ul, .wiki-page .article-body ol { color: #d0d8de; }
.wiki-page .article-body li { margin-bottom: 9px; }
.wiki-page .article-body details { padding: 17px 0; margin: 0; border: 0; border-bottom: 1px solid var(--pve-line); border-radius: 0; background: none; }
.wiki-page .article-body summary { font-size: 16px; line-height: 1.6; }
.wiki-page .article-body details p { font-size: 17px; margin: 15px 0 20px; }
.wiki-page .article-body .callout, .wiki-page .wiki-note { padding: 0; margin: 26px 0; border: 0; border-radius: 0; background: none; font-size: 15px; line-height: 1.75; color: #aebfc8; }
.wiki-page .wiki-note p, .wiki-page .article-body .callout p { font-size: 15px; line-height: 1.75; color: #aebfc8; }
.wiki-page .article-body .callout h3, .wiki-page .wiki-note h3 { font-size: 16px; margin-top: 0; }
.wiki-page .article-body .tag { border: 0; padding: 0; border-radius: 0; color: var(--pve-teal); }

/* Only the tables scroll horizontally; row rules keep reference data open. */
.wiki-page .reference-table { max-width: 100%; overflow-x: auto; margin-block: 22px; border: 0; border-radius: 0; scrollbar-width: thin; scrollbar-color: #58666f transparent; }
.wiki-page .reference-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.wiki-page .reference-table caption { padding: 0 0 12px; color: #e2cb92; font-size: 15px; font-weight: 600; text-align: left; background: none; }
.wiki-page .reference-table th, .wiki-page .reference-table td { padding: 12px 14px 12px 0; border: 0; border-bottom: 1px solid #34424d; min-width: 90px; }
.wiki-page .reference-table thead th { border-bottom-color: #67716d; background: none; font-size: 13px; color: #e1e6e8; }
.wiki-page .reference-table tbody th { color: #dce3e7; font-weight: 500; }
.wiki-page .reference-table td { color: #c9d2d8; }
.wiki-page .reference-table tbody tr:nth-child(even) { background: none; }
.wiki-page .reference-tools { margin-block: 22px 16px; }
.wiki-page .reference-tools p { font-size: 13px; color: #b8c5ce; margin: 9px 0 0; }

/* Bestiary entries are compact disclosure rows with visible family labels. */
.wiki-page .article-body details.creature-card, .wiki-page .article-body details.loot-pool { border: 0; border-bottom: 1px solid #3a4852; border-radius: 0; background: none; padding: 0; margin: 0; }
.wiki-page .creature-card > summary, .wiki-page .loot-pool > summary { display: flex; align-items: center; gap: 13px; padding: 15px 0; cursor: pointer; font-size: 16px; font-weight: 600; list-style: none; line-height: 1.55; }
.wiki-page .creature-card > summary::-webkit-details-marker, .wiki-page .loot-pool > summary::-webkit-details-marker { display: none; }
.wiki-page .creature-card > summary::before, .wiki-page .loot-pool > summary::before { content: "+"; flex: 0 0 13px; color: var(--pve-gold); font: 22px/1 var(--pve-serif); }
.wiki-page .creature-card[open] > summary::before, .wiki-page .loot-pool[open] > summary::before { content: "−"; }
.wiki-page .creature-label { display: block; min-width: 0; }
.wiki-page .creature-family { display: block; font-size: 12px; font-weight: 400; line-height: 1.7; color: #afc2cb; margin-top: 2px; }
.wiki-page .creature-rating { margin-left: auto; color: #e1c788; font-size: 12px; font-weight: 500; line-height: 1.6; text-align: right; flex-shrink: 0; }
.wiki-page .creature-content { min-width: 0; padding: 2px 0 22px 26px; }
.wiki-page .creature-content > p { font-size: 16px !important; }
.wiki-page .creature-content > p.small { font-size: 13px !important; color: #afc2cb; }
.wiki-page .creature-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.wiki-page .creature-stats .reference-table { margin-block: 8px 17px; }
.wiki-page .creature-content h3 { font-size: 17px; margin-top: 24px; }
.wiki-page .creature-content li, .wiki-page .loot-pool > ul li { font-size: 16px; line-height: 1.8; }
.wiki-page .loot-pool > ul { margin: 3px 0 23px 26px; padding-left: 19px; }

@media (max-width: 1050px) {
  .wiki-page .wiki-heading { padding-left: 217px; }
  .wiki-page .wiki-directory-layout, .wiki-page .article-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 32px; }
  .wiki-page .wiki-link-list { gap: 23px 27px; }
  .wiki-page .wiki-tools { grid-template-columns: minmax(0, 1fr) 195px; }
  .wiki-page .creature-stats { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 760px) {
  .wiki-page .wiki-heading { padding: 27px 0 20px; }
  .wiki-page .wiki-heading h1 { font-size: 39px; }
  .wiki-page .wiki-start { padding-bottom: 22px; font-size: 14px; line-height: 1.8; }
  .wiki-page .wiki-directory-layout { grid-template-columns: 1fr; gap: 25px; padding-bottom: 44px; }
  .wiki-page .wiki-topic-nav { position: static; padding: 0; }
  .wiki-page .wiki-topic-nav h2 { margin-bottom: 10px; }
  .wiki-page .wiki-topic-nav nav { display: flex; flex-wrap: wrap; gap: 2px 20px; max-height: none; padding-right: 0; overflow-y: visible; }
  .wiki-page .wiki-topic-nav a { font-size: 13px; padding-block: 5px; }
  .wiki-page .wiki-topic { padding-block: 10px 20px; }
  .wiki-page .article-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .wiki-page .wiki-sidebar.article-sidebar { position: static; }
  .wiki-page .wiki-back { margin-bottom: 12px; }
  .wiki-page .article-sidebar { display: flex; flex-wrap: wrap; align-items: start; gap: 10px 28px; }
  .wiki-page .article-sidebar .wiki-back { flex-basis: 100%; }
  .wiki-page .article-sidebar details { flex: 1 1 220px; margin-bottom: 0; }
  .wiki-page .article-sidebar nav { display: grid; gap: 7px; margin-top: 13px; }
  .wiki-page .wiki-contents nav, .wiki-page .wiki-nearby nav { max-height: 40vh; }
  .wiki-page .wiki-article-heading { padding-bottom: 25px; }
  .wiki-page .wiki-article-heading h1 { font-size: 39px; }
  .wiki-page .wiki-article-heading .lead { font-size: 17px; }
  .wiki-page .article-body section { padding-block: 27px; }
  .wiki-page .article-body h2 { font-size: 29px; }
  .wiki-page .article-body p, .wiki-page .article-body li { font-size: 17px; }
  .wiki-page .reference-table table { font-size: 14px; }
}
@media (max-width: 560px) {
  .wiki-page .wiki-link-list { grid-template-columns: 1fr; gap: 20px; }
  .wiki-page .wiki-tools { grid-template-columns: 1fr; gap: 13px; }
  .wiki-page .wiki-topic > h2 { font-size: 26px; }
  .wiki-page .wiki-guide-title { font-size: 17px; }
  .wiki-page .wiki-guide p { font-size: 15px; }
  .wiki-page .wiki-heading h1, .wiki-page .wiki-article-heading h1 { font-size: 36px; }
  .wiki-page .creature-card > summary { flex-wrap: wrap; column-gap: 11px; row-gap: 3px; }
  .wiki-page .creature-label { flex: 1 1 calc(100% - 25px); }
  .wiki-page .creature-rating { margin-left: 24px; text-align: left; }
  .wiki-page .creature-content { padding-left: 0; }
  .wiki-page .loot-pool > ul { margin-left: 5px; }
}

.opening-preview{margin:24px 0;max-width:960px}.opening-preview video{display:block;width:100%;height:auto;background:#141614;border:1px solid var(--line,#4b453b);border-radius:8px}.opening-preview figcaption{margin-top:12px;max-width:75ch;font-size:.92rem;color:var(--muted,#bcb7a9);line-height:1.7}
