/* Site-specific additions on top of the vendored Vector CSS. */

/* Text wordmark in place of Wikipedia's image wordmark. */
.mw-logo-wordmark.site-wordmark { display: block; font-family: 'Linux Libertine', 'Georgia', 'Times', 'Source Serif Pro', serif; font-size: 1.3125rem; line-height: 1.1; color: var(--color-emphasized, #101418); letter-spacing: 0.01em; white-space: nowrap; }
.mw-logo-tagline.site-tagline { display: block; margin-top: 2px; font-family: 'Linux Libertine', 'Georgia', 'Times', 'Source Serif Pro', serif; font-size: 0.75rem; line-height: 1.1; color: var(--color-base, #202122); white-space: nowrap; }
.mw-logo-container { display: flex; flex-direction: column; justify-content: center; }
/* At 1680px+ Vector pulls the search box 24px left so its icon lines up with the article text. The text
   wordmark runs about 25px past Vector's 15.5rem logo column, so that pull put the search box on top of it.
   Keep Vector's grid and drop only the pull. */
@media screen and (min-width: 1680px) {
  .client-js .vector-search-box.vector-search-box-auto-expand-width { margin-left: 0; }
}

/* Main page */
.page-main_page .firstHeading { font-size: 1.6em; }
.page-main_page #siteSub { display: none !important; }
.mp-welcome { text-align: center; background: var(--background-color-neutral-subtle, #f8f9fa); border: 1px solid var(--border-color-subtle, #c8ccd1); padding: 1em 1em 1.2em; margin: 0.6em 0 1em; }
.mp-welcome p { margin: 0; color: var(--color-subtle, #54595d); }
.mp-columns { display: flex; gap: 1em; flex-wrap: wrap; }
.mp-box { flex: 1 1 22em; border: 1px solid var(--border-color-subtle, #c8ccd1); margin-bottom: 1em; }
.mp-box > h2 { margin: 0; padding: 0.2em 0.5em; font-family: sans-serif; font-size: 1em; font-weight: bold; border: 0; background: #cee0f2; }
.mp-box.mp-box-b > h2 { background: #cef2e0; }
.mp-box > div { padding: 0.3em 0.8em 0.6em; }

/* Category and all-pages listings */
.mw-category-columns { column-width: 20em; column-gap: 2em; }
.mw-category-group { break-inside: avoid; }
.mw-category-group h3 { font-size: 1em; margin: 0.6em 0 0.2em; }
.mw-category-group ul { margin-top: 0; }
.mw-allpages-body { column-width: 18em; column-gap: 2em; }
.mw-allpages-body ul { margin: 0; list-style: none; }

/* History and recent changes */
#pagehistory, .mw-changeslist ul { list-style: none; margin-left: 0; }
#pagehistory li, .mw-changeslist li { margin-bottom: 0.25em; }
.mw-changeslist-date { font-weight: normal; }
.history-user, .mw-userlink { margin-left: 0.4em; }
.comment { font-style: italic; color: var(--color-subtle, #54595d); }
.mw-history-legend { font-size: 0.875em; color: var(--color-subtle, #54595d); }

/* Search results (Special:Search) */
.mw-search-form-wrapper { margin: 1em 0; display: flex; gap: 0.5em; max-width: 40em; }
.mw-search-form-wrapper input { flex: 1; font-size: 1em; padding: 6px 8px; border: 1px solid var(--border-color-base, #a2a9b1); border-radius: 2px; }
.mw-search-form-wrapper button { padding: 6px 12px; font-weight: bold; color: #fff; background: #36c; border: 1px solid #36c; border-radius: 2px; cursor: pointer; }
.mw-search-results { list-style: none; margin: 0; max-width: 40em; }
.mw-search-result { margin-bottom: 1.1em; }
.mw-search-result-heading { font-size: 1.1em; }
.searchresult { font-size: 0.875em; }
.searchresult mark { background: none; font-weight: bold; }
.mw-search-result-data { font-size: 0.8em; color: var(--color-success, #177860); }

/* Source view */
.mw-source-view textarea { width: 100%; min-height: 30em; font-family: monospace; font-size: 0.875em; line-height: 1.4; box-sizing: border-box; padding: 0.5em; border: 1px solid var(--border-color-base, #a2a9b1); background: var(--background-color-neutral-subtle, #f8f9fa); }

/* Medical review line under the title */
.mw-reviewed-line { font-size: 0.875em; color: var(--color-subtle, #54595d); }

/* en.wikipedia's site CSS hides the logo icon; show ours as Vector does by default. */
.mw-logo-icon { display: block; }
@media all and (max-width: 639px) { .mw-logo-icon { width: 2.5em; height: 2.5em; margin-right: 8px; } }

/* ---- Content templates ------------------------------------------------------------------------ */
/* {{As of}} and {{THB}} render as plain text; the classes are hooks for checks and currency JS. */
.glossary-term { text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; }
.glossary-term a { color: inherit; text-decoration: none; }
/* Explanatory notes ({{efn}}): lettered list */
.reflist-lower-alpha ol.references { list-style-type: lower-alpha; }
/* {{quote}} */
blockquote.templatequote { margin: 1em 2.5em; padding: 0; overflow: hidden; }
blockquote.templatequote p { margin: 0 0 0.4em; }
.templatequote-translation { color: var(--color-subtle, #54595d); }
.templatequotecite { line-height: 1.5em; text-align: left; padding-left: 1.6em; margin-top: 0; font-size: 0.95em; }
/* Sortable tables */
table.sortable > thead > tr > th, table.sortable > tbody > tr:first-child > th { cursor: pointer; padding-right: 1.4em; position: relative; }
table.sortable th::after { content: '⇅'; position: absolute; right: 0.35em; color: var(--color-subtle, #72777d); font-size: 0.85em; }
table.sortable th[aria-sort='ascending']::after { content: '▲'; }
table.sortable th[aria-sort='descending']::after { content: '▼'; }
table.wikitable > caption { font-weight: bold; padding: 0.2em 0.4em; }
/* Series sidebar ({{Sidebar}}) */
table.sidebar { float: right; clear: right; width: 22em; margin: 0.5em 0 1em 1em; border: 1px solid var(--border-color-base, #a2a9b1); background: var(--background-color-neutral-subtle, #f8f9fa); padding: 0.2em; border-spacing: 0; font-size: 88%; line-height: 1.4em; text-align: center; }
.sidebar-pretitle { padding: 0.4em 0.4em 0; }
.sidebar-title { font-size: 125%; padding: 0.2em 0.4em 0.4em; background: #cee0f2; }
.sidebar-content { padding: 0 0.4em 0.4em; }
.sidebar-heading { font-weight: bold; padding-top: 0.4em; }
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { display: inline; }
.sidebar-list li:not(:last-child)::after { content: ' · '; font-weight: bold; }
@media (max-width: 640px) { table.sidebar, table.infobox { float: none; width: 100%; margin: 0.5em 0; } }
/* Disambiguation notice */
.dmbox { clear: both; margin: 0.9em 1em; border-top: 1px solid var(--border-color-base, #a2a9b1); border-bottom: 1px solid var(--border-color-base, #a2a9b1); background: transparent; width: auto; }
.dmbox-body { padding: 0.25em 0.9em; font-style: italic; }
.infobox-subheader { text-align: center; font-style: italic; }
/* Glossary article */
dl.glossary-list dt.glossary { margin-top: 0.8em; font-weight: bold; }
dl.glossary-list dd.glossary { margin-left: 1.6em; }
dl.glossary-list dfn { font-style: normal; }
/* Navboxes stack on narrow screens instead of overflowing */
@media (max-width: 720px) {
  .navbox-inner, .navbox-inner > tbody, .navbox-inner tr { display: block; width: 100% !important; }
  .navbox-inner th.navbox-group, .navbox-inner td.navbox-list { display: block; width: auto !important; text-align: left; white-space: normal; }
  .navbox-title > div { margin: 0 !important; }
}
/* Main page portal */
.mp-start { margin: 0 0 1em; padding: 0.2em 0.9em 0.6em; border: 1px solid var(--border-color-subtle, #c8ccd1); background: #eaf3ff; }
.mp-start h2 { border: 0; margin: 0.3em 0 0.2em; font-family: sans-serif; font-size: 1em; font-weight: bold; }
.mp-start p { margin: 0; }
.mp-portal .mp-box { flex: 1 1 18em; }
.mp-portal .mp-box ul { margin-top: 0.2em; }
.mp-lead { margin: 0.3em 0 0.2em; }
.mp-outer > div p { margin: 0.4em 0; }
.mp-browse { text-align: center; margin-top: 1em; }
.mp-subheading { margin: -0.4em 0 1em; font-size: 1.15em; color: var(--color-subtle, #54595d); }
@media print { .mp-subheading { margin-top: 0.4em; } }
.verification-needed i { color: var(--color-subtle, #54595d); font-size: 0.85em; }
.verify-text { background: rgba(255, 204, 51, 0.18); }

/* Header search suggestions (src/scripts/typeahead.ts) */
.wiki-typeahead { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; margin-top: 2px; max-height: 70vh; overflow-y: auto; background: var(--background-color-base, #fff); border: 1px solid var(--border-color-base, #a2a9b1); border-radius: 2px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); text-align: left; }
.wiki-typeahead__item { display: block; padding: 6px 12px; color: var(--color-base, #202122); text-decoration: none; line-height: 1.4; }
.wiki-typeahead__item:hover, .wiki-typeahead__item.is-active { background: var(--background-color-interactive-subtle, #f8f9fa); text-decoration: none; }
.wiki-typeahead__title { display: block; font-weight: bold; }
.wiki-typeahead__title mark, .wiki-typeahead__desc mark, .wiki-typeahead__via mark { background: none; color: inherit; }
.wiki-typeahead__title mark { font-weight: bold; }
.wiki-typeahead__item--title .wiki-typeahead__title { font-weight: normal; }
.wiki-typeahead__item--title .wiki-typeahead__title mark { font-weight: bold; }
.wiki-typeahead__via { display: block; font-size: 0.8125em; color: var(--color-subtle, #54595d); font-style: italic; }
.wiki-typeahead__desc { display: block; font-size: 0.8125em; color: var(--color-subtle, #54595d); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wiki-typeahead__desc mark { font-weight: bold; }
.wiki-typeahead__heading { padding: 8px 12px 2px; font-size: 0.75em; font-weight: bold; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-subtle, #54595d); border-top: 1px solid var(--border-color-subtle, #c8ccd1); }
.wiki-typeahead__footer { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border-color-subtle, #c8ccd1); color: var(--color-progressive, #36c); }
.wiki-typeahead__footer .vector-icon { flex: none; opacity: 0.7; }

/* Contact form ({{contact form}}) */
.wiki-contact-form { max-width: 32em; margin: 0.5em 0 1.5em; display: flex; flex-direction: column; }
.wiki-contact-form label { font-weight: bold; margin: 0.9em 0 0.3em; }
.wiki-contact-form .wiki-contact-optional { font-weight: normal; color: var(--color-subtle, #54595d); }
.wiki-contact-form input[type="text"], .wiki-contact-form input[type="email"], .wiki-contact-form select, .wiki-contact-form textarea {
  font: inherit; padding: 6px 8px; border: 1px solid var(--border-color-base, #a2a9b1); border-radius: 2px; background: var(--background-color-base, #fff); color: var(--color-base, #202122); box-sizing: border-box; width: 100%; }
.wiki-contact-form input:focus, .wiki-contact-form select:focus, .wiki-contact-form textarea:focus { outline: none; border-color: var(--border-color-progressive--focus, #36c); box-shadow: inset 0 0 0 1px var(--box-shadow-color-progressive--focus, #36c); }
.wiki-contact-form textarea { resize: vertical; }
.wiki-contact-form .wiki-contact-note { font-size: 0.875em; color: var(--color-subtle, #54595d); margin: 0.8em 0; }
.wiki-contact-form button { align-self: flex-start; }
.wiki-contact-form [hidden] { display: none !important; }
.wiki-contact-sent { background: var(--background-color-success-subtle, #dff2eb); border: 1px solid var(--border-color-success, #099979); padding: 0.8em 1em; margin: 0; }
.contact-email-missing { background: var(--background-color-warning-subtle, #fdf2d5); padding: 0 4px; }
