/* New School 99 Wiki. The palette, fonts and components are the team wiki's NS99 theme (ns99.css, which takes them
   from newschool99.com's site.css); the layout reproduces the Vector 2022 skin it was made for, written for this
   static site. Foundation-owned: writers never edit this file. */
:root {
  --abyss: #050a09;
  --basalt: #0c1513;
  --slate: #13201d;
  --hearth: #17130c;
  --line: rgba(228, 185, 100, .3);
  --line-soft: rgba(239, 231, 212, .1);
  --gilt: #e4b964;
  --gilt-hi: #fff0c2;
  --gilt-lo: #9a6a2c;
  --emerald: #2fd38a;
  --emerald-deep: #0f6b45;
  --ember: #ff6a2b;
  --arcane: #7de2f0;
  --parchment: #efe7d4;
  --ash: #a8a291;
  --dim: #78756b;
  --down: #e5a04d;
  --visited: #c9a35c;
  --red-link: #ff9a70;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'SFMono-Regular', Menlo, monospace;
  --gold-text: linear-gradient(180deg, var(--gilt-hi) 8%, var(--gilt) 52%, #b98236 100%);
  --panel-bg: linear-gradient(180deg, rgba(23, 19, 12, .72), rgba(12, 21, 19, .72));
  --text: rgba(239, 231, 212, .88);
  --body-size: 16px;
  --pad-x: 44px;
  color-scheme: dark;
}
html.t-small { --body-size: 14px; }
html.t-large { --body-size: 20px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background-color: var(--abyss); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60% 40% at 20% 30%, rgba(228, 185, 100, .05), transparent 70%) fixed,
    radial-gradient(50% 40% at 85% 70%, rgba(47, 211, 138, .04), transparent 70%) fixed,
    var(--abyss);
  color: var(--parchment);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--gilt); text-decoration: none; }
a:hover { color: var(--gilt-hi); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gilt-hi); outline-offset: 2px; }
img { border: 0; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--basalt); border: 1px solid var(--line); color: var(--gilt-hi); }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }

/* ---------- header (66 px, solid, not sticky) ---------- */
.hdr { position: relative; z-index: 10; background: var(--abyss); box-shadow: 0 1px 0 var(--line-soft); }
.hdr-in { max-width: 99.75rem; height: 66px; margin: 0 auto; padding: 8px var(--pad-x); display: flex; align-items: center; }
html.w-wide .hdr-in, html.w-wide .page, html.w-wide .ftr { max-width: none; }
.hdr-start { display: flex; align-items: center; flex: 0 0 286px; min-width: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 2px;
  background: transparent; color: var(--parchment); cursor: pointer; list-style: none;
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: rgba(239, 231, 212, .08); color: var(--gilt-hi); }
.mainmenu > summary { margin-left: -6px; }
.logo { display: block; margin-left: 14px; line-height: 0; }
.logo img { width: 110px; height: 50px; }
.logo:hover { text-decoration: none; }

.search { display: flex; align-items: stretch; flex: 0 1 477px; min-width: 0; height: 32px; }
.search-field { position: relative; flex: 1 1 auto; min-width: 0; }
.search-field .mag { position: absolute; left: 9px; top: 6px; color: var(--ash); pointer-events: none; }
.search input, .sr-field input, .ap-form input, .ftable input {
  width: 100%; height: 32px; margin: 0; padding: 0 10px 0 36px;
  font: 400 14px/1 var(--sans); color: var(--parchment);
  background: var(--abyss); border: 1px solid var(--line-soft); border-radius: 0; outline: 0;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder, .sr-field input::placeholder, .ap-form input::placeholder, .ftable input::placeholder { color: var(--dim); }
.search input:focus, .sr-field input:focus, .ap-form input:focus, .ftable input:focus, .ftable select:focus {
  border-color: var(--gilt-hi); box-shadow: inset 0 0 0 1px var(--gilt-hi);
}
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-btn {
  flex: 0 0 auto; height: 32px; margin-left: -1px; padding: 0 11px;
  font: 700 14px/1 var(--sans); color: var(--parchment); cursor: pointer;
  background: var(--basalt); border: 1px solid var(--line-soft); border-radius: 0;
}
.search-btn:hover { color: var(--gilt-hi); background: var(--slate); }
.hdr-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-dl { font: 600 14px/1 var(--sans); color: var(--gilt); padding: 8px 0 8px 8px; }
.search-toggle, .moremenu { display: none; }

/* typeahead */
.sugg {
  position: absolute; left: 0; right: -69px; top: calc(100% + 2px); z-index: 60;
  margin: 0; padding: 4px 0; list-style: none;
  background: var(--basalt); border: 1px solid var(--line-soft); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.sugg li a { display: block; padding: 7px 12px; color: var(--parchment); text-decoration: none; }
.sugg li.on a, .sugg li a:hover { background: rgba(228, 185, 100, .1); }
.sg-t { display: block; font: 600 14px/1.35 var(--sans); }
.sg-t b { color: var(--gilt-hi); font-weight: 700; }
.sg-d { display: block; font-size: 12.5px; line-height: 1.35; color: var(--ash); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg li.sg-all { border-top: 1px solid var(--line-soft); margin-top: 4px; }
.sugg li.sg-all a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gilt); }

/* dropdowns (details menus) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 220px;
  padding: 10px 0 12px; color: var(--parchment);
  background: var(--basalt); border: 1px solid var(--line-soft); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li a, .dropdown li button {
  display: block; width: 100%; padding: 5px 16px; font: 400 14px/1.45 var(--sans);
  color: var(--gilt); text-align: left; background: none; border: 0; cursor: pointer; text-decoration: none;
}
.dropdown li a:hover, .dropdown li button:hover { color: var(--gilt-hi); background: rgba(228, 185, 100, .06); }
.dd-head { padding: 0 16px 8px; margin-bottom: 4px; font: 700 14px/1.4 var(--sans); color: var(--ash); border-bottom: 1px solid var(--line-soft); }
.dd-h { padding: 10px 16px 4px; font: 700 12.5px/1.4 var(--sans); color: var(--ash); }
.dd-more { left: auto; right: 0; min-width: 180px; }
.dd-tools { left: auto; right: 0; min-width: 200px; }

/* ---------- page grid: Contents | article | Appearance ---------- */
.page {
  max-width: 99.75rem; margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; grid-template-areas: "toc main end";
  column-gap: 0; align-items: start;
}
.page.no-toc { grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "main end"; column-gap: 0; }
html.toc-hidden .page.has-toc { grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "main end"; column-gap: 0; }
html.toc-hidden .col-toc { display: none; }
.col-main { grid-area: main; min-width: 0; padding-top: 22px; }
.col-end { grid-area: end; padding: 0 16px 0 40px; }
html.app-hidden .page { grid-template-columns: 220px minmax(0, 1fr) 0; }
html.app-hidden .page.no-toc, html.app-hidden.toc-hidden .page { grid-template-columns: minmax(0, 1fr) 0; }
html.app-hidden .appearance { display: none; }

/* Contents (left column) */
.col-toc { grid-area: toc; width: 172px; position: sticky; top: 12px; margin-top: 58px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 12px 0 24px 16px; scrollbar-width: thin; }
.pin-head { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.pin-label { margin: 0; font: 700 14px/1.6 var(--sans); color: var(--ash); }
.pin-btn {
  padding: 1px 8px 2px; font: 600 12px/1.6 var(--sans); color: var(--parchment); cursor: pointer;
  background: rgba(239, 231, 212, .1); border: 0; border-radius: 2px;
}
.pin-btn:hover { background: rgba(239, 231, 212, .18); color: var(--gilt-hi); }
.toc-list, .toc-list ul { list-style: none; margin: 0; padding: 0; }
.toc-list { padding-top: 6px; }
.toc-item { position: relative; }
.toc-item > a { display: block; padding: 4px 0; font: 400 14px/1.5 var(--sans); color: rgba(239, 231, 212, .78); text-decoration: none; }
.toc-item > a:hover { color: var(--gilt-hi); }
.toc-item.active > a { color: var(--gilt-hi); font-weight: 700; }
.toc-l2 > a { padding-left: 12px; }
.toc-tog {
  position: absolute; left: -20px; top: 5px; width: 18px; height: 18px; padding: 0; border: 0; background: none;
  color: var(--parchment); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.toc-tog svg { transition: transform .15s; }
.has-sub:not(.open) > .toc-tog svg { transform: rotate(-90deg); }
.has-sub:not(.open) > ul { display: none; }

/* Appearance (right column) */
.appearance { position: sticky; top: 12px; margin-top: 58px; padding-top: 12px; }
.app-group { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.app-group legend { width: 100%; padding: 4px 0 6px; margin-bottom: 8px; font: 400 14px/1.4 var(--sans); color: var(--ash); border-bottom: 1px solid var(--line-soft); }
.radio { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; color: var(--parchment); cursor: pointer; }
.radio input {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0; flex: 0 0 20px;
  border: 1px solid rgba(239, 231, 212, .35); border-radius: 50%; background: var(--abyss); cursor: pointer;
}
.radio input:checked { border: 6px solid var(--gilt); background: var(--abyss); }
.radio input:focus-visible { outline: 2px solid var(--gilt-hi); outline-offset: 2px; }
.app-note { margin: 6px 0 0; font-size: 13px; line-height: 1.35; color: var(--ash); }
.app-show { display: none; }
html.app-hidden .app-show {
  display: block; position: sticky; top: 12px; margin-top: 70px; margin-left: -24px; padding: 2px 8px;
  font: 600 12px/1.6 var(--sans); color: var(--ash); background: rgba(239, 231, 212, .08); border: 0; cursor: pointer;
  writing-mode: vertical-rl;
}

/* ---------- title and tabs ---------- */
.titlebar { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; box-shadow: 0 1px 0 var(--line-soft); }
.title, .body h2 {
  color: var(--gilt-hi);
  background: var(--gold-text) 0 0 / 100% 1.1em repeat-y;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.title { margin: 0; font: 900 clamp(30px, 2.4vw + 16px, 46px)/1.1 var(--display); overflow-wrap: anywhere; }
.toc-fab { flex: 0 0 auto; display: none !important; margin-left: -6px; }
html.toc-hidden .toc-fab:not([hidden]) { display: inline-flex !important; }
.redirected { margin: 4px 0 0; font-size: 13px; color: var(--ash); }
.tabs { display: flex; justify-content: space-between; align-items: flex-end; min-height: 38px; box-shadow: 0 1px 0 var(--line-soft); }
.tabs > ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.tab > a, .tab summary {
  display: flex; align-items: center; gap: 6px; padding: 12px 0 7px;
  font: 600 14px/1.35 var(--sans); color: var(--ash); text-decoration: none; white-space: nowrap;
}
.tab > a:hover, .tab summary:hover { color: var(--gilt-hi); text-decoration: none; }
.tab.sel > a { color: var(--gilt-hi); box-shadow: inset 0 -2px 0 var(--gilt); }
.tab summary { color: var(--parchment); font-weight: 500; }
.tab summary svg { margin-left: 4px; }

/* ---------- article ---------- */
.body { padding-top: 16px; font-size: var(--body-size); line-height: 1.6; color: var(--text); overflow-wrap: break-word; }
.body::after { content: ""; display: block; clear: both; }
.body p { margin: 8px 0 16px; }
.body h2, .body h3, .body h4 { scroll-margin-top: 16px; }
.body h2 { margin: 8px 0; padding-top: 16px; font: 800 clamp(24px, 1.2vw + 17px, 32px)/1.1 var(--display); overflow: hidden; }
.body h3 { margin: 4px 0 4px; padding-top: 9.5px; font: 700 19px/1.3 var(--sans); color: var(--gilt-hi); }
.body h4 { margin: 12px 0 4px; font: 700 13px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--gilt); }
.body a:visited { color: var(--visited); }
.body a:visited:hover { color: var(--gilt-hi); }
.body a.new, .body a.new:visited { color: var(--red-link); }
.body a.new:hover { color: #ffb898; }
.body a.ext::after { content: ' \2197'; color: var(--gilt-lo); }
.body strong, .body b { color: var(--gilt-hi); font-weight: 600; }
.body strong.selflink { font-weight: 700; }
.body em { font-style: italic; }
.body ul, .body ol { margin: 4px 0 16px 1.6em; padding: 0; }
.body li { margin-bottom: 1.6px; }
.body li > ul, .body li > ol { margin-top: 1.6px; margin-bottom: 0; }
.body li::marker { color: var(--gilt); }
.body dl { margin: 4px 0 16px; }
.body dt { font-weight: 700; color: var(--parchment); }
.body dd { margin: 0 0 6px 1.6em; }
.body hr { height: 1px; margin: 16px 0; border: 0; background: var(--line-soft); }
kbd {
  display: inline-block; padding: 1px 7px 2px; font: 600 .82em/1.4 var(--sans); color: var(--parchment); white-space: nowrap;
  background: rgba(239, 231, 212, .08); border: 1px solid rgba(239, 231, 212, .22); border-bottom-width: 2px; border-radius: 4px;
}
.keys { white-space: nowrap; }
code, pre { font-family: var(--mono); color: var(--gilt-hi); background: rgba(228, 185, 100, .09); border: 0; }
code { padding: 1px 4px; font-size: .9em; border-radius: 2px; }
pre { padding: 12px 14px; border: 1px solid var(--line-soft); overflow-x: auto; }
.clear { clear: both; }
.anchor { scroll-margin-top: 16px; }

/* hatnotes */
.hatnote { margin: 0 0 12px; padding-left: 1.6em; font-style: italic; color: var(--ash); }
.hatnote a { font-style: normal; }
.hatnote + .hatnote { margin-top: -8px; }

/* tables */
.table-wrap { max-width: 100%; overflow-x: auto; margin: 15.5px 0; }
.table-wrap:focus-visible { outline-offset: 0; }
table.wikitable { color: var(--parchment); background: var(--panel-bg); border: 1px solid var(--line-soft); border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
.table-wrap > table.wikitable { margin: 0; }
table.wikitable > * > tr > th, table.wikitable > * > tr > td { padding: 10px 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.wikitable > * > tr > th { font: 700 13px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--gilt); text-align: left; vertical-align: bottom; }
table.wikitable > tbody > tr:last-child > td { border-bottom: 0; }
table.wikitable > caption { padding-bottom: 8px; color: var(--ash); font-weight: 600; text-align: left; }
table.wikitable td ul { margin: 0 0 0 1.2em; }
table.wikitable td.num { white-space: nowrap; }   /* '0.76 s' never breaks between number and unit */
img.pixelated { image-rendering: pixelated; }

/* item and small icons */
.item, .icon-label { white-space: nowrap; }
.item-icon { width: 27px; height: 24px; margin-right: 5px; vertical-align: -6px; object-fit: contain; }
.item-icon.big { width: 36px; height: 32px; vertical-align: -10px; }
.icon-label > img, .icon-label > .ph-icon { margin-right: 5px; vertical-align: -5px; }
img.icon { object-fit: contain; }
.ph-icon { display: inline-block; vertical-align: -5px; background: rgba(239, 231, 212, .06); border: 1px dashed rgba(239, 231, 212, .2); border-radius: 3px; }
.pad { white-space: nowrap; }
.pad-icon { width: 24px; height: 24px; vertical-align: -6px; }
.pad-stick { width: 30px; height: 30px; vertical-align: -9px; }
.pad-sep { margin: 0 .2em; color: var(--ash); }

/* infobox */
.infobox {
  float: right; clear: right; width: 290px; margin: 4px 0 16px 24px; color: var(--parchment);
  background: var(--panel-bg); border: 1px solid var(--line-soft); border-top: 2px solid rgba(228, 185, 100, .55);
  font-size: 14.5px; line-height: 1.45;
}
.ib-title {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 12px 10px; text-align: center;
  font: 800 19px/1.2 var(--display); color: var(--gilt-hi);
}
.ib-title span { background: var(--gold-text) 0 0 / 100% 1.2em repeat-y; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ib-icon { width: auto; height: 32px; }
.ib-image { margin: 0 10px; padding: 8px; text-align: center; background: var(--basalt); border: 1px solid var(--line-soft); }
.ib-image img, .ib-image .ph { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
.ib-image .ph { display: inline-flex; }
.ib-caption { padding: 6px 12px 0; font-size: 13px; color: var(--ash); text-align: center; }
.ib-rows { width: 100%; margin-top: 8px; border-collapse: collapse; }
.ib-rows th, .ib-rows td { padding: 6px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); }
.ib-rows th { width: 42%; font: 600 14px/1.45 var(--sans); color: var(--gilt); }

/* figures and galleries */
figure.thumb { margin: 4px 0 16px; padding: 4px; max-width: 100%; color: var(--parchment); background: var(--panel-bg); border: 1px solid var(--line-soft); }
figure.tright { float: right; clear: right; margin-left: 24px; }
figure.tleft { float: left; clear: left; margin-right: 24px; }
figure.tcenter { margin: 16px auto; clear: both; }
figure.tnone { clear: both; }
.fig-link { display: block; line-height: 0; background: var(--basalt); }
.fig-img, figure.thumb picture img { display: block; max-width: 100%; height: auto; }
figure.thumb figcaption, .gallery figcaption { padding: 6px 4px 2px; font-size: 13.5px; line-height: 1.45; color: var(--ash); }
.gallery { list-style: none; margin: 12px 0 16px !important; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-items: start; }
.gallery figure { margin: 0; padding: 4px; background: var(--panel-bg); border: 1px solid var(--line-soft); }
.gallery .fig-img { width: 100%; }
.gallery .ph { width: 100% !important; }
.ph, .ph-block {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 60px; padding: 12px;
  font-size: 13px; line-height: 1.4; color: var(--ash); text-align: center; background: rgba(239, 231, 212, .03);
  border: 1px dashed rgba(239, 231, 212, .18);
}
.ph-block { margin: 12px 0; flex-direction: row; }
.ph-mark { display: block; width: 22px; height: 18px; border: 2px solid rgba(239, 231, 212, .25); border-radius: 3px; position: relative; flex: 0 0 auto; }
.ph-text { display: block; }
.ph-mark::after { content: ""; position: absolute; left: 3px; bottom: 2px; width: 10px; height: 6px; border-left: 2px solid rgba(239, 231, 212, .25); border-top: 2px solid rgba(239, 231, 212, .25); transform: skewX(-30deg); }

/* boxes from the guides */
.tip { max-width: 72ch; margin: 18px 0; padding: 13px 16px; font-size: 15.5px; line-height: 1.55; background: rgba(47, 211, 138, .07); border-left: 2px solid var(--emerald); }
.tip-warn { background: rgba(229, 160, 77, .08); border-left-color: var(--down); }
.tip > :first-child, .example > :first-child { margin-top: 0; }
.tip > :last-child, .example > :last-child { margin-bottom: 0; }
.example { max-width: 72ch; margin: 16px 0; padding: 16px 18px; background: var(--panel-bg); border: 1px solid var(--line-soft); }
.soon { display: inline-block; margin: 0 4px; padding: 2px 8px 3px; vertical-align: 2px; white-space: nowrap; font: 700 11.5px/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--abyss); background: var(--arcane); }

/* stats */
.stats-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 16px; }
.stats-grid table.stats { margin: 0; font-size: 14.5px; }
.stats-grid table.stats th { font: 600 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--parchment); vertical-align: top; }
.stats-grid table.stats td { text-align: right; min-width: 56px; }
.stats-grid caption { padding: 0 0 6px; font: 700 13px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--gilt); }

/* filterable tables */
.ftable { margin: 12px 0 16px; }
.ft-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.ftable input { width: 260px; max-width: 100%; padding-left: 10px; }
.ftable select { height: 32px; padding: 0 8px; font: 14px var(--sans); color: var(--parchment); background: var(--abyss); border: 1px solid var(--line-soft); border-radius: 0; }
.ft-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; font: 600 13px/1.5 var(--sans); color: var(--ash); cursor: pointer; background: transparent; border: 1px solid var(--line-soft); border-radius: 0; }
.chip:hover { color: var(--gilt-hi); border-color: var(--line); }
.chip.on { color: var(--abyss); background: var(--gilt); border-color: var(--gilt); }
.chip-n { opacity: .7; font-weight: 500; }
.ft-count { margin-left: auto; font-size: 13px; color: var(--ash); }
table.ft td { white-space: normal; }
table.ft td:first-child { white-space: nowrap; }

/* navbox and category box */
.navbox { clear: both; margin: 28px 0 8px; font-size: 14.5px; line-height: 1.5; background: var(--panel-bg); border: 1px solid var(--line-soft); }
.navbox-title { padding: 8px 12px; text-align: center; font: 700 13px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--gilt); border-bottom: 1px solid var(--line-soft); }
.navbox table { width: 100%; border-collapse: collapse; }
.navbox th { width: 1%; padding: 6px 12px; white-space: nowrap; text-align: right; vertical-align: top; font: 600 13.5px/1.6 var(--sans); color: var(--ash); border-bottom: 1px solid var(--line-soft); }
.navbox td { padding: 6px 12px; border-bottom: 1px solid var(--line-soft); }
.navbox tr:last-child > * { border-bottom: 0; }
.hlist { list-style: none !important; margin: 0 !important; padding: 0; display: flex; flex-wrap: wrap; }
.hlist li { margin: 0 !important; }
.hlist li:not(:last-child)::after { content: "\00b7"; margin: 0 .5em; color: var(--ash); font-weight: 700; }
.catlinks { clear: both; margin-top: 16px; padding: 5px 6px; font-size: 14px; line-height: 1.6; background: var(--basalt); border: 1px solid var(--line-soft); }
.wlh { margin-top: 10px; font-size: 13px; color: var(--ash); }
.wlh summary { cursor: pointer; width: max-content; }
.wlh summary:hover { color: var(--gilt-hi); }
.wlh ul { columns: 3 14em; margin: 6px 0 0; padding-left: 1.4em; font-size: 14px; }
.wlh li::marker { color: var(--gilt); }
.wlh p { margin: 6px 0 0; }

/* ---------- main page ---------- */
.mainpage .tabs { margin-top: 0; }
.mainpage .body { padding-top: 16px; }
.mainpage .body h2:first-child { padding-top: 12px; }
.ns99-contents { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 12px 0 8px; }
.ns99-topic { padding: 12px 16px 10px; background: var(--panel-bg); border: 1px solid var(--line-soft); }
.ns99-topic-title { margin-bottom: 6px; font: 700 13px/1.6 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.ns99-topic-title a { color: var(--gilt); }
.body .topic-list { list-style: none; margin: 0 0 4px; padding: 0 0 0 18px; }
.body .topic-list li { padding: 3px 0; margin: 0; }
.body .topic-list a { color: var(--gilt); }
.body .topic-list a:visited { color: var(--gilt); }
.topic-all { display: inline-block; margin: 4px 0 2px 18px; font: 600 13px/1.4 var(--sans); color: var(--ash) !important; }

/* ---------- category pages and All pages ---------- */
.cat-desc { margin-top: 8px; }
.cat-cols.multi { columns: 3 15em; column-gap: 24px; }
.cat-group { break-inside: avoid; }
.body .cat-group h3 { margin: 14px 0 4px; padding: 0; font: 700 17px/1.3 var(--sans); color: var(--parchment); }
.body .cat-group ul { margin: 0 0 8px 1.6em; }
.cat-count { color: var(--ash); font-size: 14px; }
.panel { padding: 12px 14px; background: var(--panel-bg); border: 1px solid var(--line-soft); }
.ap-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 16px; font-size: 14px; }
.ap-form input { width: 320px; max-width: 100%; padding-left: 10px; }
.ap-count { color: var(--ash); }
.ap-note { font-size: 14px; color: var(--ash); }
.body .allpages { columns: 3 14em; column-gap: 24px; margin: 0 0 16px 1.6em; }
.body .allpages li { break-inside: avoid; }
.body .allpages li.redirect a { color: var(--gilt); }

/* ---------- search results ---------- */
.sr-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin: 4px 0 16px; }
.sr-field { position: relative; flex: 0 1 724px; min-width: 0; }
.sr-field .mag { position: absolute; left: 10px; top: 8px; color: var(--parchment); }
.sr-field input { height: 36px; font-size: 16px; padding-right: 36px; }
.sr-clear { position: absolute; right: 8px; top: 9px; padding: 0; border: 0; background: none; color: var(--parchment); cursor: pointer; line-height: 0; }
.btn-gold {
  height: 36px; padding: 0 12px; font: 700 15px/1 var(--sans); cursor: pointer; color: #1d1305;
  background: linear-gradient(180deg, #ffe9a8 0%, var(--gilt) 45%, #b5802f 100%); border: 0; border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(90, 55, 10, .5);
}
.btn-gold:hover { filter: brightness(1.08); }
.body .sr-count { margin: 0 0 0 auto; padding-left: 14px; font-size: 14px; color: var(--ash); }
.sr-count b { color: var(--parchment); }
.sr-profiles { display: flex; gap: 16px; max-width: 802px; font-size: 15px; }
.sr-profiles .sel { color: var(--parchment); }
.sr-results { margin-top: 28px; max-width: 760px; }
.sr-result { margin-bottom: 22px; }
.sr-title { font-size: 17px; line-height: 1.4; }
.sr-title .sr-sec { color: var(--ash); font-size: 15px; }
.sr-snip { margin: 2px 0; font-size: 15px; line-height: 1.65; color: var(--parchment); }
.sr-snip b { color: var(--gilt-hi); font-weight: 700; }
.sr-meta { font-size: 14px; color: var(--ash); }
.sr-empty { color: var(--ash); }

/* ---------- footer ---------- */
.ftr { max-width: 99.75rem; margin: 0 auto; padding: 0 var(--pad-x); }
.ftr-in { margin-top: 96px; padding: 20px 0 48px; border-top: 1px solid var(--line-soft); font-size: 12px; line-height: 1.5; color: var(--parchment); }
.ftr-in p { margin: 0 0 12px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 18px 0 0; padding: 0; }
.ftr-links a { font-weight: 600; color: rgba(239, 231, 212, .78); }
.ftr-links a:hover { color: var(--gilt-hi); text-decoration: none; }

/* ---------- narrower screens ---------- */
@media (max-width: 1119px) {
  .page, .page.no-toc, html.toc-hidden .page.has-toc, html.app-hidden .page { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "toc main"; }
  .page.no-toc, html.toc-hidden .page.has-toc, html.app-hidden .page.no-toc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
  .col-end { display: none; }
  .search { flex-basis: 400px; }
}
@media (max-width: 999px) {
  :root { --pad-x: 24px; }
  .hdr-in { height: 60px; padding: 0 var(--pad-x); }
  .hdr-start { flex: 0 0 auto; }
  .logo img { width: 86px; height: auto; }
  .logo { margin-left: 10px; }
  .mainmenu > summary { margin-left: -6px; width: 32px; }
  .search { display: none; }
  .search-toggle, .moremenu { display: inline-flex; }
  .search-toggle, .moremenu > summary { width: 44px; height: 44px; }
  .hdr-dl { display: none; }
  .hdr-end { gap: 6px; margin-right: -10px; }
  html.search-open .hdr-start, html.search-open .moremenu { display: none; }
  html.search-open .search { display: flex; flex: 1 1 auto; height: 36px; }
  html.search-open .search input { height: 36px; font-size: 16px; }
  html.search-open .search-btn { display: none; }
  html.search-open .hdr-end { margin-left: 6px; }
  html.search-open .sugg { right: 0; }
  .page, .page.no-toc, html.toc-hidden .page.has-toc { display: block; }
  .col-toc { display: none; }
  .toc-fab:not([hidden]) { display: inline-flex !important; }
  .col-main { padding-top: 26px; }
  .title { font-size: clamp(28px, 6vw + 8px, 38px); }
  .tabs-r .tab:not(:last-child) { display: none; }
  .infobox { float: none; width: auto; margin: 4px 0 16px; }
  /* phones read the lead first, then the infobox (as the mobile wikis do) */
  .body.has-ib { display: flex; flex-direction: column; }
  .body.has-ib > * { order: 3; }
  .body.has-ib > .hatnote { order: 0; }
  .body.has-ib > p:first-of-type { order: 1; }
  .body.has-ib > .infobox { order: 2; }
  .body.has-ib > p { margin: 0 0 16px; }
  .body.has-ib::after { display: none; }
  figure.tright, figure.tleft { float: none; margin: 8px 0 16px; width: auto !important; }
  .fig-img { width: auto; max-width: 100%; }   /* never wider than its own pixels */
  .ns99-contents { grid-template-columns: 1fr; }
  .cat-cols.multi, .body .allpages, .wlh ul { columns: 1; }
  .ftr-in { margin-top: 64px; }
}
@media (max-width: 600px) {
  /* phone tables: tighter cells so a 4-5 column table fits or nearly fits, and long text gets room */
  table.wikitable { font-size: 14px; line-height: 1.5; }
  table.wikitable > * > tr > th, table.wikitable > * > tr > td { padding: 8px 6px; }
  table.wikitable > * > tr > th { font-size: 11.5px; letter-spacing: .06em; }
  table.wikitable > * > tr > td:first-child, table.wikitable > * > tr > th:first-child { padding-left: 8px; }
}
/* Contents as a sheet: phones, and wide screens after "hide" */
html.toc-sheet .col-toc {
  display: block; position: fixed; z-index: 40; top: 70px; left: max(12px, calc(50% - 48rem)); width: min(320px, calc(100vw - 24px));
  max-height: calc(100vh - 90px); margin: 0; padding: 12px 16px 16px 30px;
  background: var(--basalt); border: 1px solid var(--line-soft); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
html.toc-sheet .col-toc [data-toc-hide] { display: none; }
.toc-pin { display: none; }
html.toc-hidden.toc-sheet .toc-pin { display: inline-block; }
@media (min-width: 1000px) { html.toc-hidden.toc-sheet .col-toc { display: block; } }

@media print {
  .hdr, .col-toc, .col-end, .tabs, .toc-fab, .wlh, .ftr-links, .ft-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .page { display: block; padding: 0; }
  .title, .body h2 { -webkit-text-fill-color: #000; color: #000; background: none; }
  .body, .body strong, .body dt { color: #000; }
  .body a { color: #000; text-decoration: underline; }
  table.wikitable, .infobox, .navbox, figure.thumb, .catlinks { background: #fff; color: #000; border-color: #999; }
  table.wikitable > * > tr > th, .infobox th { color: #000; }
}
