/* GENERATED by tools/gen_guide.js - the look of web/index.html (Georgia, gold on dark wood) */
:root {
  --ink: #f3ead8;
  --muted: #c9bda4;
  --dim: #9c8f76;
  --gold: #e0b354;
  --gold-dark: #a87a22;
  --panel: rgba(18, 14, 10, .9);
  --line: rgba(224, 179, 84, .3);
  --row: rgba(255, 255, 255, .035);
  --unq: #f0a040;
  --cls: #7fb6ff;
  --bas: #e6e0d0;
  --warn: #ffb070;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.6 Georgia, "Times New Roman", serif;
  background: #15110d url("../img/background.jpg") center / cover fixed no-repeat;
}
a { color: var(--gold); }
a:hover { color: #f4cf73; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 12px 16px; background: rgba(10, 8, 6, .85); border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.35rem; font-weight: bold; color: var(--gold); text-decoration: none; text-shadow: 0 2px 0 #3a2a10; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font: 600 .95rem/1 system-ui, sans-serif; }
.tabs a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"], .tabs a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.tabs a.dl {
  padding: 8px 14px; border-radius: 5px; color: #1d1406; border: 1px solid #f7dc95;
  background: linear-gradient(180deg, #f4cf73, var(--gold) 55%, var(--gold-dark));
}
.tabs a.dl:hover { color: #1d1406; filter: brightness(1.08); }
.wrap { display: flex; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 20px 16px 32px; align-items: flex-start; }
.toc {
  flex: 0 0 220px; position: sticky; top: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 0;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 16px; color: var(--muted); text-decoration: none; font: .92rem/1.35 system-ui, sans-serif; }
.toc a:hover { color: var(--ink); background: var(--row); }
.toc a[aria-current="page"] { color: var(--gold); background: rgba(224, 179, 84, .1); border-left: 3px solid var(--gold); padding-left: 13px; }
.page {
  flex: 1; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px 20px;
}
h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; color: var(--gold); }
h2 { margin: 30px 0 10px; font-size: 1.35rem; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.lead { margin: 0 0 8px; font-size: 1.1rem; color: var(--muted); }
p, li { color: var(--ink); }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
li.warn { color: var(--warn); }
strong { color: #fff3dc; }
.dim { color: var(--dim); font-weight: normal; }
code { font: .9rem system-ui, monospace; background: rgba(0, 0, 0, .35); padding: 1px 6px; border-radius: 4px; color: #ffe3a6; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; text-align: center;
  font: 600 .82rem/1.5 system-ui, sans-serif; color: var(--ink);
  background: linear-gradient(180deg, #3a3024, #241d15); border: 1px solid #6a5a40; border-bottom-width: 2px; border-radius: 4px;
}
.tbl { overflow-x: auto; margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font: .9rem/1.45 system-ui, sans-serif; }
th { text-align: left; padding: 8px 10px; color: var(--gold); background: rgba(224, 179, 84, .08); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 7px 10px; vertical-align: top; border-bottom: 1px solid rgba(224, 179, 84, .1); }
tbody tr:nth-child(even) td { background: var(--row); }
tbody tr:last-child td { border-bottom: 0; }
table.num td:not(:first-child), table.num th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
table.keys td:first-child { white-space: nowrap; }
table.skills td:nth-child(1), table.skills td:nth-child(5), table.skills td:nth-child(6) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.skills td:nth-child(2) { white-space: nowrap; }
table.uniques td:nth-child(3) { text-align: right; }
table.uniques td:first-child { min-width: 180px; }
.q-unq { color: var(--unq); }
.q-cls { color: var(--cls); }
.q-bas { color: var(--bas); }
.tag-rare {
  display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px;
  font: 700 .7rem/1.5 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .05em;
  color: #1d1406; background: var(--unq);
}
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); font: .92rem system-ui, sans-serif; }
footer { width: calc(100% - 32px); max-width: 1180px; margin: 0 auto 24px; padding: 10px 16px; font: .85rem/1.5 system-ui, sans-serif; color: var(--muted); background: rgba(10, 8, 6, .85); border: 1px solid var(--line); border-radius: 8px; }
footer a { color: var(--gold); }
@media (max-width: 800px) {
  .wrap { flex-direction: column; gap: 12px; padding-top: 12px; }
  .toc { position: static; flex: none; width: 100%; padding: 8px; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }
  .toc a[aria-current="page"] { border-left: 1px solid var(--gold); padding-left: 10px; }
  .page { padding: 18px 16px 14px; }
}
