/* The Baronland wiki: the game's own colours and type. */
:root {
  --bg: #17130e; --panel: #241d15; --panel-2: #2e251b; --line: #4a3c2a;
  --ink: #efe5cf; --ink-2: #b9a98a; --gold: #d2a24c; --link: #e6c47e;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; color: var(--gold); letter-spacing: .02em; }
h1 { font-size: 46px; margin: 8px 0 6px; line-height: 1.05; }
h2 { font-size: 28px; margin: 34px 0 10px; }
h2 small { font: italic 15px "IM Fell English", Georgia, serif; color: var(--ink-2); margin-left: 8px; letter-spacing: 0; }
h3 { font-size: 21px; margin: 24px 0 8px; }
p { margin: 10px 0; }
.lead, .intro { font: italic 19px/1.5 "IM Fell English", Georgia, serif; color: var(--ink-2); max-width: 820px; }
kbd { font: 600 12px system-ui, sans-serif; border: 1px solid var(--line); background: var(--panel); border-radius: 4px; padding: 1px 6px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 10px 24px; background: rgba(23,19,14,.96); border-bottom: 1px solid var(--line); }
.brand { font: 26px "IM Fell English SC", Georgia, serif; color: var(--gold); }
.brand span { color: var(--ink-2); font-size: 18px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; flex: 1; }
nav a { color: var(--ink-2); font-size: 14px; }
nav a.on { color: var(--gold); }
.find { position: relative; }
.find input { width: 220px; font: inherit; font-size: 14px; color: var(--ink); background: #120e0a; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
#hits { position: absolute; right: 0; top: 36px; width: 300px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; display: none; max-height: 60vh; overflow: auto; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
#hits.open { display: block; }
#hits a { display: flex; justify-content: space-between; padding: 6px 10px; color: var(--ink); }
#hits a small { color: var(--ink-2); }
#hits a.sel, #hits a:hover { background: var(--panel-2); text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 18px 24px 60px; }
footer { border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; padding: 16px 24px 30px; text-align: center; }
img, .tile { image-rendering: pixelated; }
a.it { white-space: nowrap; }
a.it img { width: 24px; height: 24px; vertical-align: -6px; margin-right: 4px; }
a.it img.spr { width: auto; height: 24px; }
.tile { display: inline-block; width: 32px; height: 32px; vertical-align: -10px; background-image: url(/art/tiles.png); margin-right: 4px; transform: scale(.75); transform-origin: left center; margin-right: -4px; }
.item-head { display: flex; gap: 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 10px 0 16px; }
.item-head .big { width: 96px; height: auto; min-height: 64px; object-fit: contain; flex: none; }
.item-head p { font: italic 18px/1.5 "IM Fell English", Georgia, serif; margin: 0; }
table { border-collapse: collapse; width: 100%; margin: 10px 0; }
table.facts { width: auto; min-width: 50%; }
th, td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--line); }
table.facts th, table.grid tr > th:first-child:not(:only-child) { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
table.grid tr:first-child th, table.grid tr:first-child > th:first-child:not(:only-child) { color: var(--gold); font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--line); }
table.grid td { font-size: 15px; }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }
.none { color: var(--ink-2); font-style: italic; }
.aside { color: var(--ink-2); font-size: 14px; }
.play { display: inline-block; background: var(--gold); color: #1b140b; font-weight: 700; padding: 10px 18px; border-radius: 8px; }
.play:hover { filter: brightness(1.08); text-decoration: none; }
.tiles, .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 22px 0; padding: 0; list-style: none; }
.tiles a, .cards a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--ink); height: 100%; }
.tiles a:hover, .cards a:hover { border-color: var(--gold); text-decoration: none; }
.tiles b, .cards b { display: block; font: 22px "IM Fell English SC", Georgia, serif; color: var(--gold); font-weight: 400; margin-bottom: 4px; }
.tiles span, .cards span { color: var(--ink-2); font-size: 14px; }
.cards li { margin: 0; }
/* the production chains */
.chain { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 16px; margin: 18px 0; }
.chain h2 { margin-top: 14px; font-size: 24px; }
.flow { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.node { display: inline-block; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin: 2px 0; }
.node small { display: block; color: var(--ink-2); font-size: 12px; }
.arrow { position: relative; margin: 2px 0 2px 22px; padding: 6px 0 6px 18px; border-left: 2px solid var(--gold); color: var(--ink-2); font-size: 13px; font-style: italic; }
.arrow::after { content: '▼'; position: absolute; left: -7px; bottom: -11px; color: var(--gold); font-size: 11px; font-style: normal; }
.fan { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 4px 6px; }
.split { display: flex; flex-wrap: wrap; gap: 18px; margin-left: 6px; }
.branch { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 280px; border-left: 1px dashed var(--line); padding-left: 10px; }
.manor { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.update table.grid th { width: 22%; }
@media (max-width: 720px) {
  .top { padding: 8px 16px; }
  .find input { width: 160px; }
  main { padding: 12px 16px 50px; }
  h1 { font-size: 34px; }
  table.grid { display: block; overflow-x: auto; }
}
