MediaWiki:Common.css: Difference between revisions

From Thessarpedia
Jump to navigation Jump to search
No edit summary
Tabelkoppen in kaarten niet meer midden in een woord afbreken
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Infobox */
/* =====================================================
  Thessarpedia thema
  Donker leer rondom, perkament als leesvlak.
  ===================================================== */


.infobox {
:root {
    background: transparent;
--th-ink: #2a1f14;
    border: 1px solid #aaa;
--th-ink-soft: #6b5a45;
    float: right;
--th-parchment: #f7efdc;
    margin: 0 0 1em 1em;
--th-card: #fffaf0;
    padding: 1em;
--th-line: #d8c9a8;
    width: 400px;
--th-line-soft: #ebdfc4;
}
--th-accent: #8a2b12;
.infobox-title {
--th-gold: #c9a24a;
    font-size: 2em;
--th-dark: #221810;
    text-align: center;
--th-dark-2: #33251a;
}
--th-cream: #eadfc6;
.infobox-image {
--th-link: #1d5a7a;
    text-align: center;
--th-serif: 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', Georgia, serif;
}
.infobox th {
    text-align: right;
    vertical-align: top;
    width: 120px;
}
.infobox td {
    vertical-align: top;
}
}


/* Remove navigation from top of page */
/* ---------- Pagina en achtergrond ---------- */
 
html, body {
#ca-talk { display:none!important; }
background-color: var(--th-dark);
#ca-nstab-main { display:none!important; }
background-image: radial-gradient(ellipse at 50% -10%, #4a3524 0%, var(--th-dark-2) 38%, var(--th-dark) 78%);
#ca-unwatch { display:none!important; }
background-attachment: fixed;
#ca-nstab-mediawiki { display:none!important; }
background-repeat: no-repeat;
 
/* change background color of top menu navigation */
 
.mw-portlet.mw-portlet-views.vector-menu.vector-menu-tabs {
background-image: linear-gradient(to bottom,#b5b5b5 0,#b5b5b5 100%);
}
}
 
body {
.mw-portlet.mw-portlet-namespaces.vector-menu.vector-menu-tabs {
position: relative;
background-image: linear-gradient(to bottom,#f6eddf 0,#f6eddf 100%);
max-width: 1340px;
margin-left: auto !important;
margin-right: auto !important;
}
}
#mw-page-base { background: transparent; background-image: none; height: 5em; }
#mw-head-base { background: transparent; }


.mw-portlet.mw-portlet-views.vector-menu.vector-menu-tabs {
/* ---------- Leesvlak ---------- */
background-image: linear-gradient(to bottom,#b5b5b5 0,#b5b5b5 100%);
.mw-body {
background-color: var(--th-parchment);
color: var(--th-ink);
border: 1px solid var(--th-gold);
border-radius: 8px;
margin-right: 12px;
margin-top: -1px;
padding: 1.4em 2em 2em 2em;
box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}
}
.mw-body-content { font-size: 1.08em; line-height: 1.7; }
.mw-parser-output > p, .mw-parser-output > ul, .mw-parser-output > ol,
.mw-parser-output > dl, .mw-parser-output > blockquote { max-width: 46em; }
.mw-body-content p { margin: 0.5em 0 0.9em 0; }


.vector-menu-tabs {
.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4,
background-image: linear-gradient(to bottom,#f6eddf 0,#f6eddf 100%);
.mw-body .firstHeading, .infobox-title, .sessie-titel {
font-family: var(--th-serif);
color: var(--th-accent);
}
}
.mw-body .firstHeading { font-size: 2.3em; border-bottom: 2px solid var(--th-gold); padding-bottom: 0.15em; margin-bottom: 0.4em; }
.mw-body-content .mw-heading2 { font-size: 1.6em; margin-top: 1.4em; }
.mw-body-content .mw-heading3 { font-size: 1.25em; margin-top: 1.2em; }
.mw-body-content .mw-heading4 { font-size: 1.08em; margin-top: 1em; }
.mw-body-content .mw-heading1, .mw-body-content .mw-heading2 { border-bottom-color: var(--th-line); }
.mw-body-content .mw-heading2 h2 { border-bottom: 0; }
.mainpage_hero .mw-heading { border: 0; margin: 0; padding: 0; }
.mw-body-content h3 { color: var(--th-ink); }
.mw-body-content h4 { color: var(--th-ink); }


.mw-body a, .mw-body a:visited { color: var(--th-link); }
.mw-body a:hover { color: #123f57; text-decoration: underline; }
.mw-body a.new, .mw-body a.new:visited { color: #b3261e; }
.mw-body a.external { color: var(--th-link); }
.mw-editsection, .mw-editsection a { font-family: sans-serif; font-size: 0.75rem; color: var(--th-ink-soft) !important; }


/* maakt de background van de bovenste balk doorzichtig */
/* ---------- Bovenbalk: persoonlijke links, tabs, zoeken ---------- */
#p-personal { right: 14px; }
#p-personal li a, #p-personal li a:visited { color: var(--th-cream); }
#p-personal li a.new { color: #e8a79c; }
#p-personal a:hover { color: #fff; }


#mw-page-base {
.vector-menu-tabs, .vector-menu-tabs ul, .vector-menu-tabs li,
  background-color: transparent;
.vector-menu-tabs .mw-list-item a, #mw-head .vector-menu-dropdown .vector-menu-heading {
  background-image: none;
background-image: none !important;
  background-position: bottom left;
  height: 5em;
}
}
 
.vector-menu-tabs li {
/* Background color */
background-color: rgba(247,239,220,0.14);
 
border-radius: 6px 6px 0 0;
 
margin-right: 3px;
.mw-body {
    background-color: #f9f4eb;
}
}
.vector-menu-tabs li a, .vector-menu-tabs li a:visited { color: var(--th-cream); }
.vector-menu-tabs li:hover { background-color: rgba(247,239,220,0.28); }
.vector-menu-tabs li.selected { background-color: var(--th-parchment); }
.vector-menu-tabs li.selected a, .vector-menu-tabs li.selected a:visited { color: var(--th-ink); }
#mw-head .vector-menu-dropdown .vector-menu-heading { color: var(--th-cream); }
#right-navigation { margin-right: 12px; }


body {
#p-search { margin-right: 0; }
    background-color: #f6eddf;
#simpleSearch { border-radius: 6px; overflow: hidden; }
  }
#searchInput { background: var(--th-card); border: 1px solid var(--th-gold); border-radius: 6px; color: var(--th-ink); }
 
/* Font? */


#body {
/* Tabs die we niet gebruiken */
# font-family: Papyrus;
#ca-talk, #ca-nstab-main, #ca-watch, #ca-unwatch, #ca-nstab-mediawiki { display: none !important; }
#}


/* Change border color */
/* ---------- Zijbalk ---------- */
 
#mw-panel { padding-left: 4px; }
.mw-body {
#p-logo { height: 150px; margin-bottom: 26px; }
  margin-top: -1px;
#p-logo a { filter: invert(1) sepia(0.35) brightness(0.92); background-size: 104px auto; background-position: center 10px; height: 120px; }
  border: 1px solid #b5b5b5;
#p-logo::after {
    border-right-width: 1px;
content: "Thessarpedia";
  border-right-width: 1px;
display: block;
}
text-align: center;
 
font-family: var(--th-serif);
/* Disable section editing */
font-size: 1.25em;
.mw-editsection { display:none!important; }
letter-spacing: 0.04em;
 
color: var(--th-gold);
/* Remove items from footer */
margin-top: -2px;
 
#footer-places-privacy { display: none; }
#footer-places-about { display: none; }
#footer-places-disclaimer { display: none; }
#footer-info-lastmod { display: none; }
 
/* Change button color */
 
 
.mw-list-item.collapsible {
    background-image: linear-gradient(to top,#000000 0,#f6eddf 1px,#ffffff 100%);
}
}
.new.mw-list-item {
#mw-panel .vector-menu-portal { margin: 0 0.4em 0 0.5em; padding: 0.3em 0 0.5em 0; }
    background-image: linear-gradient(to top,#000000 0,#f6eddf 1px,#ffffff 100%);
#mw-panel .vector-menu-portal .vector-menu-heading {
background-image: none;
border-bottom: 1px solid rgba(201,162,74,0.45);
color: var(--th-gold);
font-family: var(--th-serif);
font-size: 0.82em;
font-weight: normal;
letter-spacing: 0.08em;
text-transform: uppercase;
margin: 0.6em 0 0.3em 0.5em;
padding: 0.2em 0;
}
}
#mw-panel .vector-menu-portal .vector-menu-content li a,
#mw-panel .vector-menu-portal .vector-menu-content li a:visited { color: var(--th-cream); }
#mw-panel .vector-menu-portal .vector-menu-content li a:hover { color: #fff; text-decoration: none; }
#mw-panel .vector-menu-portal .vector-menu-content li { font-size: 0.8em; padding: 0.22em 0; }


/* ---------- Voettekst ---------- */
#footer { background: transparent; color: var(--th-cream); }
#footer li { color: var(--th-cream); opacity: 0.75; }
#footer a, #footer a:visited { color: var(--th-cream); }
#footer-places-privacy, #footer-places-about, #footer-places-disclaimer, #footer-info li#footer-info-lastmod { display: none; }


/* Add template for front page */
/* ---------- Kaarten: voorpagina en portalen ---------- */
 
/* CSS used for https://www.mediawiki.org/wiki/MediaWiki/Homepage_improvements_2018 : */
.mainpage_row {
.mainpage_row {
display: flex;
display: flex;
flex-direction: row;
flex-flow: row wrap;
flex-flow: row wrap;
justify-content: space-between;
justify-content: space-between;
padding: 0;
padding: 0;
margin: 0 -5px 0 -5px;
margin: 0 -6px;
}
}
.mainpage_box {
.mainpage_box {
flex: 1;
flex: 1;
margin: 5px;
margin: 6px;
min-width: 210px;
min-width: 220px;
border: 1px solid #CCC;
background: var(--th-card);
padding: 0 10px 10px 10px;
border: 1px solid var(--th-line);
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
border-top: 3px solid var(--th-gold);
border-radius: 6px;
box-shadow: 0 1px 4px rgba(59,42,26,0.14);
padding: 4px 16px 16px 16px;
}
}
.mainpage_box h3 {
.mw-body-content .mainpage_box .mw-heading2 { font-size: 1.3em; margin-top: 0.7em; }
/* Reset padding so is equal across skins */
.mainpage_box h2 a, .mainpage_box h2 a:visited { color: inherit; }
padding-right: 0;
.mainpage_box p:last-child { margin-bottom: 0; }
padding-top: 0;
.mainpage_hero {
padding-bottom: 0;
text-align: center;
/* Padding left gets overridden by headanchor gadget */
padding: 22px 16px 20px 16px;
margin: 0.5em 0;
margin: 0 0 6px 0;
color: var(--th-cream);
background: linear-gradient(160deg, #5a1c0c 0%, #3a2416 55%, #2a1c12 100%);
border: 1px solid var(--th-gold);
border-top: 1px solid var(--th-gold);
}
}
/* Set padding left only if headanchor gadget is not enabled */
.mw-body-content .mainpage_hero .mw-heading2 { font-size: 2.2em; margin: 0 0 0.1em 0; }
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
.mw-body-content .mainpage_hero h2 { border: 0; margin: 0; color: #f6e7c1; }
padding-left: 0;
.mainpage_hero h2 a, .mainpage_hero h2 a:visited { color: #f6e7c1; }
.mainpage_hero .hero-sub { font-style: italic; color: #d9c8a4; font-family: var(--th-serif); font-size: 1.1em; }
.mainpage_hero .hero-links { margin-top: 0.9em; }
.mainpage_hero .hero-links a, .mainpage_hero .hero-links a:visited { color: var(--th-gold); }
.mainpage_hero .hero-links a:hover { color: #fff; }
.mainpage_box .mw-inputbox-input { width: 100%; box-sizing: border-box; margin-bottom: 6px; }
body.page-Main_Page.action-view h1#firstHeading,
body.page-Campaign_4.action-view h1#firstHeading { display: none; }
body.page-Main_Page .catlinks { display: none; }
 
.mainpage_box .wikitable { width: 100%; font-size: 0.88em; margin: 0.5em 0; }
.mainpage_box .wikitable th, .mainpage_box .wikitable td { padding: 3px 5px; overflow-wrap: normal; word-break: normal; }
.mainpage_box .wikitable th { white-space: nowrap; }
.mainpage_box { min-width: 0; overflow-x: auto; }
.mainpage_row > .mainpage_box { flex-basis: 220px; }
 
/* ---------- Infobox ---------- */
.infobox {
background: var(--th-card);
border: 1px solid var(--th-line);
border-top: 3px solid var(--th-gold);
border-radius: 6px;
box-shadow: 0 1px 4px rgba(59,42,26,0.14);
float: right;
clear: right;
margin: 0 0 1em 1.5em;
padding: 10px 12px;
width: 300px;
}
}
.mainpage_box h3 .header_icon {
.infobox-title { font-size: 1.5em; text-align: center; border-bottom: 1px solid var(--th-line); padding-bottom: 4px; margin-bottom: 8px; }
float: left;
.infobox-image { text-align: center; }
margin-right: 5px;
.infobox-image img { max-width: 100%; height: auto; border-radius: 4px; }
.infobox table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.infobox th { text-align: left; vertical-align: top; width: 110px; color: var(--th-ink-soft); font-weight: 600; padding: 3px 6px 3px 0; }
.infobox td { vertical-align: top; padding: 3px 0; }
.infobox tr + tr th, .infobox tr + tr td { border-top: 1px solid var(--th-line-soft); }
 
/* ---------- Tabellen, inhoudsopgave, afbeeldingen ---------- */
.wikitable { background: var(--th-card); border-color: var(--th-line); color: var(--th-ink); }
.wikitable > tr > th, .wikitable > * > tr > th { background: #e6d9bb; border-color: var(--th-line); font-family: var(--th-serif); }
.wikitable > tr > td, .wikitable > * > tr > td { border-color: var(--th-line); }
.wikitable > * > tr:nth-child(even) > td { background: #fbf4e3; }
.toc { background: var(--th-card); border: 1px solid var(--th-line); border-radius: 6px; padding: 8px 12px; }
.mw-body-content figure[typeof~="mw:File/Thumb"], .mw-body-content figure[typeof~="mw:File/Frame"] { background: var(--th-card); border: 1px solid var(--th-line); border-radius: 4px; max-width: 100%; box-sizing: border-box; }
.mw-body-content figure[typeof~="mw:File/Thumb"] > figcaption { background: transparent; color: var(--th-ink-soft); font-style: italic; }
.mw-body-content figure img.mw-file-element, .mw-body-content .infobox-image img { max-width: 100%; height: auto; }
.mw-body-content blockquote { border-left: 3px solid var(--th-gold); margin-left: 0; padding: 0.2em 1em; color: var(--th-ink-soft); font-family: var(--th-serif); font-style: italic; }
.mw-body-content pre, .mw-body-content code { background: #f1e6cc; border-color: var(--th-line); color: var(--th-ink); }
.catlinks { background: var(--th-card); border: 1px solid var(--th-line); border-radius: 6px; }
 
/* ---------- Kop van een sessieverslag ---------- */
.sessie-kop {
background: var(--th-card);
border: 1px solid var(--th-line);
border-left: 5px solid var(--th-accent);
border-radius: 6px;
padding: 10px 14px;
margin: 0 0 1.2em 0;
}
}
.mainpage_box .items {
.sessie-campagne { font-size: 0.85em; color: var(--th-ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
border-top: 1px solid #CCC;
.sessie-titel { font-size: 1.8em; line-height: 1.25; margin: 2px 0 4px 0; }
padding-top: 0.5em;
.sessie-meta { color: var(--th-ink-soft); font-size: 0.92em; }
.sessie-meta span + span::before { content: " · "; }
.sessie-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--th-line-soft); }
.sessie-nav span { flex: 1; }
.sessie-overzicht { text-align: center; }
.sessie-volgende { text-align: right; }
.sessie-kop-kort { border-left-width: 1px; margin-top: 2em; clear: both; }
.sessie-kop-kort .sessie-nav { margin-top: 0; padding-top: 0; border-top: 0; }
 
/* ---------- Navigatiebalk onderaan avonturen ---------- */
.avonturen-nav {
clear: both;
text-align: center;
background: var(--th-card);
border: 1px solid var(--th-line);
border-top: 3px solid var(--th-gold);
border-radius: 6px;
padding: 8px 12px;
margin-top: 2em;
line-height: 1.8;
}
}
.mainpage_box p:last-child {
 
margin-bottom: 0;
/* ---------- Knoppen en formulieren ---------- */
:root { --background-color-progressive: #8a2b12; --border-color-progressive: #6d200c; }
.mw-body .cdx-button:enabled.cdx-button--action-progressive.cdx-button--weight-primary {
background-color: var(--th-accent); border-color: #6d200c; color: #fff;
}
}
.mainpage_boxcontents_small {
.mw-body .cdx-button:enabled.cdx-button--action-progressive.cdx-button--weight-primary:hover { background-color: #a5361a; }
font-size: 95%;
.mw-body form.createbox:invalid .cdx-button {
}
background-color: #d9ccb4 !important; border-color: #d9ccb4 !important; color: var(--th-ink-soft) !important;
/* Style the "other languages" box the same way as other boxes on the main page */
.mw-pt-languages {
display: block;
background: none;
border: 1px solid #CCC;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
width: auto;
}
.mw-pt-languages-label {
background: none;
border-right: none;
}
}
.mw-body form.searchbox .cdx-button:enabled { background: var(--th-card); border-color: var(--th-line); color: var(--th-ink); }
.mw-body .cdx-text-input__input { background: #fff; border-color: var(--th-line); }
/* Formulieren in kaarten: invoerveld boven, knop eronder, volle breedte */
.mainpage_box form.createbox, .mainpage_box form.searchbox { display: block; margin: 0 0 12px 0; }
.mainpage_box form .cdx-text-input { display: block; width: 100%; margin-bottom: 4px; }
.mainpage_box form .cdx-text-input__input, .mainpage_box form .cdx-text-input__input[size] { width: 100% !important; box-sizing: border-box; }
.mainpage_box form input[type="submit"] { width: 100%; box-sizing: border-box; margin: 0 0 4px 0; }
.mainpage_box form.searchbox input[type="submit"] { width: calc(50% - 4px); font-size: 0.9em; padding: 0 6px; }


@media screen and (max-width: 719px) {
/* ---------- Systeempagina's ---------- */
.thumb {
#mw-head .vector-menu-dropdown .vector-menu-content,
float: none;
#mw-head .vector-menu-dropdown .vector-menu-content-list { background: var(--th-card); border-color: var(--th-gold); }
}
#mw-head .vector-menu-dropdown .vector-menu-content-list li a { color: var(--th-link); }
.thumb, .thumbinner {
.mw-plusminus-null { color: var(--th-ink-soft); }
margin-left: auto;
.mw-body fieldset { border-color: var(--th-line); }
margin-right: auto;
.editOptions { background: var(--th-line-soft); border-color: var(--th-line); }
}
#filetoc, .mw-changeslist-legend, .mw-search-profile-tabs, .mw-history-compare-form fieldset { background: var(--th-card); border-color: var(--th-line); }
}


/* Suppress "Main Page" page title on Main Page. */
/* Lege alinea's die sjablonen kunnen achterlaten */
body.page-Main_Page h1#firstHeading { display: none; }
.infobox > p, .sessie-kop > p { display: none; }


.page__main {
@media screen and (max-width: 719px) {
padding-top: 4px;
.infobox { float: none; width: auto; margin: 0 0 1em 0; }
}
}

Latest revision as of 22:21, 19 November 2026

/* =====================================================
   Thessarpedia thema
   Donker leer rondom, perkament als leesvlak.
   ===================================================== */

:root {
	--th-ink: #2a1f14;
	--th-ink-soft: #6b5a45;
	--th-parchment: #f7efdc;
	--th-card: #fffaf0;
	--th-line: #d8c9a8;
	--th-line-soft: #ebdfc4;
	--th-accent: #8a2b12;
	--th-gold: #c9a24a;
	--th-dark: #221810;
	--th-dark-2: #33251a;
	--th-cream: #eadfc6;
	--th-link: #1d5a7a;
	--th-serif: 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', Georgia, serif;
}

/* ---------- Pagina en achtergrond ---------- */
html, body {
	background-color: var(--th-dark);
	background-image: radial-gradient(ellipse at 50% -10%, #4a3524 0%, var(--th-dark-2) 38%, var(--th-dark) 78%);
	background-attachment: fixed;
	background-repeat: no-repeat;
}
body {
	position: relative;
	max-width: 1340px;
	margin-left: auto !important;
	margin-right: auto !important;
}
#mw-page-base { background: transparent; background-image: none; height: 5em; }
#mw-head-base { background: transparent; }

/* ---------- Leesvlak ---------- */
.mw-body {
	background-color: var(--th-parchment);
	color: var(--th-ink);
	border: 1px solid var(--th-gold);
	border-radius: 8px;
	margin-right: 12px;
	margin-top: -1px;
	padding: 1.4em 2em 2em 2em;
	box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}
.mw-body-content { font-size: 1.08em; line-height: 1.7; }
.mw-parser-output > p, .mw-parser-output > ul, .mw-parser-output > ol,
.mw-parser-output > dl, .mw-parser-output > blockquote { max-width: 46em; }
.mw-body-content p { margin: 0.5em 0 0.9em 0; }

.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4,
.mw-body .firstHeading, .infobox-title, .sessie-titel {
	font-family: var(--th-serif);
	color: var(--th-accent);
}
.mw-body .firstHeading { font-size: 2.3em; border-bottom: 2px solid var(--th-gold); padding-bottom: 0.15em; margin-bottom: 0.4em; }
.mw-body-content .mw-heading2 { font-size: 1.6em; margin-top: 1.4em; }
.mw-body-content .mw-heading3 { font-size: 1.25em; margin-top: 1.2em; }
.mw-body-content .mw-heading4 { font-size: 1.08em; margin-top: 1em; }
.mw-body-content .mw-heading1, .mw-body-content .mw-heading2 { border-bottom-color: var(--th-line); }
.mw-body-content .mw-heading2 h2 { border-bottom: 0; }
.mainpage_hero .mw-heading { border: 0; margin: 0; padding: 0; }
.mw-body-content h3 { color: var(--th-ink); }
.mw-body-content h4 { color: var(--th-ink); }

.mw-body a, .mw-body a:visited { color: var(--th-link); }
.mw-body a:hover { color: #123f57; text-decoration: underline; }
.mw-body a.new, .mw-body a.new:visited { color: #b3261e; }
.mw-body a.external { color: var(--th-link); }
.mw-editsection, .mw-editsection a { font-family: sans-serif; font-size: 0.75rem; color: var(--th-ink-soft) !important; }

/* ---------- Bovenbalk: persoonlijke links, tabs, zoeken ---------- */
#p-personal { right: 14px; }
#p-personal li a, #p-personal li a:visited { color: var(--th-cream); }
#p-personal li a.new { color: #e8a79c; }
#p-personal a:hover { color: #fff; }

.vector-menu-tabs, .vector-menu-tabs ul, .vector-menu-tabs li,
.vector-menu-tabs .mw-list-item a, #mw-head .vector-menu-dropdown .vector-menu-heading {
	background-image: none !important;
}
.vector-menu-tabs li {
	background-color: rgba(247,239,220,0.14);
	border-radius: 6px 6px 0 0;
	margin-right: 3px;
}
.vector-menu-tabs li a, .vector-menu-tabs li a:visited { color: var(--th-cream); }
.vector-menu-tabs li:hover { background-color: rgba(247,239,220,0.28); }
.vector-menu-tabs li.selected { background-color: var(--th-parchment); }
.vector-menu-tabs li.selected a, .vector-menu-tabs li.selected a:visited { color: var(--th-ink); }
#mw-head .vector-menu-dropdown .vector-menu-heading { color: var(--th-cream); }
#right-navigation { margin-right: 12px; }

#p-search { margin-right: 0; }
#simpleSearch { border-radius: 6px; overflow: hidden; }
#searchInput { background: var(--th-card); border: 1px solid var(--th-gold); border-radius: 6px; color: var(--th-ink); }

/* Tabs die we niet gebruiken */
#ca-talk, #ca-nstab-main, #ca-watch, #ca-unwatch, #ca-nstab-mediawiki { display: none !important; }

/* ---------- Zijbalk ---------- */
#mw-panel { padding-left: 4px; }
#p-logo { height: 150px; margin-bottom: 26px; }
#p-logo a { filter: invert(1) sepia(0.35) brightness(0.92); background-size: 104px auto; background-position: center 10px; height: 120px; }
#p-logo::after {
	content: "Thessarpedia";
	display: block;
	text-align: center;
	font-family: var(--th-serif);
	font-size: 1.25em;
	letter-spacing: 0.04em;
	color: var(--th-gold);
	margin-top: -2px;
}
#mw-panel .vector-menu-portal { margin: 0 0.4em 0 0.5em; padding: 0.3em 0 0.5em 0; }
#mw-panel .vector-menu-portal .vector-menu-heading {
	background-image: none;
	border-bottom: 1px solid rgba(201,162,74,0.45);
	color: var(--th-gold);
	font-family: var(--th-serif);
	font-size: 0.82em;
	font-weight: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0.6em 0 0.3em 0.5em;
	padding: 0.2em 0;
}
#mw-panel .vector-menu-portal .vector-menu-content li a,
#mw-panel .vector-menu-portal .vector-menu-content li a:visited { color: var(--th-cream); }
#mw-panel .vector-menu-portal .vector-menu-content li a:hover { color: #fff; text-decoration: none; }
#mw-panel .vector-menu-portal .vector-menu-content li { font-size: 0.8em; padding: 0.22em 0; }

/* ---------- Voettekst ---------- */
#footer { background: transparent; color: var(--th-cream); }
#footer li { color: var(--th-cream); opacity: 0.75; }
#footer a, #footer a:visited { color: var(--th-cream); }
#footer-places-privacy, #footer-places-about, #footer-places-disclaimer, #footer-info li#footer-info-lastmod { display: none; }

/* ---------- Kaarten: voorpagina en portalen ---------- */
.mainpage_row {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	padding: 0;
	margin: 0 -6px;
}
.mainpage_box {
	flex: 1;
	margin: 6px;
	min-width: 220px;
	background: var(--th-card);
	border: 1px solid var(--th-line);
	border-top: 3px solid var(--th-gold);
	border-radius: 6px;
	box-shadow: 0 1px 4px rgba(59,42,26,0.14);
	padding: 4px 16px 16px 16px;
}
.mw-body-content .mainpage_box .mw-heading2 { font-size: 1.3em; margin-top: 0.7em; }
.mainpage_box h2 a, .mainpage_box h2 a:visited { color: inherit; }
.mainpage_box p:last-child { margin-bottom: 0; }
.mainpage_hero {
	text-align: center;
	padding: 22px 16px 20px 16px;
	margin: 0 0 6px 0;
	color: var(--th-cream);
	background: linear-gradient(160deg, #5a1c0c 0%, #3a2416 55%, #2a1c12 100%);
	border: 1px solid var(--th-gold);
	border-top: 1px solid var(--th-gold);
}
.mw-body-content .mainpage_hero .mw-heading2 { font-size: 2.2em; margin: 0 0 0.1em 0; }
.mw-body-content .mainpage_hero h2 { border: 0; margin: 0; color: #f6e7c1; }
.mainpage_hero h2 a, .mainpage_hero h2 a:visited { color: #f6e7c1; }
.mainpage_hero .hero-sub { font-style: italic; color: #d9c8a4; font-family: var(--th-serif); font-size: 1.1em; }
.mainpage_hero .hero-links { margin-top: 0.9em; }
.mainpage_hero .hero-links a, .mainpage_hero .hero-links a:visited { color: var(--th-gold); }
.mainpage_hero .hero-links a:hover { color: #fff; }
.mainpage_box .mw-inputbox-input { width: 100%; box-sizing: border-box; margin-bottom: 6px; }
body.page-Main_Page.action-view h1#firstHeading,
body.page-Campaign_4.action-view h1#firstHeading { display: none; }
body.page-Main_Page .catlinks { display: none; }

.mainpage_box .wikitable { width: 100%; font-size: 0.88em; margin: 0.5em 0; }
.mainpage_box .wikitable th, .mainpage_box .wikitable td { padding: 3px 5px; overflow-wrap: normal; word-break: normal; }
.mainpage_box .wikitable th { white-space: nowrap; }
.mainpage_box { min-width: 0; overflow-x: auto; }
.mainpage_row > .mainpage_box { flex-basis: 220px; }

/* ---------- Infobox ---------- */
.infobox {
	background: var(--th-card);
	border: 1px solid var(--th-line);
	border-top: 3px solid var(--th-gold);
	border-radius: 6px;
	box-shadow: 0 1px 4px rgba(59,42,26,0.14);
	float: right;
	clear: right;
	margin: 0 0 1em 1.5em;
	padding: 10px 12px;
	width: 300px;
}
.infobox-title { font-size: 1.5em; text-align: center; border-bottom: 1px solid var(--th-line); padding-bottom: 4px; margin-bottom: 8px; }
.infobox-image { text-align: center; }
.infobox-image img { max-width: 100%; height: auto; border-radius: 4px; }
.infobox table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.infobox th { text-align: left; vertical-align: top; width: 110px; color: var(--th-ink-soft); font-weight: 600; padding: 3px 6px 3px 0; }
.infobox td { vertical-align: top; padding: 3px 0; }
.infobox tr + tr th, .infobox tr + tr td { border-top: 1px solid var(--th-line-soft); }

/* ---------- Tabellen, inhoudsopgave, afbeeldingen ---------- */
.wikitable { background: var(--th-card); border-color: var(--th-line); color: var(--th-ink); }
.wikitable > tr > th, .wikitable > * > tr > th { background: #e6d9bb; border-color: var(--th-line); font-family: var(--th-serif); }
.wikitable > tr > td, .wikitable > * > tr > td { border-color: var(--th-line); }
.wikitable > * > tr:nth-child(even) > td { background: #fbf4e3; }
.toc { background: var(--th-card); border: 1px solid var(--th-line); border-radius: 6px; padding: 8px 12px; }
.mw-body-content figure[typeof~="mw:File/Thumb"], .mw-body-content figure[typeof~="mw:File/Frame"] { background: var(--th-card); border: 1px solid var(--th-line); border-radius: 4px; max-width: 100%; box-sizing: border-box; }
.mw-body-content figure[typeof~="mw:File/Thumb"] > figcaption { background: transparent; color: var(--th-ink-soft); font-style: italic; }
.mw-body-content figure img.mw-file-element, .mw-body-content .infobox-image img { max-width: 100%; height: auto; }
.mw-body-content blockquote { border-left: 3px solid var(--th-gold); margin-left: 0; padding: 0.2em 1em; color: var(--th-ink-soft); font-family: var(--th-serif); font-style: italic; }
.mw-body-content pre, .mw-body-content code { background: #f1e6cc; border-color: var(--th-line); color: var(--th-ink); }
.catlinks { background: var(--th-card); border: 1px solid var(--th-line); border-radius: 6px; }

/* ---------- Kop van een sessieverslag ---------- */
.sessie-kop {
	background: var(--th-card);
	border: 1px solid var(--th-line);
	border-left: 5px solid var(--th-accent);
	border-radius: 6px;
	padding: 10px 14px;
	margin: 0 0 1.2em 0;
}
.sessie-campagne { font-size: 0.85em; color: var(--th-ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.sessie-titel { font-size: 1.8em; line-height: 1.25; margin: 2px 0 4px 0; }
.sessie-meta { color: var(--th-ink-soft); font-size: 0.92em; }
.sessie-meta span + span::before { content: " · "; }
.sessie-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--th-line-soft); }
.sessie-nav span { flex: 1; }
.sessie-overzicht { text-align: center; }
.sessie-volgende { text-align: right; }
.sessie-kop-kort { border-left-width: 1px; margin-top: 2em; clear: both; }
.sessie-kop-kort .sessie-nav { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Navigatiebalk onderaan avonturen ---------- */
.avonturen-nav {
	clear: both;
	text-align: center;
	background: var(--th-card);
	border: 1px solid var(--th-line);
	border-top: 3px solid var(--th-gold);
	border-radius: 6px;
	padding: 8px 12px;
	margin-top: 2em;
	line-height: 1.8;
}

/* ---------- Knoppen en formulieren ---------- */
:root { --background-color-progressive: #8a2b12; --border-color-progressive: #6d200c; }
.mw-body .cdx-button:enabled.cdx-button--action-progressive.cdx-button--weight-primary {
	background-color: var(--th-accent); border-color: #6d200c; color: #fff;
}
.mw-body .cdx-button:enabled.cdx-button--action-progressive.cdx-button--weight-primary:hover { background-color: #a5361a; }
.mw-body form.createbox:invalid .cdx-button {
	background-color: #d9ccb4 !important; border-color: #d9ccb4 !important; color: var(--th-ink-soft) !important;
}
.mw-body form.searchbox .cdx-button:enabled { background: var(--th-card); border-color: var(--th-line); color: var(--th-ink); }
.mw-body .cdx-text-input__input { background: #fff; border-color: var(--th-line); }

/* Formulieren in kaarten: invoerveld boven, knop eronder, volle breedte */
.mainpage_box form.createbox, .mainpage_box form.searchbox { display: block; margin: 0 0 12px 0; }
.mainpage_box form .cdx-text-input { display: block; width: 100%; margin-bottom: 4px; }
.mainpage_box form .cdx-text-input__input, .mainpage_box form .cdx-text-input__input[size] { width: 100% !important; box-sizing: border-box; }
.mainpage_box form input[type="submit"] { width: 100%; box-sizing: border-box; margin: 0 0 4px 0; }
.mainpage_box form.searchbox input[type="submit"] { width: calc(50% - 4px); font-size: 0.9em; padding: 0 6px; }

/* ---------- Systeempagina's ---------- */
#mw-head .vector-menu-dropdown .vector-menu-content,
#mw-head .vector-menu-dropdown .vector-menu-content-list { background: var(--th-card); border-color: var(--th-gold); }
#mw-head .vector-menu-dropdown .vector-menu-content-list li a { color: var(--th-link); }
.mw-plusminus-null { color: var(--th-ink-soft); }
.mw-body fieldset { border-color: var(--th-line); }
.editOptions { background: var(--th-line-soft); border-color: var(--th-line); }
#filetoc, .mw-changeslist-legend, .mw-search-profile-tabs, .mw-history-compare-form fieldset { background: var(--th-card); border-color: var(--th-line); }

/* Lege alinea's die sjablonen kunnen achterlaten */
.infobox > p, .sessie-kop > p { display: none; }

@media screen and (max-width: 719px) {
	.infobox { float: none; width: auto; margin: 0 0 1em 0; }
}