@font-face{font-family:"Lato";font-style:normal;font-weight:400;font-display:swap;src:url("/static/fonts/Lato-Regular.6dd1d87b.woff2") format("woff2")}
@font-face{font-family:"Lato";font-style:normal;font-weight:700;font-display:swap;src:url("/static/fonts/Lato-Bold.c27418e1.woff2") format("woff2")}
@font-face{font-family:"Gentium Book Plus";font-style:normal;font-weight:700;font-display:swap;src:url("/static/fonts/GentiumBookPlus-Bold.a6ef2120.woff2") format("woff2")}
/* Dadeni Online knowledge base (docs/design/kb.md §5). Colours from client/ui/hud/hud_style.gd:
   warm dark brown with gold, plus a light "parchment" theme. The @font-face block is prepended
   by the generator (crates/kb/src/assets.rs). No inline styles anywhere: CSP style-src 'self'. */

:root {
  color-scheme: dark;
  --bg: #241c19;
  --bg-inset: #181210;
  --bg-raised: #2d231e;
  --border: #8a6a3e;
  --border-dim: #4a3b2b;
  --text: #f1e6d2;
  --text-muted: #b3a48c;
  --gold: #f4dca8;
  --accent: #9c6b2c;
  --accent-text: #fff6e3;
  --highlight: #ffd173;
  --good: #a6d48f;
  --bad: #ef8d75;
  --hp: #cc4538;
  --sp: #4a85db;
  --exp: #dbb04d;
  --job: #85bd66;
  --hdr-bg: #181210;
  --hdr-text: #f1e6d2;
  --hdr-gold: #f4dca8;
  --shadow: rgba(0, 0, 0, 0.35);
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Gentium Book Plus", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f3ead8;
    --bg-inset: #e8dcc2;
    --bg-raised: #fbf5e8;
    --border: #a07f4e;
    --border-dim: #cbb791;
    --text: #2b211b;
    --text-muted: #6b5a45;
    --gold: #7a4f17;
    --accent: #9c6b2c;
    --highlight: #a8701a;
    --good: #3f6d2a;
    --bad: #a8432e;
    /* HUD bar colours darkened for contrast on parchment. */
    --hp: #a8432e;
    --exp: #85600e;
    --job: #3f6d2a;
    --shadow: rgba(80, 50, 20, 0.15);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3ead8;
  --bg-inset: #e8dcc2;
  --bg-raised: #fbf5e8;
  --border: #a07f4e;
  --border-dim: #cbb791;
  --text: #2b211b;
  --text-muted: #6b5a45;
  --gold: #7a4f17;
  --accent: #9c6b2c;
  --highlight: #a8701a;
  --good: #3f6d2a;
  --bad: #a8432e;
  /* HUD bar colours darkened for contrast on parchment. */
  --hp: #a8432e;
  --exp: #85600e;
  --job: #3f6d2a;
  --shadow: rgba(80, 50, 20, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font-body);
  overflow-wrap: break-word;
}

a {
  color: var(--gold);
  text-decoration-color: color-mix(in srgb, var(--gold) 45%, transparent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--highlight);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin: 1.2em 0 0.5em;
}

h1 {
  font-size: 30px;
  margin-top: 0.3em;
}

h2 {
  font-size: 21px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-dim);
}

h3 {
  font-size: 17px;
}

p {
  margin: 0.5em 0 0.9em;
}

img {
  max-width: 100%;
  height: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--accent);
  color: var(--accent-text);
  padding: 8px 12px;
}

.skip:focus {
  left: 8px;
}

.muted {
  color: var(--text-muted);
}

.num,
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

/* ---- header ------------------------------------------------------------------------------ */

.site-header {
  background: var(--hdr-bg);
  color: var(--hdr-text);
  border-bottom: 1px solid #8a6a3e;
  box-shadow: inset 0 -1px 0 rgba(244, 220, 168, 0.12);
}

.site-header .bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.brand img.mark {
  width: 32px;
  height: 32px;
}

.brand img.wordmark {
  height: 26px;
  width: auto;
}

.brand .kb-tag {
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.12em;
  color: #b3a48c;
  border: 1px solid #4a3b2b;
  padding: 3px 5px;
  border-radius: 3px;
}

.nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 8px 7px;
  white-space: nowrap;
  color: #f1e6d2;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
}

.nav a:hover {
  background: rgba(244, 220, 168, 0.08);
  color: #ffd173;
}

.nav a[aria-current="page"],
.nav a.active {
  background: #9c6b2c;
  color: #fff6e3;
}

.tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.searchbox {
  display: flex;
}

.searchbox input {
  width: 160px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #4a3b2b;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #241c19;
  color: #f1e6d2;
  font: inherit;
}

.searchbox button,
.btn-icon {
  min-height: 34px;
  min-width: 34px;
  border: 1px solid #4a3b2b;
  background: #2d231e;
  color: #f4dca8;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font: inherit;
}

.btn-icon {
  border-radius: 4px;
  display: none;
}

.js .btn-icon {
  display: inline-block;
}

.icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  fill: currentColor;
}

.langs {
  display: flex;
  gap: 2px;
  font-weight: 700;
}

.langs a {
  color: #b3a48c;
  text-decoration: none;
  padding: 7px 7px;
  border-radius: 4px;
}

.langs a[aria-current="true"] {
  color: #f4dca8;
  background: rgba(244, 220, 168, 0.1);
}

.menu {
  display: none;
}

/* ---- layout ------------------------------------------------------------------------------ */

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}

.crumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 6px;
}

.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.crumbs li + li::before {
  content: "›";
  margin-right: 4px;
  color: var(--border);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.layout > .content {
  min-width: 0;
}

.infobox {
  position: sticky;
  top: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(244, 220, 168, 0.18), 0 2px 8px var(--shadow);
  padding: 12px;
}

.infobox .portrait {
  display: block;
  margin: 0 auto 8px;
  background: radial-gradient(circle at 50% 40%, var(--bg-inset), transparent 70%);
  border-radius: 6px;
}

/* Job emblems and item icons at the top of an infobox: centred like portraits. */
.infobox > img.thumb {
  display: block;
  margin: 0 auto 8px;
}

.infobox h2 {
  margin: 4px 0 8px;
  border: 0;
  text-align: center;
  font-size: 22px;
}

.infobox dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  margin: 8px 0 0;
}

.infobox dt {
  color: var(--text-muted);
}

.infobox dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(244, 220, 168, 0.14);
  padding: 12px 14px;
  margin: 12px 0;
}

.lead {
  font-size: 15px;
  color: var(--text);
}

.notice {
  border-left: 3px solid var(--accent);
  background: var(--bg-inset);
  padding: 10px 12px;
  margin: 12px 0;
  border-radius: 0 4px 4px 0;
}

/* ---- tables ------------------------------------------------------------------------------ */

.tbl {
  overflow-x: auto;
  margin: 8px 0 14px;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

th,
td {
  padding: 4px 6px;
  border-bottom: 1px solid var(--border-dim);
  vertical-align: middle;
  text-align: left;
}

thead th {
  position: sticky;
  top: 0;
  background: var(--bg-inset);
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
  z-index: 1;
}

tbody tr {
  background: var(--bg-raised);
}

tbody tr:nth-child(even) {
  background: var(--bg-inset);
}

tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-raised));
}

tbody th {
  font-weight: 700;
}

.tbl td:first-child,
.tbl th:first-child {
  position: sticky;
  left: 0;
  background: inherit;
}

.tbl thead th:first-child {
  background: var(--bg-inset);
  z-index: 2;
}

table.kv th {
  width: 45%;
  color: var(--text-muted);
  font-weight: 400;
}

/* Key/value tables have two columns only: let long values (walking speed) wrap instead of
   pushing the value column off-screen on phones. */
table.kv td {
  white-space: normal;
}

.ent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ent img {
  flex: none;
}

img.thumb {
  object-fit: contain;
}

th[data-sort] {
  cursor: pointer;
  user-select: none;
}

th[data-sort]::after {
  content: "";
  margin-left: 4px;
}

th[aria-sort="ascending"]::after {
  content: "▲";
  font-size: 9px;
}

th[aria-sort="descending"]::after {
  content: "▼";
  font-size: 9px;
}

tr.hidden {
  display: none;
}

/* ---- filters, chips, badges --------------------------------------------------------------- */

.filters {
  display: none;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 8px 10px;
  margin: 8px 0;
  background: var(--bg-inset);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
}

.js .filters {
  display: flex;
}

.filters label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
}

.filters input[type="number"] {
  width: 64px;
}

.filters input,
.filters select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 4px 6px;
}

.filters .count {
  margin-left: auto;
  color: var(--text-muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px 1px 5px;
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  background: var(--bg-inset);
}

.badge .icon {
  width: 13px;
  height: 13px;
  vertical-align: 0;
}

.badge.aggressive,
.badge.boss {
  border-color: var(--bad);
  color: var(--bad);
}

.badge.passive {
  color: var(--good);
}

.badge.planned {
  border-color: var(--accent);
  color: var(--gold);
}

.badge.live {
  border-color: var(--good);
  color: var(--good);
}

.chips {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.js .chips {
  display: flex;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--border-dim);
  border-radius: 17px;
  background: var(--bg-raised);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  border-color: var(--highlight);
  background: color-mix(in srgb, var(--accent) 35%, var(--bg-raised));
}

.sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.sw-0 { background: #ffd173; }
.sw-1 { background: #7fd3e8; }
.sw-2 { background: #ef8d75; }
.sw-3 { background: #a6d48f; }
.sw-4 { background: #d49be8; }
.sw-5 { background: #f2a63a; }
.sw-6 { background: #8fa8ff; }
.sw-7 { background: #ff8fc8; }
.band-0 { background: #a6d48f; }
.band-1 { background: #dbd06a; }
.band-2 { background: #f2a63a; }
.band-3 { background: #ef8d75; }
.band-4 { background: #cc4538; }
.band-5 { background: #9c4a8a; }

.stat-hp { color: var(--hp); }
.stat-sp { color: var(--sp); }
.stat-exp { color: var(--exp); }
.stat-job { color: var(--job); }
.good { color: var(--good); }
.bad { color: var(--bad); }

/* ---- maps --------------------------------------------------------------------------------- */

.mapfig {
  position: relative;
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-inset);
  line-height: 0;
}

.mapfig img.base {
  display: block;
  width: 100%;
  height: auto;
}

.mapfig img.pix,
.mapfig .ov {
  image-rendering: pixelated;
}

.mapfig .ov,
.mapfig svg.pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mapfig .ov[hidden] {
  display: none;
}

svg.pins {
  overflow: visible;
}

svg.pins .warp {
  fill: #7fd3e8;
  stroke: #10202a;
  stroke-width: 0.6;
}

svg.pins .npc {
  fill: #ffd173;
  stroke: #3a2a17;
  stroke-width: 0.6;
}

svg.pins .entry {
  fill: none;
  stroke: #fff6e3;
  stroke-width: 1.4;
}

svg.pins .anchor {
  fill: #f1e6d2;
  stroke: #3a2a17;
  stroke-width: 0.5;
}

svg.pins text {
  font-family: var(--font-body);
  font-weight: 700;
  fill: #fff6e3;
  stroke: #1a120c;
  stroke-width: 0.22em;
  paint-order: stroke;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.warp { background: #7fd3e8; }
.dot.npc { background: #ffd173; }
.dot.entry { border: 2px solid var(--text); }
.dot.anchor { background: #f1e6d2; }

/* ---- cards -------------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(244, 220, 168, 0.14);
  padding: 12px;
  color: var(--text);
  text-decoration: none;
}

a.card:hover {
  border-color: var(--border);
  color: var(--text);
}

.card h3 {
  margin: 0 0 6px;
}

.card img.cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  margin-bottom: 8px;
  image-rendering: auto;
}

.card .meta {
  color: var(--text-muted);
  font-size: 13px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.tile {
  text-align: center;
  padding: 10px 6px;
}

.tile img {
  display: block;
  margin: 0 auto 6px;
}

/* ---- hero --------------------------------------------------------------------------------- */

.hero {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 4px 0 16px;
  background: #181210;
  min-height: 260px;
}

.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .shade {
  position: relative;
  min-height: 260px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  background: linear-gradient(180deg, rgba(24, 18, 16, 0) 0%, rgba(24, 18, 16, 0.55) 45%, rgba(24, 18, 16, 0.92) 100%);
  color: #f1e6d2;
}

.hero img.wordmark {
  width: min(520px, 90%);
  height: auto;
}

.hero p {
  font-size: 17px;
  max-width: 640px;
  margin: 0;
  color: #f1e6d2;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  background: #9c6b2c;
  color: #fff6e3;
  border: 1px solid #c99a4a;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #b07a32;
  color: #fff;
}

.button.disabled {
  background: #4a3b2b;
  border-color: #6b5a45;
  color: #b3a48c;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ---- jobs --------------------------------------------------------------------------------- */

.ladder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ladder .path {
  background: var(--bg-raised);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 10px;
  text-align: center;
}

.ladder .path img {
  display: block;
  margin: 0 auto 4px;
}

.ladder .path h3 {
  margin: 2px 0;
}

.ladder .second {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px dashed var(--border-dim);
  color: var(--text-muted);
  font-size: 13px;
}

.ladder-root {
  text-align: center;
  margin: 8px 0 12px;
}

.ladder-root .card {
  display: inline-block;
  min-width: 220px;
}

.rebirth {
  text-align: center;
  margin-top: 12px;
}

svg.graph {
  max-width: 100%;
  height: auto;
}

svg.graph .node {
  fill: var(--bg-raised);
  stroke: var(--border);
}

svg.graph text {
  fill: var(--text);
  font: 700 13px var(--font-body);
}

svg.graph .edge {
  stroke: var(--border);
  stroke-width: 1.5;
  fill: none;
}

/* ---- search ------------------------------------------------------------------------------- */

.search-page form {
  display: flex;
  gap: 0;
  max-width: 560px;
}

.search-page input[type="search"] {
  flex: 1;
  min-height: 40px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 4px 0 0 4px;
  background: var(--bg-raised);
  color: var(--text);
}

.search-page button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: var(--accent);
  color: #fff6e3;
  font: inherit;
  font-weight: 700;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.results {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.results li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-dim);
  text-decoration: none;
  min-height: 44px;
}

.results li a:hover {
  background: var(--bg-raised);
}

.results img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.results .kind {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
}

.nojs-only {
  display: block;
}

.js .nojs-only {
  display: none;
}

/* ---- steps -------------------------------------------------------------------------------- */

ol.steps {
  padding-left: 22px;
}

ol.steps > li {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
}

ol.steps ul {
  margin: 4px 0;
  padding-left: 18px;
}

.rewards .rw + .rw::before {
  content: ", ";
}

.tip {
  font-style: italic;
  color: var(--text-muted);
}

.prose {
  max-width: 760px;
}

.prose li {
  margin: 3px 0;
}

/* ---- footer ------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-dim);
  background: var(--bg-inset);
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer .bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

/* ---- root chooser / 404 ------------------------------------------------------------------- */

.chooser {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 16px;
  text-align: center;
  background: #181210;
  color: #f1e6d2;
}

.chooser img.wordmark {
  width: min(560px, 90vw);
  height: auto;
}

.chooser .sides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 760px;
  width: 100%;
}

.chooser .side {
  border: 1px solid #4a3b2b;
  border-radius: 6px;
  padding: 16px;
  background: #241c19;
}

.chooser .side p {
  color: #b3a48c;
}

.chooser form {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.chooser input[type="search"] {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #4a3b2b;
  border-radius: 4px 0 0 4px;
  background: #181210;
  color: #f1e6d2;
  font: inherit;
  width: 100%;
  max-width: 200px;
}

.chooser button {
  min-height: 38px;
  border: 1px solid #8a6a3e;
  background: #9c6b2c;
  color: #fff6e3;
  font: inherit;
  border-radius: 0 4px 4px 0;
  padding: 0 12px;
}

/* ---- responsive --------------------------------------------------------------------------- */

@media (max-width: 1600px) {
  .brand .kb-tag {
    display: none;
  }

  /* Room for seven nav items (RU labels are long) on one line at 1440 px. */
  .site-header .bar {
    gap: 12px;
  }

  .nav a {
    padding: 8px 6px;
  }

  .searchbox input {
    width: 130px;
  }
}

@media (max-width: 1100px) {
  .searchbox input {
    width: 130px;
  }

  .ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout > .infobox {
    order: -1;
    position: static;
  }

  .infobox .portrait {
    width: 128px;
  }

  .site-header .bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-wide {
    display: none;
  }

  .menu {
    display: block;
    order: 3;
    width: 100%;
  }

  .menu summary {
    list-style: none;
    cursor: pointer;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f4dca8;
    font-weight: 700;
  }

  .menu summary::-webkit-details-marker {
    display: none;
  }

  .menu .nav {
    flex-direction: column;
  }

  .menu .nav a {
    padding: 10px 8px;
  }

  .tools {
    margin-left: auto;
  }

  .searchbox input {
    width: 110px;
  }

  .ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 24px;
  }

  .brand img.wordmark {
    height: 20px;
  }

  .brand .kb-tag {
    display: none;
  }

  .searchbox {
    display: none;
  }

  .hero .shade {
    padding: 18px 14px;
  }

  .hero p {
    font-size: 15px;
  }

  .ladder {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- download ----------------------------------------------------------------------------- */

.download .button.big {
  min-height: 52px;
  padding: 12px 22px;
  font-size: 18px;
}

.download .meta {
  margin: 10px 0 4px;
}

.download code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}

.download code.hash {
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
}
