/* The Encyclopedia of Schwartzistan: an online reference wiki of 2026.
   Header with search, a main-menu sidebar, namespace tabs, the article with a floating infobox,
   a contents box, numbered references and categories. The look does not drift with the era:
   an article about 1850 is still a web page of today. */

/* ---------- tokens ---------- */
html.shell-encyclopedia {
  --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --head-font: 'Source Serif 4', 'Linux Libertine', Georgia, 'Times New Roman', serif;
  --ui: var(--body-font);
  --paper: #ffffff; --ink: #202122; --accent: #3366cc; --rule: #a2a9b1; --muted: #54595d;
  --rule-soft: #eaecf0; --panel: #f8f9fa; --link: #3366cc; --link-visited: #6a60b0; --link-hover: #447ff5;
  --measure: none; --fs: 16px; --lh: 1.6; --gap: .5em; --block: 1.1em;
  --rule-w: 1px; --rule-style: solid; --h-weight: 400; --h1: 1.8rem; --h2: 1.5rem; --h3: 1.2rem;
  --enc-side: 11.5rem; --enc-max: 1440px;
  background: #f6f6f6;
}
.shell-encyclopedia body { background: #f6f6f6; font-variant-numeric: normal; font-size: 16px; line-height: 1.6; }
.enc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.shell-encyclopedia a { color: var(--link); text-decoration: none; }
.shell-encyclopedia a:visited { color: var(--link-visited); }
.shell-encyclopedia a:hover { text-decoration: underline; color: var(--link-hover); }
.shell-encyclopedia h1 a, .shell-encyclopedia h2 a, .shell-encyclopedia h3 a { color: var(--link); }

/* ---------- header ---------- */
.enc-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.enc-header { display: flex; align-items: center; gap: 1rem; max-width: var(--enc-max); margin: 0 auto; padding: .55rem 1.5rem; background: #f6f6f6; }
.enc-burger { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 2px; cursor: pointer; color: #202122; fill: currentColor; }
.enc-burger:hover { background: #eaecf0; }
.enc-logo { display: flex; align-items: center; gap: .55rem; color: #202122 !important; text-decoration: none !important; flex: none; }
.enc-mark { color: #202122; }
.enc-wordmark { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--head-font); }
.enc-wordmark b { font-weight: 400; font-size: 1.28rem; letter-spacing: .03em; font-variant: small-caps; }
.enc-wordmark small { font-size: .78rem; color: #54595d; letter-spacing: .02em; font-style: italic; }
.enc-searchbox { flex: 1; max-width: 36rem; display: flex; align-items: stretch; position: relative; margin-left: 1rem; }
.enc-searchbox svg { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); fill: #72777d; }
.enc-searchbox input { flex: 1; font: inherit; font-size: .9rem; padding: .42rem .6rem .42rem 2rem; border: 1px solid #a2a9b1; border-right: 0; border-radius: 2px 0 0 2px; background: #fff; color: #202122; }
.enc-searchbox input:focus { outline: none; border-color: #36c; box-shadow: inset 0 0 0 1px #36c; }
.enc-searchbox button { font: inherit; font-size: .9rem; font-weight: 600; padding: 0 .9rem; border: 1px solid #a2a9b1; background: #f8f9fa; color: #202122; border-radius: 0 2px 2px 0; cursor: pointer; }
.enc-searchbox button:hover { background: #fff; }
.enc-user { margin-left: auto; display: flex; gap: 1rem; font-size: .85rem; color: #72777d; white-space: nowrap; }
.enc-user span { cursor: not-allowed; }

/* ---------- page frame ---------- */
.enc-page { display: grid; grid-template-columns: var(--enc-side) minmax(0, 1fr); gap: 0 1.5rem; max-width: var(--enc-max); margin: 0 auto; padding: 0 1.5rem; }
.enc-sidebar { font-size: .86rem; padding-top: .4rem; }
.enc-portal { margin: 0 0 1.1rem; }
.enc-portal h3 { font-family: var(--body-font); font-size: .75rem; font-weight: 400; color: #54595d; margin: 0 0 .35rem; padding-bottom: .25rem; border-bottom: 1px solid #c8ccd1; letter-spacing: 0; }
.enc-portal ul { list-style: none; padding: 0; margin: 0; }
.enc-portal li { margin: 0; padding: .2rem 0; line-height: 1.35; max-width: none; }
.enc-portal li span { color: #72777d; }
.enc-content { min-width: 0; }
.enc-tabs { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; font-size: .86rem; border-bottom: 1px solid #a2a9b1; margin-top: .2rem; }
.enc-tabs nav { display: flex; gap: .15rem; }
.enc-tab { display: inline-block; padding: .45rem .75rem .4rem; color: var(--link) !important; background: linear-gradient(to bottom, rgba(167,215,249,0) 0, #a7d7f9 100%) no-repeat right bottom / 1px 100%; border-bottom: 0; text-decoration: none !important; }
.enc-tab:hover { color: #202122 !important; }
.enc-tab.selected { color: #202122 !important; background-color: #fff; border: 1px solid #a2a9b1; border-bottom: 1px solid #fff; margin-bottom: -1px; font-weight: 400; }
.enc-tab.enc-locked { color: #72777d !important; cursor: not-allowed; }
.enc-tab.enc-locked::before { content: ""; display: inline-block; width: .7em; height: .8em; margin-right: .3em; vertical-align: -.05em;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath fill='%2372777d' d='M3 7V5a4 4 0 0 1 8 0v2h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm2 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E"); }
.enc-tab[hidden] { display: none; }
.shell-encyclopedia main.enc-main { max-width: none; margin: 0; background: #fff; border: 1px solid #a2a9b1; border-top: 0; padding: 1.1rem 1.6rem 1.6rem; min-height: 60vh; }

/* ---------- article typography ---------- */
.enc-main h1, .enc-main h2 { font-family: var(--head-font); font-weight: 400; color: #000; }
.enc-main h1 { font-size: 1.85rem; line-height: 1.3; margin: 0 0 .25rem; border: 0; padding: 0; letter-spacing: 0; }
.enc-main h1 small { font-family: var(--body-font); font-size: .5em; color: #54595d; }
.enc-main h2 { font-size: 1.5rem; line-height: 1.3; margin: 1.1em 0 .35em; padding: 0 0 .1em; border-bottom: 1px solid #a2a9b1; }
.enc-main h3 { font-family: var(--body-font); font-size: 1.05rem; font-weight: 700; margin: .9em 0 .3em; }
.enc-main p { margin: .45em 0 .6em; max-width: none; }
.enc-main li, .enc-main dd, .enc-main dt { max-width: none; }
.enc-main ul { list-style: square; padding-left: 1.6em; margin: .3em 0 .6em; }
.enc-main li { margin-bottom: .12em; }
.enc-main table { font-size: .9rem; }
.enc-main th { font-family: var(--body-font); font-size: .86rem; color: #202122; letter-spacing: 0; font-variant: normal; font-weight: 700; }
.enc-main .sc { font-variant: normal; letter-spacing: 0; color: #54595d; }
.enc-main .muted { color: #54595d; }
.enc-main .kicker { font-family: var(--body-font); font-size: .82rem; color: #54595d; font-variant: normal; letter-spacing: 0; margin-bottom: .3rem; }
.enc-main .lede { font-size: 1rem; color: #202122; margin: .5em 0 .6em; }

/* the title block: a rule under the title and the tagline beneath it */
.encyclopedia.entry > header { display: flex; flex-direction: column; border: 0; padding: 0; margin: 0; }
.encyclopedia.entry > header > h1 { order: 1; }
.encyclopedia.entry > header > h1::after { content: "From the Encyclopedia of Schwartzistan"; display: block; font-family: var(--body-font); font-size: .82rem; color: #54595d;
  border-top: 1px solid #a2a9b1; margin-top: .3rem; padding-top: .35rem; }
.encyclopedia.entry > header > .kicker { order: 2; margin-top: .4rem; }
.encyclopedia.entry > header > .breadcrumb { order: 2; margin: .4rem 0 0; font-size: .82rem; }
.encyclopedia.entry > header > .asof-dateline { order: 3; }
.encyclopedia.entry > header > .lede { order: 4; }
.encyclopedia.entry > header > * { order: 5; }
.encyclopedia.entry > header > h1 { order: 1; }
.enc-main .asof-dateline { font-family: var(--body-font); font-size: .86rem; color: #202122; background: #fef6e7; border: 1px solid #fc3; border-left-width: 4px; padding: .5rem .8rem; margin: .7rem 0 .4rem; }
.enc-main .asof-dateline a { color: var(--link); }
.entry .breadcrumb { color: #54595d; }
.entry .breadcrumb a { text-decoration: none; }

/* the body and the infobox beside it */
.shell-encyclopedia .entry-grid { display: grid; grid-template-columns: minmax(0, 1fr) 22em; gap: 0 1.4rem; align-items: start; }
.shell-encyclopedia .entry-grid > .entry-body { grid-column: 1; grid-row: 1; }
.shell-encyclopedia aside.infobox { grid-column: 2; grid-row: 1; font-size: .875rem; line-height: 1.5; border: 1px solid #a2a9b1; background: #f8f9fa; padding: .35rem .35rem .5rem; margin: .5em 0 1em; color: #202122; }
.shell-encyclopedia aside.infobox .infobox-title { font-family: var(--body-font); font-size: 1.1rem; font-weight: 700; text-align: center; margin: .2rem 0 .45rem; line-height: 1.3; border: 0; }
.shell-encyclopedia aside.infobox .portrait, .shell-encyclopedia aside.infobox .logo, .shell-encyclopedia aside.infobox .crest { text-align: center; margin: 0 0 .4rem; }
.shell-encyclopedia aside.infobox .portrait img, .shell-encyclopedia aside.infobox .logo img { display: inline-block; width: auto; max-width: 220px; max-height: 280px; border: 0; background: transparent; margin: 0 auto; }
.shell-encyclopedia aside.infobox .crest img { width: 110px; height: auto; display: inline-block; margin: 0; }
.shell-encyclopedia aside.infobox .portrait figcaption, .shell-encyclopedia aside.infobox .infobox-caption { font-size: .8rem; color: #202122; text-align: center; margin: .25rem 0 .2rem; }
.shell-encyclopedia aside.infobox figure.plate { margin: .3rem 0 .5rem; text-align: center; }
.shell-encyclopedia aside.infobox figure.plate img { border: 0; width: 100%; max-width: none; }
.shell-encyclopedia aside.infobox figure.plate figcaption { text-align: center; font-size: .8rem; color: #202122; }
.shell-encyclopedia aside.infobox dl.facts { display: grid; grid-template-columns: minmax(5.5rem, 38%) 1fr; gap: 0; margin: 0; }
.shell-encyclopedia aside.infobox dl.facts dt, .shell-encyclopedia aside.infobox dl.facts dd { font-family: var(--body-font); font-size: .84rem; padding: .28rem .3rem; border: 0; border-top: 1px solid #eaecf0; margin: 0; }
.shell-encyclopedia aside.infobox dl.facts dt { font-weight: 700; color: #202122; }
.shell-encyclopedia aside.infobox h2 { font-family: var(--body-font); font-size: .9rem; font-weight: 700; text-align: center; background: #eaecf0; border: 0; margin: .5rem 0 .2rem; padding: .15rem; }
.shell-encyclopedia aside.infobox .chart img, .shell-encyclopedia aside.infobox figure.chart img { width: 100%; }

/* figures inside the article: thumbnails with a frame */
.enc-main figure.map, .enc-main figure.chart { border: 1px solid #c8ccd1; background: #f8f9fa; padding: 3px; margin: .6em 0 1em; }
.enc-main figure.map img, .enc-main figure.chart img { display: block; width: 100%; border: 1px solid #c8ccd1; background: #fff; }
.enc-main figure.map figcaption, .enc-main figure.chart figcaption { font-size: .82rem; color: #202122; padding: .3rem .25rem .1rem; margin: 0; }
.enc-main figure.thumb { float: right; clear: right; width: 262px; margin: .4em 0 1em 1.4em; border: 1px solid #c8ccd1; background: #f8f9fa; padding: 3px; }
.enc-main figure.thumb img { display: block; width: 100%; border: 1px solid #c8ccd1; }
.enc-main figure.thumb figcaption { font-size: .8rem; padding: .3rem .2rem .1rem; color: #202122; margin: 0; }
.enc-main .directories { font-size: .88rem; }

/* the contents box */
.enc-main nav.toc { display: table; border: 1px solid #a2a9b1; background: #f8f9fa; padding: .45rem .9rem .6rem; margin: .8em 0 1em; font-size: .9rem; max-width: 100%; }
.enc-main nav.toc .toc-title, .enc-main nav.toc h2 { font-family: var(--body-font); font-size: .95rem; font-weight: 700; text-align: center; border: 0; margin: 0 0 .25rem; padding: 0; }
.enc-main nav.toc ol { list-style: none; margin: 0; padding: 0; }
.enc-main nav.toc li { margin: .08rem 0; line-height: 1.45; }
.enc-main nav.toc .tocnumber { color: #202122; padding-right: .4em; }

/* dated record lines inside an article */
.enc-main ul.timeline { list-style: square; padding-left: 1.6em; }
.enc-main ul.timeline li { padding-left: 0; text-indent: 0; margin-bottom: .3rem; }
.enc-main sup.reference { font-size: .72em; line-height: 1; vertical-align: super; white-space: nowrap; font-weight: 400; }
.enc-main sup.reference a { color: var(--link); }

/* references, see also, categories, history */
.enc-main .references { font-size: .88rem; }
.enc-main ol.refs { padding-left: 2em; margin: .3em 0 1em; }
.enc-main ol.refs li { margin-bottom: .25em; }
.enc-main ol.refs li:target { background: #eaf3ff; }
.enc-main ol.refs .caret { font-weight: 700; margin-right: .25em; }
.enc-main ol.refs cite { font-style: normal; }
.enc-main ol.refs .accessed { color: #54595d; }
.enc-main .navbox { border: 1px solid #a2a9b1; margin: 1.2em 0 .6em; font-size: .86rem; }
.enc-main .navbox .navbox-title { background: #ccf; text-align: center; font-weight: 700; padding: .2rem .5rem; margin: 0; border: 0; font-family: var(--body-font); font-size: .9rem; }
.enc-main .navbox .navbox-list { padding: .35rem .6rem; margin: 0; background: #fff; line-height: 1.8; }
.enc-main .navbox .navbox-list a { white-space: nowrap; }
.enc-main .navbox .navbox-list a + a::before { content: "·"; color: #202122; margin: 0 .45em; font-weight: 700; }
.enc-main .catlinks { border: 1px solid #a2a9b1; background: #f8f9fa; padding: .35rem .6rem; margin: 1.3em 0 0; font-size: .86rem; line-height: 1.8; clear: both; }
.enc-main .catlinks b { font-weight: 400; }
.enc-main .catlinks a + a::before, .enc-main .catlinks span + a::before, .enc-main .catlinks a + span::before, .enc-main .catlinks span + span::before { content: "|"; color: #a2a9b1; margin: 0 .5em; }
.enc-main .catlinks b::after { content: ":"; margin-right: .5em; }
.enc-main nav.asof-links, .enc-main #revisions { text-align: left; font-size: .86rem; line-height: 1.8; border: 1px solid #c8ccd1; background: #f8f9fa; padding: .45rem .7rem; margin: 1.1em 0 0; color: #54595d; }
.enc-main nav.asof-links a { text-decoration: none; padding: 0 .1rem; }
.enc-main .hatnote { font-style: italic; padding-left: 1.6em; margin: .2em 0 .7em; font-size: .92rem; color: #202122; }
.enc-main .mentions { font-size: .88rem; color: #54595d; }
.shell-encyclopedia .medal-icon { width: 1.3em; height: 1.3em; }

/* ---------- the main page ---------- */
.enc-mainpage .mp-welcome { background: #f6f6f6; border: 1px solid #c8ccd1; text-align: center; padding: .9rem 1rem .8rem; margin: 0 0 1rem; }
.enc-mainpage .mp-welcome h1 { font-size: 1.75rem; margin: 0; }
.enc-mainpage .mp-welcome p { margin: .2rem 0 0; font-size: .9rem; color: #202122; }
.enc-mainpage .mp-grid { display: grid; grid-template-columns: 55% 1fr; gap: 1rem; align-items: start; }
.enc-mainpage .mp-box { border: 1px solid #a2a9b1; margin: 0 0 1rem; background: #fff; }
.enc-mainpage .mp-box > h2 { font-family: var(--head-font); font-size: 1.12rem; font-weight: 600; margin: 0; padding: .2rem .6rem; border: 1px solid #a3bfb1; background: #cef2e0; color: #000; }
.enc-mainpage .mp-box.blue > h2 { background: #cedff2; border-color: #a3b0bf; }
.enc-mainpage .mp-box.purple > h2 { background: #ddcef2; border-color: #afa3bf; }
.enc-mainpage .mp-box.amber > h2 { background: #f2e0ce; border-color: #bfb1a3; }
.enc-mainpage .mp-box > .mp-in { padding: .5rem .75rem .6rem; font-size: .92rem; }
.enc-mainpage .mp-box.green { background: #f5fffa; }
.enc-mainpage .mp-box.blue { background: #f5faff; }
.enc-mainpage .mp-feature img { float: left; width: 110px; margin: .2rem .9rem .4rem 0; border: 1px solid #c8ccd1; background: #fff; }
.enc-mainpage .mp-more { text-align: right; font-size: .86rem; margin: .3rem 0 0; clear: both; }
.enc-mainpage ul { padding-left: 1.3em; }
.enc-mainpage .letters { display: flex; flex-wrap: wrap; gap: .3rem; }
.enc-mainpage .letters a { display: inline-flex; flex-direction: column; align-items: center; min-width: 2.4rem; padding: .15rem .35rem; border: 1px solid #c8ccd1; background: #f8f9fa; }
.enc-mainpage .letters a small { font-size: .65rem; color: #54595d; }
.enc-mainpage .mp-stats { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; justify-content: center; font-size: .85rem; color: #54595d; margin-top: .35rem; }
.enc-mainpage .mp-stats b { color: #202122; font-weight: 600; }
.enc-mainpage table.regions td, .enc-mainpage table.regions th { padding: .25rem .5rem .25rem 0; }
.enc-mainpage .mp-about { font-size: .88rem; color: #202122; border-top: 1px solid #c8ccd1; padding-top: .6rem; margin-top: .4rem; }

/* ---------- talk pages ---------- */
.enc-talk .talk-title::after { content: none; }
.enc-talk h1 { border-bottom: 1px solid #a2a9b1; padding-bottom: .15rem; margin-bottom: .6rem; }
.enc-talk .tmbox { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid #c0c090; background: #f8eaba; padding: .45rem .8rem; margin: 0 0 .5rem; font-size: .88rem; line-height: 1.5; }
.enc-talk .tmbox.talkheader { background: #f8f9fa; border-color: #c8ccd1; }
.enc-talk .tmbox.project { background: #f8f9fa; border-color: #c8ccd1; }
.enc-talk .tmbox.contentious { background: #fbe3e4; border-color: #d33; border-left-width: 6px; }
.enc-talk .tmbox.protected { background: #f8f9fa; border-color: #c8ccd1; }
.enc-talk .tmbox .icon { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; line-height: 1; }
.enc-talk .tmbox p { margin: 0 0 .2rem; }
.enc-talk .tmbox p:last-child { margin: 0; }
.enc-talk .tmbox .grade { display: inline-block; font-weight: 700; padding: 0 .35rem; border: 1px solid #a2a9b1; background: #fff; margin-right: .2rem; }
.enc-talk .archives { float: right; clear: right; width: 15rem; border: 1px solid #c8ccd1; background: #f8f9fa; font-size: .82rem; text-align: center; padding: .4rem .6rem; margin: 0 0 .8rem 1rem; }
.enc-talk .archives b { display: block; }
.enc-talk .archives span { color: var(--link); margin: 0 .15rem; }
.enc-talk .talk-thread { clear: both; }
.enc-talk .talk-thread > h2 { font-size: 1.35rem; }
.enc-talk .talk-meta { font-size: .78rem; color: #72777d; margin: -.2rem 0 .5rem; }
.enc-talk .post { margin: 0 0 .55rem; font-size: .95rem; line-height: 1.55; }
.enc-talk .post.lv1 { margin-left: 1.6em; }
.enc-talk .post.lv2 { margin-left: 3.2em; }
.enc-talk .post.lv3 { margin-left: 4.8em; }
.enc-talk .post.lv4 { margin-left: 6.4em; }
.enc-talk .post .sig { white-space: nowrap; }
.enc-talk .post .sig .user { font-weight: 400; color: var(--link); }
.enc-talk .post .sig .utalk { color: var(--link); }
.enc-talk .closed { border: 1px solid #aaa; background: #f2f2f2; margin: .6rem 0 1rem; }
.enc-talk .closed .closed-head { background: #e3e3e3; padding: .35rem .7rem; font-size: .88rem; border-bottom: 1px solid #aaa; }
.enc-talk .closed .closed-head b { display: block; font-size: .8rem; font-weight: 400; color: #54595d; }
.enc-talk .closed .closed-body { padding: .45rem .7rem .2rem; background: #f8f9fa; }
.enc-talk .closed .closed-foot { font-size: .78rem; color: #54595d; padding: .25rem .7rem; border-top: 1px solid #ccc; background: #e3e3e3; }
.enc-talk .newtopic { font-size: .86rem; color: #54595d; border-top: 1px solid #eaecf0; padding-top: .5rem; margin-top: 1.4rem; }

/* ---------- the old front-page furniture (kept for cached pages) ---------- */
.enc-masthead { border-bottom: 1px solid #a2a9b1; padding-bottom: 1rem; margin-bottom: 1rem; }
.enc-masthead h1 { font-size: 2rem; margin: 0 0 .3rem; border: 0; }
.enc-search { display: flex; gap: .4rem; max-width: 34rem; }
.enc-search input { flex: 1; font: inherit; padding: .4rem .6rem; border: 1px solid #a2a9b1; background: #fff; }
.enc-search button { font: inherit; padding: .4rem .9rem; background: #f8f9fa; border: 1px solid #a2a9b1; }
.enc-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-bottom: 1rem; align-items: start; }
.featured { padding: .8rem 1.1rem; border: 1px solid #a2a9b1; background: #f5fffa; }
.featured h2 { margin-top: 0; }
.featured-body { display: flex; gap: 1.2rem; align-items: flex-start; }
.featured-body .portrait img { width: 140px; display: block; border: 1px solid #c8ccd1; background: #fff; }
.featured h3 { font-size: 1.3rem; margin: 0 0 .3rem; }
.enc-side { font-size: .9rem; }
.enc-side dl.facts { grid-template-columns: minmax(6rem, 9rem) 1fr; }
.letters { display: flex; flex-wrap: wrap; gap: .3rem; }
.letters a { display: inline-flex; flex-direction: column; align-items: center; min-width: 2.3rem; padding: .15rem .4rem; border: 1px solid #c8ccd1; background: #f8f9fa; text-decoration: none; }
.letters a small { font-size: .65rem; color: #54595d; }
.enc-foot { border-top: 1px solid #a2a9b1; margin-top: 1rem; padding-top: .5rem; }
.entry table.census, .entry table.seats { max-width: 24rem; }
.entry table.holders td { font-size: .86rem; }
.infobox .portrait img { background: #fff; }

/* ---------- footer ---------- */
.shell-encyclopedia footer.enc-footer { max-width: var(--enc-max); margin: 0 auto; padding: 1rem 1.5rem 2rem calc(1.5rem + var(--enc-side) + 1.5rem); text-align: left; border: 0; font-size: .78rem; color: #202122; }
.enc-footer ul { list-style: none; padding: 0; margin: 0 0 .6rem; }
.enc-footer-info li { margin: 0 0 .3rem; max-width: none; }
.enc-footer-places { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.enc-footer-places li { margin: 0; }
.enc-footer .vmt { color: #54595d; }

/* ---------- narrow screens ---------- */
@media (max-width: 1000px) {
  .enc-page { grid-template-columns: 1fr; padding: 0 1rem; }
  .enc-sidebar { display: none; position: absolute; z-index: 20; left: 1rem; top: 3.6rem; width: 15rem; background: #fff; border: 1px solid #a2a9b1; box-shadow: 0 2px 6px rgba(0,0,0,.2); padding: .8rem 1rem .2rem; }
  .enc-menu-toggle:checked ~ .enc-page .enc-sidebar { display: block; }
  .enc-header { padding: .5rem 1rem; }
  .enc-user { display: none; }
  .shell-encyclopedia footer.enc-footer { padding-left: 1rem; }
  .enc-mainpage .mp-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  .shell-encyclopedia .entry-grid { display: flex; flex-direction: column; }
  .shell-encyclopedia aside.infobox { order: -1; width: 100%; margin: .4rem 0 1rem; }
  .shell-encyclopedia aside.infobox dl.facts { grid-template-columns: minmax(6rem, 38%) 1fr; }
  .enc-main figure.thumb { float: none; width: auto; margin: .6rem 0; }
  .enc-talk .archives { float: none; width: auto; margin: 0 0 .8rem; }
}
@media (max-width: 640px) {
  .enc-page { padding: 0; }
  .enc-header { gap: .5rem; padding: .45rem 16px; flex-wrap: wrap; }
  .enc-wordmark b { font-size: 1.1rem; }
  .enc-mark { width: 32px; height: 32px; }
  .enc-searchbox { order: 3; flex-basis: 100%; max-width: none; margin: .1rem 0 .2rem; }
  .enc-tabs { padding: 0 8px; }
  .enc-tab { padding: .4rem .5rem .35rem; }
  .shell-encyclopedia main.enc-main { border-left: 0; border-right: 0; padding: .9rem 16px 1.4rem; }
  .enc-main h1 { font-size: 1.55rem; }
  .enc-main h2 { font-size: 1.3rem; }
  .shell-encyclopedia aside.infobox dl.facts { grid-template-columns: minmax(6rem, 38%) 1fr; }
  .shell-encyclopedia aside.infobox dl.facts dt { margin: 0; }
  .enc-sidebar { left: 16px; right: 16px; width: auto; top: 6.2rem; }
  .shell-encyclopedia footer.enc-footer { padding: 1rem 16px 1.5rem; }
  .enc-talk .post.lv2, .enc-talk .post.lv3, .enc-talk .post.lv4 { margin-left: 2.4em; }
  .enc-mainpage .mp-feature img { width: 84px; }
}
@media print { .enc-header, .enc-sidebar, .enc-tabs, .enc-footer .vmt { display: none; } .enc-page { display: block; } main.enc-main { border: 0; } }
/* the contents box built by the template numbers itself */
.enc-main nav.toc.auto ol { counter-reset: toc; }
.enc-main nav.toc.auto li { counter-increment: toc; }
.enc-main nav.toc.auto li a::before { content: counter(toc); color: #202122; padding-right: .5em; display: inline-block; }
.enc-main .catlinks .cap { display: inline-block; }
.enc-main .catlinks .cap::first-letter { text-transform: uppercase; }
.enc-main table.wikitable, .enc-main table.census, .enc-main table.holders, .enc-main table.seats { border: 1px solid #a2a9b1; background: #f8f9fa; width: auto; min-width: 16rem; margin: .5em 0 1em; }
.enc-main table.wikitable th, .enc-main table.wikitable td, .enc-main table.census th, .enc-main table.census td, .enc-main table.holders th, .enc-main table.holders td, .enc-main table.seats th, .enc-main table.seats td { border: 1px solid #a2a9b1; padding: .2rem .5rem; }
.enc-main table.wikitable th, .enc-main table.census th, .enc-main table.holders th, .enc-main table.seats th { background: #eaecf0; text-align: center; }
.enc-main ul.cols { columns: 2; column-gap: 2rem; }
@media (max-width: 640px) { .enc-main ul.cols { columns: 1; } }
@media (max-width: 640px) { .enc-tab.enc-locked { display: none; } .enc-tabs nav { flex: none; } }

/* ---------- page tools: Cite this page, View history, View source, Random article ---------- */
.enc-tool { font-size: .95rem; }
.enc-tool .talk-title { font: 400 1.8rem/1.3 'Linux Libertine', Georgia, 'Times New Roman', serif; border-bottom: 1px solid #a2a9b1; margin: 0 0 .5rem; padding-bottom: .15rem; }
.enc-tool h2 { font: 400 1.35rem/1.3 'Linux Libertine', Georgia, serif; border-bottom: 1px solid #a2a9b1; margin: 1.3rem 0 .5rem; }
.enc-sub { color: #54595d; font-size: .88rem; margin: 0 0 1rem; }
.enc-tool .tmbox { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid #c8ccd1; background: #f8f9fa; padding: .45rem .8rem; margin: 0 0 .8rem; font-size: .88rem; line-height: 1.5; }
.enc-tool .tmbox.protected { background: #fef6e7; border-color: #fc3; }
.enc-tool .tmbox p { margin: .2rem 0; }
.enc-bib { margin: 0 0 1rem 1.2rem; padding: 0; }
.enc-bib li { margin: .15rem 0; }
.enc-cite { position: relative; border: 1px solid #c8ccd1; background: #f8f9fa; padding: .6rem 5.5rem .6rem .8rem; margin: 0 0 .6rem; }
.enc-cite p, .enc-cite pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
.enc-cite .mono, .enc-tool .mono { font: .85rem/1.5 ui-monospace, Menlo, monospace; }
.enc-copy { font: .8rem system-ui, sans-serif; border: 1px solid #a2a9b1; background: #fff; border-radius: 2px; padding: .25rem .6rem; cursor: pointer; }
.enc-cite .enc-copy { position: absolute; top: .5rem; right: .5rem; }
.enc-copy:hover { background: #eaecf0; }
.enc-history { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.enc-history li { padding: .3rem 0; border-bottom: 1px solid #eaecf0; line-height: 1.6; }
.enc-history li > span + span { margin-left: .45rem; }
.enc-h-user { color: #3366cc; } .enc-h-bytes { color: #54595d; } .enc-h-diff { color: #006400; font-weight: 600; } .enc-h-sum { color: #54595d; font-style: italic; }
.enc-source { width: 100%; box-sizing: border-box; font: .85rem/1.5 ui-monospace, Menlo, monospace; border: 1px solid #a2a9b1; padding: .5rem; background: #f8f9fa; color: #202122; resize: vertical; }
@media (max-width: 720px) { .enc-cite { padding-right: .8rem; } .enc-cite .enc-copy { position: static; margin-top: .4rem; } }
.enc-tool .tmbox .icon { flex: none; width: 32px; font-size: 1.4rem; text-align: center; }
