/* 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: var(--color-inverted, #fff); background: var(--background-color-progressive, #36c); border: 1px solid var(--border-color-progressive, #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 .wiki-sort-button { all: unset; cursor: pointer; display: block; width: 100%; text-align: inherit; }
table.sortable .wiki-sort-button:focus-visible { outline: 2px solid var(--color-progressive, #36c); outline-offset: 1px; }
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; }
.sidebar-list a { white-space: normal; } /* a long title (an Act's name) would otherwise stretch the box past its 22em */
@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; }
/* Infobox variants (src/components/Infobox.astro). Both inherit Wikipedia's .infobox box: border, background, 88% text, 22em float. */
.infobox-stacked .infobox-label { padding-top: 0.35em; }
.infobox-stacked .infobox-data { padding: 0 0 0.35em; border-bottom: 1px solid var(--border-color-subtle, #c8ccd1); }
.infobox-stacked tr:last-child .infobox-data { border-bottom: 0; }
.infobox-card { box-sizing: border-box; padding: 3px; }
.infobox-card .infobox-above { display: block; padding: 0.2em; }
.infobox-card .infobox-subheader { padding: 0.2em 0.4em; }
.infobox-card .infobox-image { margin: 0.3em 0; text-align: center; }
.infobox-card .infobox-list { margin: 0; }
.infobox-card .infobox-row { display: grid; grid-template-columns: minmax(6em, 40%) 1fr; column-gap: 0.5em; padding: 0.15em 0.2em; }
.infobox-card .infobox-label { font-weight: bold; margin: 0; }
.infobox-card .infobox-data { margin: 0; }
.infobox-card .infobox-header, .infobox-card .infobox-full-data { padding: 0.2em; text-align: center; font-weight: bold; }
.infobox-card .infobox-full-data { font-weight: normal; }
/* 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: var(--background-color-progressive-subtle, #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; } }
/* Main page variants (src/components/MainPortal.astro) */
/* twocol: Wikipedia's Main Page boxes, with its colours */
.mp-banner { text-align: center; background: var(--background-color-neutral-subtle, #f8f9fa); }
.mp-upper { display: flex; gap: 1em; margin: 0 0 1em; }
.mp-upper > div { flex: 1 1 50%; min-width: 0; border: 1px solid; padding-bottom: 0.4em; }
.mp-left { background: #f5fffa; border-color: #cef2e0 !important; }
.mp-right { background: #f5faff; border-color: #cedff2 !important; }
.mp-section .mp-h2 { margin: 0.5em; padding: 0.2em 0.4em; font-family: sans-serif; font-size: 120%; font-weight: bold; color: #000; border: 1px solid; }
.mp-left .mp-h2 { background: #cef2e0; border-color: #a3bfb1; }
.mp-right .mp-h2 { background: #cedff2; border-color: #a3b0bf; }
.mp-section-body { padding: 0.1em 0.6em; }
.mp-section-body p { margin: 0.3em 0; }
.mp-lower { background: #faf5ff; border: 1px solid #ddcef2; padding-bottom: 0.4em; margin-bottom: 1em; }
.mp-lower .mp-h2 { background: #ddcef2; border-color: #afa3bf; }
.mp-lower-group { margin: 0.4em 0; }
@media (max-width: 720px) { .mp-upper { flex-direction: column; } }
/* contents: Wikipedia's Contents pages */
.mp-contents-bar { text-align: center; border: 1px solid var(--border-color-subtle, #c8ccd1); background: var(--background-color-neutral-subtle, #f8f9fa); padding: 0.4em 0.8em; margin: 0 0 1em; }
.mp-contents-lead { margin: 0.4em 0 0.2em; }
.mp-contents-list { margin-bottom: 0.6em; }
.mp-contents-outer dt { font-weight: bold; margin-top: 0.6em; }
.mp-contents-outer dd { margin: 0 0 0.2em; }

/* Navbox variants (src/components/Navbox.astro) */
.navbox-columns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13em, 1fr)); gap: 2px; }
.navbox-column { background: var(--background-color-base, #fff); }
.navbox-column-heading { padding: 0.25em 0.5em; text-align: center; font-weight: bold; background: #e6e6ff; }
.navbox-column ul { list-style: none; margin: 0.3em 0.6em 0.5em; padding: 0; }
.navbox-column ul { text-align: left; }
.navbox-column li, .navbox-column li a { margin: 0; padding: 0.1em 0; white-space: normal; }
.related-articles { clear: both; margin-top: 1.5em; }
.related-articles-group h3 { margin: 0.6em 0 0.1em; font-size: 100%; }
.related-articles-group .hlist { font-size: 95%; }
.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; }

/* Timeless skin (src/skins/timeless) */
.skin-timeless .mw-jump-link:not(:focus) { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; margin: -1px; overflow: hidden; }
.skin-timeless #p-toc .toclevel-2 { padding-left: 1em; }
.skin-timeless #p-toc .toclevel-2 a { font-size: 0.95em; }
.skin-timeless .mw-wiki-title { white-space: nowrap; }
.skin-timeless .mp-subheading { clear: both; margin-top: 0; } /* Timeless floats the page tabs; the negative margin would pull this up beside them */
@media screen and (max-width: 850px) {
  .skin-timeless #page-contents { display: none; } /* phones: the contents list is a desktop sidebar; categories show under the article */
  .skin-timeless #p-logo-text .mw-wiki-title { font-size: 1.4em; }
  .skin-timeless .sidebar-chunk.dropdown-active .sidebar-inner { display: block; }
  .skin-timeless.menus-open #menus-cover { display: block; }
}

/* Timeless header: optional logo icon and tagline beside the wordmark (a site's own site.css can restyle them). */
.skin-timeless #p-banner { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.skin-timeless #p-banner .site-banner-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.1; }
.skin-timeless #p-banner .site-tagline { font-size: 0.45em; font-variant: normal; letter-spacing: 0; color: #54595d; margin-top: 3px; white-space: nowrap; }
@media all and (max-width: 850px) { .skin-timeless #p-banner .site-tagline { display: none; } }
/* No user menu on these sites, so the page-tools cog sits as far from the right edge as the menu icon does from the left. */
.skin-timeless #site-tools h2 { right: calc(0.45em + 22px); } /* + its 22px dropdown arrow */
/* The banner (logo, wordmark, slogan) is wider than Timeless's text-only wordmark box: let the box fit it. */
.skin-timeless #p-logo-text { min-width: 0; max-width: none; width: auto; }
.skin-timeless #p-logo-text a#p-banner { justify-content: flex-start; height: auto; padding: 0; }
