/* Settlers III Wiki: classic encyclopedia layout, white theme. */
:root {
  --bg: #ffffff;
  --chrome: #f6f6f6;
  --text: #202122;
  --muted: #54595d;
  --line: #a2a9b1;
  --line-soft: #c8ccd1;
  --head: #eaecf0;
  --link: #0645ad;
  --link-visited: #0b0080;
  --accent: #2f6446;
  --serif: "Linux Libertine", "Georgia", "Times", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --top: 56px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; background: var(--chrome); color: var(--text); font: 15px/1.6 var(--sans); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  background: var(--chrome); border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand span { font: 22px/1 var(--serif); letter-spacing: .01em; }
.brand b { font-weight: normal; }
.brand small { font: 12px/1 var(--sans); color: var(--muted); letter-spacing: .04em; }
.search { position: relative; margin-left: 24px; width: min(420px, 44vw); }
.search input {
  width: 100%; height: 34px; padding: 0 10px 0 32px; font: inherit; font-size: 14px; color: var(--text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2372777d' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 10px 50% no-repeat;
  border: 1px solid var(--line); border-radius: 2px; outline: none;
}
.search input:focus { border-color: #36c; box-shadow: inset 0 0 0 1px #36c; }
.results {
  position: absolute; top: 38px; left: 0; width: min(520px, 92vw); max-height: 70vh; overflow: auto;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.results a { display: block; padding: 8px 12px; color: var(--text); border-bottom: 1px solid #eaecf0; }
.results a:hover, .results a.sel { background: #eaf3ff; text-decoration: none; }
.results .r-t { font-weight: 600; color: var(--link); }
.results .r-g { font-size: 12px; color: var(--muted); margin-left: 6px; }
.results .r-x { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.results mark { background: #fef6e7; color: inherit; font-weight: 600; }
.results .empty { padding: 12px; color: var(--muted); font-size: 14px; }
.menu-btn {
  display: none; place-items: center; width: 36px; height: 36px; flex: none; margin-left: -8px;
  background: none; border: 1px solid transparent; border-radius: 2px; color: var(--muted); cursor: pointer;
}
.menu-btn:hover { border-color: var(--line-soft); }
.theme-btn { display: none; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
.sidebar { padding: 18px 10px 40px 20px; font-size: 13.5px; }
.nav-group { margin-bottom: 16px; }
.nav-heading { font-size: 12px; color: var(--muted); padding: 0 0 4px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0; }
.sidebar a { display: block; padding: 2px 0; line-height: 1.4; }
.sidebar a.active { color: var(--text); font-weight: 600; }

.content {
  min-width: 0; background: var(--bg); border: 1px solid var(--line-soft); border-right: 0;
  margin-top: -1px; padding: 22px 32px 40px;
}
article { max-width: 960px; }
.toc { display: none; }

/* ---------- article ---------- */
.page-head { margin-bottom: 14px; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
h1, h2 { font-family: var(--serif); font-weight: normal; line-height: 1.25; }
h1 { font-size: 30px; margin: 0 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
h2 { font-size: 23px; margin: 26px 0 8px; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
h3 { font-size: 16.5px; font-weight: 700; margin: 20px 0 4px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 26px; }
li { margin-bottom: 3px; }
.lede { font-size: 15px; color: var(--text); margin: 10px 0 0; }
.tagline { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
code, kbd {
  font: 13.5px/1.4 ui-monospace, Menlo, Consolas, monospace;
  background: #f8f9fa; border: 1px solid #eaecf0; border-radius: 2px; padding: 1px 4px;
}
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 24px 0; }

.status { display: inline-block; font-size: 12px; padding: 1px 7px; border: 1px solid; border-radius: 2px; vertical-align: middle; margin: 6px 0 0; }
.status-live { color: #14866d; border-color: #14866d; background: #d5fdf4; }
.status-partial { color: #ac6600; border-color: #fc3; background: #fef6e7; }
.status-planned { color: #36c; border-color: #a3bbff; background: #eaf3ff; }

/* contents box */
.contents { display: inline-block; min-width: 220px; background: #f8f9fa; border: 1px solid var(--line); padding: 8px 14px 10px; margin: 6px 0 16px; font-size: 13.5px; }
.contents .c-h { text-align: center; font-weight: 700; margin-bottom: 4px; }
.contents ol { margin: 0; padding-left: 20px; }
.contents li { margin: 1px 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; background: #f8f9fa; border: 1px solid var(--line); font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 5px 9px; text-align: left; vertical-align: top; }
th { background: var(--head); font-weight: 700; }
td.n, th.n { text-align: right; }

/* message boxes */
.note, .tip, .warn { background: #f8f9fa; border: 1px solid var(--line); border-left: 8px solid #36c; padding: 8px 12px; margin: 0 0 16px; font-size: 14px; }
.tip { border-left-color: #14866d; }
.warn { border-left-color: #d33; background: #fee7e6; }
.note > :last-child, .tip > :last-child, .warn > :last-child { margin-bottom: 0; }
.note b:first-child, .tip b:first-child, .warn b:first-child { margin-right: 4px; }
.note b:first-child::after, .tip b:first-child::after, .warn b:first-child::after { content: "."; }

/* region list boxes */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0 0 16px; }
.card { display: block; padding: 8px 12px; background: #f8f9fa; border: 1px solid var(--line-soft); color: var(--text); }
a.card:hover { text-decoration: none; border-color: var(--line); background: #eaf3ff; }
.card h3 { margin: 0 0 2px; font-size: 15px; color: var(--link); }
.card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.card .swatch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 0; border: 1px solid rgba(0,0,0,.2); }

/* manual copies of the live seasonal resource pack */
.pack-downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.pack-download { display: block; position: relative; min-height: 60px; padding: 10px 12px; border: 1px solid var(--line-soft); background: #f8f9fa; color: var(--text); }
.pack-download:hover { border-color: var(--line); background: #eaf3ff; text-decoration: none; }
.pack-download strong, .pack-download span { display: block; }
.pack-download span { color: var(--link); font-size: 14px; }
.pack-current { display: none; margin-top: 5px; color: #176b55; font-size: 12px; font-weight: 700; }
.pack-download.is-current { border-color: #14866d; box-shadow: inset 4px 0 #14866d; background: #f1f8f5; }
.pack-download.is-current .pack-current { display: block; }

@media (max-width: 620px) { .pack-downloads { grid-template-columns: 1fr; } }

/* land sections with infobox-style facts */
.land { margin: 0 0 8px; }
.land h2 { border-bottom-color: var(--line); }
.land h2::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; background: var(--land); border: 1px solid rgba(0,0,0,.2); vertical-align: 2px; }
.land dl { display: grid; grid-template-columns: 90px 1fr; margin: 0 0 12px; border: 1px solid var(--line); background: #f8f9fa; font-size: 14px; }
.land dt, .land dd { margin: 0; padding: 5px 9px; border-bottom: 1px solid var(--line-soft); }
.land dt { font-weight: 700; background: var(--head); }
.land dt:last-of-type, .land dd:last-of-type { border-bottom: 0; }

/* meters */
.meter { display: flex; align-items: center; gap: 10px; font-size: 13.5px; margin: 3px 0; max-width: 420px; }
.meter span:first-child { width: 100px; color: var(--muted); }
.bar { flex: 1; height: 9px; background: #eaecf0; border: 1px solid var(--line-soft); }
.bar i { display: block; height: 100%; background: #14866d; }

/* ---------- main page ---------- */
.welcome { border: 1px solid var(--line-soft); background: #f8f9fa; padding: 16px 20px; margin: 0 0 14px; text-align: center; }
.welcome h1 { border: 0; font-size: 28px; margin: 0 0 4px; }
.welcome p { margin: 0; color: var(--muted); font-size: 14px; }
.discord-apply {
  display: block; margin: 0 0 20px; padding: 4px; color: #f3f1ff;
  background: #727589; border: 2px solid; border-color: #d3d4e1 #292a3f #292a3f #d3d4e1;
  box-shadow: 0 0 0 1px #222338, 3px 4px 0 #dddde5; text-decoration: none;
  font-family: Tahoma, Verdana, sans-serif;
}
.discord-apply:hover { color: #fff; text-decoration: none; }
.discord-apply:focus-visible { outline: 3px solid #5865f2; outline-offset: 5px; }
.dq-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 8px; background: linear-gradient(90deg,#303b9c,#5865f2); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.dq-window { background: #bfc2d6; color: #34364e; border: 1px solid; border-color: #f2f2ff #45485b #45485b #f2f2ff; padding: 0 4px; }
.dq-body { display: flex; align-items: center; gap: 18px; padding: 23px 20px; border: 1px solid #131426; background: radial-gradient(ellipse at 15% 100%,#444279 0,transparent 60%),repeating-linear-gradient(0deg,#ffffff02 0 1px,transparent 1px 4px),#242438; }
.dq-crest { flex: 0 0 80px; filter: drop-shadow(0 4px 5px #0007); }
.dq-copy { display: block; flex: 1; }
.dq-eyebrow { display: block; color: #d7c58f; font-size: 9px; letter-spacing: 2px; margin-bottom: 6px; }
.discord-apply strong { display: block; font: 700 24px/1.15 Georgia,serif; color: #fff4d9; text-shadow: 1px 2px #101122; }
.dq-description { display: block; color: #dcdbef; font-size: 12px; line-height: 1.6; margin-top: 8px; }
.dq-steps { display: block; color: #c2c7ff; font-size: 10px; margin-top: 12px; }
.dq-steps i { font-style: normal; color: #d7c58f; margin: 0 6px; }
.dq-action { display: block; flex: 0 0 210px; text-align: center; }
.dq-button { display: block; padding: 13px 12px; background: #5865f2; border: 2px solid; border-color: #afb6ff #262e87 #262e87 #afb6ff; box-shadow: 2px 3px #101122; font-size: 13px; font-weight: 700; color: #fff; }
.discord-apply:hover .dq-button { background: #6874ff; }
.discord-apply:active .dq-button { transform: translate(1px,1px); box-shadow: 1px 2px #101122; }
.dq-note { display: block; font-size: 9px; line-height: 1.5; margin-top: 9px; color: #c6c5da; }
.dq-status { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; margin-top: 4px; border: 1px solid; border-color: #45485b #d1d3e2 #d1d3e2 #45485b; color: #f5f5ff; background: #414458; font-size: 8px; letter-spacing: .7px; }
.dq-dot { display: inline-block; width: 6px; height: 6px; background: #a9a2ff; margin-right: 4px; }
@media (max-width: 1100px) {
  .dq-body { flex-wrap: wrap; gap: 12px; padding: 18px 15px; }
  .dq-action { flex-basis: 100%; }
  .dq-button { max-width: 340px; margin: auto; }
}
@media (max-width: 440px) {
  .dq-title-extra { display: none; }
  .dq-crest { flex-basis: 52px; }
  .dq-crest svg { width: 52px; height: 62px; }
  .discord-apply strong { font-size: 20px; }
  .dq-copy { min-width: 160px; }
  .dq-status { flex-wrap: wrap; font-size: 8px; }
}
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mp-box { border: 1px solid var(--line-soft); background: #fff; }
.mp-box h2 { margin: 0; padding: 4px 10px; font: 700 15px/1.5 var(--sans); border: 0; border-bottom: 1px solid var(--line-soft); }
.mp-box > div { padding: 8px 12px 4px; font-size: 14px; }
.mp-green { background: #f5fffa; } .mp-green h2 { background: #cef2e0; border-color: #a3bfb1; }
.mp-blue { background: #f5faff; } .mp-blue h2 { background: #cedff2; border-color: #a3b0bf; }
.mp-gold { background: #fffcf5; } .mp-gold h2 { background: #f2e6ce; border-color: #bfb4a3; }
.mp-grey h2 { background: var(--head); }
.mp-box ul { padding-left: 20px; }
.mp-full { grid-column: 1 / -1; }
.quote { font: italic 16px/1.5 var(--serif); border-left: 3px solid var(--line-soft); padding: 2px 0 2px 14px; margin: 4px 0 12px; }

.foot { max-width: 960px; margin-top: 36px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; top: var(--top); left: 0; bottom: 0; width: min(270px, 84vw); overflow-y: auto; z-index: 30;
    background: var(--chrome); border-right: 1px solid var(--line-soft); transform: translateX(-100%); transition: transform .2s ease;
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: var(--top) 0 0 0; background: rgba(0,0,0,.3); z-index: 25; }
  .content { border-left: 0; padding: 16px 16px 32px; }
  .topbar { padding: 0 16px; gap: 8px; }
  .brand small { display: none; }
  .search { width: auto; flex: 1; margin-left: 4px; }
  .results { position: fixed; top: calc(var(--top) - 4px); left: 8px; right: 8px; width: auto; }
  .mp-grid { grid-template-columns: 1fr; }
  .land dl { grid-template-columns: 1fr; }
  .land dt { border-bottom: 0; }
  .contents { display: block; }
}
@media (max-width: 420px) {
  .brand span { font-size: 19px; }
  .brand img { display: none; }
}

/* ---------- maps ---------- */
.map { margin: 0 0 18px; }
.map-view {
  position: relative; overflow: hidden; height: min(78vh, 900px); min-height: 380px;
  background: #77a8d0; border: 1px solid var(--line); touch-action: none; cursor: grab; user-select: none;
}
.map-view.dragging { cursor: grabbing; }
.map-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.map-base, .map-overlay, .map-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-overlay { opacity: .9; }
.map-svg { overflow: visible; }
.map-label {
  font: 700 15px var(--sans); fill: #202122; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 3.5px;
  stroke-linejoin: round; letter-spacing: .02em;
}
.map-label.hell { fill: #7a1a10; }
.map-spawn-ring { fill: #fff; stroke: #202122; stroke-width: 1.5; }
.map-spawn-dot { fill: #202122; }
.map-spawn-label {
  font: italic 600 11px var(--sans); fill: #3a3d40; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 3px;
  stroke-linejoin: round;
}
.map-icon-bg { fill: rgba(255,255,255,.88); stroke: rgba(0,0,0,.25); stroke-width: .8; }
.map-icon, .lg-icon { image-rendering: pixelated; }
.map-ctl { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; }
.map-ctl button {
  width: 32px; height: 32px; font: 700 18px/1 var(--sans); color: #202122; background: #fff;
  border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
}
.map-ctl button:hover { background: #eaf3ff; }
.map-coords {
  position: absolute; left: 8px; bottom: 8px; font: 12px/1 ui-monospace, Menlo, monospace; white-space: pre;
  background: rgba(255,255,255,.88); border: 1px solid var(--line-soft); padding: 5px 7px; pointer-events: none;
}
.map-legend, .map-layers { border: 1px solid var(--line); border-top: 0; background: #f8f9fa; padding: 8px 12px; font-size: 13px; }
.lg-row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 3px 0; }
.lg-row b { width: 76px; }
.lg-row span, .ml-list label { display: inline-flex; align-items: center; gap: 5px; }
.lg-row svg, .lg-icon { flex: none; }
.sw { display: inline-block; width: 12px; height: 12px; border: 1px solid rgba(0,0,0,.25); flex: none; }
.ml-group + .ml-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.ml-h { font-weight: 700; }
.ml-h a { font-weight: normal; font-size: 12px; }
.ml-about { color: var(--muted); font-size: 12.5px; margin: 1px 0 5px; }
.ml-list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ml-list label { cursor: pointer; }
.map-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0 0 16px; }
.map-thumbs a { display: block; border: 1px solid var(--line-soft); background: #f8f9fa; font-size: 13.5px; }
.map-thumbs a:hover { border-color: var(--line); background: #eaf3ff; text-decoration: none; }
.map-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--line-soft); }
.map-thumbs span { display: block; padding: 5px 8px; }
@media (max-width: 860px) {
  .map-view { height: 70vh; margin: 0 -16px; border-left: 0; border-right: 0; }
  .map-legend, .map-layers { margin: 0 -16px; border-left: 0; border-right: 0; }
  .lg-row b { width: 100%; }
}

/* map fixes: visible world edge, gate, hint, full screen */
.map-view { background: #e4e2dc repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.035) 10px 20px); touch-action: pan-y; }
.map-view.active { touch-action: none; }
.map-stage { box-shadow: 0 0 0 1px #54595d, 0 0 0 4px rgba(84,89,93,.18); }
.map-gate {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 3;
  font: 600 14px var(--sans); color: #fff; background: rgba(32,33,34,.82); border: 0; border-radius: 18px; padding: 9px 16px;
}
.map-gate[hidden] { display: none; }
.map-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none;
  font: 600 14px var(--sans); color: #fff; background: rgba(32,33,34,.8); padding: 10px 16px; border-radius: 4px;
  opacity: 0; transition: opacity .2s; text-align: center; max-width: 80%;
}
.map-hint.on { opacity: 1; }
.map-wrap.map-full { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; }
.map-wrap.map-full .map-view { flex: 1; height: auto !important; margin: 0; border: 0; }
.map-wrap.map-full .map-legend, .map-wrap.map-full .map-layers { margin: 0; max-height: 34vh; overflow: auto; border-left: 0; border-right: 0; }
body.map-open { overflow: hidden; }
@media (max-width: 860px) {
  .mp-box .map-view, .mp-box .map-legend { margin: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .mp-box > .map { padding: 0; }
}

.map-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; }
.map-compare figure { margin: 0; border: 1px solid var(--line-soft); background: #f8f9fa; }
.map-compare img { display: block; width: 100%; aspect-ratio: 26 / 33; object-fit: contain; background: #dbe9f1; border-bottom: 1px solid var(--line-soft); }
.map-compare figcaption { font-size: 13px; color: var(--muted); padding: 6px 8px; }
@media (max-width: 860px) { .map-compare { grid-template-columns: 1fr; } }

figure.diagram { margin: 4px 0 18px; border: 1px solid var(--line-soft); background: #f7fbfd; max-width: 640px; }
figure.diagram img { display: block; width: 100%; height: auto; }
figure.diagram figcaption { font-size: 13px; color: var(--muted); padding: 6px 10px; border-top: 1px solid var(--line-soft); background: #f8f9fa; }

/* ---------- market prices page (assets/market.js) ---------- */
.mk { --mk-line: #c8ccd1; --mk-soft: #f8f9fa; --mk-on: #eaf3ff; --mk-blue: #36c; }
.mk-loading { color: var(--muted); }
.mk-muted { color: var(--muted); }
.mk-empty { color: var(--muted); font-size: 14px; margin: 18px 0; text-align: center; }
.mk-empty-box { border: 1px dashed var(--mk-line); padding: 18px; background: var(--mk-soft); }

.mk-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.mk-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; padding: 1px 9px 1px 7px; border: 1px solid; border-radius: 2px; }
.mk-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mk-live .mk-pill { color: #14866d; background: #d5fdf4; }
.mk-live .mk-dot { animation: mk-pulse 2s ease-in-out infinite; }
.mk-late .mk-pill { color: #ac6600; background: #fef6e7; border-color: #fc3; }
.mk-off .mk-pill { color: #d33; background: #fee7e6; }
.mk-since { margin-left: auto; }
@keyframes mk-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mk-live .mk-dot { animation: none; } }

.mk-filters { border: 1px solid var(--mk-line); background: var(--mk-soft); padding: 8px 12px; margin: 0 0 14px; }
.mk-frow { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 8px; padding: 5px 0; }
.mk-frow + .mk-frow { border-top: 1px solid #eaecf0; }
.mk-frow > :last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.mk-flab { font-size: 13px; font-weight: 700; padding-top: 4px; }
.mk-hint { font-size: 12.5px; color: var(--muted); }
.mk-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.mk-seg.mk-sub { flex-basis: 100%; padding-left: 10px; border-left: 3px solid var(--mk-line); }
.mk-seg button {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13.5px; line-height: 1.3; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 4px 10px; cursor: pointer;
}
.mk-seg button:hover { background: #f0f4fa; }
.mk-seg button.on { background: var(--mk-on); border-color: var(--mk-blue); box-shadow: inset 0 0 0 1px var(--mk-blue); font-weight: 600; }
.mk-seg button:focus-visible, .mk-row:focus-visible, .mk-close:focus-visible { outline: 2px solid var(--mk-blue); outline-offset: 1px; }
.mk-sw { display: inline-block; width: 10px; height: 10px; border: 1px solid rgba(0,0,0,.2); flex: none; margin-right: 4px; vertical-align: -1px; }
.mk-seg .mk-sw { margin: 0; }
.mk-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.mk-key-line { width: 16px; height: 3px; border-radius: 2px; vertical-align: 3px; }
.mk-key-dot { border-radius: 50%; }
.mk-note { margin-top: -4px; }

.mk-glance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 14px; margin: 0 0 14px; }
.mk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-tile, .mk-fig { border: 1px solid var(--mk-line); background: #fff; padding: 9px 12px; min-width: 0; }
.mk-tl { font-size: 12.5px; color: var(--muted); }
.mk-tv { font-size: 28px; font-weight: 600; line-height: 1.2; margin: 2px 0; }
.mk-fv { font-size: 21px; font-weight: 600; line-height: 1.25; margin: 1px 0; }
.mk-ts { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.mk-check { border: 1px solid #bfb4a3; background: #fffcf5; }
.mk-check h3 { margin: 0; padding: 4px 12px; font-size: 15px; background: #f2e6ce; border-bottom: 1px solid #bfb4a3; }
.mk-ck-form { padding: 10px 12px 4px; font-size: 14.5px; line-height: 2.2; }
.mk-ck-form select, .mk-ck-form input {
  font: inherit; font-size: 14px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--text);
}
.mk-ck-form input { width: 76px; }
.mk-ck-form select:focus, .mk-ck-form input:focus { outline: none; border-color: var(--mk-blue); box-shadow: inset 0 0 0 1px var(--mk-blue); }
.mk-ck-out { padding: 2px 12px 10px; font-size: 14px; }
.mk-ck-out p { margin: 6px 0 0; }
.mk-ck-out .mk-muted { font-size: 13px; }
.mk-ck-fair { font-size: 16px; }

.mk-card { border: 1px solid var(--mk-line); background: #fff; padding: 10px 14px 6px; margin: 0 0 6px; }
.mk-card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.mk-card h3, .mk-detail h4 { margin: 0; font-size: 15px; }
.mk-sub-h { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }
.mk-chart { position: relative; width: 100%; min-height: 40px; }
.mk-chart svg { display: block; overflow: visible; }
.mk-chart svg:focus { outline: none; }
.mk-chart svg:focus-visible { outline: 2px solid var(--mk-blue); outline-offset: 2px; }
.mk-grid { stroke: #eaecf0; stroke-width: 1; }
.mk-axis { stroke: #a2a9b1; stroke-width: 1; }
.mk-tick { fill: #54595d; font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.mk-strong { fill: #202122; font-weight: 700; }
.mk-cross { stroke: #54595d; stroke-width: 1; pointer-events: none; }
.mk-meanline { stroke: #202122; stroke-width: 2; }
.mk-midmark { fill: #54595d; }
.mk-hbar:hover { opacity: .8; }
.mk-numbers { font-size: 13px; margin: 2px 0 6px; }
.mk-numbers summary { cursor: pointer; color: var(--link); width: max-content; }
.mk-numtable { font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 6px; }
.mk-numtable th, .mk-numtable td { padding: 3px 8px; }

.mk-tip {
  position: fixed; z-index: 200; pointer-events: none; min-width: 120px; max-width: 280px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.15); padding: 6px 10px; font-size: 13px;
}
.mk-tip[hidden] { display: none; }
.mk-tip-h { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.mk-tip-r { display: flex; align-items: center; gap: 7px; line-height: 1.6; }
.mk-tip-r .mk-key { width: 12px; height: 3px; }
.mk-tip-r .mk-key-bar { height: 10px; width: 10px; }
.mk-tip-r b { font-variant-numeric: tabular-nums; }
.mk-tip-r span { color: var(--muted); }

.mk-tablebar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 8px; font-size: 13px; }
.mk-search {
  width: min(280px, 100%); height: 32px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--text);
  border: 1px solid var(--line); border-radius: 2px; background: #fff;
}
.mk-search:focus { outline: none; border-color: var(--mk-blue); box-shadow: inset 0 0 0 1px var(--mk-blue); }
.mk-tablewrap { border: 1px solid var(--line); overflow-x: auto; }
.mk-table { width: 100%; border: 0; background: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.mk-table th, .mk-table td { border: 0; border-bottom: 1px solid #eaecf0; padding: 7px 10px; vertical-align: middle; }
.mk-table thead th { background: var(--head); border-bottom: 0; padding: 0; white-space: nowrap; }
.mk-table thead th button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 6px 10px 1px; font-weight: 700; cursor: pointer; text-align: inherit; }
.mk-table thead th button:hover { color: var(--link); }
.mk-table thead th button:focus-visible { outline: 2px solid var(--mk-blue); outline-offset: -2px; }
.mk-arrow { font-size: 10px; color: var(--muted); }
.mk-table .mk-units th { font-weight: normal; font-size: 11.5px; color: var(--muted); padding: 0 10px 5px; border-bottom: 1px solid var(--line); }
.mk-table td small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; white-space: nowrap; }
.mk-table td b { font-weight: 600; }
.mk-row { cursor: pointer; }
.mk-row:hover { background: #f5f9ff; }
.mk-row.open { background: var(--mk-on); }
.mk-row.open td { border-bottom-color: transparent; }
.mk-c-item { min-width: 140px; }
.mk-c-item b { font-weight: 600; color: var(--link); }
.mk-chev { display: inline-block; width: 14px; color: var(--muted); transition: transform .15s; }
.mk-row.open .mk-chev { transform: rotate(90deg); }
.mk-wanted { display: flex !important; align-items: center; justify-content: flex-end; gap: 4px; }
.mk-wanted .mk-key { width: 8px; height: 8px; }
.mk-rangecell { display: inline-block; width: 132px; }
.mk-range { display: block; }
.mk-track { stroke: #c8ccd1; stroke-width: 4; stroke-linecap: round; }
.mk-track-thin { stroke: #c8ccd1; stroke-width: 1; }
.mk-mid { stroke: #202122; stroke-width: 2; }
.mk-range-lab { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.mk-range-lab.mk-one { justify-content: center; }
.mk-skew { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mk-skew-p { stroke: #54595d; stroke-width: 1.6; stroke-linecap: round; }
.mk-legend, .mk-legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.mk-legend { margin: 6px 0 0; }
.mk-legend-row { margin: 0 0 4px; }
.mk-lg { display: inline-flex; align-items: center; gap: 6px; }
.mk-lg-track { display: inline-block; width: 22px; height: 4px; border-radius: 2px; background: #c8ccd1; }
.mk-lg-tick { display: inline-block; width: 2px; height: 12px; background: #202122; }

.mk-detail-row > td { padding: 0 !important; background: #fff; border-bottom: 2px solid var(--mk-blue) !important; }
.mk-detail { padding: 12px 16px 14px; border-left: 4px solid var(--mk-blue); cursor: auto; }
.mk-d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mk-d-head h3 { margin: 0; font-size: 19px; font-family: var(--serif); font-weight: normal; display: inline; margin-right: 8px; }
.mk-d-head code { font-size: 12px; color: var(--muted); }
.mk-close { font: 22px/1 var(--sans); width: 32px; height: 32px; border: 1px solid var(--mk-line); background: #fff; border-radius: 2px; cursor: pointer; color: var(--muted); }
.mk-close:hover { background: #f0f4fa; color: var(--text); }
.mk-d-basis { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin: 6px 0 8px; }
.mk-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin: 0 0 12px; }
.mk-d-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin: 0 0 6px; }
.mk-d-chart { min-width: 0; margin-bottom: 8px; }
.mk-d-chart h4 { margin-bottom: 2px; }
.mk-detail > h4 { margin: 12px 0 2px; }
.mk-shops td { vertical-align: middle; }
.mk-state { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mk-state i { width: 8px; height: 8px; border-radius: 50%; }
.mk-state-ok i { background: #14866d; }
.mk-state-bad i { background: #d33; }
.mk-state-idle i { background: #a2a9b1; }

.mk-defs { display: grid; grid-template-columns: 110px 1fr; margin: 0 0 14px; border: 1px solid var(--line); background: #f8f9fa; font-size: 14px; }
.mk-defs dt, .mk-defs dd { margin: 0; padding: 6px 10px; border-bottom: 1px solid var(--line-soft); }
.mk-defs dt { font-weight: 700; background: var(--head); }
.mk-defs dt:last-of-type, .mk-defs dd:last-of-type { border-bottom: 0; }

@media (max-width: 860px) {
  .mk-glance, .mk-d-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-since { margin-left: 0; }
}
@media (max-width: 720px) {
  .mk-frow { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .mk-flab { padding-top: 0; }
  .mk-tv { font-size: 24px; }
  .mk-tablewrap { border: 0; overflow: visible; }
  .mk-table, .mk-table tbody { display: block; background: none; }
  .mk-table thead { display: none; }
  .mk-row { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: #fff; margin: 0 0 8px; }
  .mk-row td { border: 0; text-align: left; padding: 6px 10px; }
  .mk-row td::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--muted); }
  .mk-row td.mk-c-item { grid-column: 1 / -1; background: var(--head); }
  .mk-row.open td.mk-c-item { background: var(--mk-on); }
  .mk-row td.mk-c-item::before { display: none; }
  .mk-wanted { justify-content: flex-start; }
  .mk-detail-row, .mk-detail-row > td { display: block; }
  .mk-detail-row { margin: -9px 0 10px; border: 1px solid var(--line); border-top: 0; }
  .mk-detail { padding: 10px 12px; }
  .mk-defs { grid-template-columns: 1fr; }
  .mk-defs dt { border-bottom: 0; }
}

/* The Chronicle (pages/chronicle.html + assets/chronicle.js) */
.chron-contents { display: inline-block; background: #f8f9fa; border: 1px solid var(--line-soft); padding: 8px 14px; margin: 0 0 8px; font-size: 14px; }
.chron-contents ol { margin: 4px 0 0; }
.chron-summary { font-style: italic; }
.chron-chapter p { text-align: justify; hyphens: auto; }

.season-date {font-size:.78rem; color:#555; text-decoration:none; white-space:normal; line-height:1.4; max-width:23rem; margin:0 1rem;}
@media(max-width:760px){.season-date{font-size:.66rem;max-width:10rem;margin:0 .4rem}.brand small{display:none}}

/* ---------- supporter badges store (pages/store.html, assets/store.js) ---------- */
.status-soon { color: #6a5bc0; border-color: #c4bcf0; background: #f3f0ff; }
.st-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.st-msg { border: 1px solid var(--line); border-left: 8px solid #36c; background: #f8f9fa; padding: 8px 12px; font-size: 14px; }
.st-msg.st-err { border-left-color: #d33; background: #fee7e6; }
.st-cat { border: 1px solid var(--line); background: #fff; margin: 0 0 12px; }
.st-cat > summary {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 14px; cursor: pointer; list-style: none;
  background: var(--head); border-bottom: 1px solid transparent; user-select: none;
}
.st-cat > summary::-webkit-details-marker { display: none; }
.st-cat > summary::before { content: "▸"; color: var(--muted); width: 10px; flex: none; transition: transform .15s; }
.st-cat[open] > summary { border-bottom-color: var(--line); }
.st-cat[open] > summary::before { transform: rotate(90deg); }
.st-cat > summary:hover .st-cat-name { color: var(--link); }
.st-cat > summary:focus-visible { outline: 2px solid #36c; outline-offset: -2px; }
.st-cat-name { font: 19px/1.3 var(--serif); }
.st-cat-sub { font-size: 13px; color: var(--muted); }
.st-cat-body { padding: 14px; }
.st-cat-body.table-wrap { margin: 0; }
.st-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-tier {
  display: flex; flex-direction: column; min-width: 0; padding: 10px 12px 12px;
  background: #f8f9fa; border: 1px solid var(--line-soft); border-top: 4px solid var(--tier);
}
.st-tier header { display: flex; flex-direction: column; gap: 2px; }
.st-tier h3 { display: flex; align-items: center; gap: 7px; margin: 0; font: 20px/1.3 var(--serif); color: var(--text); }
.st-tier h3 .st-badge { width: 18px; height: 20px; color: var(--tier); filter: drop-shadow(0 0 .6px var(--ink)); }
.st-cost { margin: 0; white-space: nowrap; }
.st-price { font-size: 20px; font-weight: 700; color: var(--ink); }
.st-per { font-size: 13px; color: var(--muted); }
.st-badge { display: inline-block; vertical-align: -1px; shape-rendering: crispEdges; }
.st-chat {
  margin: 10px 0; padding: 5px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), #3d4a3a; color: #fff;
  font: 600 13px/1.5 var(--sans); letter-spacing: .02em; text-shadow: 1.5px 1.5px 0 #3f3f3f;
}
.st-chat .g { color: #aaa; text-shadow: 1.5px 1.5px 0 #2a2a2a; }
.st-chat .st-badge { width: 11px; height: 12px; margin: 0 1px; color: var(--tier); }
.st-chat .st-nick { color: #f0a36b; text-shadow: 1.5px 1.5px 0 #3c2919; }
.st-plus { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.st-perks { flex: 1; margin: 0 0 12px; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.st-perks li { margin-bottom: 5px; }
.st-perks code { font-size: 12.5px; }
.st-buy, .st-portal {
  width: 100%; padding: 8px 12px; font: 700 14px/1.2 var(--sans); cursor: pointer;
  color: #fff; background: var(--accent); border: 1px solid #1f4a32; border-radius: 2px;
}
a.st-buy { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
.st-buy:hover:not(:disabled), .st-portal:hover { background: #3a7a56; }
.st-buy:focus-visible, .st-portal:focus-visible { outline: 2px solid #36c; outline-offset: 2px; }
.st-buy:disabled { cursor: not-allowed; color: var(--muted); background: #eaecf0; border-color: var(--line-soft); font-weight: 600; }
.st-buy[aria-busy="true"] { cursor: progress; opacity: .7; }
.st-portal { width: auto; margin-right: 8px; }
.st-manage { font-size: 14px; color: var(--muted); }
.st-small { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.st-compare td { white-space: nowrap; }
.st-compare tbody th { font-weight: 600; background: #f8f9fa; }
.st-faq dt { font-weight: 700; margin-top: 10px; }
.st-faq dd { margin: 2px 0 0; }
@media (max-width: 1100px) { .st-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .st-tiers { grid-template-columns: 1fr; }
  .st-cat > summary { flex-wrap: wrap; gap: 2px 10px; }
  .st-cat-body { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .st-cat > summary::before { transition: none; } }

/* Support, checkout identity and permanent supporter roll. */
.st-support-callout { margin: 16px 0 24px; padding: 20px 24px; border: 1px solid #aabcae; border-left: 5px solid #2f6446; background: #f4f8f4; }
.st-support-callout h2 { margin-top: 2px; font-size: 28px; border: 0; }
.st-eyebrow { margin: 0; color: #2f6446; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.st-account { border: 1px solid var(--line); padding: 14px 18px; margin: 18px 0; }
.st-account h2 { margin-top: 0; }
.st-account > label { display: block; font-weight: 600; }
#st-username { display: block; box-sizing: border-box; max-width: 100%; width: 320px; margin: 6px 0; padding: 10px 12px; border: 1px solid #72777d; border-radius: 2px; font: inherit; }
#st-username:focus { outline: 2px solid #36c; outline-offset: 2px; }
.st-account .st-consent { margin-top: 14px; font-size: 14px; font-weight: 400; }
.st-consent input { width: 17px; height: 17px; vertical-align: middle; margin-right: 5px; }
.st-one-offs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.st-charters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-charter-note { line-height: 1.5; }
.st-tier h3 .st-wheel { flex: none; width: 24px; height: 24px; color: var(--tier); }
@media (max-width: 760px) { .st-charters { grid-template-columns: 1fr; } }
.st-more { font-weight: 600; color: var(--ink); }
.st-cancel { margin: 24px 0; border: 2px solid #2f6446; padding: 16px 20px; background: #f8faf8; scroll-margin-top: 75px; }
.st-cancel h2 { margin-top: 0; }
a.st-portal { display: inline-block; text-decoration: none; line-height: 1.5; }
.st-honours { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 10px; }
.st-honours li { border: 1px solid var(--line); border-left: 4px solid #cb8557; background: #f8f9fa; padding: 12px 16px; }
.st-honours small { display: block; color: var(--muted); margin-top: 3px; }
@media(max-width:560px) { .st-one-offs { grid-template-columns: 1fr; } .st-support-callout { padding: 14px 16px; } .st-cancel { padding: 12px; } }

/* Collapsible background sections (e.g. Rules: why PvP and raiding exist). */
details.more { border: 1px solid var(--line); background: #f8f9fa; padding: 6px 14px; margin: 12px 0 16px; }
details.more > summary { cursor: pointer; font-weight: 700; color: var(--link); }
details.more[open] > summary { margin-bottom: 6px; }

/* Year dial (pages/seasons.html, drawn by tools/season_dial.py; the hand is set by assets/seasons.js) */
.season-dial { float: right; clear: right; width: 360px; margin: 4px 0 14px 22px; padding: 8px 8px 0; background: #f8f9fa; border: 1px solid var(--line-soft); }
.season-dial-svg { display: block; width: 100%; height: auto; }
.season-dial figcaption { font-size: 13px; color: var(--muted); line-height: 1.45; padding: 6px 2px 8px; }
@media (max-width: 640px) { .season-dial { float: none; width: auto; max-width: 360px; margin: 4px auto 16px; } }

/* PayNow product details and verified subscription changes. */
.st-benefits { margin: 0 0 14px; font-size: 13px; }
.st-benefits summary { cursor: pointer; color: var(--link); font-weight: 600; }
.st-benefits p { margin: 8px 0; overflow-wrap: anywhere; }
.st-msg form { margin: 12px 0; }
.st-msg label { display: block; margin: 8px 0; }
.st-msg input { box-sizing: border-box; max-width: 100%; padding: 8px; font: inherit; }
.st-msg .st-portal { margin-top: 8px; }
.st-portal:disabled { cursor: progress; opacity: .6; }

/* ---------- featured links: rules and support ---------- */
.nav-featured { display: grid; gap: 8px; margin: 0 8px 20px 0; }
.nav-featured a {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid; border-radius: 4px;
  color: var(--text); background: #fff; font-weight: 700; font-size: 13.5px; line-height: 1.2; white-space: nowrap;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.nav-featured a:hover { text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.14); }
.nav-featured .nf-text { display: block; min-width: 0; }
.nav-featured small { display: block; margin-top: 3px; font-weight: 400; font-size: 11px; color: var(--muted); }
.nav-featured .nf-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.nf-rules { border-color: #8b94a0; background: linear-gradient(#ffffff, #f3f4f6); }
.nf-rules .nf-icon { background: #2b2d31; color: #fff; }
.nf-rules:hover { border-color: #2b2d31; }
.nf-support { border-color: #d4b25f; background: linear-gradient(#fffdf6, #fff2cf); }
.nf-support .nf-icon { background: #c8950c; color: #fff; }
.nf-support small { color: #7a5a0a; }
.nf-support:hover { border-color: #a97b06; }
.nav-featured a.active { box-shadow: inset 0 0 0 2px #2b2d31; }
.nf-support.active { box-shadow: inset 0 0 0 2px #a97b06; }

.top-support {
  display: inline-flex; align-items: center; gap: 7px; flex: none; height: 32px; padding: 0 13px; margin-left: 2px;
  border: 1px solid #c9a141; border-radius: 16px; background: linear-gradient(#ffe9a8, #f5c842);
  color: #3a2a00; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.top-support svg { color: #a3251d; }
.top-support:hover { text-decoration: none; background: linear-gradient(#fff0c0, #ffd44f); box-shadow: 0 2px 5px rgba(0,0,0,.18); }
@media (max-width: 980px) { .top-support span { display: none; } .top-support { padding: 0 9px; } }
@media (max-width: 420px) { .top-support { display: none; } }

/* home page: the two calls to action under the welcome */
.home-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 14px; }
.hc {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid; border-radius: 6px;
  color: var(--text); transition: box-shadow .15s ease, transform .15s ease;
}
.hc:hover { text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.14); transform: translateY(-1px); }
.hc-icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; }
.hc-icon svg { width: 24px; height: 24px; }
.hc-text { flex: 1; min-width: 0; }
.hc-text strong { display: block; font: 700 19px/1.2 var(--serif); margin-bottom: 4px; }
.hc-text span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.hc-go { flex: none; align-self: center; padding: 8px 14px; border-radius: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hc-rules { border-color: #8b94a0; background: linear-gradient(#ffffff, #f3f4f6); }
.hc-rules .hc-icon { background: #2b2d31; color: #fff; }
.hc-rules .hc-go { background: #2b2d31; color: #fff; }
.hc-support { border-color: #d4b25f; background: linear-gradient(#fffdf6, #fff1c9); }
.hc-support .hc-icon { background: #c8950c; color: #fff; }
.hc-support .hc-text span { color: #5c4300; }
.hc-support .hc-go { background: #c8950c; color: #fff; }
@media (max-width: 860px) { .home-cta { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hc { flex-wrap: wrap; } .hc-go { width: 100%; text-align: center; } }
.nf-home { border-color: #8b94a0; background: linear-gradient(#ffffff, #f3f4f6); }
.nf-home .nf-icon { background: #2f6446; color: #fff; }
.nf-home:hover { border-color: #2f6446; }
.nf-map { border-color: #8fb3d9; background: linear-gradient(#ffffff, #eaf3ff); }
.nf-map .nf-icon { background: #2a6db5; color: #fff; }
.nf-map small { color: #2a5a8a; }
.nf-map:hover { border-color: #2a6db5; }
.nav-featured { gap: 6px; }
.brand img { border-radius: 7px; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
@media (max-width: 420px) { .brand img { display: inline; } }

/* Crafting and furnace panels (build.py expands <recipe .../>). Icons are 64 px renders shown at 32. */
.mc-recipes { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: flex-start; margin: 10px 0 14px; }
.mc-recipe { display: inline-flex; flex-direction: column; gap: 5px; margin: 8px 0 12px; max-width: 100%; vertical-align: top; }
.mc-recipes .mc-recipe { margin: 0; }
.mc-panel { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 10px;
  background: #c6c6c6; border: 2px solid; border-color: #fff #555 #555 #fff; border-radius: 3px; box-shadow: 0 0 0 1px #000; }
.mc-grid { display: grid; }
.mc-grid-1 { grid-template-columns: 40px; }
.mc-grid-2 { grid-template-columns: repeat(2, 40px); }
.mc-grid-3 { grid-template-columns: repeat(3, 40px); }
.mc-slot { position: relative; box-sizing: border-box; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737; }
.mc-slot img { width: 32px; height: 32px; image-rendering: pixelated; }
.mc-out { width: 52px; height: 52px; }
.mc-count { position: absolute; right: 2px; bottom: 0; font: 700 15px/1 var(--sans); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.mc-arrow { width: 30px; height: 22px; flex: none; background: #8b8b8b;
  clip-path: polygon(0 34%, 58% 34%, 58% 0, 100% 50%, 58% 100%, 58% 66%, 0 66%); }
.mc-furnace { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mc-fire { width: 22px; height: 22px; background: linear-gradient(#ffe36b, #ff9a1f 55%, #d8401a);
  clip-path: polygon(50% 0, 64% 24%, 82% 14%, 86% 48%, 100% 70%, 86% 100%, 14% 100%, 0 70%, 16% 44%, 26% 54%, 34% 20%); }
.mc-recipe figcaption { font-size: 13px; color: var(--muted, #54595d); line-height: 1.4; }
@media (max-width: 420px) {
  .mc-grid-1 { grid-template-columns: 34px; } .mc-grid-2 { grid-template-columns: repeat(2, 34px); } .mc-grid-3 { grid-template-columns: repeat(3, 34px); }
  .mc-slot { width: 34px; height: 34px; } .mc-slot img { width: 28px; height: 28px; } .mc-out { width: 44px; height: 44px; }
  .mc-panel { gap: 7px; padding: 6px 8px; }
}
