
@font-face { font-family: "JXW Text"; src: url(fonts/jxw-text.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JXW Display"; src: url(fonts/jxw-display.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --bg: #f3ead8; --panel: #fbf6ea; --panel-2: #efe3cb; --text: #1c1915; --muted: #5d5547; --line: #d9c9a8;
  --accent: #a32a1e; --accent-2: #c0392b; --link: #9a2619; --focus: #c8792b; --chip: #eadbbd; --code: #efe3cb; --on-accent: #fff8ec;
  --jade: #2e6a58; --bronze: #8a6328; --ink: #1c1915; --seal: #b8322a; --rule: #1c1915;
  --q-white: #3d3a35; --q-blue: #1f5fbf; --q-gold: #8a5d00; --q-plat: #2a6a79; --q-purple: #7b3fb0; --q-green: #2f7d32;
  --shadow: 0 1px 2px rgba(60, 40, 10, .08), 0 2px 8px rgba(60, 40, 10, .06);
  
  --hdr: #e7d8b9; --hdr-wash: rgba(231, 216, 185, .86); --hdr-text: #1c1915; --mtn: #2a2620; --orb: #b8322a; --orb-a: .55;
  --side-w: 232px; --top-h: 60px; --radius: 6px;
  --font: "JXW Text", Literata, Georgia, Cambria, "Times New Roman", serif;
  --display: "JXW Display", "JXW Text", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Noto Sans Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f131b; --panel: #161b25; --panel-2: #1e2431; --text: #ece4d3; --muted: #a59d8b; --line: #2d3545;
    --accent: #e3b25a; --accent-2: #f0c878; --link: #eabd68; --focus: #f0c878; --chip: #242b39; --code: #1c2230; --on-accent: #1a1408;
    --jade: #7fbfa8; --bronze: #d2a96a; --ink: #ece4d3; --seal: #b04a3e; --rule: #e3b25a;
    --q-white: #e6e1d6; --q-blue: #7fb2ff; --q-gold: #f2c14e; --q-plat: #7fd3e0; --q-purple: #c79bf2; --q-green: #86d08a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .45);
    --hdr: #0b0f17; --hdr-wash: rgba(11, 15, 23, .82); --hdr-text: #ecd9ae; --mtn: #2c3a52; --orb: #f0c878; --orb-a: .8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f131b; --panel: #161b25; --panel-2: #1e2431; --text: #ece4d3; --muted: #a59d8b; --line: #2d3545;
  --accent: #e3b25a; --accent-2: #f0c878; --link: #eabd68; --focus: #f0c878; --chip: #242b39; --code: #1c2230; --on-accent: #1a1408;
  --jade: #7fbfa8; --bronze: #d2a96a; --ink: #ece4d3; --seal: #b04a3e; --rule: #e3b25a;
  --q-white: #e6e1d6; --q-blue: #7fb2ff; --q-gold: #f2c14e; --q-plat: #7fd3e0; --q-purple: #c79bf2; --q-green: #86d08a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45);
  --hdr: #0b0f17; --hdr-wash: rgba(11, 15, 23, .82); --hdr-text: #ecd9ae; --mtn: #2c3a52; --orb: #f0c878; --orb-a: .8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body { margin: 0; color: var(--text); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column;
  font-variant-numeric: lining-nums; font-synthesis-weight: none; background: url(art/paper.png) var(--bg); }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background: radial-gradient(ellipse 60% 40% at 50% 0, rgba(227, 178, 90, .07), transparent 70%) var(--bg); } }
:root[data-theme="dark"] body { background: radial-gradient(ellipse 60% 40% at 50% 0, rgba(227, 178, 90, .07), transparent 70%) var(--bg); }
a { color: var(--link); text-underline-offset: 2px; text-decoration-thickness: from-font; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1 { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.25; margin: .2em 0 .5em; letter-spacing: .01em; color: var(--ink); }

h2 { font-size: 1.3rem; font-weight: 700; margin: 1.7em 0 .7em; padding-bottom: .45em; position: relative; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; max-width: 420px; height: 10px; background: var(--rule); opacity: .8;
  -webkit-mask: url(art/brush.svg) left center / 100% 100% no-repeat; mask: url(art/brush.svg) left center / 100% 100% no-repeat; }
code, pre { font-family: var(--mono); font-size: .86em; }

code { background: var(--code); padding: .05em .35em; border-radius: 3px; overflow-wrap: break-word; }
.pre { background: var(--code); padding: 12px; border-radius: var(--radius); overflow-x: auto; white-space: pre; }
.pre.wrap { white-space: pre-wrap; overflow-wrap: break-word; }
.nw { white-space: nowrap; }
.muted { color: var(--muted); }

.ic { width: 24px; height: 24px; vertical-align: middle; object-fit: contain; image-rendering: pixelated; }
.ic.big { width: 48px; height: 48px; }
.lvls { font-size: 12px; white-space: nowrap; }
.lvls a, .lvls span { padding: 0 2px; }
.bad { color: #a8231b; font-weight: 600; }
:root[data-theme="dark"] .bad { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bad { color: #ff8a80; } }
tr.sub td { font-size: 13px; padding-top: 0; border-top: 0; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 70ch; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--panel); padding: 6px 10px; }


.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 16px 6px;
  color: var(--hdr-text); isolation: isolate;
  background: linear-gradient(var(--hdr-wash), var(--hdr-wash)), url(art/damask.png) var(--hdr); }

.top::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 6px; height: 54px; background: var(--mtn); opacity: .5;
  -webkit-mask: url(art/mountains.svg) center bottom / auto 100% no-repeat; mask: url(art/mountains.svg) center bottom / auto 100% no-repeat; pointer-events: none; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: url(art/jade.png) left center / auto 6px repeat-x; }
.top .orb { position: absolute; z-index: -2; left: calc(50% + 150px); top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--orb); opacity: var(--orb-a);
  box-shadow: 0 0 18px color-mix(in srgb, var(--orb) 50%, transparent); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--hdr-text); text-decoration: none; white-space: nowrap; }
.brand .seal { width: 20px; height: 36px; flex: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .15)); }
.brand .bt { font-family: var(--display); font-size: 1.3rem; line-height: 1; letter-spacing: .01em; }
.brand:hover { color: var(--hdr-text); }
.top .search { flex: 1; max-width: 560px; margin-left: auto; position: relative; }
.search input { width: 100%; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
  color: var(--text); font: inherit; font-size: 16px; }
.search input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.theme-btn, .menu-btn { flex: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
  color: var(--text); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.menu-btn { display: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }


.sugg { position: absolute; left: 0; right: 0; top: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18); max-height: 70vh; overflow-y: auto; padding: 4px; color: var(--text); }

.sugg a, .sugg .np { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding: 7px 10px; border-radius: 4px; text-decoration: none; color: var(--text); }
.sugg .kind { flex: none; }
.sugg .st { flex: 0 1 auto; min-width: 0; }
.sugg .x { flex: 1 1 14em; min-width: 0; font-size: 14px; }
.sugg a.sel, .sugg a:hover { background: var(--panel-2); }
.sugg .all { color: var(--link); font-size: 14px; }


.shell { flex: 1; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); width: 100%; max-width: calc(var(--side-w) + 1100px + 48px); margin: 0 auto; }
.side { position: sticky; top: var(--top-h); align-self: start; max-height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 18px 8px 18px 16px; }
.side ul { list-style: none; margin: 0 0 16px; padding: 0; }
.side a { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 4px; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.side a:hover { background: color-mix(in srgb, var(--panel-2) 80%, transparent); }
.side a[aria-current="page"] { background: color-mix(in srgb, var(--chip) 85%, transparent); color: var(--accent); font-weight: 700; border-left-color: var(--seal); }
.side .ni { width: 1.2em; text-align: center; color: var(--accent); }
.side-extra { border-top: 1px solid var(--line); padding-top: 10px !important; font-size: 14px; }
main { min-width: 0; padding: 20px 24px 48px; max-width: 1100px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.foot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; padding: 14px 16px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
.scrim { display: none; }


.hero { padding: 8px 0 4px; }
.hero h1 { font-size: 2.4rem; }
.search.big { display: flex; gap: 8px; max-width: 640px; margin: 14px 0 6px; }
.search.big input { height: 46px; font-size: 17px; }
.search.big button { flex: none; height: 46px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--seal); color: #fff8ec; font: inherit; font-weight: 700;
  letter-spacing: .04em; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 248, 236, .35), inset 0 0 0 3px var(--seal); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }

.card a { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 16px 16px 14px; height: 100%; background: var(--panel);
  border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.card a::before, .card a::after { content: ""; position: absolute; width: 22px; height: 24px; background: var(--bronze); opacity: .75;
  -webkit-mask: url(art/knot.png) 0 0 / 22px 24px no-repeat; mask: url(art/knot.png) 0 0 / 22px 24px no-repeat; pointer-events: none; }
.card a::before { left: 3px; top: 3px; }
.card a::after { right: 3px; bottom: 3px; transform: rotate(180deg); }
.card a:hover { border-color: var(--accent); }
.card a:hover::before, .card a:hover::after { background: var(--seal); opacity: 1; }
.card .ci { grid-row: span 3; width: 1.2em; text-align: center; font-size: 26px; color: var(--accent); line-height: 1; padding: 2px 0 0 6px; }
.card .ct { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.card .cs { font-size: 14px; color: var(--muted); }
.card .cb { font-size: 13px; color: var(--muted); }
.badge { display: inline-block; padding: 0 7px; border-radius: 3px; background: var(--chip); color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.7; }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--seal); border-radius: var(--radius); padding: 12px 14px; max-width: 70ch; }


.el { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.el::before { content: ""; flex: none; width: 16px; height: 16px; background: url(art/ngu-hanh.png) 0 0 / 80px 16px no-repeat; }
.el-1::before { background-position: -16px 0; } .el-2::before { background-position: -32px 0; }
.el-3::before { background-position: -48px 0; } .el-4::before { background-position: -64px 0; }
.badge .el::before { width: 14px; height: 14px; background-size: 70px 14px; }
.badge .el-1::before { background-position: -14px 0; } .badge .el-2::before { background-position: -28px 0; }
.badge .el-3::before { background-position: -42px 0; } .badge .el-4::before { background-position: -56px 0; }

.fac-head { display: flex; align-items: center; gap: 14px; }
.fac-head h1 { margin: .2em 0; }
.stamp { width: 56px; height: 56px; flex: none; transform: rotate(-4deg); }



.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(to right, var(--panel) 30%, transparent) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--panel) 30%, transparent) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--sh), transparent) left center / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--sh), transparent) right center / 16px 100% no-repeat scroll,
    var(--panel); }
:root { --sh: rgba(60, 40, 10, .28); }
:root[data-theme="dark"] { --sh: rgba(0, 0, 0, .75); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sh: rgba(0, 0, 0, .75); } }
table { border-collapse: collapse; width: 100%; font-size: 14px; }

th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: baseline; }

thead th { position: sticky; top: 0; background: var(--panel-2); z-index: 1; font-weight: 700; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--ink) 70%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
td, th { font-variant-numeric: tabular-nums lining-nums; }

thead th.num { white-space: normal; }
td:has(> img.ic) { min-width: 11em; }
td code { word-break: normal; }

table.lv { width: max-content; min-width: 100%; }
table.lv th:first-child, table.lv td:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); min-width: 11em; max-width: 16em;
  box-shadow: 1px 0 0 var(--line); }
table.lv thead th:first-child { z-index: 2; background: var(--panel-2); box-shadow: 1px 0 0 var(--line), inset 0 -2px 0 color-mix(in srgb, var(--ink) 70%, transparent); }
.scroll-hint { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

.spec-d { font-family: var(--display); font-size: 18px; }
.spec-t { font-size: 16px; }


.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 3px; padding: 4px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.chip span { color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"] { background: var(--seal); border-color: var(--seal); color: #fff8ec; }
.chip[aria-pressed="true"] span { color: inherit; }
.results { list-style: none; padding: 0; margin: 0; }
.results li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.results .t { font-weight: 700; overflow-wrap: anywhere; }
.results .np { color: var(--text); }
.results .x { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.kind { font-size: 12px; padding: 0 7px; border-radius: 3px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.nopage { font-size: 12px; color: var(--muted); font-style: italic; }
mark { background: color-mix(in srgb, var(--accent-2) 30%, transparent); color: inherit; border-radius: 2px; }


.q-white { color: var(--q-white); } .q-blue { color: var(--q-blue); } .q-gold { color: var(--q-gold); }
.q-plat { color: var(--q-plat); } .q-purple { color: var(--q-purple); } .q-green { color: var(--q-green); }
.icon { image-rendering: pixelated; vertical-align: middle; }


h3 { font-size: 1.08rem; font-weight: 700; margin: 1.2em 0 .5em; }
.id { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.badge.tan { background: color-mix(in srgb, var(--q-plat) 22%, transparent); color: var(--q-plat); }
.toc { list-style: none; padding: 0; margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.cols { columns: 2 260px; column-gap: 24px; padding-left: 1.1em; }
.cols li { break-inside: avoid; margin-bottom: 4px; }
.tabs { display: flex; gap: 6px; margin: 10px 0 6px; flex-wrap: wrap; }
.tabs a { padding: 5px 14px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--text); background: var(--panel); font-size: 14px; }
.tabs a[aria-current="page"] { background: var(--seal); border-color: var(--seal); color: #fff8ec; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; align-content: start; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts.small { font-size: 14px; }
.note p { margin: .2em 0; }


.map-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 18px; align-items: start; margin: 8px 0 14px; }
.mm { margin: 0; min-width: 0; }
.mm-box { position: relative; display: inline-block; max-width: 100%; line-height: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #000; }
.mm-box img { display: block; max-width: 100%; height: auto; }
.mm.none img { width: 256px; max-width: 100%; height: auto; }
.mm-pts { position: absolute; inset: 0; }
.pt { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; padding: 0; border-radius: 50%; border: 1.5px solid #fff; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.pt:focus-visible, .pt.sel { outline: 2px solid #fff; outline-offset: 1px; z-index: 2; transform: scale(1.4); }
.pt-mob { background: #d64545; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-width: 1px; }
.pt-npc { background: #f2c14e; }
.pt-shop { background: #3fbf6f; }
.pt-boat { background: #4aa3ff; }
.pt-exit { background: #b06cf0; border-radius: 2px; width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.pt-spawn { background: #ff9f43; }
.mm-pts.h-mob .pt-mob, .mm-pts.h-npc .pt-npc, .mm-pts.h-shop .pt-shop, .mm-pts.h-boat .pt-boat, .mm-pts.h-exit .pt-exit, .mm-pts.h-spawn .pt-spawn { display: none; }
.mm figcaption { line-height: 1.5; margin-top: 6px; }
.mm-lg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.lg { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.lg .dot { display: inline-block; width: 10px; height: 10px; margin: 0; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.lg .dot.pt-exit { border-radius: 2px; }
.mm-cap { min-height: 1.5em; font-size: 14px; margin-top: 4px; }


.badge.warn { background: color-mix(in srgb, #b3261e 16%, transparent); color: #a8231b; }
:root[data-theme="dark"] .badge.warn { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.warn { color: #ff8a80; } }
.cjk { border-bottom: 1px dotted var(--muted); }
.tip { margin-top: 8px; }
.tip .note { margin-bottom: 10px; }

:root {
  --tt-bg: #fffaf0; --tt-line: #d9c9a8; --tt-w: #1c1915; --tt-y: #8a5d00; --tt-g: #8a8170; --tt-b: #1f5fbf; --tt-c: #1f6b7a;
  --tt-gr: #2f7d32; --tt-o: #b4530a; --tt-e: #8a6328; --tt-r: #b3261e; --tt-p: #7b3fb0; --tt-k: #1c1915;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tt-bg: #0b0f17; --tt-line: #2d3545; --tt-w: #ece4d3; --tt-y: #f2c14e; --tt-g: #8b8577; --tt-b: #8fb0ff; --tt-c: #7fd3e0;
    --tt-gr: #86d08a; --tt-o: #ff9f45; --tt-e: #d2a96a; --tt-r: #ff8a80; --tt-p: #c79bf2; --tt-k: #a59d8b;
  }
}
:root[data-theme="dark"] {
  --tt-bg: #0b0f17; --tt-line: #2d3545; --tt-w: #ece4d3; --tt-y: #f2c14e; --tt-g: #8b8577; --tt-b: #8fb0ff; --tt-c: #7fd3e0;
  --tt-gr: #86d08a; --tt-o: #ff9f45; --tt-e: #d2a96a; --tt-r: #ff8a80; --tt-p: #c79bf2; --tt-k: #a59d8b;
}
.tt { background: var(--tt-bg); color: var(--tt-w); border: 1px solid var(--tt-line); border-radius: var(--radius); padding: 10px 14px;
  max-width: 46ch; font-size: 14px; line-height: 1.45; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.tt .tl { margin: 2px 0; }
.tt .tt-title { font-family: var(--display); font-size: 16px; margin-bottom: 4px; }
.tt .tt-div { border: 0; border-top: 1px dashed var(--tt-line); margin: 6px 0; }
.tt .tt-price { margin-top: 6px; }
.tt .rg { font-variant-numeric: tabular-nums; }
.tc-w { color: var(--tt-w); } .tc-y { color: var(--tt-y); } .tc-g { color: var(--tt-g); } .tc-b { color: var(--tt-b); }
.tc-c { color: var(--tt-c); } .tc-gr { color: var(--tt-gr); } .tc-o { color: var(--tt-o); } .tc-e { color: var(--tt-e); }
.tc-r { color: var(--tt-r); } .tc-p { color: var(--tt-p); } .tc-k { color: var(--tt-k); }
.hid { display: inline-block; font-size: 11px; line-height: 1.3; padding: 0 5px; border: 1px solid var(--tt-g); border-radius: 3px; color: var(--tt-g);
  vertical-align: 1px; font-style: normal; }
.tt-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.tt-grid figure { margin: 0; }
.tt-row .cap, .tt-grid figcaption { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.tt-grid .tt-row { flex-direction: column; }
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; align-items: start; }
.tt-grid .tt { max-width: none; }
.tip details { margin: 6px 0; }
.tip details > summary { cursor: pointer; color: var(--link); }
.tip details.lvl > .tt { margin-top: 4px; }
.tip details.raw { margin-top: 14px; }
.tip details.raw > summary { color: var(--muted); }
.nodesc { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--bronze); border-radius: var(--radius); padding: 10px 14px; max-width: 70ch; }
table.st td[data-k="skills"] { min-width: 12em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 8px 0 10px; padding: 10px 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); }
.filters .f { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.filters input, .filters select { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2); color: var(--text);
  font: inherit; font-size: 15px; min-width: 0; }
.filters input[type="number"] { width: 6.5em; }
.filters input[type="search"] { width: 14em; max-width: 100%; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 10px 0; }
.pager button[disabled] { opacity: .45; cursor: default; }
tr:target { background: color-mix(in srgb, var(--accent-2) 16%, transparent); }


@media (max-width: 719.98px) {
  :root { --top-h: 58px; }
  .filters .f { flex: 1 1 40%; }
  .filters input[type="search"], .filters input[type="number"] { width: 100%; }
  .map-top { grid-template-columns: 1fr; }
  .pt { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
  .pt-mob { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .top { gap: 8px; padding: 0 12px 6px; }
  .top::before { opacity: .35; }
  .top .orb { display: none; }
  .brand .bt { display: none; }
  .brand .seal { width: 16px; height: 29px; }
  .menu-btn { display: grid; }
  .top .search { margin-left: 0; }
  .sugg { position: fixed; left: 8px; right: 8px; top: calc(var(--top-h) - 4px); }
  .shell { display: block; }
  .side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(80vw, 300px); max-height: none; background: var(--panel);
    border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .2s ease; padding: 16px; }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .35); }
  main { padding: 16px 16px 40px; }
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.75rem; }
  h2::after { width: 70%; }
  .stamp { width: 44px; height: 44px; }
  .cards { grid-template-columns: 1fr; }
  .search.big button { padding: 0 14px; }
  
  td:not(.num), th:not(.num) { min-width: 6.5em; }
  td:has(> a), td:has(> img.ic) { min-width: 10em; }
  
  .pt-mob { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-width: 0; opacity: .7; }
}

:root[data-theme="dark"] img.ic { background: rgba(255, 255, 255, .14); border-radius: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.ic { background: rgba(255, 255, 255, .14); border-radius: 4px; } }
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

div.lead p { margin: .3em 0 .6em; }
.badge.sd { background: color-mix(in srgb, #b26a00 18%, transparent); color: #7a4a00; text-decoration: none; font-weight: 700; vertical-align: 1px; }
:root[data-theme="dark"] .badge.sd { color: #ffc46b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.sd { color: #ffc46b; } }
.tm { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; margin-right: 6px; }
td.tm { color: inherit; }
ul.small, p.small { font-size: 14px; }
details.tech { margin: 18px 0 8px; max-width: 70ch; }
details.tech summary { cursor: pointer; color: var(--muted); }

.fam-it { margin-top: 2.2rem; padding: 10px 12px 4px; border-top: 2px solid var(--line); scroll-margin-top: calc(var(--top-h) + 12px); border-radius: var(--radius); }
.fam-it.one { margin-top: 0; padding: 0; border-top: 0; }
.fam-it:target { background: color-mix(in srgb, var(--accent-2) 9%, transparent); outline: 2px solid var(--accent); outline-offset: 2px; }
.fam-it.one:target { background: none; outline: 0; }
.fam-it > h2:first-child { margin-top: .2rem; }
tr[id], details[id], li[id] { scroll-margin-top: calc(var(--top-h) + 12px); }
.fam-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.fam-parts a, .fam-parts strong { display: inline-block; min-width: 2.2em; padding: 2px 8px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
.fam-parts strong { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.fam-toc { margin: 8px 0 4px; }
.fam-toc li { break-inside: avoid; }
.fam-next { margin-top: 2rem; }
.nf-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.nf-search input { flex: 1 1 220px; max-width: 420px; padding: 8px 10px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.nf-search button { padding: 8px 16px; font: inherit; color: var(--on-accent); background: var(--accent); border: 0; border-radius: var(--radius); cursor: pointer; }
