/* GritCult Wiki: a Wikipedia (Vector 2022) look for the wiki and the archive.
   Light mode uses Wikipedia's own colours; dark mode follows its night mode.
   The site-wide theme toggle sets data-theme on <html>. */

:root {
  --wp-bg: #ffffff;
  --wp-text: #202122;
  --wp-text-subtle: #54595d;
  --wp-text-faint: #72777d;
  --wp-link: #3366cc;
  --wp-link-visited: #6a60b0;
  --wp-link-red: #d73333;
  --wp-border: #a2a9b1;
  --wp-border-subtle: #c8ccd1;
  --wp-border-faint: #eaecf0;
  --wp-subtle: #f8f9fa;
  --wp-neutral: #eaecf0;
  --wp-hover: #eaecf0;
  --wp-input: #ffffff;
  --wp-mark: #fef6e7;
  --wp-nav-title: #ccccff;
  --wp-nav-group: #ddddff;
  --wp-nav-even: #f7f7f7;
  --wp-green-bg: #f5fffa; --wp-green-head: #cef2e0; --wp-green-line: #a3bfb1;
  --wp-blue-bg: #f5faff;  --wp-blue-head: #cedff2;  --wp-blue-line: #a3b0bf;
  --wp-purple-bg: #faf5ff; --wp-purple-head: #ddcef2; --wp-purple-line: #afa3bf;
  --wp-bar: #3366cc;
  --wp-shadow: 0 2px 8px rgba(0,0,0,.18);
  --wp-serif: "Linux Libertine", "Georgia", "Times", "Source Serif Pro", serif;
  --wp-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --wp-bg: #101418;
  --wp-text: #eaecf0;
  --wp-text-subtle: #a2a9b1;
  --wp-text-faint: #8d949b;
  --wp-link: #88a3e8;
  --wp-link-visited: #a799cd;
  --wp-link-red: #fd7865;
  --wp-border: #72777d;
  --wp-border-subtle: #54595d;
  --wp-border-faint: #2b2f33;
  --wp-subtle: #1b1e22;
  --wp-neutral: #27292d;
  --wp-hover: #27292d;
  --wp-input: #101418;
  --wp-mark: #3b2f12;
  --wp-nav-title: #2a3459;
  --wp-nav-group: #222a47;
  --wp-nav-even: #181b1f;
  --wp-green-bg: #0f1c18; --wp-green-head: #193a2e; --wp-green-line: #2f5547;
  --wp-blue-bg: #0f1724;  --wp-blue-head: #1c2e47;  --wp-blue-line: #334a6a;
  --wp-purple-bg: #191325; --wp-purple-head: #2f2546; --wp-purple-line: #4a3a66;
  --wp-bar: #6d8fe0;
  --wp-shadow: 0 2px 10px rgba(0,0,0,.6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wp-bg: #101418;
    --wp-text: #eaecf0;
    --wp-text-subtle: #a2a9b1;
    --wp-text-faint: #8d949b;
    --wp-link: #88a3e8;
    --wp-link-visited: #a799cd;
    --wp-link-red: #fd7865;
    --wp-border: #72777d;
    --wp-border-subtle: #54595d;
    --wp-border-faint: #2b2f33;
    --wp-subtle: #1b1e22;
    --wp-neutral: #27292d;
    --wp-hover: #27292d;
    --wp-input: #101418;
    --wp-mark: #3b2f12;
    --wp-nav-title: #2a3459;
    --wp-nav-group: #222a47;
    --wp-nav-even: #181b1f;
    --wp-green-bg: #0f1c18; --wp-green-head: #193a2e; --wp-green-line: #2f5547;
    --wp-blue-bg: #0f1724;  --wp-blue-head: #1c2e47;  --wp-blue-line: #334a6a;
    --wp-purple-bg: #191325; --wp-purple-head: #2f2546; --wp-purple-line: #4a3a66;
    --wp-bar: #6d8fe0;
    --wp-shadow: 0 2px 10px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--wp-bg); color: var(--wp-text);
  font: 16px/1.6 var(--wp-sans);
}
a { color: var(--wp-link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wp-body a:visited, .wp-mp a:visited { color: var(--wp-link-visited); }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
.hidden { display: none !important; }
.wp-skip { position: absolute; left: -9999px; }
.wp-skip:focus { left: 8px; top: 8px; z-index: 500; background: var(--wp-bg); padding: 6px 10px; }

/* ---------------------------------------------------------------- header */
.wp-header {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 24px; min-height: 56px; position: relative; z-index: 60;
  background: var(--wp-bg);
}
.wp-header__start { display: flex; align-items: center; gap: 10px; flex: none; }
.wp-iconbtn {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 2px; cursor: pointer; color: var(--wp-text); padding: 0;
}
.wp-iconbtn:hover { background: var(--wp-hover); }
.wp-iconbtn svg { width: 20px; height: 20px; fill: currentColor; }
.wp-logo { display: flex; align-items: center; gap: 8px; color: var(--wp-text); }
.wp-logo:hover { text-decoration: none; }
.wp-logo__icon {
  width: 46px; height: 46px; border-radius: 50%; background: #f1ede4; flex: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--wp-border-subtle);
}
.wp-logo__icon img { width: 32px; height: 32px; object-fit: contain; }
.wp-logo__text { display: flex; flex-direction: column; line-height: 1; }
.wp-logo__word {
  font-family: var(--wp-serif); font-size: 21px; letter-spacing: .06em;
  font-variant: small-caps; text-transform: lowercase;
}
.wp-logo__word b { font-weight: normal; font-size: 1.18em; text-transform: uppercase; }
.wp-logo__tag { font-family: var(--wp-serif); font-size: 12.5px; margin-top: 4px; }

.wp-search { flex: 1; max-width: 560px; display: flex; margin-left: 24px; }
.wp-search__box {
  flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;
  height: 32px; padding: 0 10px; text-align: left; cursor: text;
  background: var(--wp-input); color: var(--wp-text-faint);
  border: 1px solid var(--wp-border); border-right: 0; border-radius: 2px 0 0 2px;
}
.wp-search__box:hover { border-color: var(--wp-text-subtle); }
.wp-search__box svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.wp-search__box span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.wp-search__btn {
  height: 32px; padding: 0 12px; cursor: pointer; font-weight: 700; font-size: 14px;
  background: var(--wp-subtle); color: var(--wp-text);
  border: 1px solid var(--wp-border); border-radius: 0 2px 2px 0;
}
.wp-search__btn:hover { background: var(--wp-bg); }
.wp-header__end { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; flex: none; }
.wp-header__end a { color: var(--wp-link); }
.theme-toggle { font-size: 16px; }

/* ---------------------------------------------------------------- page grid */
.wp-page {
  max-width: 1596px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 11.75rem minmax(0, 1fr); column-gap: 28px;
}
.wp-side { padding-top: 12px; min-width: 0; }
.wp-side__sticky { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow-y: auto; padding-bottom: 24px; }
.wp-main { min-width: 0; padding-bottom: 32px; }

/* main menu: pinned in the sidebar on the Main Page, a dropdown elsewhere */
.wp-menu { font-size: 14px; }
.wp-menu__head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; padding: 6px 0; border-bottom: 1px solid var(--wp-border-subtle); margin-bottom: 6px;
}
.wp-menu h3 {
  margin: 14px 0 4px; font-size: 12px; font-weight: 700; color: var(--wp-text-subtle);
  font-family: var(--wp-sans);
}
.wp-menu ul { list-style: none; margin: 0; padding: 0; }
.wp-menu li { margin: 0; }
.wp-menu li a { display: block; padding: 4px 0; }
.wp-menu .wp-menu__note { color: var(--wp-text-faint); font-size: 12px; display: block; margin-top: -2px; }
.wp-menu--drop {
  display: none; position: absolute; left: 24px; top: 52px; z-index: 80; width: 240px;
  background: var(--wp-bg); border: 1px solid var(--wp-border-subtle); border-radius: 2px;
  box-shadow: var(--wp-shadow); padding: 8px 16px 14px;
}
.wp-menu--drop.open { display: block; }

/* table of contents */
.wp-toc { font-size: 14px; }
.wp-toc summary {
  list-style: none; cursor: pointer; font-weight: 700; padding: 6px 0;
  border-bottom: 1px solid var(--wp-border-subtle); margin-bottom: 6px;
  display: flex; justify-content: space-between;
}
.wp-toc summary::-webkit-details-marker { display: none; }
.wp-toc summary::after { content: "hide"; font-weight: normal; color: var(--wp-link); font-size: 13px; }
.wp-toc:not([open]) summary::after { content: "show"; }
.wp-toc ol { list-style: none; margin: 0; padding: 0; }
.wp-toc li a { display: block; padding: 5px 0 5px 8px; color: var(--wp-link); border-left: 2px solid transparent; }
.wp-toc li a.active { color: var(--wp-text); font-weight: 700; border-left-color: var(--wp-text); }
.wp-toc .tocnum { color: var(--wp-text-subtle); margin-right: 4px; }

/* ---------------------------------------------------------------- title + tabs */
.wp-titlebar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--wp-border); padding-top: 14px;
}
.wp-title {
  flex: 1; min-width: 0; margin: 0; padding-bottom: 2px;
  font: normal 1.8em/1.375 var(--wp-serif); overflow-wrap: anywhere; color: var(--wp-text);
}
.wp-title .ns { color: var(--wp-text-subtle); }
.wp-langbtn {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 4px 10px;
  font-size: 14px; font-weight: 700; color: var(--wp-link); border-radius: 2px;
}
.wp-langbtn:hover { background: var(--wp-hover); text-decoration: none; }
.wp-langbtn svg { width: 18px; height: 18px; fill: currentColor; }
.wp-toolbar { display: flex; justify-content: space-between; align-items: stretch; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.wp-tabs { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.wp-tabs li a, .wp-tabs li button, .wp-tools summary {
  display: block; padding: 8px 8px 7px; color: var(--wp-link); border: 0; background: none;
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.wp-tabs li a:hover, .wp-tabs li button:hover { text-decoration: none; border-bottom-color: var(--wp-link); }
.wp-tabs li.sel a, .wp-tabs li.sel button { color: var(--wp-text); border-bottom-color: var(--wp-text); }
.wp-tools { position: relative; }
.wp-tools summary { list-style: none; }
.wp-tools summary::-webkit-details-marker { display: none; }
.wp-tools summary::after { content: " \25BE"; }
.wp-tools__menu {
  position: absolute; right: 0; top: 100%; z-index: 70; width: 230px;
  background: var(--wp-bg); border: 1px solid var(--wp-border-subtle); border-radius: 2px;
  box-shadow: var(--wp-shadow); padding: 8px 14px 12px;
}
.wp-tools__menu h4 { margin: 8px 0 4px; font-size: 12px; color: var(--wp-text-subtle); }
.wp-tools__menu a, .wp-tools__menu button {
  display: block; padding: 3px 0; background: none; border: 0; color: var(--wp-link);
  text-align: left; cursor: pointer; font-size: 14px; width: 100%;
}
.wp-tools__menu button:hover { text-decoration: underline; }
.wp-tools__menu .none { color: var(--wp-text-faint); font-size: 13px; }

/* ---------------------------------------------------------------- article body */
.wp-body { font-size: 16px; line-height: 1.6; }
.wp-sitesub { font-size: 14px; color: var(--wp-text-subtle); margin: 8px 0 12px; }
.wp-body p { margin: .5em 0 1em; }
.wp-body h2 {
  font: normal 1.5em/1.375 var(--wp-serif); margin: 1.1em 0 .4em; padding: 0 0 2px;
  border-bottom: 1px solid var(--wp-border); color: var(--wp-text); clear: none; overflow: hidden;
}
.wp-body h3 { font: 700 1.2em/1.6 var(--wp-sans); margin: .9em 0 .3em; }
.wp-body ul, .wp-body ol { margin: .3em 0 .8em 1.6em; padding: 0; }
.wp-body li { margin-bottom: .15em; }
.wp-body b.subj { font-weight: 700; }
.hatnote { font-style: italic; padding-left: 1.6em; margin: 0 0 .6em; color: var(--wp-text); }
.hatnote a { font-style: italic; }
sup.reference { line-height: 1; font-size: .75em; white-space: nowrap; font-style: normal; font-weight: normal; }
sup.reference a { color: var(--wp-link); }
.wp-body ::target-text { background: var(--wp-mark); }
.references li:target { background: var(--wp-mark); }

/* infobox */
.infobox {
  float: right; clear: right; width: 22em; margin: .5em 0 1em 1.4em; padding: .2em;
  border: 1px solid var(--wp-border); background: var(--wp-subtle); color: var(--wp-text);
  font-size: 88%; line-height: 1.5; border-spacing: 3px; border-collapse: separate;
}
.infobox caption, .infobox .ib-above {
  font-size: 125%; font-weight: 700; text-align: center; padding: .2em .4em;
}
.infobox th, .infobox td { vertical-align: top; text-align: left; padding: .2em .4em; border: 0; }
.infobox th { font-weight: 700; padding-right: .65em; white-space: nowrap; }
.infobox .ib-image { text-align: center; padding: .3em 0; }
.infobox .ib-image img { display: block; margin: 0 auto; max-height: 320px; width: auto; border: 1px solid var(--wp-border-subtle); background: var(--wp-bg); }
.infobox .ib-caption { text-align: center; font-size: 95%; padding: 0 .4em .3em; color: var(--wp-text); }
.infobox .ib-header { text-align: center; font-weight: 700; background: var(--wp-neutral); padding: .2em .4em; }
.infobox .ib-bar { display: flex; align-items: center; gap: 6px; }
.infobox .ib-bar span:first-child { width: 2.6em; flex: none; color: var(--wp-text-subtle); }
.infobox .ib-bar i { display: block; height: 10px; background: var(--wp-bar); min-width: 2px; }
.infobox .ib-bar b { font-weight: normal; font-variant-numeric: tabular-nums; }

/* quote box (Wikipedia's quotebox) */
.quotebox {
  border: 1px solid var(--wp-border); background: var(--wp-subtle); padding: 10px 14px;
  margin: .5em 0 1em; max-width: 40em; font-size: 95%;
}
.quotebox blockquote { margin: 0; font-family: var(--wp-serif); font-size: 1.15em; line-height: 1.5; }
.quotebox blockquote::before { content: "\201C"; font-size: 2.2em; line-height: 0; vertical-align: -.4em; color: var(--wp-border); margin-right: 4px; }
.quotebox cite { display: block; text-align: right; font-style: normal; margin-top: 8px; font-size: 90%; }
.share-quote {
  margin-top: 8px; background: none; border: 0; padding: 0; color: var(--wp-link);
  cursor: pointer; font-size: 13px;
}
.share-quote:hover { text-decoration: underline; }

/* figures */
.wp-thumb {
  float: right; clear: right; margin: .5em 0 1em 1.4em; padding: 3px; width: 222px;
  border: 1px solid var(--wp-border-subtle); background: var(--wp-subtle); font-size: 88%;
}
.wp-thumb img { display: block; width: 100%; height: auto; border: 1px solid var(--wp-border-subtle); }
.wp-thumb figcaption { padding: 4px 3px 2px; line-height: 1.4; }

/* tables */
.wikitable {
  border-collapse: collapse; margin: 1em 0; background: var(--wp-subtle); color: var(--wp-text);
  border: 1px solid var(--wp-border); font-size: 14px; max-width: 100%;
}
.wikitable > tbody > tr > th, .wikitable > thead > tr > th, .wikitable > tr > th {
  background: var(--wp-neutral); text-align: center; font-weight: 700;
}
.wikitable th, .wikitable td { border: 1px solid var(--wp-border); padding: .25em .5em; vertical-align: top; overflow-wrap: break-word; }
.wikitable td:has(> .post-thumb), .wikitable td:last-child { white-space: nowrap; }
.wikitable td.num, .wikitable th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wikitable td.date { white-space: nowrap; }
.wikitable.sortable th.sorter { cursor: pointer; padding-right: 1.4em; position: relative; }
.wikitable.sortable th.sorter::after { content: "\21C5"; position: absolute; right: .35em; color: var(--wp-text-faint); font-weight: normal; font-size: 12px; }
.wikitable.sortable th.sorter[aria-sort="ascending"]::after { content: "\25B2"; color: var(--wp-text); }
.wikitable.sortable th.sorter[aria-sort="descending"]::after { content: "\25BC"; color: var(--wp-text); }
.wp-tablewrap { overflow-x: auto; max-width: 100%; }
.wp-tablewrap > .wikitable { margin: 0; }
.wp-tablewrap { margin: 1em 0; }
.post-thumb { width: 54px; min-width: 54px; height: 54px; object-fit: cover; display: block; border: 1px solid var(--wp-border-subtle); }

/* bar chart (History) */
.wp-chart { border: 1px solid var(--wp-border); background: var(--wp-subtle); padding: 10px 14px; max-width: 34em; margin: .5em 0 1em; font-size: 14px; }
.wp-chart .cap { font-weight: 700; text-align: center; margin-bottom: 6px; }
.wp-chart .row { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.wp-chart .row span:first-child { width: 3em; color: var(--wp-text-subtle); flex: none; font-variant-numeric: tabular-nums; }
.wp-chart .row i { display: block; height: 14px; background: var(--wp-bar); min-width: 2px; }
.wp-chart .row b { font-weight: normal; font-variant-numeric: tabular-nums; }

/* lists in columns */
.div-col { column-width: 15em; column-gap: 2em; margin: .3em 0 .8em; }
.div-col ul { margin: 0 0 0 1.6em; }
.div-col li { break-inside: avoid; }

/* portal box ("Portal: X") */
.portalbox {
  float: right; clear: right; margin: .5em 0 .5em 1em; padding: .3em .6em; font-size: 88%;
  border: 1px solid var(--wp-border); background: var(--wp-subtle); display: flex; align-items: center; gap: 8px;
}
.portalbox img { width: 28px; height: 28px; border-radius: 50%; background: #f1ede4; padding: 3px; }

/* references */
.references { font-size: 90%; margin-left: 1.9em !important; }
.references li { margin-bottom: .3em; }
.references .backlink { font-weight: 700; margin-right: 4px; }
.references q { quotes: "\201C" "\201D"; }

/* stub notice + message boxes */
.stub { display: flex; align-items: center; gap: 10px; font-size: 88%; font-style: italic; margin: 1.4em 0 1em; }
.stub img { width: 30px; height: 30px; border-radius: 50%; background: #f1ede4; padding: 3px; }
.ambox {
  border: 1px solid var(--wp-border); border-left: 10px solid #36c; background: var(--wp-subtle);
  padding: 8px 12px; margin: 0 0 1em; font-size: 88%;
}

/* navbox */
.navbox {
  clear: both; width: 100%; margin: 1.5em 0 0; border: 1px solid var(--wp-border); padding: 2px;
  font-size: 88%; text-align: center; background: var(--wp-bg); border-collapse: separate; border-spacing: 0;
}
.navbox th, .navbox td { padding: .25em 1em; }
.navbox .nb-title { background: var(--wp-nav-title); font-weight: 700; font-size: 114%; position: relative; }
.navbox .nb-vte { position: absolute; left: .6em; top: 50%; transform: translateY(-50%); font-size: 80%; font-weight: normal; }
.navbox .nb-vte a, .navbox .nb-vte abbr { text-decoration: none; }
.navbox .nb-group { background: var(--wp-nav-group); text-align: right; font-weight: 700; white-space: nowrap; width: 1%; }
.navbox .nb-list { text-align: left; border-left: 2px solid var(--wp-bg); }
.navbox tr:nth-child(even) .nb-list { background: var(--wp-nav-even); }
.hlist ul, ul.hlist { list-style: none; margin: 0 !important; padding: 0; display: inline; }
.hlist li { display: inline; }
.hlist li:not(:last-child)::after { content: "\00B7"; font-weight: 700; padding: 0 .45em; }

/* category links */
.catlinks {
  clear: both; border: 1px solid var(--wp-border); background: var(--wp-subtle);
  padding: 5px 8px; margin: 1.2em 0 0; font-size: 88%; line-height: 1.6;
}
.catlinks ul { display: inline; list-style: none; margin: 0; padding: 0; }
.catlinks li { display: inline-block; padding: 0 .5em; border-left: 1px solid var(--wp-border-subtle); }
.catlinks li:first-child { border-left: 0; }

/* ---------------------------------------------------------------- footer */
.wp-footer {
  max-width: 1596px; margin: 0 auto; padding: 16px 24px 40px; font-size: 12px; color: var(--wp-text);
  border-top: 1px solid var(--wp-border-subtle);
}
.wp-footer p { margin: 0 0 6px; }
.wp-footer ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.wp-footer__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.wp-footer__badge {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--wp-border-subtle);
  padding: 3px 8px; border-radius: 2px; font-size: 11px; color: var(--wp-text-subtle);
}
.wp-footer__badge img { width: 18px; height: 18px; border-radius: 50%; background: #f1ede4; padding: 2px; }

/* ---------------------------------------------------------------- main page */
.mp-banner {
  display: flex; justify-content: center; text-align: center; flex-direction: column;
  background: var(--wp-subtle); border: 1px solid var(--wp-border-faint); padding: 14px 16px; margin: 14px 0 12px;
}
.mp-banner .w1 { font-size: 1.6em; line-height: 1.3; }
.mp-banner .w2 { font-size: 14px; margin-top: 4px; color: var(--wp-text); }
.mp-cols { display: grid; grid-template-columns: 55fr 45fr; gap: 12px; align-items: start; }
.mp-box { border: 1px solid var(--wp-green-head); background: var(--wp-green-bg); margin-bottom: 12px; }
.mp-box--blue { border-color: var(--wp-blue-head); background: var(--wp-blue-bg); }
.mp-box--purple { border-color: var(--wp-purple-head); background: var(--wp-purple-bg); }
.mp-box--plain { border-color: var(--wp-border-faint); background: var(--wp-bg); }
.mp-box h2 {
  margin: 3px; padding: .1em .4em; font: 700 1.15em/1.5 var(--wp-sans); color: var(--wp-text);
  background: var(--wp-green-head); border: 1px solid var(--wp-green-line);
}
.mp-box--blue h2 { background: var(--wp-blue-head); border-color: var(--wp-blue-line); }
.mp-box--purple h2 { background: var(--wp-purple-head); border-color: var(--wp-purple-line); }
.mp-box--plain h2 { background: var(--wp-neutral); border-color: var(--wp-border-subtle); }
.mp-inner { padding: .2em .7em .6em; font-size: 15px; line-height: 1.55; overflow: hidden; }
.mp-inner p { margin: .4em 0; }
.mp-inner ul { margin: .3em 0 .4em 1.4em; padding: 0; }
.mp-inner li { margin-bottom: .35em; }
.mp-more { text-align: right; font-size: 14px; margin-top: .4em; }
.mp-img { float: left; margin: .4em .9em .4em 0; width: 120px; border: 1px solid var(--wp-border-subtle); }
.mp-img img { display: block; width: 100%; height: auto; }
.mp-img--right { float: right; margin: .4em 0 .4em .9em; }
.mp-otd-date { font-weight: 700; }
.mp-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 18px; }
.mp-areas li { list-style: none; }
.mp-sisters { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 20px; padding: .4em .2em; list-style: none; margin: 0 !important; }
.mp-sister { display: flex; gap: 10px; align-items: flex-start; }
.mp-sister__icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 700 15px/1 var(--wp-serif); color: #fff; background: #54595d;
}
.mp-sister b { display: block; }
.mp-sister span { font-size: 13px; color: var(--wp-text-subtle); line-height: 1.4; display: block; }
.mp-portals { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.mp-portal h3 { margin: .2em 0; font: 700 1.05em/1.4 var(--wp-sans); }
.mp-portal p { margin: .1em 0 .4em; font-size: 14px; color: var(--wp-text-subtle); }
.mp-az h3 { font: normal 1.25em/1.3 var(--wp-serif); border-bottom: 1px solid var(--wp-border-faint); margin: .8em 0 .3em; }
.mp-az .hlist { font-size: 15px; }
.mp-results li { margin-bottom: .8em; list-style: none; }
.mp-results .r-title { font-size: 1.1em; }
.mp-results .r-snip { font-size: 14px; }
.mp-results .r-meta { font-size: 13px; color: #14866d; }
:root[data-theme="dark"] .mp-results .r-meta { color: #5fc2a6; }

/* portal pages */
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.pt-grid .mp-box { margin-bottom: 0; }
.pt-wide { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- search overlay (shared with main.js) */
.search-overlay {
  position: fixed; inset: 0; z-index: 300; display: none; overflow-y: auto;
  background: color-mix(in srgb, var(--wp-bg) 70%, transparent); padding: 64px 16px 32px;
}
.search-overlay.open { display: block; }
.search-box {
  max-width: 640px; margin: 0 auto; position: relative; background: var(--wp-bg);
  border: 1px solid var(--wp-border); border-radius: 2px; box-shadow: var(--wp-shadow);
}
.search-box input {
  width: 100%; border: 0; border-bottom: 1px solid var(--wp-border-subtle); padding: 12px 48px 12px 14px;
  font: 16px var(--wp-sans); background: var(--wp-input); color: var(--wp-text); outline: none; border-radius: 0;
}
.search-close { position: absolute; top: 6px; right: 6px; background: none; border: 0; color: var(--wp-text-subtle); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 10px; }
.search-results { max-height: 60vh; overflow-y: auto; }
.search-result { display: block; padding: 8px 14px; border-top: 1px solid var(--wp-border-faint); }
.search-result:hover { background: var(--wp-hover); text-decoration: none; }
.search-result__k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--wp-text-faint); }
.search-result__t { font-weight: 700; color: var(--wp-link); }
.search-result__d { font-size: 13px; color: var(--wp-text-subtle); }
.search-empty, .search-hint { padding: 12px 14px; color: var(--wp-text-subtle); font-size: 14px; }

/* ---------------------------------------------------------------- archive tools (Special pages) */
.controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 12px; font-size: 14px; }
.controls input, .controls select, .controls button, .pager button {
  background: var(--wp-input); color: var(--wp-text); border: 1px solid var(--wp-border);
  border-radius: 2px; padding: 5px 8px; font-size: 14px;
}
.controls button, .pager button { background: var(--wp-subtle); font-weight: 700; cursor: pointer; }
.controls button:hover, .pager button:hover { background: var(--wp-bg); }
.controls label { color: var(--wp-text-subtle) !important; font-size: 13px !important; }
.q { flex: 1; min-width: 220px; }
.btn-go { background: #36c !important; border-color: #36c !important; color: #fff !important; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 10px 0 16px; border: 1px solid var(--wp-border); }
.card { border: 1px solid var(--wp-border-faint); padding: 10px 12px; background: var(--wp-subtle); }
.card .v { font: normal 1.6em/1.2 var(--wp-serif); }
.card .l { color: var(--wp-text-subtle); font-size: 12px; margin-top: 3px; }
.chart { border: 1px solid var(--wp-border); background: var(--wp-subtle); padding: 10px 14px; margin-bottom: 16px; }
.chart h3 { margin: 0 0 10px; font: 700 15px var(--wp-sans); }
.bar { display: flex; align-items: center; gap: 8px; margin: 3px 0; font-size: 13px; }
.bar .lbl { width: 150px; color: var(--wp-text-subtle); text-align: right; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .track { flex: 1; background: var(--wp-neutral); height: 14px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--wp-bar); }
.bar .n { width: 100px; flex: none; font-variant-numeric: tabular-nums; }
.wp-special table:not(.hm) { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--wp-border); background: var(--wp-subtle); }
.wp-special table:not(.hm) th { background: var(--wp-neutral); border: 1px solid var(--wp-border); padding: 5px 8px; text-align: left; white-space: nowrap; cursor: pointer; }
.wp-special table:not(.hm) td { border: 1px solid var(--wp-border); padding: 5px 8px; vertical-align: top; overflow-wrap: break-word; }
.wp-special table:not(.hm) td:not(.tx) { white-space: nowrap; }
.wp-special .tag { white-space: nowrap; }
.rt { color: var(--wp-text); font-variant-numeric: tabular-nums; }
.fav { color: var(--wp-text-subtle); font-variant-numeric: tabular-nums; }
.lk { color: var(--wp-text); }
.tx { max-width: 640px; }
.tag { display: inline-block; background: var(--wp-neutral); color: var(--wp-text); border-radius: 2px; padding: 0 6px; font-size: 12px; }
a.x { font-size: 13px; }
.thumb { width: 54px; height: 54px; object-fit: cover; display: block; border: 1px solid var(--wp-border-subtle); cursor: zoom-in; background: var(--wp-neutral); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 14px; color: var(--wp-text-subtle); font-size: 14px; }
.pager button:disabled { opacity: .4; cursor: default; }
.count { color: var(--wp-text-subtle); font-size: 13px; margin: 6px 0; }
.note { font-size: 14px; background: var(--wp-subtle); border: 1px solid var(--wp-border); border-left: 10px solid #36c; padding: 8px 12px; margin-bottom: 14px; }
mark { background: var(--wp-mark); color: inherit; }
.hm { border-collapse: separate; border-spacing: 2px; }
.hm td { padding: 0; width: 26px; height: 20px; text-align: center; font-size: 9px; border: none; color: #fff; }
.hm th { padding: 2px 4px; font-size: 10px; color: var(--wp-text-subtle); font-weight: normal; }
#lb { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 400; align-items: center; justify-content: center; cursor: zoom-out; }
#lb.on { display: flex; }
#lb img, #lb video { max-width: 92vw; max-height: 92vh; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1000px) {
  .wp-page { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .wp-side { padding-top: 0; order: 2; }
  .wp-main { order: 3; }
  .wp-side__sticky { position: static; max-height: none; overflow: visible; padding-bottom: 0; }
  .wp-side .wp-menu--pinned { display: none; }
  .wp-toc { border: 1px solid var(--wp-border-subtle); background: var(--wp-subtle); padding: 0 12px; margin-top: 12px; }
  .wp-toc summary { border-bottom: 0; margin: 0; }
  .wp-toc[open] summary { border-bottom: 1px solid var(--wp-border-subtle); margin-bottom: 6px; }
  .wp-toc[open] { padding-bottom: 8px; }
  .wp-header { padding: 8px 16px; }
  .wp-menu--drop { left: 16px; }
}
@media (max-width: 720px) {
  .wp-search { margin-left: 0; }
  .wp-search__btn { display: none; }
  .wp-search__box { border-right: 1px solid var(--wp-border); border-radius: 2px; width: 40px; flex: none; padding: 0 10px; }
  .wp-search__box span { display: none; }
  .wp-search { flex: none; margin-left: auto; }
  .wp-header__end { margin-left: 0; gap: 4px; }
  .wp-header__end .wp-home { display: none; }
  .wp-logo__icon { width: 38px; height: 38px; }
  .wp-logo__icon img { width: 26px; height: 26px; }
  .wp-logo__word { font-size: 18px; }
  .wp-logo__tag { font-size: 11px; }
  .infobox, .wp-thumb, .portalbox { float: none; width: auto; margin: .5em 0 1em; }
  .infobox { display: table; width: 100%; }
  .mp-cols, .pt-grid { grid-template-columns: minmax(0, 1fr); }
  .mp-img { width: 96px; }
  .wp-title { font-size: 1.6em; }
  .wp-tabs li a, .wp-tabs li button, .wp-tools summary { padding: 8px 6px 7px; }
  .navbox .nb-group { white-space: normal; width: auto; }
  .bar .lbl { width: 90px; }
  .bar .n { width: 72px; }
}
@media print {
  .wp-header, .wp-side, .wp-toolbar, .wp-footer ul, .share-quote, .search-overlay { display: none !important; }
  .wp-page { display: block; }
}

/* small extras */
.wico { font: 700 17px/1 var(--wp-serif); width: 18px; text-align: center; }
.muted { color: var(--wp-text-faint); }

/* ---- reference pages: podcast appearances, works, glossary, redirects ---- */
ol.moments { padding-left: 1.6em; }
ol.moments li { margin: .7em 0; }
blockquote.moment { margin: .35em 0 0; padding: .15em 0 .15em .9em; border-left: 3px solid var(--wp-border-subtle); font-family: var(--wp-serif); color: var(--wp-text); }
dl.glossary { margin: 0 0 1em; }
dl.glossary dt { font-weight: 700; margin-top: 1em; }
dl.glossary dd { margin: .25em 0 0 1.6em; }
.gl-meta { font-size: 88%; color: var(--wp-text-subtle); margin-top: .3em; }
.redirectMsg p { margin: .6em 0 .2em; color: var(--wp-text-subtle); }
.redirectText { list-style: none; padding-left: 1.6em; font-size: 120%; }
.navbox.succession td { padding: .45em .8em; }
