/* Layout: dusk-lit village at the top, then alternating peat and parchment-ink bands, each band a chapter of the world. */
:root {
  --peat: #12130f;        /* page ground: peat-smoke black with a moss bias */
  --peat-2: #1b1d17;      /* raised band */
  --peat-3: #23261e;      /* card on a raised band */
  --rule: #34372b;        /* hairlines */
  --vellum: #ece3cf;      /* main text, old paper */
  --vellum-dim: #b3ab97;  /* quiet text */
  --ember: #d9a650;       /* hearth-gold accent, the game's button gold */
  --ember-ink: #1a1408;   /* text on gold */
  --moss: #7f9a5b;        /* secondary: heath green */
  --live: #6cc24a;        /* server up */
  --down: #c8604a;        /* server down */
  --f-display: "IM Fell English", "Palatino Linotype", Georgia, serif;
  --f-sc: "IM Fell English SC", "Palatino Linotype", Georgia, serif;
  --f-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--peat); color: var(--vellum); font: 17px/1.6 var(--f-body); margin: 0; overflow-x: clip; }
a { color: var(--ember); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--f-sc); font-size: 15px; letter-spacing: .12em; color: var(--moss); }

/* Top bar: brand, links, Community dropdown, Play; on phones brand + Play + Menu */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--peat); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--peat) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.brand { font-family: var(--f-sc); font-size: 23px; color: var(--vellum); text-decoration: none; letter-spacing: .04em; margin-right: auto; white-space: nowrap; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav > a, .dd > summary { color: var(--vellum-dim); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 3px; }
.nav > a:hover, .dd > summary:hover, .nav > a[aria-current="page"], .dd.is-current > summary { color: var(--vellum); }
.nav > a[aria-current="page"], .dd.is-current > summary { box-shadow: inset 0 -2px 0 var(--ember); border-radius: 0; }
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; user-select: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.dd[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.dd[open] > summary { color: var(--vellum); }
.dd-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; display: grid; padding: 6px; background: var(--peat-2); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 12px 32px rgba(0,0,0,.5); z-index: 6; }
.dd-menu a { color: var(--vellum); text-decoration: none; padding: 8px 12px; border-radius: 3px; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--peat-3); color: var(--ember); outline-offset: -2px; }
.dd-menu a[aria-current="page"] { color: var(--ember); }
.dd-menu small { color: var(--vellum-dim); font-size: 13px; margin-left: auto; }
.dd-menu hr { border: 0; border-top: 1px solid var(--rule); margin: 4px 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ember); color: var(--ember-ink); font-weight: 700; text-decoration: none; padding: 10px 20px; border-radius: 3px; border: 1px solid var(--ember); font-size: 16px; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: rgba(18,19,15,.35); color: var(--vellum); border-color: var(--vellum-dim); }
.btn.ghost:hover { border-color: var(--vellum); }
.top .play { padding: 6px 16px; font-size: 15px; white-space: nowrap; }
.menu { display: none; }
.menu > summary { border: 1px solid var(--rule); padding: 6px 10px; color: var(--vellum); }
.menu > summary::after { display: none; }
.menu .bars, .menu .bars::before, .menu .bars::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; content: ""; }
.menu .bars::before { position: absolute; top: -5px; }
.menu .bars::after { position: absolute; top: 5px; }
.menu[open] .bars { background: transparent; }
.menu[open] .bars::before { top: 0; transform: rotate(45deg); }
.menu[open] .bars::after { top: 0; transform: rotate(-45deg); }
.menu .dd-menu { min-width: 220px; }
.menu .dd-menu a { padding: 10px 12px; font-size: 16px; }
@media (max-width: 720px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 340px) { .brand { font-size: 20px; } .menu > summary .lbl { display: none; } }

/* Hero */
.hero { position: relative; min-height: min(72vh, 660px); display: flex; align-items: flex-end; background: var(--peat) url("img/hero.jpg") center 40% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,19,15,.05) 25%, rgba(18,19,15,.94) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 120px 40px; width: 100%; }
.hero h1 { font-size: clamp(56px, 11vw, 128px); letter-spacing: .01em; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 34em; margin-top: 12px; color: var(--vellum); text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .ctas .btn { padding: 12px 24px; font-size: 17px; }

/* Live status bar under the hero */
.statusbar { background: var(--peat-2); border-block: 1px solid var(--rule); font-size: 15px; }
.statusbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-block: 12px; }
.statusbar .sb-item { color: var(--vellum-dim); display: inline-flex; align-items: center; gap: 8px; }
.statusbar .sb-item b { color: var(--vellum); font-weight: 700; }
.statusbar .sb-link { margin-left: auto; text-decoration: none; white-space: nowrap; }
.statusbar .sb-link:hover { text-decoration: underline; }
.status { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--vellum-dim); }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--live); display: inline-block; box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent); flex: none; }
.status.off i { background: var(--down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 25%, transparent); }
.statusbar .status { color: var(--vellum); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .statusbar .status:not(.off) i { animation: pulse 2.4s ease-in-out infinite; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--live) 0%, transparent); } }
a.status { text-decoration: none; }

/* Sections */
section { padding-block: 72px; }
section.alt { background: var(--peat-2); border-block: 1px solid var(--rule); }
.head { display: grid; gap: 10px; max-width: 40em; margin-bottom: 32px; }
.head h2 { font-size: clamp(32px, 4.6vw, 50px); }
.head p { color: var(--vellum-dim); }
.head.row { display: flex; max-width: none; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.head.row > div { display: grid; gap: 10px; max-width: 40em; }
.more { text-decoration: none; white-space: nowrap; font-size: 16px; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Home: world map + lands */
.world { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.wmap { margin: 0; display: block; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: #7f97a0; }
.wmap img { display: block; width: 100%; height: auto; transition: transform .4s; }
@media (prefers-reduced-motion: no-preference) { a.wmap:hover img { transform: scale(1.02); } }
.world .head { margin-bottom: 20px; }
.lands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lands a { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--peat); color: var(--vellum); text-decoration: none; font-family: var(--f-display); font-size: 17px; line-height: 1.3; }
.lands a small { font-family: var(--f-body); font-size: 13px; color: var(--moss); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lands a:hover { border-color: var(--ember); }
/* Home: latest news, a compact text list (the three newest posts) */
.more-links { display: flex; gap: 6px 22px; flex-wrap: wrap; margin: 0; }
.nlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nlist li { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px 18px 18px; background: var(--peat-2); border: 1px solid var(--rule); border-top: 2px solid var(--ember); border-radius: 4px; transition: border-color .15s; }
.nlist li:hover { border-color: var(--ember); }
.nlist .meta { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 14px; color: var(--vellum-dim); font-variant-numeric: tabular-nums; }
.nlist .tag { margin: 0; }
.nlist h3 { font-size: 23px; }
.nlist h3 a { color: var(--vellum); text-decoration: none; }
.nlist h3 a::after { content: ""; position: absolute; inset: 0; }
.nlist h3 a:focus-visible { outline: none; }
.nlist li:has(h3 a:focus-visible) { outline: 2px solid var(--ember); outline-offset: 3px; }
.nlist .sum { color: var(--vellum-dim); font-size: 16px; margin: 0; }
.world .more { display: inline-block; margin-top: 20px; }

/* Home: classes with art */
.cls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cls a { display: grid; grid-template-rows: auto auto 1fr; gap: 4px; height: 100%; padding: 0 14px 18px; text-decoration: none; color: var(--vellum); background: var(--peat-2); border: 1px solid var(--rule); border-radius: 4px; text-align: center; transition: border-color .15s; }
.cls a:hover { border-color: var(--ember); }
.cls .art { height: 168px; display: grid; place-items: end center; padding-bottom: 14px; margin: 0 -14px 8px; background: radial-gradient(ellipse 60% 14px at 50% calc(100% - 16px), rgba(0,0,0,.55), transparent 70%), radial-gradient(circle at 50% 60%, rgba(217,166,80,.16), transparent 62%), var(--peat-3); border-bottom: 1px solid var(--rule); }
.cls img { height: 140px; width: auto; display: block; transition: transform .2s; }
@media (prefers-reduced-motion: no-preference) { .cls a:hover img { transform: translateY(-4px); } }
.cls b { font-family: var(--f-display); font-weight: 400; font-size: 23px; line-height: 1.15; }
.cls span { color: var(--vellum-dim); font-size: 15px; line-height: 1.4; }
.cls-note { margin-top: 20px; color: var(--vellum-dim); }

/* Home: Faith / When you fall tabs (both panels show without JS) */
.tablist { display: flex; gap: 6px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.tablist[hidden] { display: none; }
.tablist button { font: inherit; font-family: var(--f-display); font-size: 24px; background: none; border: 0; color: var(--vellum-dim); padding: 6px 14px 10px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tablist button:hover { color: var(--vellum); }
.tablist button[aria-selected="true"] { color: var(--vellum); border-bottom-color: var(--ember); }
.tabpanel + .tabpanel { margin-top: 48px; }
.tabs.js .tabpanel + .tabpanel { margin-top: 0; }
.tabs.js .tabpanel .eyebrow { display: none; }
.tabs { scroll-margin-top: 80px; }
.tabpanel:focus-visible { outline: 2px solid var(--ember); outline-offset: 8px; }
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pair { border: 1px solid var(--rule); border-radius: 4px; padding: 18px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; background: var(--peat); }
.pair .vs { font-family: var(--f-sc); color: var(--moss); font-size: 13px; letter-spacing: .14em; text-align: center; }
.pair h3 { font-size: 22px; text-align: center; }
.pair h3 small { display: block; font-family: var(--f-body); font-size: 14px; color: var(--vellum-dim); }
.death { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.death div { border-top: 2px solid var(--ember); padding-top: 12px; }
.death h3 { font-size: 24px; margin-bottom: 4px; }
.death p { color: var(--vellum-dim); font-size: 16px; }
.tabpanel .more { display: inline-block; margin-top: 24px; }

/* Home: screenshot strip (scrolls sideways when there are more than three) */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.strip figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: 4px; scroll-snap-align: start; }
.strip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-size: 14px; color: var(--vellum-dim); background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.strip figcaption b { font-family: var(--f-display); font-weight: 400; font-size: 20px; display: block; color: var(--vellum); }

/* News page posts */
.news { display: grid; gap: 0; scroll-margin-top: 72px; }
#patch-notes { scroll-margin-top: 72px; } /* old link news.html#patch-notes lands at the top of the list */
.post { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 72px; }
.post time { font-variant-numeric: tabular-nums; color: var(--vellum-dim); font-size: 15px; }
.post h3 { font-size: 26px; margin-bottom: 6px; }
.post p, .post li { color: var(--vellum-dim); }
.post ul { margin: 8px 0 0; padding-left: 20px; }
.panel-h { font-size: clamp(30px, 4.5vw, 40px); margin-bottom: 4px; }
.tabs.js .panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tag { display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); border: 1px solid var(--moss); padding: 1px 7px; border-radius: 2px; margin-bottom: 8px; }

/* Community band */
.join { background: linear-gradient(90deg, rgba(18,19,15,.96) 30%, rgba(18,19,15,.7)), var(--peat-2) url("img/join-bg.jpg") center / cover no-repeat; }
.join .wrap { display: flex; gap: 24px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.join h2 { font-size: clamp(30px, 4.5vw, 46px); max-width: 16em; }
.join p { color: var(--vellum-dim); margin-top: 10px; }
.join .acts { display: grid; gap: 12px; justify-items: start; }

/* Guide page */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-block: 56px 88px; }
.toc { position: sticky; top: 80px; align-self: start; display: grid; gap: 8px; font-size: 15px; }
.toc a { color: var(--vellum-dim); text-decoration: none; }
.toc a:hover { color: var(--vellum); }
.doc article { max-width: 42em; display: grid; gap: 18px; }
.doc article h2 { font-size: 36px; margin-top: 28px; }
.doc article p, .doc article li { color: var(--vellum); }
.doc article ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.keys { overflow-x: auto; }
.keys table { border-collapse: collapse; width: 100%; font-size: 16px; }
.keys td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
kbd { font-family: var(--f-body); font-size: 14px; border: 1px solid var(--vellum-dim); border-bottom-width: 2px; border-radius: 3px; padding: 0 6px; white-space: nowrap; }
.callout { border-left: 2px solid var(--ember); padding: 4px 0 4px 16px; color: var(--vellum-dim); }

footer { border-top: 1px solid var(--rule); padding-block: 32px; color: var(--vellum-dim); font-size: 14px; }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
footer a { color: var(--vellum-dim); }

/* Ledger list (online.html) */
.ledger { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.ledger li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ledger .name { font-family: var(--f-display); font-size: 20px; }
.ledger .name small { display: block; font-family: var(--f-body); font-size: 14px; color: var(--vellum-dim); }
/* The GM tag: a Game Master on the online list (online.js; flag from the server's /api/online) */
.gm-badge { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 3px; background: var(--ember); color: var(--ember-ink); font: 700 12px/18px var(--f-body); letter-spacing: 0.06em; vertical-align: 3px; cursor: default; }
.ledger .lv { font-variant-numeric: tabular-nums; color: var(--moss); font-size: 15px; white-space: nowrap; }

@media (max-width: 980px) {
  .cls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pairs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .world { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .death { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .nlist { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .nlist li { padding: 12px 14px 14px; gap: 4px; }
  .nlist h3 { font-size: 20px; }
  .nlist .sum { font-size: 15px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-auto-columns: 78%; }
  section { padding-block: 52px; }
  .head { margin-bottom: 24px; }
}
@media (max-width: 600px) {
  .hero { min-height: 0; background-position: 30% 40%; }
  .hero .wrap { padding-block: 180px 28px; }
  .hero .lede { font-size: 17px; }
  .hero .ctas .btn { flex: 1 1 auto; padding: 11px 16px; font-size: 16px; }
  .statusbar .wrap { gap: 4px 16px; padding-block: 10px; }
  .statusbar .sb-note { display: none; }
  .cls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cls a { padding: 0 6px 10px; gap: 2px; }
  .cls .art { height: 104px; margin: 0 -6px 4px; padding-bottom: 8px; }
  .cls img { height: 88px; }
  .cls b { font-size: 19px; }
  .cls span { font-size: 13px; line-height: 1.3; }
  .wmap img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 45%; }
  .join .acts { grid-template-columns: 1fr 1fr; width: 100%; justify-items: stretch; }
  .join .acts .btn { padding: 10px 12px; font-size: 15px; }
  .pair { padding: 12px; }
  .pair h3 { font-size: 20px; }
  .death { gap: 16px; }
  .death h3 { font-size: 21px; }
  .death p { font-size: 15px; line-height: 1.45; }
  .tablist button { font-size: 20px; padding: 6px 10px 10px; }
  .lands a { font-size: 16px; padding: 5px 10px; }
  section { padding-block: 44px; }
}

/* Who's online (online.html + online.js) */
.online-count { font-family: var(--f-display); font-size: clamp(56px, 10vw, 96px); line-height: 1; color: var(--vellum); }
.online-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.online-list .empty { grid-column: 1 / -1; display: block; color: var(--vellum-dim); border: 0; }
@media (max-width: 700px) { .online-list { grid-template-columns: 1fr; } }

/* Wiki (generated by tools/wiki_build.mjs into wiki/) */
.doc.wiki article { max-width: none; min-width: 0; }
.doc.wiki article > * { min-width: 0; }
.doc.wiki article h2 { font-size: 32px; margin-top: 24px; scroll-margin-top: 80px; }
.doc.wiki article h3 { font-size: 24px; margin-top: 8px; scroll-margin-top: 80px; }
.doc.wiki .toc a[aria-current="page"] { color: var(--vellum); border-left: 2px solid var(--ember); padding-left: 8px; margin-left: -10px; }
.wk-mini input, .wk-search input { width: 100%; background: var(--peat-2); color: var(--vellum); border: 1px solid var(--rule); border-radius: 3px; padding: 8px 10px; font: inherit; font-size: 15px; }
.wk-mini { margin-top: 8px; }
.wk-mini input:focus, .wk-search input:focus { outline: 2px solid var(--ember); outline-offset: 1px; }
.crumbs { font-size: 14px; color: var(--vellum-dim); margin: 0; }
.crumbs a { color: var(--vellum-dim); }
.pagetoc { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; border-block: 1px solid var(--rule); padding: 10px 0; align-items: baseline; }
.pagetoc b { font-family: var(--f-sc); font-weight: 400; color: var(--moss); letter-spacing: .08em; }
.pagetoc a { color: var(--vellum-dim); text-decoration: none; }
.pagetoc a:hover { color: var(--vellum); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card { display: grid; gap: 4px; align-content: start; padding: 16px; border: 1px solid var(--rule); background: var(--peat-2); text-decoration: none; color: var(--vellum); border-radius: 3px; }
.card:hover { border-color: var(--ember); }
.card b { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.15; }
.card span { color: var(--vellum-dim); font-size: 15px; }
.card small { color: var(--moss); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.tbl { overflow-x: auto; border: 1px solid var(--rule); max-width: 100%; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl th { text-align: left; font-family: var(--f-sc); font-weight: 400; letter-spacing: .06em; color: var(--moss); padding: 8px 12px; border-bottom: 1px solid var(--rule); background: var(--peat-2); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 7px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td .tag { margin: 0 0 0 6px; padding: 0 5px; font-size: 11px; }
.tbl td:first-child { min-width: 9em; }
.ic { display: inline-block; width: 24px; height: 24px; flex: none; vertical-align: middle; margin-right: 8px; background: url("wiki/img/icons.png") no-repeat; background-size: 192px 480px; }
.nm { display: inline-flex; align-items: center; }
.meta { color: var(--vellum-dim); font-size: 14px; margin: 0; }
.saying { color: var(--vellum-dim); font-style: italic; border-left: 2px solid var(--rule); padding-left: 14px; }
.keyrow { font-size: 15px; color: var(--vellum-dim); }
.abil, .qrow { border-top: 1px solid var(--rule); padding: 14px 0 4px; display: grid; gap: 6px; scroll-margin-top: 80px; }
.abil-h, .qh { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.abil-h b, .qh b { font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.abil-h .lv, .qh .lv { margin-left: auto; color: var(--moss); font-size: 14px; font-variant-numeric: tabular-nums; padding-left: 12px; }
.mods { border-left: 2px solid var(--ember); padding: 2px 0 2px 14px; display: grid; gap: 6px; font-size: 15px; }
.mods .modh { font-family: var(--f-sc); letter-spacing: .08em; color: var(--ember); font-size: 13px; }
.mods p { color: var(--vellum-dim); }
.mods p b { color: var(--vellum); font-weight: 700; }
.rar { font-size: 13px; }
.rar-fine { color: #8fb86a; } .rar-superior { color: #6fa8dc; } .rar-rare { color: #d9a650; } .rar-common { color: var(--vellum-dim); }
figure.map { margin: 0; }
figure.map img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
figure.map figcaption { font-size: 14px; color: var(--vellum-dim); margin-top: 6px; }
.wk-search { display: grid; gap: 8px; }
.wk-search label { font-family: var(--f-sc); letter-spacing: .08em; color: var(--moss); font-size: 15px; }
.wk-search input { font-size: 18px; padding: 12px 14px; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.doc article ul.results { padding-left: 0; gap: 0; }
.results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.results li a { font-family: var(--f-display); font-size: 19px; }
.results li small { color: var(--moss); font-size: 13px; text-align: right; align-self: center; }
.results li span { grid-column: 1 / -1; color: var(--vellum-dim); font-size: 14px; }
@media (max-width: 860px) {
  .doc.wiki .toc a[aria-current="page"] { margin-left: 0; padding-left: 0; border-left: 0; text-decoration: underline; text-underline-offset: 4px; }
  .wk-mini { flex-basis: 100%; }
  .doc.wiki article h2 { font-size: 28px; }
}
a.status { text-decoration: none; }
footer .legal { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; opacity: .8; }
