:root {
  color-scheme: dark;
  --bg: #211719;
  --panel: #2c1d20;
  --line: #5a3a3b;
  --text: #f5e5da;
  --muted: #cdb5aa;
  --gold: #ffce8e;
  --accent: #8e2f2c;
  font: 16px/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--bg); }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: #ffead0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button, input { font: inherit; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 4; padding: .5rem; background: var(--panel); }
.top { position: relative; z-index: 3; border-bottom: 1px solid var(--line); background: #2a1b1e; }
.top-inner { display: grid; grid-template-columns: 15rem minmax(0, 36rem) auto; align-items: center; gap: 2rem; max-width: 83rem; min-height: 4.5rem; margin: auto; padding: .6rem 2rem; }
.brand { display: inline-flex; flex-direction: column; justify-self: start; text-decoration: none; line-height: 1.15; }
.brand span { font-weight: 900; letter-spacing: .12em; font-size: 1.2rem; }
.brand small { color: var(--muted); margin-top: .3rem; }
.team { justify-self: end; font-size: .875rem; white-space: nowrap; }
.search { position: relative; min-width: 0; }
.search input { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--text); padding: .55rem .8rem; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.results { position: absolute; top: calc(100% + .35rem); left: 0; right: 0; max-height: min(60vh, 29rem); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 35px #14090b99; }
.results a, .results p { display: block; margin: 0; padding: .65rem .9rem; }
.results a { text-decoration: none; border-bottom: 1px solid var(--line); }
.results a:hover, .results a:focus-visible { background: #44292c; outline-offset: -2px; }
.results small { display: block; color: var(--muted); }
.layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; max-width: 83rem; padding: 1.75rem 2rem 2rem; margin: auto; }
.sections { align-self: start; border-right: 1px solid var(--line); padding-right: 1rem; }
.nav-toggle { display: none; }
.sections h2 { font-size: .76rem; text-transform: uppercase; letter-spacing: .075em; color: var(--muted); margin: 1.3rem 0 .2rem .6rem; }
.sections section:first-child h2 { margin-top: .45rem; }
.sections ul, .contents ul { margin: 0; padding: 0; list-style: none; }
.sections a { display: block; padding: .35rem .6rem; line-height: 1.35; border-radius: 4px; color: var(--text); text-decoration: none; font-size: .92rem; }
.sections a:hover, .sections a[aria-current] { background: #47282b; color: var(--gold); }
.sections a[aria-current] { box-shadow: inset 3px 0 var(--gold); }
.article { min-width: 0; }
.title { padding: 1.35rem 1.6rem 1.45rem; border: 1px solid #9f6455; border-radius: 10px; background: linear-gradient(110deg, #66312c, #392122 80%); }
.crumb { margin: 0 0 .2rem; font-size: .86rem; }
h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 3.15rem); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; margin-top: 1rem; }
.contents { margin: 1rem 0; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.contents summary { cursor: pointer; font-weight: 650; }
.contents ul { margin: .3rem 0; display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .88rem; }
.body { margin-top: 1.4rem; overflow-wrap: anywhere; }
.body p { max-width: 77ch; }
.body img { display: block; max-width: 100%; height: auto; margin: .75rem 0; border: 1px solid var(--line); border-radius: 7px; }
.body li { margin: .22rem 0; max-width: 75ch; }
.body h2 { padding-bottom: .22rem; border-bottom: 1px solid var(--line); font-size: 1.4rem; }
.body h3 { font-size: 1.1rem; }
.body h2, .body h3 { margin-top: 1.75rem; scroll-margin-top: 1rem; }
code { font: .87em/1.6 ui-monospace, monospace; border-radius: 4px; background: #39272a; color: #ffe1b8; padding: .1em .35em; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { border-bottom: 1px solid var(--line); padding: .55rem .65rem; text-align: left; vertical-align: top; }
th { background: #512b2e; font-size: .9rem; }
tr:nth-child(even) { background: var(--panel); }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: .8rem; color: var(--muted); font-size: .86rem; }
@media (max-width: 740px) {
  .top-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .7rem 1rem; padding: .8rem 1rem; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .layout { display: block; padding: .9rem 1rem 1.5rem; }
  .sections { border: 0; padding: 0; margin-bottom: .9rem; }
  .nav-toggle { display: inline-block; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: var(--panel); padding: .3rem .65rem; cursor: pointer; }
  .nav-toggle[aria-expanded="true"] + div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .5rem; }
  .sections section:first-child h2 { margin-top: 1.3rem; }
  .title { padding: 1.05rem 1rem; }
  th, td { padding: .45rem .35rem; }
}
