/* Wiki: own full-width page with the website's header artwork and colours (css/all.css).
   Floats and tables only (old in-game IE), wide tables scroll in .wiki-scroll on narrow screens. */
html, body { margin: 0; padding: 0; }
body.wiki-page { background: #120403 url(../../img/container-bg.jpg) repeat-y 50% 0; color: #160400; font: 12px/16px Arial, Helvetica, sans-serif; }
.wiki-page img { border: 0; }
.wiki-page a { color: #7b1300; }
.wiki-page a:hover { color: #b02000; }
.wiki-page form { margin: 0; padding: 0; }

.wiki-header { position: relative; height: 150px; background: #120403 url(../../img/header-bg.jpg) no-repeat 50% 0; text-align: center; }
.wiki-logo { display: block; width: 199px; height: 60px; margin: 0 auto; }
.wiki-logo img { display: block; }
.wiki-back { display: inline-block; margin-top: 52px; padding: 4px 14px; background: #3c0b07; background: rgba(40, 6, 3, 0.85); border: 1px solid #c89b3c; color: #ffe9b0 !important; font-weight: bold; text-decoration: none; zoom: 1; }
.wiki-back:hover { background: #7b1300; }

.wiki-inner { max-width: 1400px; margin: 0 auto; padding: 0 12px; }
.wiki-navbar { background: #5e140b; border-top: 2px solid #c89b3c; border-bottom: 2px solid #c89b3c; }
.wiki-navbar .wiki-inner { overflow: hidden; zoom: 1; }
.wiki-menu { float: left; margin: 0; padding: 0; list-style: none; }
.wiki-menu li { float: left; }
.wiki-menu a { display: block; padding: 8px 12px; color: #ffe9b0 !important; font-weight: bold; text-decoration: none; }
.wiki-menu a:hover, .wiki-menu li.active a { background: #8d0f0a; }
.wiki-tools { float: right; padding: 5px 0; }
.wiki-search { float: left; }
.wiki-search input[type=text], .wiki-filter input[type=text] { width: 200px; padding: 2px 4px; border: 1px solid #b08d55; background: #fffaf0; font-size: 12px; }
.wiki-filter select { padding: 1px; border: 1px solid #b08d55; background: #fffaf0; font-size: 12px; }
.wiki-button { padding: 2px 10px; border: 1px solid #c89b3c; background: #8d0f0a; color: #fff; font-size: 12px; font-weight: bold; cursor: pointer; }
.wiki-lang { float: left; margin-left: 12px; line-height: 24px; color: #ffe9b0; }
.wiki-lang a { color: #ffe9b0 !important; }
.wiki-lang a.active { font-weight: bold; text-decoration: none; }

.wiki-box { margin: 12px 0; padding: 12px 16px 14px; background: #f6ecd2; border: 1px solid #c9a86a; }
.wiki-box p { margin: 0 0 8px; }
.wiki-h2 { margin: 0 0 10px; padding: 6px 10px; background: #7b1300; color: #ffe9b0; font-size: 15px; font-weight: bold; line-height: 20px; }
.wiki-h2 span, .wiki-h3 span { font-weight: normal; }
.wiki-h3 { clear: both; margin: 14px 0 6px; padding: 0 0 2px; border-bottom: 2px solid #7b1300; color: #7b1300; font-size: 14px; font-weight: bold; }
.wiki-h4 { margin: 10px 0 4px; color: #5e140b; font-size: 12px; font-weight: bold; }
.wiki-scroll { width: 100%; overflow-x: auto; margin: 0 0 6px; }
.wiki-table { width: 100%; border-collapse: collapse; background: #fffaf0; }
.wiki-table th { padding: 4px 6px; background: #e7d3a6; border: 1px solid #cdb07a; text-align: left; font-size: 11px; color: #4a1a06; white-space: nowrap; }
.wiki-table td { padding: 3px 6px; border: 1px solid #e1cb9c; vertical-align: middle; }
.wiki-table tr.current td { background: #fff1c2; font-weight: bold; }
.wiki-table .num { text-align: right; white-space: nowrap; }
.wiki-table .icon { width: 34px; padding: 1px 2px; text-align: center; }
.wiki-table .small { font-size: 11px; }
.wiki-table th img { vertical-align: middle; }
.wiki-table td.na { color: #b9a47a; text-align: center; }
.wiki-icon { display: inline; vertical-align: middle; }
.wiki-facts { margin: 0 0 6px; border-collapse: collapse; }
.wiki-facts th { padding: 2px 14px 2px 0; text-align: left; vertical-align: top; color: #5e140b; white-space: nowrap; }
.wiki-facts td { padding: 2px 0; }
.wiki-item-head { overflow: hidden; zoom: 1; margin-bottom: 4px; }
.wiki-pic { float: left; width: 72px; height: 104px; line-height: 104px; margin: 0 16px 4px 0; text-align: center; background: #e8d2a2; border: 2px solid #c89b3c; }
.wiki-pic img { display: inline; vertical-align: middle; }
.wiki-item-head .wiki-facts { float: left; }
.wiki-note { color: #6b4a1a; font-size: 11px; }
.wiki-legend { margin: 0 0 8px; padding: 0; list-style: none; color: #6b4a1a; font-size: 11px; }
.wiki-legend li { margin: 0 0 2px; }
.wiki-legend b { color: #5e140b; }
.wiki-kind { border-bottom: 1px dotted #6b4a1a; cursor: help; }
.wiki-tabs { margin: 0 0 8px; }
.wiki-tabs a { display: inline-block; margin: 0 4px 4px 0; padding: 3px 12px; border: 1px solid #c9a86a; background: #fffaf0; text-decoration: none; zoom: 1; }
.wiki-tabs a.active { background: #7b1300; color: #ffe9b0; border-color: #5e140b; }
.wiki-jump { font-size: 11px; }
.wiki-jump a { margin-right: 8px; }
.wiki-home li { margin: 0 0 6px 18px; list-style: square; }
.wiki-home span { color: #6b4a1a; }
.wiki-list { margin: 0 0 8px; padding: 0; }
.wiki-list li { margin: 0 0 3px 18px; list-style: square; }
.wiki-pager { text-align: center; }
.wiki-foot { clear: both; margin: 12px 0 0; padding-top: 5px; border-top: 1px solid #d9c08e; color: #8a6a3a; font-size: 10px; }
.wiki-footer { padding: 10px 0 20px; text-align: center; color: #c9a86a; font-size: 11px; }
@media (max-width: 760px) {
	.wiki-menu, .wiki-tools { float: none; }
	.wiki-menu li { float: left; }
	.wiki-menu a { padding: 6px 8px; }
	.wiki-tools { clear: both; overflow: hidden; }
	.wiki-search input[type=text] { width: 140px; }
	.wiki-header { height: 120px; background-size: auto 120px; }
	.wiki-back { margin-top: 30px; }
	.wiki-item-head .wiki-facts { float: none; }
}
.wiki-next { margin: 4px 0 8px; padding: 4px 8px; background: #fff1c2; border-left: 3px solid #c89b3c; }
/* upgrade materials on one line: small icons, no wrapping */
.wiki-table td.mats { white-space: nowrap; }
.wiki-table td.mats .mat { margin-right: 10px; }
.wiki-table td.mats img.wiki-icon { width: auto; height: 16px; }
/* monster stats in columns (1 column on narrow screens) */
.wiki-stats { overflow: hidden; zoom: 1; margin: 0 0 6px; }
.wiki-stats .wiki-facts { float: left; width: 32%; margin-right: 1%; }
@media (max-width: 760px) { .wiki-stats .wiki-facts { float: none; width: auto; } }
.wiki-toggle { display: inline-block; width: 14px; text-align: center; border: 1px solid #c9a86a; background: #fff1c2; color: #7b1300 !important; text-decoration: none; font-weight: bold; line-height: 13px; }
.wiki-table tr.wiki-detail td { background: #fbf3df; }
.wiki-steps { margin: 4px 0 2px 22px; padding: 0; }
.wiki-steps li { margin: 0 0 3px; }
.wiki-goto { color: #6b4a1a; font-size: 11px; }
.wiki-refine { font-size: 11px; white-space: nowrap; }
.wiki-refine .mat { margin-right: 8px; }
.wiki-refine img.wiki-icon { height: 16px; width: auto; }
/* quick filters of the monster list */
.wiki-filters p { margin: 0 0 4px; line-height: 22px; }
.wiki-filters a { display: inline-block; margin: 0 2px 2px 0; padding: 0 7px; border: 1px solid #c9a86a; background: #fffaf0; text-decoration: none; font-size: 11px; line-height: 18px; zoom: 1; }
.wiki-filters a.active { background: #7b1300; color: #ffe9b0 !important; border-color: #5e140b; }
/* the resistance table: fixed columns from the left */
.wiki-table.wiki-resist { width: auto; }
.wiki-table.wiki-resist th, .wiki-table.wiki-resist td { width: 90px; text-align: center; }
.wiki-rewards { width: auto; min-width: 360px; }
.wiki-subtabs a { font-size: 11px; padding: 2px 9px; }
/* map pictures with spawn markers (wiki_map_html): the picture keeps its ratio, dots in % of the map */
.wiki-maps { overflow: hidden; zoom: 1; margin: 0 0 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.wiki-maps.wiki-maps-many { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.wiki-map { float: left; width: 320px; max-width: 100%; margin: 0 12px 12px 0; }
@supports (display: grid) { .wiki-maps .wiki-map { float: none; width: auto; margin: 0; min-width: 0; } }
.wiki-map-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wiki-map-pic { cursor: zoom-in; }
/* a clicked map: big in the middle of the screen, click again to close */
.wiki-map.wiki-map-zoom { position: fixed; z-index: 60; left: 50%; top: 50%; width: 68vmin !important; max-width: 92vw; margin: 0; padding: 6px; background: #f6ecd2; border: 2px solid #c89b3c;
	-webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(18, 4, 3, 0.7); }
.wiki-map.wiki-map-zoom .wiki-map-pic { cursor: zoom-out; }
.wiki-map.wiki-map-zoom .wiki-map-pic i { width: 5px; height: 5px; margin: -3px 0 0 -3px; }
.wiki-map b { color: #5e140b; }
.wiki-map span { color: #6b4a1a; font-size: 11px; }
.wiki-map-pic { position: relative; height: 0; margin-top: 3px; border: 2px solid #c89b3c; background: #2a1d10; overflow: hidden; }
.wiki-map-pic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.wiki-map-pic i { position: absolute; width: 3px; height: 3px; margin: -2px 0 0 -2px; background: #ff2a12; border: 1px solid #1a0a00; outline: 1px solid rgba(255, 244, 192, 0.7); border-radius: 3px; }
.wiki-map-pic b.area { position: absolute; display: block; background: #ff2a12; background: rgba(255, 42, 18, 0.28); border: 1px solid #ff2a12; border-color: rgba(255, 230, 160, 0.9); }
.wiki-map-legend { color: #6b4a1a; font-size: 11px; }
.wiki-map-legend i { display: inline-block; width: 3px; height: 3px; background: #ff2a12; border: 1px solid #1a0a00; border-radius: 3px; vertical-align: middle; }
.wiki-map-legend b { display: inline-block; width: 14px; height: 9px; background: rgba(255, 42, 18, 0.28); border: 1px solid #ff2a12; vertical-align: middle; }
.wiki-map-none { float: none; width: auto; }
/* mission rewards: three tables side by side (one column on narrow screens) */
.wiki-cols3 { overflow: hidden; zoom: 1; }
.wiki-cols3 .wiki-col { float: left; width: 32%; margin-right: 1.33%; }
.wiki-cols3 .wiki-rewards { width: 100%; min-width: 0; }
@media (max-width: 760px) { .wiki-cols3 .wiki-col { float: none; width: auto; margin-right: 0; } .wiki-map { float: none; } }
.wiki-bonus { text-decoration: none; border-bottom: 1px dotted #7b1300; }
.wiki-facts code, .wiki-table code { font-size: 11px; }
/* two columns (one on narrow screens): the average / skill damage charts */
.wiki-cols2 { overflow: hidden; zoom: 1; }
.wiki-cols2 .wiki-col { float: left; width: 49%; margin-right: 1%; }
.wiki-cols2 .wiki-rewards { width: 100%; min-width: 0; margin-bottom: 6px; }
.wiki-chart { display: block; max-width: 640px; background: #fffaf0; border: 1px solid #e1cb9c; }
@media (max-width: 760px) { .wiki-cols2 .wiki-col { float: none; width: auto; margin-right: 0; } }
/* "your level" input of the item page */
/* the "your level" box: sticky at the top of the page on narrow screens, a small fixed panel at the side on wide ones */
.wiki-levelbox { position: -webkit-sticky; position: sticky; top: 0; z-index: 20; margin: 0 0 8px; padding: 5px 8px; background: #fff1c2; border: 1px solid #c89b3c; border-left-width: 3px; box-shadow: 0 2px 4px rgba(60, 20, 0, 0.25); }
.wiki-levelbox label { font-weight: bold; color: #5e140b; }
.wiki-lvrow { display: inline-flex; align-items: center; margin-right: 14px; }
.wiki-lvrow label { margin-right: 8px; }
.wiki-levelbox input, .wiki-levelbox select { box-sizing: border-box; height: 22px; margin: 0; padding: 1px 4px; border: 1px solid #b08d55; border-radius: 0; background: #fffaf0; color: #160400; font: bold 13px Arial, Helvetica, sans-serif; }
.wiki-levelbox input { width: 56px; }
.wiki-levelbox select { width: 112px; }
.wiki-levelbox small { display: inline-block; margin-left: 8px; color: #6b4a1a; font-size: 10px; }
.wiki-levelbox abbr { display: inline-block; width: 13px; border: 1px solid #b08d55; border-radius: 7px; text-align: center; text-decoration: none; cursor: help; background: #fffaf0; }
@media (max-width: 760px) {
	/* phones: the labels in one column, so the level and class fields line up */
	.wiki-levelbox { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 8px; row-gap: 4px; }
	.wiki-lvrow { display: contents; }
	.wiki-lvrow label { margin-right: 0; }
	.wiki-levelbox small { grid-column: 1 / -1; margin-left: 0; }
	.wiki-levelbox { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 16px); margin: 0; box-sizing: border-box; z-index: 50; }
	body:has(.wiki-levelbox) { padding-top: 84px; }	/* the page starts below the pinned box */
}
/* the level / class box is pinned: top right of the window, top centre on phones (below) */
@media (min-width: 761px) {
	.wiki-levelbox { position: fixed; top: 8px; right: 8px; width: 196px; margin: 0; padding: 6px 8px; z-index: 50; }
	.wiki-lvrow { display: flex; justify-content: space-between; margin: 0 0 5px; }
	.wiki-levelbox input, .wiki-levelbox select { width: 104px; }
	.wiki-levelbox small { display: block; margin: 4px 0 0; }
}
/* a value recomputed for the chosen level */
.wiki-lv { background: #e3f0c8 !important; color: #1f4a00; }
.wiki-lvtip abbr { display: inline-block; width: 13px; line-height: 13px; border: 1px solid #4d7a1a; border-radius: 7px; background: #e3f0c8; color: #1f4a00; font-size: 10px; font-weight: bold; text-align: center; text-decoration: none; cursor: help; }
.wiki-cmd { margin: 0 0 6px; padding: 6px 8px; background: #2a1d10; color: #ffe9b0; font: 12px/16px Consolas, "Courier New", monospace; overflow-x: auto; }
/* spawn areas: one union cut to the walkable ground (canvas), half transparent */
.wiki-map-pic canvas.wiki-areas { display: none; position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.45; }
/* a chance below 0.01 %: the exact value on hover and on click */
.wiki-tiny { border-bottom: 1px dotted #6b4a1a; cursor: pointer; }
.wiki-map-coords { margin-top: 2px; color: #6b4a1a; font-size: 11px; }
/* event page: the game master part, collapsed */
.wiki-gm { clear: both; margin: 14px 0 6px; padding: 4px 8px; border: 1px solid #c9a86a; background: #fffaf0; }
.wiki-gm summary { cursor: pointer; font-weight: bold; color: #7b1300; }
/* collapsible sections (wiki_sections_script) */
.wiki-fold { display: inline-block; width: 12px; margin-right: 4px; font-size: 11px; color: #9b6a2a; }
/* search / filter forms above the lists: room before the content */
.wiki-box form.wiki-filter, .wiki-box .wiki-filters { margin-bottom: 12px; }
/* the map page: the area tool */
.wiki-area-map { max-width: 720px; margin: 0 0 8px; }
.wiki-area-map .wiki-map-pic { cursor: crosshair; }
.wiki-area-circle { position: absolute; display: block; border: 2px solid #ffe14a; border-radius: 50%; background: rgba(255, 225, 74, 0.12); box-sizing: border-box; pointer-events: none; }
.wiki-map-pic i.npc { background: #3aa0ff; }
.wiki-map-link { position: relative; height: 0; }
.wiki-pick-yes { color: #2d6a00; font-weight: bold; }
.wiki-pick-no { color: #9b6a2a; }
.wiki-pick-maybe { color: #8a5a00; }
.wiki-sim { display: inline-block; text-decoration: none; color: #fff !important; }
/* NPCs on the maps: small green squares like on the in-game minimap */
.wiki-map-pic i.npc, .wiki-map-npc .wiki-map-pic i { width: 4px; height: 4px; margin: -3px 0 0 -3px; background: #34d23a; border: 1px solid #0b3a00; border-radius: 0; outline: none; }
/* map page: look mode (normal cursor, NPC squares as links), edit mode with a crosshair */
.wiki-area-map .wiki-map-pic { cursor: default; }
.wiki-area-map .wiki-map-pic.wiki-edit { cursor: crosshair; }
.wiki-map-pic a.npc { position: absolute; display: block; width: 7px; height: 7px; margin: -4px 0 0 -4px; background: #34d23a; border: 1px solid #082800; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }
.wiki-map-pic a.npc:hover { background: #a6ff6a; }
.wiki-sim.active { background: #3a6a10; }
/* map page picture: a bit bigger than the in-game atlas window by default, large on demand */
.wiki-area-map { max-width: 380px; }
.wiki-area-map.wiki-area-big { max-width: 1000px; }
.wiki-area-size { margin: 0 0 4px; font-size: 11px; }
/* numbers of the spawn areas on the map cards */
.wiki-area-num { position: absolute; transform: translate(-50%, -50%); padding: 0 3px; background: rgba(20, 6, 2, 0.75); color: #ffe9b0; font: bold 10px/13px Arial, sans-serif; border-radius: 2px; pointer-events: none; }

/* map page NPC list: several columns, one entry per NPC */
.wiki-npc-cols { columns: 4 220px; column-gap: 24px; }
.wiki-npc-cols li { break-inside: avoid; }

/* map page drops: one row per item, a click shows the monsters */
.wiki-drop-more { cursor: pointer; }
.wiki-drop-more:hover td { background: rgba(138, 109, 59, .08); }
.wiki-drop-sub td { font-size: 11px; background: rgba(0, 0, 0, .03); }
.wiki-drop-sub td:nth-child(2) { padding-left: 18px; }

/* map page: the monster / NPC highlighted from its map card */
.wiki-map-pic b.wiki-hl-area { position: absolute; display: block; background: rgba(255, 220, 0, .35); border: 1px solid #ffd800; box-sizing: border-box; }
.wiki-map-pic i.wiki-hl { position: absolute; width: 7px; height: 7px; margin: -4px 0 0 -4px; background: #ffd800; border: 1px solid #3a2a00; border-radius: 4px; }
.wiki-map-pic a.npc.wiki-hl-npc { width: 11px; height: 11px; margin: -6px 0 0 -6px; background: #ffd800; border-color: #3a2a00; z-index: 2; }
tr.wiki-hl-row td { background: #fff3b0; }
.wiki-cls-hide { display: none !important; }
/* map page: the chance / per hour without the bonus filter of the hunter */
.wiki-nofilter { margin-right: 6px; color: #6b4a1a; font-size: 10px; font-weight: normal; white-space: nowrap; }
.wiki-hour, td.wiki-chance { white-space: nowrap; }
/* item lines (+0 ... +9) in one row, a click shows the single upgrade levels (wiki_grouped_rows) */
.wiki-grp-main { cursor: pointer; }
.wiki-grp-main:hover td { background: rgba(138, 109, 59, .08); }
.wiki-grp-sub td { font-size: 11px; background: rgba(0, 0, 0, .03); }
.wiki-grp-sub td:first-child { padding-left: 18px; }
.wiki-line-member td:first-child { padding-left: 18px; }
.wiki-line-member td { background: rgba(0, 0, 0, .02); }
/* a class chosen in the level box: the mark at the headings of the drop lists it filters */
.wiki-clsflag { display: inline-block; margin-left: 10px; padding: 1px 7px; border: 1px solid #c89b3c; border-left-width: 3px; background: #fff1c2; color: #5e140b; font-size: 11px; font-weight: bold; vertical-align: 2px; cursor: help; }
.wiki-grp-pcts { white-space: nowrap; cursor: help; }
.wiki-grp-list { margin-right: 6px; color: #6b4a1a; font-size: 10px; font-weight: normal; }
