/**
 * @title Atomicity Wiki
 * @description Rides on hiscores.css (the wall, pillars, stone panels and scroll); this adds the page text.
 **/

/* the whole window's width, the side panels out to the masonry columns at its edges (the pillars: 84px, a
 * little gap inside them, where the background's brickwork changes); the scroll gets all the room between */
.wk #hs-wrap { max-width: none; padding-left: 98px; padding-right: 98px; }
@media (max-width: 1440px) {
	.wk .hs-pillar { display: none; }   /* (no room for them beside it) */
	.wk #hs-wrap { padding-left: 16px; padding-right: 16px; }
}

/* the scroll: no page arrows here, so the text can use the whole width */
.wk #hs-main { padding: 26px max(66px, 9%) 30px max(64px, 8.7%); font-size: 15px; line-height: 1.45; }   /* (clear of the scroll's torn edges, which widen with it) */
.wk #hs-main::after { content: ''; display: block; clear: both; }
.wk-body p { margin: 0 0 10px; }
.wk-body h2 {
	clear: right;
	margin: 18px 0 8px;
	padding-bottom: 2px;
	font: 22px 'RuneScape UF', Georgia, serif;
	color: #2a1606;
	border-bottom: 1px solid rgba(60, 35, 10, .45);
	text-shadow: 0 1px 0 rgba(255, 240, 200, .35);
}
.wk-body h3 { margin: 14px 0 6px; font: bold 16px Arial, Helvetica, sans-serif; color: #2a1606; }
.wk-body h4 { margin: 12px 0 4px; font: bold 15px Arial, Helvetica, sans-serif; color: #3a2410; }
.wk-body ul, .wk-body ol { margin: 0 0 10px; padding-left: 26px; }
.wk-body li { margin: 2px 0; }
.wk-body hr { border: 0; border-top: 1px solid rgba(60, 35, 10, .45); margin: 14px 0; }
.wk-body b { color: #2a1606; }
.wk-body .hs-ico { width: 26px; height: 26px; margin: -6px 1px -7px 0; vertical-align: middle; }
#hs-main a { text-decoration: underline; text-decoration-color: rgba(60, 35, 10, .45); }
#hs-main a:hover { text-decoration-color: currentColor; }
#hs-main a.wk-new { color: #8a1a00; }
#hs-main a.wk-ext::after { content: ' \2197'; font-size: 11px; }
.wk-body .hs-title { margin-bottom: 12px; }

/* the box of facts on the right of a page */
.wk-infobox {
	float: right;
	clear: right;
	width: 250px;
	margin: 0 0 12px 18px;
	border-collapse: collapse;
	font-size: 13px;
	background: rgba(90, 55, 15, .12);
	box-shadow: 0 0 0 1px rgba(60, 35, 10, .55), inset 0 0 12px rgba(60, 35, 10, .18);
}
.wk-infobox caption {
	padding: 5px 4px;
	font: 18px 'RuneScape UF', Georgia, serif;
	color: #e8c872;
	text-shadow: 1px 1px 0 #000;
	background: linear-gradient(#4b4436, #26211a);
	box-shadow: 0 0 0 1px #000;
}
.wk-infobox th, .wk-infobox td { padding: 4px 6px; text-align: left; vertical-align: top; border-top: 1px solid rgba(60, 35, 10, .3); }
.wk-infobox th { width: 38%; color: #2a1606; }
.wk-infobox td.wk-infobox-img { text-align: center; padding: 10px 6px; }
/* the Quest point cape's chart, in its Requirements: each skill's icon and the level, in a grid (wiki.inc's {{questskills}}) */
.wk-qskills {
	margin: 6px 0 14px;
	border-collapse: collapse;
	background: rgba(90, 55, 15, .12);
	box-shadow: 0 0 0 1px rgba(60, 35, 10, .55), inset 0 0 12px rgba(60, 35, 10, .18);
}
.wk-qskills caption {
	padding: 5px 10px;
	font: 18px 'RuneScape UF', Georgia, serif;
	color: #e8c872;
	text-shadow: 1px 1px 0 #000;
	background: linear-gradient(#4b4436, #26211a);
	box-shadow: 0 0 0 1px #000;
}
.wk-qskill { padding: 5px 10px 5px 7px; border: 1px solid rgba(60, 35, 10, .45); cursor: help; white-space: nowrap; }
.wk-qskill-empty { cursor: default; }
.wk-qskill .hs-ico, .wk-qskill-combat { margin: 0 5px 0 0; vertical-align: middle; }
.wk-qskill-combat { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; }
.wk-qskill-lv { font: 17px 'RuneScape UF', Georgia, serif; color: #2a1606; vertical-align: middle; }
.wk-qskill-name { font-size: 11px; color: #2a1606; }
/* the game's own little pictures in text and headings ({{icon|ui:...}}, {{icon|item:...}}) */
/* (ours) an item's picture before a link to it; a drop's chance, coloured by how rare it is (as the Old School wiki's) */
.wk-ilink { white-space: nowrap; }
.wk-iicon { width: 24px; height: 22px; object-fit: contain; vertical-align: middle; margin: -4px 3px -2px 0; image-rendering: pixelated; }
.wk-table .wk-iicon { width: 32px; height: 28px; margin: -4px 4px -4px 0; }
.wk-rar { color: #1a1a1a; text-align: center; font-variant-numeric: tabular-nums; }
span.wk-rar { display: inline-block; padding: 0 5px; border: 1px solid rgba(60, 35, 10, .4); font-size: 13px; line-height: 17px; }
.wk-table td.wk-rar-always, .wk-rar-always { background: #afeeee; }
.wk-table td.wk-rar-common, .wk-rar-common { background: #56e156; }
.wk-table td.wk-rar-uncommon, .wk-rar-uncommon { background: #ffed4c; }
.wk-table td.wk-rar-rare, .wk-rar-rare { background: #ff863c; }
.wk-table td.wk-rar-veryrare, .wk-rar-veryrare { background: #ff6262; }
.wk-table td.wk-rar-varies, .wk-rar-varies { background: #d9c2f0; }
.wk-uicon { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin: -3px 4px -1px 0; image-rendering: pixelated; }
h2 .wk-uicon, h3 .wk-uicon, h2 .hs-ico, h3 .hs-ico { margin-right: 6px; }
/* a skill page's big icon ({{skillicon|...}}: the hiscores' skills.png, three times the size) */
.wk-skillbig { display: inline-block; width: 78px; height: 78px; background: url('../images/hiscores/skills.png?v=30') no-repeat; background-size: 2340px 78px; image-rendering: pixelated; }
/* a skill's level-up jingles ({{levelup}}) */
.wk-jingles { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 6px 0 12px; }
.wk-jingle { display: flex; flex-direction: column; gap: 4px; }
.wk-jingle-t { display: flex; align-items: center; gap: 4px; font-weight: bold; color: #2a1606; }
.wk-jingle audio { width: 260px; max-width: 100%; height: 34px; }
/* a skill page's jingles under its infobox, lined up with it */
.wk-jingles-side { float: right; clear: right; width: 250px; margin: -2px 0 12px 18px; flex-direction: column; gap: 8px; font-size: 13px; }
.wk-jingles-side .wk-jingle audio { width: 100%; height: 30px; }
/* "Wiki Home"'s icon (the Home Teleport's, from the game) */
.wk-homeico { width: 22px; height: 22px; margin: -2px 4px -2px 2px; vertical-align: middle; image-rendering: pixelated; }
/* when the page last changed: the bottom of the scroll */
.wk-changed { clear: both; margin: 26px 0 4px; padding-top: 8px; border-top: 1px solid rgba(60, 35, 10, .3); font-size: 12px; color: #5a4020; font-style: italic; }
.wk-npcimg { max-width: 100%; max-height: 220px; image-rendering: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.wk-itemimg { image-rendering: pixelated; image-rendering: crisp-edges; vertical-align: middle; }

/* tables */
.wk-table { border-collapse: collapse; margin: 4px 0 12px; font-size: 14px; }
.wk-table caption { padding: 0 0 4px; font-weight: bold; text-align: left; color: #2a1606; }
.wk-table th, .wk-table td { padding: 3px 8px; border: 1px solid rgba(60, 35, 10, .4); vertical-align: middle; }
.wk-table th { text-align: left; background: rgba(60, 35, 10, .16); color: #2a1606; }
.wk-table td.wk-num, .wk-table th.wk-num { text-align: right; font-variant-numeric: tabular-nums; }
.wk-table tbody tr:hover td { background: rgba(90, 55, 15, .12); }

/* contents, notes, lists of pages */
.wk-toc {
	display: inline-block;
	min-width: 200px;
	margin: 2px 0 12px;
	padding: 6px 14px 4px;
	font-size: 14px;
	background: rgba(90, 55, 15, .1);
	box-shadow: 0 0 0 1px rgba(60, 35, 10, .45);
}
.wk-toc b { display: block; text-align: center; font: 17px 'RuneScape UF', Georgia, serif; }
.wk-toc ol { margin: 4px 0; padding-left: 20px; }
.wk-toc ol ol { margin: 0; }
.wk-note {
	margin: 0 0 10px;
	padding: 6px 10px;
	font-size: 14px;
	background: rgba(90, 55, 15, .12);
	border-left: 3px solid #6a4a1a;
}
.wk-pages { list-style: none; padding-left: 4px !important; }
.wk-pages li { margin: 3px 0; }
.wk-cols { columns: 2 200px; }
.wk-count { color: #4a3418; font-size: 13px; }
.wk-results { list-style: none; padding: 0 !important; }
.wk-results li { margin: 0 0 10px; }
.wk-results a { font-weight: bold; }
.wk-results span { display: block; font-size: 13px; color: #3a2410; }
.wk-results span b { background: rgba(224, 168, 48, .35); }
.wk-catlinks {
	clear: both;
	margin: 18px 0 0 !important;
	padding: 4px 8px;
	font-size: 13px;
	background: rgba(90, 55, 15, .1);
	box-shadow: 0 0 0 1px rgba(60, 35, 10, .35);
}

/* the page list on the left */
.wk-nav li.wk-cat a {
	height: 20px;
	padding-left: 8px;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #e0b850;
}
.wk-nav li.wk-cat.hs-on a { color: #f0d890; }
.wk-nav li.hs-sep:first-of-type { margin-top: 4px; }
/* (a page name too long for one line wraps onto two, the row growing to fit, its icon centred) */
.wk #hs-tables li:not(.wk-cat):not(.hs-sep) a { height: auto; min-height: 23px; padding-top: 2px; padding-bottom: 2px; line-height: 1.15; box-sizing: border-box; }

/* the right-hand buttons stack */
.wk-links .hs-btn { box-sizing: border-box; width: 100%; text-align: center; }
.wk-links p { margin-bottom: 4px; }

@media (max-width: 900px) {
	.wk #hs-main { padding: 18px 40px 22px 38px; }
	.wk-infobox { float: none; width: 100%; margin: 0 0 12px; }
	.wk-jingles-side { float: none; width: 100%; margin: 0 0 12px; }
	.wk-table { display: block; overflow-x: auto; }
	.wk-nav { grid-template-columns: 1fr !important; }
}

/* Sortable tables ("{| sortable"): a small up/down arrow pair after each header; the lit half shows the order. */
.wk-sortable th { white-space: nowrap; }
.wk-sort { display: inline-block; vertical-align: middle; margin: 0 0 0 6px; padding: 2px 3px; border: 0; background: none; cursor: pointer; line-height: 0; }
.wk-sort i { display: block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: .3; }
.wk-sort i:first-child { border-bottom: 5px solid #2a1606; margin-bottom: 2px; }
.wk-sort i:last-child { border-top: 5px solid #2a1606; }
.wk-sort:hover i { opacity: .55; }
.wk-sort.wk-asc i:first-child, .wk-sort.wk-desc i:last-child { opacity: 1; }
.wk-sort:focus-visible { outline: 1px dotted #2a1606; }

/* Area pages (src/areas.inc): the map, drawn from the game's world map regions, with icons, NPCs and names */
.ar-wrap { clear: both; margin: 10px 0 16px; max-width: 100%; overflow-x: auto; }
.ar-map { position: relative; overflow: hidden; background: #485c89; border: 2px solid #3c2810; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.ar-map.ar-under { background: #000; }
.ar-map img { max-width: none; }
.ar-reg { position: absolute; display: block; }
.ar-edge { position: absolute; box-sizing: border-box; border: 2px dashed rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); pointer-events: none; }
.ar-round { border-radius: 50%; }
.ar-dot { position: absolute; width: 5px; height: 5px; margin: -3px 0 0 -3px; background: #ff0; border: 1px solid #000; border-radius: 50%; }
.ar-dot.ar-mon { background: #e00; }
.ar-dot:hover { transform: scale(1.8); z-index: 3; }
.ar-icon { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.ar-map a.ar-label { position: absolute; transform: translate(-50%, -50%); z-index: 4; color: #ff0 !important; font: bold 12px/1 sans-serif; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; white-space: nowrap; text-decoration: none !important; }
.ar-map a.ar-label:hover { color: #fff !important; }
.ar-caption { margin-top: 5px; font-size: 12px; color: #5a3d1e; }
.ar-key { display: inline-block; width: 7px; height: 7px; border: 1px solid #000; border-radius: 50%; vertical-align: middle; background: #ff0; }
.ar-key-m { background: #e00; }
.ar-this { position: absolute; width: 9px; height: 9px; margin: -6px 0 0 -6px; background: #0ff; border: 2px solid #000; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 255, 255, .45); z-index: 5; }
.ar-key-t { background: #0ff; width: 9px; height: 9px; }
.wk-mapicon { width: 15px; height: 15px; vertical-align: -3px; }
.ar-tree { margin: 2px 0 2px 1.1em; padding: 0; }
.ar-tree li { margin: 1px 0; }

/* {{changes|...}}: a project's updates, folded away until opened (src/changes.inc) */
.wk-changes {
	margin: 0 0 10px;
	background: rgba(90, 55, 15, .1);
	box-shadow: 0 0 0 1px rgba(60, 35, 10, .45);
}
.wk-changes > summary {
	padding: 5px 10px;
	cursor: pointer;
	font: 18px 'RuneScape UF', Georgia, serif;
	color: #2a1606;
	list-style-position: inside;
}
.wk-changes > summary:hover { background: rgba(90, 55, 15, .12); }
.wk-changes[open] > summary { border-bottom: 1px solid rgba(60, 35, 10, .35); }
.wk-changes-n { font: 13px Arial, Helvetica, sans-serif; color: #5a3c1c; }
.wk-changes-list { padding: 2px 14px 6px; font-size: 14px; }
.wk-changes-list h4 { margin: 10px 0 2px; font-size: 14px; }
.wk-changes-list ul { margin: 0 0 4px; }
.wk-changes > .hs-empty { padding: 6px 12px; margin: 0; }
.wk-small { font-size: 13px; }

/* ---- for admins: the buttons on a page, the staff-only parts (src/wiki.inc) ---- */
.wk-tools { float: right; display: flex; gap: 6px; align-items: center; margin: -12px -30px 6px 12px; }
#hs-main a.wk-tool {
	padding: 2px 9px;
	font: bold 12px Arial, Helvetica, sans-serif;
	color: #e8c872;
	text-decoration: none;
	text-shadow: 1px 1px 0 #000;
	background: linear-gradient(#4b4436, #26211a);
	border: 1px solid #000;
	box-shadow: inset 0 1px 0 rgba(255, 240, 200, .15), 0 1px 3px rgba(0, 0, 0, .6);
}
#hs-main a.wk-tool:hover { color: #ffd880; background: linear-gradient(#5c5442, #2e281f); }
.wk-edited { padding: 1px 6px; font: 11px Arial, Helvetica, sans-serif; color: #5a3a10; background: rgba(224, 168, 48, .2); border: 1px dashed rgba(90, 58, 16, .6); cursor: help; }
.wk-staffnote, .we-note { clear: right; margin: 0 0 10px; padding: 6px 10px; font-size: 14px; background: rgba(224, 168, 48, .22); border-left: 3px solid #a06a10; }
.wk-staff { position: relative; margin: 8px 0 10px; padding: 18px 10px 2px; background: rgba(122, 12, 6, .05); border: 1px dashed rgba(122, 12, 6, .5); }
.wk-staff::before { content: 'Staff only'; position: absolute; top: 3px; left: 9px; font: bold 10px Arial, Helvetica, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #7a0c06; }
@media (max-width: 900px) { .wk-tools { float: none; justify-content: flex-end; margin: -6px -10px 8px 0; } }

/* ---- the editor (src/wikiedit.inc, wiki-edit.js) ---- */
.we .hs-title a { text-decoration: none; }
.we .hs-err { margin: 8px 0; }
.we-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; margin: 4px 0 12px; padding: 8px 10px; background: rgba(90, 55, 15, .1); box-shadow: 0 0 0 1px rgba(60, 35, 10, .35); }
.we-meta label, .we-summary { display: flex; flex-direction: column; gap: 3px; font: bold 12px Arial, Helvetica, sans-serif; color: #2a1606; }
.we-meta input[type=text] { width: 170px; height: 26px; font-size: 14px; }
.we-meta input[type=number] { width: 72px; height: 26px; font-size: 14px; }
.we-meta select {
	height: 26px;
	padding: 0 4px;
	background: #0c0a07;
	color: #eadfc4;
	border: 1px solid #000;
	border-radius: 0;
	box-shadow: inset 0 1px 4px #000, 0 0 0 1px #4a4134;
	font: 14px Arial, Helvetica, sans-serif;
}
.we-meta select:focus { outline: none; box-shadow: inset 0 1px 4px #000, 0 0 0 1px #b08a38; }
.we-meta label.we-check { flex-direction: row; align-items: center; gap: 6px; height: 26px; cursor: pointer; }
.we-check input { width: 15px; height: 15px; margin: 0; accent-color: #8a6a20; }

.we-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 4px; background: linear-gradient(#3b352a, #1f1b15); border: 1px solid #000; border-bottom: 0; }
.we-bar b, .we-bar i { color: inherit; }
.we-bar button { padding: 2px 8px; font-size: 12px; box-shadow: inset 0 1px 0 rgba(255, 240, 200, .12); }
.we-bar button[aria-expanded=true] { background: linear-gradient(#26211a, #3b352a); color: #ffd880; }
.we-sep { align-self: stretch; width: 1px; margin: 2px 3px; background: #000; box-shadow: 1px 0 0 rgba(150, 130, 95, .25); }
.we-fill { flex: 1; }
textarea.we-text {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 90px;
	padding: 8px 10px;
	resize: vertical;
	background: #0c0a07;
	color: #eadfc4;
	border: 1px solid #000;
	border-radius: 0;
	box-shadow: inset 0 1px 4px #000, 0 0 0 1px #4a4134;
	font: 13.5px/1.5 Consolas, 'DejaVu Sans Mono', Menlo, monospace;
	tab-size: 4;
	caret-color: #ffd880;
}
textarea.we-text:focus { outline: none; box-shadow: inset 0 1px 4px #000, 0 0 0 1px #b08a38; }
textarea.we-text::selection { background: #6a5420; color: #fff; }
textarea.we-ro { color: #c8bb9c; }
.we-short { min-height: 70px; }

.we-help { margin: 0; padding: 8px 12px 4px; font-size: 13px; background: rgba(255, 245, 220, .35); box-shadow: 0 0 0 1px rgba(60, 35, 10, .45); border-bottom: 0; }
.we-help table { width: 100%; border-collapse: collapse; }
.we-help th, .we-help td { padding: 3px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(60, 35, 10, .2); }
.we-help td:first-child { width: 46%; }
.we-help p { margin: 6px 0 4px; }
.we code, .we-help code { padding: 0 3px; font: 12.5px Consolas, 'DejaVu Sans Mono', Menlo, monospace; background: rgba(60, 35, 10, .1); }

.we-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 10px; }
.we-summary { flex: 1 1 260px; }
.we-summary span { font-weight: normal; color: #4a3418; }
.we-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.we-center { justify-content: center; margin: 8px 0 12px; }
button.we-save { min-width: 80px; background: linear-gradient(#56672a, #2a3410); color: #f2eab0; }
button.we-save:hover { background: linear-gradient(#677a33, #34401a); color: #fff3b8; }
button.we-danger { background: linear-gradient(#6a2a1a, #361208); color: #f0c8a0; }
button.we-danger:hover { background: linear-gradient(#7c3420, #44180c); color: #ffd8b0; }
.we-more { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 10px; border-top: 1px solid rgba(60, 35, 10, .3); }
.we-revert { margin: 0; }
.we-theirs { margin-top: 12px; }
.we-theirs summary { margin-bottom: 4px; font-weight: bold; cursor: pointer; }

.we-part h2 { margin: 16px 0 2px; font: 19px 'RuneScape UF', Georgia, serif; color: #2a1606; border-bottom: 1px solid rgba(60, 35, 10, .45); }
.we-part:first-of-type h2 { margin-top: 6px; }
.we-hint { margin: 2px 0 6px; font-size: 13px; color: #3a2410; }
.we-rows { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0 0 6px; font-size: 12px; }
.we-rows span { margin-right: 2px; font-weight: bold; }
button.we-row { padding: 1px 7px; font-size: 11px; box-shadow: none; }

/* the preview, and the changes (a line diff) */
#we-out { margin-top: 16px; scroll-margin-top: 12px; }
#we-out:empty { display: none; }
.we-preview-head { padding: 4px 10px; font: bold 13px Arial, Helvetica, sans-serif; color: #e0b850; text-shadow: 1px 1px 0 #000; background: linear-gradient(#2a241b, #15120d); border: 1px solid #000; }
.we-preview-head span { font-weight: normal; color: #a89878; }
.we-preview { padding: 12px 18px 6px; background: rgba(255, 245, 220, .22); box-shadow: 0 0 0 1px rgba(60, 35, 10, .5), inset 0 0 18px rgba(60, 35, 10, .16); }
.we-clear { clear: both; }
.we-diff { margin: 0 0 12px; overflow-x: auto; font: 12.5px/1.45 Consolas, 'DejaVu Sans Mono', Menlo, monospace; background: rgba(255, 248, 230, .35); box-shadow: 0 0 0 1px rgba(60, 35, 10, .5); }
.we-diff > div { position: relative; padding: 0 8px 0 28px; white-space: pre-wrap; word-break: break-word; }
.we-diff .d-h { padding: 2px 8px; color: #5a3a10; background: rgba(60, 35, 10, .14); font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
.we-diff .d-s { color: #4a3418; }
.we-diff .d-a { background: rgba(70, 160, 40, .24); }
.we-diff .d-d { background: rgba(190, 40, 20, .17); color: #5a1a0c; }
.we-diff .d-a::before, .we-diff .d-d::before { position: absolute; left: 10px; font-weight: bold; }
.we-diff .d-a::before { content: '+'; color: #1f5a0c; }
.we-diff .d-d::before { content: '\2212'; color: #7a0c06; }
.we-diff .d-none { padding: 8px 10px; font-family: Arial, Helvetica, sans-serif; color: #4a3418; }
.we-plus { color: #1f5a0c; }
.we-minus { color: #7a0c06; }
.we-hist { width: 100%; }
.we-hist td:nth-child(4) { white-space: nowrap; }
.we-tag { padding: 0 4px; font-size: 11px; color: #7a0c06; border: 1px solid rgba(122, 12, 6, .5); }
pre.we-cmd { margin: 6px 0 10px; padding: 8px 12px; overflow-x: auto; font: 13px/1.5 Consolas, 'DejaVu Sans Mono', Menlo, monospace; color: #eadfc4; background: #0c0a07; box-shadow: inset 0 1px 4px #000, 0 0 0 1px #4a4134; }

/* {{map|x|y|caption}}: a piece of the world map beside the text, the spot ringed */
.wk-snip { float: right; clear: right; margin: 2px 0 12px 18px; }
.wk-snip .ar-caption { max-width: 300px; }
.ar-goal { position: absolute; width: 26px; height: 26px; margin: -14px 0 0 -14px; border: 2px dashed #0ff; border-radius: 50%; z-index: 5; pointer-events: none; animation: ar-goal 1.6s ease-in-out infinite; }
@keyframes ar-goal { 50% { transform: scale(1.25); opacity: .55; } }
@media (max-width: 900px) { .wk-snip { float: none; margin: 4px 0 12px; } }

/* The Updates page ({{update}} cards: wiki.inc): a stone header with the update's icon, title and date,
 * a picture across the card, the summary, and a button to the update's own page (where it's all shown). */
.wk-up {
	clear: both;
	margin: 0 0 22px;
	background: rgba(90, 55, 15, .1);
	box-shadow: 0 0 0 1px rgba(60, 35, 10, .6), 0 3px 10px rgba(40, 20, 0, .3);
}
.wk-up-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	background: linear-gradient(#4b4436, #26211a);
	box-shadow: 0 0 0 1px #000;
}
.wk-up-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.wk-up-ico img { max-width: 44px; max-height: 44px; image-rendering: pixelated; filter: drop-shadow(1px 1px 0 #000); }
.wk-up-ico img.wk-up-npc { image-rendering: auto; }
.wk-up-ico .hs-ico { transform: scale(1.4); }
.wk-up-t { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; min-width: 0; }
.wk-body h3.wk-up-title {
	margin: 0;
	font: 23px 'RuneScape UF', Georgia, serif;
	color: #e8c872;
	text-shadow: 1px 1px 0 #000;
}
.wk-body h3.wk-up-title a { color: #e8c872 !important; text-decoration: none !important; }
.wk-body h3.wk-up-title a:hover { color: #fff0b8 !important; }
.wk-up-date { font-size: 13px; color: #c9b38a; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.wk-up-banner { position: relative; margin: 2px 0 12px; line-height: 0; box-shadow: 0 0 0 1px #000, 0 2px 6px rgba(0, 0, 0, .4); }
.wk-up-banner a { display: block; }
.wk-up-banner img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.wk-up-banner::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 40px rgba(0, 0, 0, .45); pointer-events: none; }
.wk-up-body { padding: 12px 18px 4px; }
.wk-up-body h3 { margin: 16px 0 6px; padding-bottom: 2px; border-bottom: 1px solid rgba(60, 35, 10, .35); }
.wk-up-body h2 { margin: 20px 0 8px; padding: 4px 8px; font: 20px 'RuneScape UF', Georgia, serif; color: #e8c872; text-shadow: 1px 1px 0 #000; background: linear-gradient(#4b4436, #26211a); box-shadow: 0 0 0 1px #000; border: 0; }
.wk-up-body h2 .wk-uicon, .wk-up-body h2 .hs-ico { filter: drop-shadow(1px 1px 0 #000); }
/* the versions an update brought ({{versions}}), and the sandbox's still-growing entry ({{draft}}) */
.wk-up-ver { margin: 4px 0 10px; font-size: 12px; color: #4a3218; }
.wk-up-ver b { color: #2a1606; }
.wk-up-draft { margin: 4px 0 10px; padding: 5px 9px; font-size: 12px; color: #fff3c8; background: rgba(150, 70, 0, .55); box-shadow: 0 0 0 1px rgba(60, 25, 0, .7); }

/* "Read the full update": the stone button to the update's own page */
.wk-more-link { margin: 2px 0 12px; }
.wk-more-link a {
	display: inline-block;
	padding: 5px 16px 5px 14px;
	font: bold 14px Arial, Helvetica, sans-serif;
	color: #e8c872 !important;
	text-decoration: none !important;
	text-shadow: 1px 1px 0 #000;
	background: linear-gradient(#5a5142, #2c261e);
	box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 240, 200, .15);
}
.wk-more-link a::before { content: '\25B8'; display: inline-block; width: 14px; }
.wk-more-link a:hover { color: #fff0b8 !important; background: linear-gradient(#6a604e, #342d23); }
.wk-more-body { padding: 0 0 6px; }

/* screenshots: one, or a row of them ({{gallery}}) */
.wk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 8px 0 14px; }
.wk-shot { margin: 8px 0 14px; }
.wk-gallery .wk-shot { margin: 0; }
.wk-shot a { display: block; line-height: 0; text-decoration: none !important; }
.wk-shot img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px #000, 0 2px 6px rgba(0, 0, 0, .4); }
.wk-shot a:hover img { box-shadow: 0 0 0 1px #000, 0 0 0 3px rgba(232, 200, 114, .7), 0 2px 6px rgba(0, 0, 0, .4); }
.wk-shot figcaption { margin-top: 5px; font-size: 13px; font-style: italic; line-height: 1.35; text-align: center; color: #3a2410; }

@media (max-width: 900px) {
	.wk-up-head { padding: 7px 10px; gap: 9px; }
	.wk-body h3.wk-up-title { font-size: 19px; }
	.wk-up-body { padding: 10px 12px 2px; }
}

/* {{mapgrid}}: pieces of map side by side */
.wk-mapgrid { clear: both; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 14px; }
.wk-mapgrid .wk-snip { float: none; clear: none; margin: 0 0 8px; }

/* every piece of map opens the whole world map (wiki-map.js) */
.ar-map[data-view] { cursor: zoom-in; }
.ar-map[data-view]::after {
	content: ""; position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; z-index: 6; pointer-events: none;
	border-radius: 3px; background: rgba(20, 12, 4, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffd880' stroke-width='1.8'%3E%3Cpath d='M10 2h4v4M14 2l-5 5M6 14H2v-4M2 14l5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ar-map[data-view]:hover::after { background-color: rgba(20, 12, 4, .9); }
html.wm-on, html.wm-on body { overflow: hidden; }
.wm-back { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .72); }
.wm-box { display: flex; flex-direction: column; width: min(1200px, 96vw); height: min(860px, 92vh); background: #2b1d0e; border: 2px solid #5a3c1c; box-shadow: 0 6px 30px rgba(0, 0, 0, .7); }
.wm-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-bottom: 2px solid #5a3c1c; }
.wm-cap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 20px 'RuneScape UF', Georgia, serif; color: #ffd880; }
.wm-hint { font: 12px Arial, Helvetica, sans-serif; color: #c8b08a; white-space: nowrap; }
.wm-btn { width: 30px; height: 28px; padding: 0; font: bold 18px/1 Arial, Helvetica, sans-serif; color: #ffd880; background: linear-gradient(#4a3a26, #2c2215); border: 1px solid #000; border-radius: 3px; cursor: pointer; }
.wm-btn:hover { color: #fff; }
.wm-x { margin-left: 4px; }
.wm-view { position: relative; flex: 1; overflow: hidden; background: #485c89; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.wm-view.wm-under { background: #000; }
.wm-view.wm-drag { cursor: grabbing; }
.wm-layer, .wm-marks, .wm-labels { position: absolute; inset: 0; pointer-events: none; }
.wm-t { position: absolute; display: block; max-width: none; }
.wm-icon { position: absolute; transform: translate(-50%, -50%); max-width: none; pointer-events: auto; }
.wm-labels a.wm-label { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; color: #ff0 !important; font: bold 12px/1 sans-serif; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; white-space: nowrap; text-decoration: none !important; }
.wm-labels a.wm-label:hover { color: #fff !important; }
.wm-mark { position: absolute; width: 9px; height: 9px; margin: -6px 0 0 -6px; background: #0ff; border: 2px solid #000; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 255, 255, .45); }
.wm-goal { position: absolute; width: 30px; height: 30px; margin: -16px 0 0 -16px; border: 2px dashed #0ff; border-radius: 50%; animation: ar-goal 1.6s ease-in-out infinite; }
.wm-edge { position: absolute; box-sizing: border-box; border: 2px dashed rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.wm-edge.wm-round { border-radius: 50%; }
.wm-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 14px; background: rgba(0, 0, 0, .7); color: #ffd880; font: 14px Arial, Helvetica, sans-serif; }
@media (max-width: 600px) { .wm-box { width: 100vw; height: 100vh; border: 0; } .wm-hint { display: none; } }
.wk-itemgrid { columns: 3 210px; column-gap: 18px; list-style: none; margin: 4px 0 14px; padding: 0; }
.wk-itemgrid li { break-inside: avoid; display: flex; align-items: center; gap: 6px; min-height: 34px; margin: 0; }
.wk-itemnone { display: inline-block; width: 32px; height: 32px; }
.wk-itemnames li { min-height: 0; }
.wk-letters a { display: inline-block; min-width: 1.2em; font-weight: bold; }
