MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Manual revert
mNo edit summary
Tag: Reverted
Line 1: Line 1:
/* ============================================
/* ============================================
   ALL @IMPORTS MUST BE AT THE VERY TOP
   COMMON.CSS – Minimal, variable‑driven base
  Requires MediaWiki:Theme-Mana.css or Theme-Break.css
   ============================================ */
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css"); 
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Modal.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");


/* ============================================
/* Reset some MediaWiki defaults */
  CSS VARIABLES (FALLBACKS FOR MISSING IMPORTS)
html, body {
  ============================================ */
     margin: 0;
:root {
     padding: 0;
     /* Theme Colors - Fallbacks if Colors.css fails */
    --theme-page-background-color: #0a0a1a;
    --theme-page-background-color--secondary: #16213e;
    --theme-page-text-color: #eaeef2;
    --theme-link-color: #7c9eff;
    --theme-border-color: #2c3e50;
    --theme-border-color-rgb: 44, 62, 80;
    --accent: #6c5ce7;
    --accent-light: #8c7cf5;
     --gray-050: rgba(255, 255, 255, 0.05);
   
    /* Main Page Layout Variables */
    --main-page-layout--desktop: 'banner banner banner' 'about about updates' 'starts starts starts' 'items items items' 'characters characters characters' 'enemies enemies enemies' 'area area area';
    --main-page-layout--tablet: 'banner banner' 'about updates' 'starts starts' 'items items' 'characters characters' 'enemies enemies' 'area area';
    --main-page-layout--mobile: 'banner' 'about' 'updates' 'starts' 'items' 'characters' 'enemies' 'area';
}
}


/* ============================================
body {
  BASE LAYOUT FIXES
     background: var(--theme-body-background, #F5F9FC);
  ============================================ */
     color: var(--theme-body-text, #1A1A1A);
.mw-body {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
     margin-top: -1px;
     line-height: 1.6;
     border: 1px solid azure;
     border-radius: 1px;
     background-color: transparent;
}
}


body.skin-vector,
/* ---- Main layout (Vector skin) ---- */
body.skin-vector-dark {
#content {
  background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
    background: var(--theme-page-background, #EAF2F5);
    border: 1px solid var(--theme-border-color-accent, rgba(0,0,0,0.25));
    border-radius: 6px;
    margin: 1em 0;
    padding: 1.5em;
    box-shadow: var(--theme-shadow-small, 0 1px 3px rgba(0,0,0,0.12));
}
}


/* Hide default elements */
.mw-body {
.mobileHide, .mobile-only, .no-desktop {
     background: transparent;
     display: none !important;
    border: none;
}
}


/* Fix for hidden H1 on main page */
/* ---- Sidebar ---- */
body.page-Main_Page.action-view h1.firstHeading,
#mw-panel {
body.page-Main_Page.action-submit h1.firstHeading {
    background: var(--theme-widget-background-solid, #FFFFFF);
     display: none;
    border: 1px solid var(--theme-border-color-accent, rgba(0,0,0,0.25));
    border-radius: 6px;
    padding: 0.5em;
     box-shadow: var(--theme-shadow-small, 0 1px 3px rgba(0,0,0,0.12));
}
}


/* ============================================
#mw-panel .portal .body {
  MAIN PAGE GRID LAYOUT
     margin-left: 0.5em;
  ============================================ */
#mp-container {
     display: grid;
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}
}


/* Desktop Layout */
#mw-panel .portal h3 {
@media (min-width: 1024px) {
    color: var(--theme-heading-color, #1A1A1A);
     #mp-container {
     font-size: 1.1em;
        grid-template-areas: var(--main-page-layout--desktop);
    margin-top: 1em;
        grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--theme-border-color-light, rgba(0,0,0,0.06));
    }
    padding-bottom: 0.2em;
}
}


/* Tablet Layout */
#mw-panel .portal li a {
@media (min-width: 768px) and (max-width: 1023px) {
     color: var(--theme-link-color, #005B9F);
     #mp-container {
        grid-template-areas: var(--main-page-layout--tablet);
        grid-template-columns: repeat(2, 1fr);
    }
}
}


/* Mobile Layout */
#mw-panel .portal li a:hover {
@media (max-width: 767px) {
     color: var(--theme-link-color-hover, #003D6B);
     #mp-container {
    text-decoration: underline;
        grid-template-areas: var(--main-page-layout--mobile);
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
}


/* MP Box styling */
/* ---- Top navigation (tabs, search) ---- */
.mp-box {
#mw-head {
     animation: fadeInUp 0.5s ease forwards;
     background: var(--theme-widget-background, rgba(255,255,255,0.75));
     opacity: 0;
    border-bottom: 1px solid var(--theme-border-color, rgba(0,0,0,0.12));
     padding: 0.3em 1em;
}
}


/* Staggered animations */
#p-search input {
.mp-box:nth-child(1) { animation-delay: 0.05s; }
    background-color: var(--theme-widget-background-solid, #FFFFFF);
.mp-box:nth-child(2) { animation-delay: 0.1s; }
    border: 1px solid var(--theme-border-color-accent, rgba(0,0,0,0.25));
.mp-box:nth-child(3) { animation-delay: 0.15s; }
    color: var(--theme-body-text, #1A1A1A);
.mp-box:nth-child(4) { animation-delay: 0.2s; }
     padding: 0.3em 0.5em;
.mp-box:nth-child(5) { animation-delay: 0.25s; }
     border-radius: 4px;
.mp-box:nth-child(6) { animation-delay: 0.3s; }
.mp-box:nth-child(7) { animation-delay: 0.35s; }
.mp-box:nth-child(8) { animation-delay: 0.4s; }
 
@keyframes fadeInUp {
     from {
        opacity: 0;
        transform: translateY(20px);
     }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
}


/* ============================================
#p-search input:focus {
  GAME INTRO CARDS
     border-color: var(--theme-accent-color, #00A896);
  ============================================ */
     outline: none;
.game-intro-card {
     box-shadow: 0 0 0 1px var(--theme-accent-color, #00A896);
     background: var(--theme-page-background-color--secondary);
     border-radius: 12px;
     padding: 1.25rem;
    border: 1px solid var(--theme-border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
}


.game-intro-card:hover {
.vector-menu-tabs li a {
     transform: translateY(-2px);
     color: var(--theme-body-text, #1A1A1A) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
}


.game-header {
.vector-menu-tabs li.selected a {
     margin-bottom: 1rem;
     color: var(--theme-accent-color, #00A896) !important;
     position: relative;
     border-bottom: 2px solid var(--theme-accent-color, #00A896);
}
}


.mana-text {
.vector-menu-tabs li a:hover {
    font-family: 'Fredoka', sans-serif;
     color: var(--theme-link-color-hover, #003D6B) !important;
     font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), #a8c0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    letter-spacing: 0.5px;
    margin: 0 !important;
}
}


.mana-text img {
/* ---- Footer ---- */
     vertical-align: middle;
#footer {
     margin-left: 8px;
     background: var(--theme-widget-background, rgba(255,255,255,0.75));
    border-top: 1px solid var(--theme-border-color, rgba(0,0,0,0.12));
     color: var(--theme-body-text-muted, #5A5A5A);
    font-size: 0.9em;
}
}


.mana-line {
#footer a {
     height: 3px;
     color: var(--theme-link-color, #005B9F);
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 0.5rem;
    width: 100%;
}
}


.game-content {
/* ---- Links ---- */
     color: var(--theme-page-text-color);
a {
    line-height: 1.6;
     color: var(--theme-link-color, #005B9F);
}
}


/* ============================================
a:visited {
  HEADING STYLES
     color: var(--theme-link-color-visited, #673AB7);
  ============================================ */
.heading-char {
    font-size: 1.1rem;
    font-weight: 600;
     color: var(--accent-light);
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
}


.heading-char a {
a:hover {
     color: var(--accent-light);
     color: var(--theme-link-color-hover, #003D6B);
    text-decoration: none;
}
}


.heading-char a:hover {
a.new, a.new:visited {
     text-decoration: underline;
     color: var(--theme-link-color-new, #D32F2F);
}
}


/* ============================================
/* ---- Headings ---- */
  AUTO GRID LISTS
h1, h2, h3, h4, h5, h6 {
  ============================================ */
     color: var(--theme-heading-color, #1A1A1A);
.auto-grid {
     margin-top: 1.5em;
     display: grid;
     margin-bottom: 0.5em;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
     gap: 0.5rem;
     list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
}


.auto-grid li {
h1 {
     padding: 0.25rem 0;
    border-bottom: 1px solid var(--theme-border-color-accent, rgba(0,0,0,0.25));
     padding-bottom: 0.2em;
    font-size: 2em;
}
}


.auto-grid li a {
h2 {
     color: var(--theme-link-color);
     border-bottom: 1px solid var(--theme-border-color-light, rgba(0,0,0,0.06));
     text-decoration: none;
     padding-bottom: 0.2em;
    transition: color 0.2s ease;
     font-size: 1.5em;
     display: inline-block;
}
}


.auto-grid li a:hover {
/* ---- Table of Contents ---- */
     color: var(--accent-light);
.toc {
     text-decoration: underline;
    background: var(--theme-toc-background, rgba(255,255,255,0.5));
     border: 1px solid var(--theme-toc-border, rgba(0,0,0,0.25));
    border-radius: 6px;
    padding: 0.8em;
     font-size: 0.95em;
}
}


/* ============================================
.toc .toctitle h2 {
  BANNER SECTION
     color: var(--theme-heading-color, #1A1A1A);
  ============================================ */
     font-size: 1.2em;
#mp-box-banner .mp-body {
     border-bottom: none;
     background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
     margin: 0;
     border-radius: 16px;
     padding: 2rem;
    text-align: center;
     backdrop-filter: blur(10px);
}
}


/* Social links */
.toc ul {
.social {
     list-style: none;
     display: flex;
     margin-left: 0;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
     margin-top: 2rem;
}
}


.iconname {
.toc a {
     display: flex;
     color: var(--theme-toc-link-color, #1A1A1A);
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
}


.iconname:hover {
.toc .tocnumber {
     background: rgba(108, 92, 231, 0.3);
     color: var(--theme-toc-number-color, #5A5A5A);
    transform: translateY(-2px);
}
}


.iconname a {
/* ---- Thumbnails ---- */
     color: white !important;
.thumb .thumbinner {
     text-decoration: none;
     background: var(--theme-box-background, rgba(255,255,255,0.6));
    font-weight: 500;
     border: 1px solid var(--theme-border-color-light, rgba(0,0,0,0.06));
}
     border-radius: 4px;
 
     padding: 4px;
/* ============================================
     font-size: 0.9em;
  WIKI FIXES & IMPROVEMENTS
  ============================================ */
/* Editor fixes */
.wikiEditor-ui-text > .ui-resizable {
     width: 100% !important;
     max-width: 100%;
}
 
/* List styles */
ul {
     list-style: disc;
}
}


/* Headings */
.thumbcaption {
h2 .mw-headline,
    color: var(--theme-body-text-muted, #5A5A5A);
h3 .mw-headline,
h4 .mw-headline {
    font-weight: 500;
}
}


.vector-body h3,
/* ---- Tables ---- */
.vector-body h4,
table.wikitable {
.vector-body h5,
     background: transparent;
.vector-body h6 {
    border-collapse: collapse;
     margin-bottom: 4px;
    color: var(--theme-body-text, #1A1A1A);
}
}


/* Link colors */
table.wikitable th,
a, a:visited, a:active,
table.wikitable td {
.mw-parser-output a:is(.external, .external:visited, .external:active) {
     border: 1px solid var(--theme-border-color-accent, rgba(0,0,0,0.25));
     color: var(--theme-link-color);
    padding: 0.3em 0.6em;
}
}


#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
table.wikitable th {
     color: var(--theme-page-text-color);
     background: var(--theme-highlight-background, rgba(0,0,0,0.05));
    font-weight: bold;
}
}


#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
table.wikitable tr:hover td {
     color: var(--theme-link-color);
     background: var(--theme-highlight-background, rgba(0,0,0,0.05));
}
}


.mw-parser-output a.external {
/* ---- Category links ---- */
    padding-right: 0;
    font-size: inherit;
}
 
/* Categories */
.catlinks {
.catlinks {
     border-color: var(--theme-border-color);
     background: var(--theme-widget-background, rgba(255,255,255,0.75));
    border-radius: 6px;
     border: 1px solid var(--theme-border-color-light, rgba(0,0,0,0.06));
    background-color: var(--gray-050);
}
 
/* Code blocks */
code, pre {
    background-color: var(--theme-page-background-color--secondary);
    color: var(--theme-page-text-color);
     border: 1px solid var(--theme-border-color);
    border-radius: 2px;
    padding: 1px 4px;
    font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
 
code.code-block-table {
    display: table;
    line-height: 21px;
    padding: 8px;
}
 
.code-block-table * {
    font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
 
.code-block {
    display: inline-block;
    line-height: 21px;
}
 
/* Table of Contents */
.toc {
    padding: 8px 12px;
     border-radius: 4px;
     border-radius: 4px;
     background-color: var(--theme-page-background-color--secondary);
     margin-top: 1em;
    border: 1px solid var(--theme-border-color);
     padding: 0.5em;
     margin-top: 16px;
}
}


.toctogglelabel {
.catlinks li {
     color: var(--theme-link-color);
     border-left: 1px solid var(--theme-border-color-light, rgba(0,0,0,0.06));
}
}


.tocnumber {
/* ---- Message boxes (mw-message-box, warning, error) ---- */
     color: var(--theme-page-text-color);
.mw-message-box {
}
     background: var(--theme-notice-blue-background, #E3F2FD);
 
     border: 1px solid var(--theme-notice-blue-border, #90CAF9);
.vector-body .toc h2 {
     color: var(--theme-body-text, #1A1A1A);
    font-family: 'Fredoka', sans-serif;
}
 
/* Hatnote */
.hatnote {
     border-left: 4px solid var(--theme-border-color);
     padding: 6px 12px;
     border-radius: 4px;
     border-radius: 4px;
     background: linear-gradient(145deg, rgba(var(--theme-border-color-rgb), 0.30) 0%, rgba(var(--theme-border-color-rgb), 0) 100%);
     padding: 0.8em 1em;
     margin: 8px 0;
     margin-bottom: 1em;
}
}


/* Variables styling */
.mw-message-box-error {
span.variable {
     background: var(--theme-notice-red-background, #FFEBEE);
     opacity: 0.65;
    border-color: var(--theme-notice-red-border, #EF9A9A);
    color: var(--theme-notice-red-text, #C62828);
}
}


span.variable::after {
.mw-message-box-warning {
     opacity: 0.65;
    background: var(--theme-notice-yellow-background, #FFF8E1);
     content: ">";
     border-color: var(--theme-notice-yellow-border, #FFE082);
     color: var(--theme-body-text, #1A1A1A);
}
}


span.variable::before {
.mw-message-box-success {
     opacity: 0.65;
     background: var(--theme-notice-green-background, #E8F5E9);
     content: "<";
     border-color: var(--theme-notice-green-border, #A5D6A7);
}
}


/* Pull quotes */
/* ---- Diff colours ---- */
.pull-quote {
.diff-addedline {
     font-style: italic;
     background: var(--theme-diff-added-bg, #E6FFE6);
     margin: 0;
     color: var(--theme-diff-added-text, #001700);
    padding: 0 30px 8px !important;
}
}


.pull-quote::before {
.diff-deletedline {
     color: var(--accent);
     background: var(--theme-diff-removed-bg, #FFE6E6);
     content: "“";
     color: var(--theme-diff-removed-text, #1F0000);
    display: block;
    font-size: 96px;
    font-style: normal;
    line-height: 72px;
    margin: 4px 0 -45px -5px;
}
}


.pull-quote__source::before {
.diff-context {
     content: "— ";
     background: transparent;
    margin-bottom: 8px;
}
}


.pull-quote__text {
/* ---- Scrollbar ---- */
    margin-bottom: 4px;
}
 
/* Gallery */
.gallerytext {
    text-align: center;
    font-size: 100%;
}
 
/* Changelist */
.changelist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 88%;
    margin: 0.3em 0;
}
 
.changelist-content {
    overflow: auto;
    max-height: 384px;
    padding: 1em;
    box-sizing: border-box;
    border-radius: 6px;
}
 
.changelist-border {
    border: 1px solid var(--theme-border-color);
    border-left: 6px solid var(--accent);
}
 
/* Chat wrapper */
.chat-wrapper {
    display: flex;
    flex-direction: column;
}
 
.chat-player,
.chat-npc {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}
 
.chat-player-speaker {
    white-space: nowrap;
    min-width: 70px;
    color: rgb(105, 172, 82);
}
 
.chat-npc-speaker {
    white-space: nowrap;
    min-width: 70px;
    color: rgb(237, 123, 103);
}
 
/* ============================================
  RESPONSIVE IMPROVEMENTS
  ============================================ */
@media (max-width: 768px) {
    .auto-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
   
    .game-intro-card {
        padding: 1rem;
    }
   
    .mana-text {
        font-size: 1.25rem;
    }
   
    .social {
        gap: 0.5rem;
    }
   
    .iconname {
        padding: 0.35rem 0.75rem;
        font-size: 0.9rem;
    }
   
    #mp-box-banner .mp-body {
        padding: 1rem;
    }
}
 
/* ============================================
  CUSTOM SCROLLBAR
  ============================================ */
::-webkit-scrollbar {
::-webkit-scrollbar {
     width: 10px;
     width: 10px;
    height: 10px;
}
}


::-webkit-scrollbar-track {
::-webkit-scrollbar-track {
     background: var(--theme-page-background-color--secondary);
     background: var(--theme-scrollbar-track, rgba(0,0,0,0.05));
    border-radius: 5px;
}
}


::-webkit-scrollbar-thumb {
::-webkit-scrollbar-thumb {
     background: var(--accent);
     background: var(--theme-scrollbar-thumb, rgba(0,0,0,0.2));
     border-radius: 5px;
     border-radius: 5px;
}
}


::-webkit-scrollbar-thumb:hover {
::-webkit-scrollbar-thumb:hover {
     background: var(--accent-light);
     background: var(--theme-scrollbar-thumb-hover, rgba(0,0,0,0.3));
}
 
/* ============================================
  UTILITY CLASSES
  ============================================ */
.text-center {
    text-align: center;
}
 
.mt-2 {
    margin-top: 0.5rem;
}
 
.mb-2 {
    margin-bottom: 0.5rem;
}
}


.p-2 {
/* ---- Utility classes ---- */
     padding: 0.5rem;
.text-muted {
     color: var(--theme-body-text-muted, #5A5A5A);
}
}

Revision as of 07:31, 8 May 2026

/* ============================================
   COMMON.CSS – Minimal, variable‑driven base
   Requires MediaWiki:Theme-Mana.css or Theme-Break.css
   ============================================ */

/* Reset some MediaWiki defaults */
html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--theme-body-background, #F5F9FC);
    color: var(--theme-body-text, #1A1A1A);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

/* ---- Main layout (Vector skin) ---- */
#content {
    background: var(--theme-page-background, #EAF2F5);
    border: 1px solid var(--theme-border-color-accent, rgba(0,0,0,0.25));
    border-radius: 6px;
    margin: 1em 0;
    padding: 1.5em;
    box-shadow: var(--theme-shadow-small, 0 1px 3px rgba(0,0,0,0.12));
}

.mw-body {
    background: transparent;
    border: none;
}

/* ---- Sidebar ---- */
#mw-panel {
    background: var(--theme-widget-background-solid, #FFFFFF);
    border: 1px solid var(--theme-border-color-accent, rgba(0,0,0,0.25));
    border-radius: 6px;
    padding: 0.5em;
    box-shadow: var(--theme-shadow-small, 0 1px 3px rgba(0,0,0,0.12));
}

#mw-panel .portal .body {
    margin-left: 0.5em;
}

#mw-panel .portal h3 {
    color: var(--theme-heading-color, #1A1A1A);
    font-size: 1.1em;
    margin-top: 1em;
    border-bottom: 1px solid var(--theme-border-color-light, rgba(0,0,0,0.06));
    padding-bottom: 0.2em;
}

#mw-panel .portal li a {
    color: var(--theme-link-color, #005B9F);
}

#mw-panel .portal li a:hover {
    color: var(--theme-link-color-hover, #003D6B);
    text-decoration: underline;
}

/* ---- Top navigation (tabs, search) ---- */
#mw-head {
    background: var(--theme-widget-background, rgba(255,255,255,0.75));
    border-bottom: 1px solid var(--theme-border-color, rgba(0,0,0,0.12));
    padding: 0.3em 1em;
}

#p-search input {
    background-color: var(--theme-widget-background-solid, #FFFFFF);
    border: 1px solid var(--theme-border-color-accent, rgba(0,0,0,0.25));
    color: var(--theme-body-text, #1A1A1A);
    padding: 0.3em 0.5em;
    border-radius: 4px;
}

#p-search input:focus {
    border-color: var(--theme-accent-color, #00A896);
    outline: none;
    box-shadow: 0 0 0 1px var(--theme-accent-color, #00A896);
}

.vector-menu-tabs li a {
    color: var(--theme-body-text, #1A1A1A) !important;
}

.vector-menu-tabs li.selected a {
    color: var(--theme-accent-color, #00A896) !important;
    border-bottom: 2px solid var(--theme-accent-color, #00A896);
}

.vector-menu-tabs li a:hover {
    color: var(--theme-link-color-hover, #003D6B) !important;
}

/* ---- Footer ---- */
#footer {
    background: var(--theme-widget-background, rgba(255,255,255,0.75));
    border-top: 1px solid var(--theme-border-color, rgba(0,0,0,0.12));
    color: var(--theme-body-text-muted, #5A5A5A);
    font-size: 0.9em;
}

#footer a {
    color: var(--theme-link-color, #005B9F);
}

/* ---- Links ---- */
a {
    color: var(--theme-link-color, #005B9F);
}

a:visited {
    color: var(--theme-link-color-visited, #673AB7);
}

a:hover {
    color: var(--theme-link-color-hover, #003D6B);
}

a.new, a.new:visited {
    color: var(--theme-link-color-new, #D32F2F);
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
    color: var(--theme-heading-color, #1A1A1A);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    border-bottom: 1px solid var(--theme-border-color-accent, rgba(0,0,0,0.25));
    padding-bottom: 0.2em;
    font-size: 2em;
}

h2 {
    border-bottom: 1px solid var(--theme-border-color-light, rgba(0,0,0,0.06));
    padding-bottom: 0.2em;
    font-size: 1.5em;
}

/* ---- Table of Contents ---- */
.toc {
    background: var(--theme-toc-background, rgba(255,255,255,0.5));
    border: 1px solid var(--theme-toc-border, rgba(0,0,0,0.25));
    border-radius: 6px;
    padding: 0.8em;
    font-size: 0.95em;
}

.toc .toctitle h2 {
    color: var(--theme-heading-color, #1A1A1A);
    font-size: 1.2em;
    border-bottom: none;
    margin: 0;
}

.toc ul {
    list-style: none;
    margin-left: 0;
}

.toc a {
    color: var(--theme-toc-link-color, #1A1A1A);
}

.toc .tocnumber {
    color: var(--theme-toc-number-color, #5A5A5A);
}

/* ---- Thumbnails ---- */
.thumb .thumbinner {
    background: var(--theme-box-background, rgba(255,255,255,0.6));
    border: 1px solid var(--theme-border-color-light, rgba(0,0,0,0.06));
    border-radius: 4px;
    padding: 4px;
    font-size: 0.9em;
}

.thumbcaption {
    color: var(--theme-body-text-muted, #5A5A5A);
}

/* ---- Tables ---- */
table.wikitable {
    background: transparent;
    border-collapse: collapse;
    color: var(--theme-body-text, #1A1A1A);
}

table.wikitable th,
table.wikitable td {
    border: 1px solid var(--theme-border-color-accent, rgba(0,0,0,0.25));
    padding: 0.3em 0.6em;
}

table.wikitable th {
    background: var(--theme-highlight-background, rgba(0,0,0,0.05));
    font-weight: bold;
}

table.wikitable tr:hover td {
    background: var(--theme-highlight-background, rgba(0,0,0,0.05));
}

/* ---- Category links ---- */
.catlinks {
    background: var(--theme-widget-background, rgba(255,255,255,0.75));
    border: 1px solid var(--theme-border-color-light, rgba(0,0,0,0.06));
    border-radius: 4px;
    margin-top: 1em;
    padding: 0.5em;
}

.catlinks li {
    border-left: 1px solid var(--theme-border-color-light, rgba(0,0,0,0.06));
}

/* ---- Message boxes (mw-message-box, warning, error) ---- */
.mw-message-box {
    background: var(--theme-notice-blue-background, #E3F2FD);
    border: 1px solid var(--theme-notice-blue-border, #90CAF9);
    color: var(--theme-body-text, #1A1A1A);
    border-radius: 4px;
    padding: 0.8em 1em;
    margin-bottom: 1em;
}

.mw-message-box-error {
    background: var(--theme-notice-red-background, #FFEBEE);
    border-color: var(--theme-notice-red-border, #EF9A9A);
    color: var(--theme-notice-red-text, #C62828);
}

.mw-message-box-warning {
    background: var(--theme-notice-yellow-background, #FFF8E1);
    border-color: var(--theme-notice-yellow-border, #FFE082);
    color: var(--theme-body-text, #1A1A1A);
}

.mw-message-box-success {
    background: var(--theme-notice-green-background, #E8F5E9);
    border-color: var(--theme-notice-green-border, #A5D6A7);
}

/* ---- Diff colours ---- */
.diff-addedline {
    background: var(--theme-diff-added-bg, #E6FFE6);
    color: var(--theme-diff-added-text, #001700);
}

.diff-deletedline {
    background: var(--theme-diff-removed-bg, #FFE6E6);
    color: var(--theme-diff-removed-text, #1F0000);
}

.diff-context {
    background: transparent;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--theme-scrollbar-track, rgba(0,0,0,0.05));
}

::-webkit-scrollbar-thumb {
    background: var(--theme-scrollbar-thumb, rgba(0,0,0,0.2));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-scrollbar-thumb-hover, rgba(0,0,0,0.3));
}

/* ---- Utility classes ---- */
.text-muted {
    color: var(--theme-body-text-muted, #5A5A5A);
}