MediaWiki:Common.css: Difference between revisions

From Winds Of Valen Wiki
Jump to navigation Jump to search
Full OSRS-style design system v1
Fix CSS encoding/BOM issue
 
(63 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================================
/* ==========================================================================
   WINDS OF VALEN WIKI — Common CSS
   OSRS EXACT REPLICA DESIGN SYSTEM
  Scoped under .wov-* prefix so nothing bleeds to default pages.
   ========================================================================== */
  Main Page layout based on OSRS Wiki aesthetic.
   ============================================================ */


/* ---- Google Fonts ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@700&family=Inter:wght@400;600&display=swap');


/* ============================================================
/* --- 1. Custom Fonts --- */
  GLOBAL WIKI OVERRIDES (body-level, theme tokens)
@font-face {
  ============================================================ */
    font-family: 'Kingthings Petrock';
    src: url('/resources/assets/fonts/Kingthings_Petrock.woff2') format('woff2');
}
@font-face {
    font-family: 'League Spartan';
    src: url('/resources/assets/fonts/LeagueSpartan-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Museo Sans';
    src: url('/resources/assets/fonts/MuseoSans-500.woff2') format('woff2');
}
@font-face {
    font-family: 'RuneScape Chat';
    src: url('/resources/assets/fonts/RuneScape-Chat.woff2') format('woff2');
}
 
/* --- 2. Base Body Override --- */
body {
body {
     color-scheme: light;
     background-image: none !important;
     font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    background-color: #e1d5be !important;
     font-family: 'Museo Sans', 'PT Serif', Georgia, serif;
}
}


/* ---- Typography overrides --------------------------------- */
/* --- 3. Content Parchment Container --- */
a { color: #936039; }
#content {
a:hover { color: #52351e; text-decoration: underline; }
    background: url('/resources/assets/background_parchment.png') repeat #f1e7d3 !important;
    border: 3px solid #3d2b1f !important;
    border-radius: 4px;
    margin-top: 15px;
}


h1, h2, h3, h4, h5, h6 {
#mw-content-text {
     font-family: 'PT Serif', Georgia, serif;
     background-color: transparent !important;
}
}


/* ---- Wikitable styles (OSRS look) ------------------------- */
/* --- 4. Header Styling --- */
table.wikitable {
h1, h2, h3, h4, h5, h6 {
     background: #f1e7d3;
     font-family: 'Kingthings Petrock', serif;
    border: 1px solid #a19277;
     color: #4a3c28;
     color: #4a3c28;
    border-bottom: 1px solid #b3a07d; /* Gold trim */
}
}
table.wikitable > * > tr > th {
 
    background: #c9b688;
/* --- 5. Hide Foreground Logo (Use Background Instead) --- */
    border: 1px solid #a19277;
#p-logo a {
    color: #4a3c28;
     height: 140px !important;
    font-family: 'PT Serif', Georgia, serif;
}
table.wikitable > * > tr > td {
     background: #fcf6e8;
    border: 1px solid #a19277;
}
}


/* ============================================================
/* --- 6. Main Page Layout Tweaks --- */
  HIDE "Main Page" h1 HEADING ON MAIN PAGE ONLY
  (JS also does this; CSS is the instant fallback)
  ============================================================ */
.page-Main_Page #firstHeading,
.page-Main_Page #firstHeading,
.page-Main_Page .mw-first-heading {
.page-Main_Page .mw-first-heading {
Line 50: Line 60:
}
}


/* Remove the top padding gap that appears when h1 is hidden */
/* Give all page titles some breathing room from the top border */
.page-Main_Page #mw-content-text {
.firstHeading {
     margin-top: 0 !important;
     padding-top: 15px !important;
}
}
.page-Main_Page .mw-body-content {
.page-Main_Page .mw-body-content {
     padding-top: 6px !important;
     padding-top: 0 !important;
}
}


/* ============================================================
/* --- 7. Margin Collapse Fix --- */
   MAIN PAGE — OUTER WRAPPER
.mw-parser-output .column-grid > * {
   ============================================================ */
    margin-top: 0;
.wov-main-page {
}
     font-family: 'PT Serif', Georgia, serif;
.mw-parser-output .column-grid > *:last-child {
    margin-bottom: 0;
}
 
/* --- 8. Reader Mode --- */
body.reader-mode-active #mw-panel,
body.reader-mode-active #mw-head {
    display: none;
}
body.reader-mode-active #content {
    margin-left: auto;
    margin-right: auto;
    max-width: 960px;
    padding: 40px;
}
 
/* ==========================================================================
   OSRS NATIVE DOM ARCHITECTURE (Main Page Layout Engine)
   ========================================================================== */
 
 
.mainpage-container {
     max-width: 100%;
     color: #4a3c28;
     color: #4a3c28;
    max-width: 100%;
     box-sizing: border-box;
     box-sizing: border-box;
    font-family: 'PT Serif', Georgia, serif;
}
.mainpage-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}
}


/* ============================================================
@media screen and (max-width: 900px) {
  WELCOME BOX
    .mainpage-layout {
  ============================================================ */
        grid-template-columns: 1fr;
.wov-welcome-box {
    }
     background: #fcf6e8;
}
     border: 1px solid #a19277;
 
.mainpage-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
 
.header-intro {
    flex: 1;
     background: url('/resources/assets/welcomeimage.jpg') center center no-repeat !important;
    background-size: cover !important;
     border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    padding: 30px;
     text-align: center;
     text-align: center;
     padding: 22px 24px 18px;
     position: relative;
     margin-bottom: 14px;
     z-index: 1;
    overflow: hidden;
}
}
.wov-welcome-title {
.header-intro::before {
     font-family: 'PT Serif', Georgia, serif;
     content: "";
     font-size: 1.55em;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(20, 15, 10, 0.8) 0%, rgba(40, 25, 15, 0.6) 100%);
    z-index: -1;
}
.header-title {
     font-size: 1.8em;
     font-weight: bold;
     font-weight: bold;
     color: #4a3c28;
     color: #ffd700;
     margin: 0 0 6px;
     text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 15px rgba(255, 215, 0, 0.3);
    margin-bottom: 12px;
     line-height: 1.2;
     line-height: 1.2;
}
}
.wov-welcome-sub {
.header-intro p {
     color: #6b5b45;
    font-size: 1.05em;
     font-size: 0.92em;
     color: #f1e7d3;
     text-shadow: 0 1px 4px rgba(0,0,0,0.8);
     margin: 0;
     margin: 0;
    line-height: 1.5;
}
}
.wov-welcome-sub a { color: #936039; }
.header-intro p a {
    color: #7dd3fc !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.header-intro p a:hover {
    color: #bae6fd !important;
    text-shadow: 0 0 8px rgba(125, 211, 252, 0.6);
}


/* ============================================================
.header-stats {
  TWO-COLUMN LAYOUT GRID
    width: 300px;
  ============================================================ */
    flex-shrink: 0;
.wov-layout-grid {
    background: linear-gradient(to bottom, #fcf6e8, #f1e7d3) !important;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(61, 43, 31, 0.15);
    border: 1px solid rgba(179, 160, 125, 0.4);
    padding: 20px 25px;
    box-sizing: border-box;
}
.header-stats ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-stats li {
     display: flex;
     display: flex;
     gap: 14px;
     justify-content: space-between;
     align-items: flex-start;
    margin-bottom: 8px;
    font-size: 0.95em;
     border-bottom: 1px dashed rgba(179, 160, 125, 0.6);
    padding-bottom: 8px;
}
}
.wov-main-col {
.header-stats li:last-child {
     flex: 1 1 0;
     margin-bottom: 0;
     min-width: 0;
     border-bottom: none;
    padding-bottom: 0;
}
}
.wov-side-col {
.header-stats b {
     width: 282px;
     color: #611313;
     flex-shrink: 0;
     text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    flex-grow: 0;
}
}


/* ============================================================
@media screen and (max-width: 900px) {
  PARCHMENT BOX — base component for every section
    .mainpage-header { flex-direction: column; }
  ============================================================ */
     .header-stats { width: 100%; }
.wov-parchment-box {
    background: #f1e7d3;
     border: 1px solid #a19277;
    margin-bottom: 14px;
    overflow: hidden;
}
}


/* ============================================================
.section-title {
  SECTION HEADER — dark serif with gold bottom line
     font-family: 'Kingthings Petrock', 'PT Serif', serif;
  ============================================================ */
     font-size: 1.6em;
.wov-section-header {
     font-weight: normal;
     font-family: 'PT Serif', Georgia, serif;
     color: #3b240b;
     font-size: 0.97em;
     text-align: center;
     font-weight: bold;
     padding: 0 0 10px 0;
     color: #4a3c28;
     margin: 30px 0 20px 0;
     padding: 7px 14px 6px;
     position: relative;
    border-bottom: 2px solid #c9a55a;
     background: none;
     background: #ede2cc;
     border-bottom: none;
     letter-spacing: 0.015em;
     display: flex;
     align-items: center;
     gap: 6px;
}
}
.wov-section-header-dark {
.section-title::after {
     font-family: 'PT Serif', Georgia, serif;
     content: "";
     font-size: 0.97em;
     display: block;
     font-weight: bold;
     width: 150px;
     color: #e8d8ff;
     height: 3px;
     padding: 8px 14px 7px;
     background: linear-gradient(90deg, transparent, #b3a07d, transparent);
    border-bottom: 1px solid rgba(255,255,255,0.18);
     margin: 8px auto 0 auto;
     letter-spacing: 0.015em;
}
}


/* ============================================================
.tile-row {
  LATEST UPDATES ROW — two cards side-by-side
    display: grid;
  ============================================================ */
    gap: 16px;
.wov-updates-row {
    margin-bottom: 20px;
     display: flex;
}
     gap: 0;
.updates-row {
     grid-template-columns: 1fr 1fr;
    background: none;
    border: none;
}
.categories-grid {
    grid-template-columns: repeat(4, 1fr);
    background: none;
    border: none;
     padding: 0;
}
}
.wov-update-card {
 
     flex: 1;
.update-card {
     padding: 10px 14px 12px;
     background: linear-gradient(145deg, #ffffff, #fcf6e8);
     border-right: 1px solid #a19277;
    border-radius: 8px;
     background: #f8f2e4;
     padding: 20px;
    box-shadow: 0 4px 12px rgba(61, 43, 31, 0.1);
     border: 1px solid rgba(179, 160, 125, 0.3);
     transition: transform 0.2s ease, box-shadow 0.2s ease;
}
}
.wov-update-card:last-child {
.update-card:hover {
     border-right: none;
    transform: translateY(-3px);
     box-shadow: 0 8px 16px rgba(61, 43, 31, 0.15);
}
}
.wov-update-tag {
.update-header {
     font-family: 'Inter', sans-serif;
     font-family: 'Inter', sans-serif;
     font-size: 0.71em;
     font-size: 0.75em;
     font-weight: 600;
     font-weight: 700;
     text-transform: uppercase;
     text-transform: uppercase;
     letter-spacing: 0.09em;
    color: #8c7657;
    color: #7a6848;
     letter-spacing: 0.05em;
     margin-bottom: 5px;
     margin-bottom: 8px;
}
}
.wov-update-title {
.update-title {
     font-size: 0.93em;
     font-size: 1.1em;
     font-weight: bold;
     font-weight: bold;
     line-height: 1.35;
     margin-bottom: 10px;
     margin-bottom: 6px;
     line-height: 1.3;
}
}
.wov-update-title a {
.update-title a {
    color: #791a1a !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.update-title a:hover {  
     color: #a61c1c !important;
     color: #a61c1c !important;
     text-decoration: none;
     text-decoration: none;
}
}
.wov-update-title a:hover {
.update-card p {
     text-decoration: underline;
     font-size: 0.9em;
     color: #7a1212 !important;
     color: #4a3c28;
}
     line-height: 1.5;
.wov-update-snippet {
     font-size: 0.84em;
    color: #5a4a34;
     margin: 0;
     margin: 0;
    line-height: 1.55;
}
}


/* ============================================================
.category-card {
  CATEGORIES GRID — 4-column square cards
    background: #ffffff;
  ============================================================ */
    border-radius: 8px;
.wov-categories-grid {
     overflow: hidden;
     display: grid;
     box-shadow: 0 4px 10px rgba(61, 43, 31, 0.1);
     grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(179, 160, 125, 0.3);
     gap: 8px;
     transition: all 0.2s ease;
     padding: 10px;
     display: flex;
     background: #f1e7d3;
     flex-direction: column;
}
}
.wov-cat-card {
.category-card:hover {
     border: 1px solid #a19277;
     transform: translateY(-4px);
     overflow: hidden;
     box-shadow: 0 10px 20px rgba(61, 43, 31, 0.15), 0 0 15px rgba(255, 215, 0, 0.15);
     background: #eedfad;
     border-color: #b3a07d;
    position: relative;
}
}
.wov-cat-img-box {
.tile-top.tile-image {
     background: #ffffff;
     background: radial-gradient(circle, #ffffff 0%, #f1e7d3 100%) !important;
    height: 120px;
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     min-height: 90px;
     padding: 15px;
     padding: 10px;
     border-bottom: 1px solid rgba(179, 160, 125, 0.3);
}
}
/* Target the actual img MediaWiki renders inside */
.tile-top.tile-image img {
.wov-cat-img-box img,
     max-width: 80px;
.wov-cat-img-box a img {
     max-height: 80px;
     max-width: 80px !important;
     max-height: 80px !important;
    width: auto !important;
    height: auto !important;
     object-fit: contain;
     object-fit: contain;
     display: block;
     filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}
.category-card:hover .tile-top.tile-image img {
    transform: scale(1.05);
}
}
.wov-cat-label {
.tile-bottom.link-button {
     background: #c9b688;
     background: #fcf6e8 !important;
    border-top: 1px solid #a19277;
     padding: 12px 10px;
     padding: 5px 6px;
     text-align: center;
     text-align: center;
     font-size: 0.84em;
     font-size: 1em;
     font-weight: bold;
     flex-grow: 1;
    color: #4a3c28;
}
}
.wov-cat-label a {
.tile-bottom.link-button a {
     color: #4a3c28 !important;
     color: #4a3c28 !important;
    font-weight: bold;
     text-decoration: none !important;
     text-decoration: none !important;
     font-weight: bold;
     display: block;
    transition: color 0.2s ease;
}
}
.wov-cat-label a:hover {
.category-card:hover .tile-bottom.link-button a {
     color: #7a1212 !important;
     color: #791a1a !important;
}
}


/* ============================================================
.popular-grid {
  POPULAR PAGES — 3-column dark button grid
  ============================================================ */
.wov-popular-inner {
    padding: 10px;
    background: #ede2cc;
}
.wov-popular-grid {
     display: grid;
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     grid-template-columns: repeat(3, 1fr);
     gap: 6px;
     gap: 12px;
    margin-bottom: 20px;
    background: none;
    border: none;
    padding: 0;
}
}
.wov-popular-btn {
.link-button.dark-button a {
     display: block;
     display: flex;
     background: #5c4e38;
     align-items: center;
     border: 1px solid #3a301d;
     justify-content: center;
     border-bottom: 2px solid #2a2214;
     background: linear-gradient(to bottom, #4a3c28, #3b240b) !important;
     color: #fff !important;
     color: #f1e7d3 !important;
     font-family: 'Inter', 'PT Serif', sans-serif;
     font-family: 'Inter', sans-serif;
     font-size: 0.82em;
     font-weight: 600;
     font-weight: bold;
     font-size: 0.9em;
     text-align: center;
     text-align: center;
     padding: 9px 6px;
     padding: 14px 10px;
    border-radius: 6px;
     text-decoration: none !important;
     text-decoration: none !important;
     line-height: 1.3;
     border: 1px solid #231607;
     transition: background 0.12s ease, border-color 0.12s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.1);
     cursor: pointer;
     transition: all 0.2s ease;
     text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
}
.wov-popular-btn:hover {
.link-button.dark-button a:hover {  
     background: #4a3c28 !important;
     background: linear-gradient(to bottom, #5c4e38, #4a3c28) !important;
     color: #f0d890 !important;
     transform: translateY(-2px);
     text-decoration: none !important;
     box-shadow: 0 6px 12px rgba(0,0,0,0.4), 0 0 10px rgba(255, 215, 0, 0.2), inset 0 1px 1px rgba(255,255,255,0.2);
     border-color: #2a2214;
     color: #ffffff !important;
}
}


/* ============================================================
.skills-grid {
  SKILL TRAINING GRID
  ============================================================ */
.wov-skills-inner {
    padding: 8px 10px 10px;
}
.wov-skills-grid {
     display: grid;
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     grid-template-columns: repeat(3, 1fr);
     background: #fcf6e8;
    gap: 12px;
     border: 1px solid #a19277;
    margin-bottom: 20px;
     background: none;
     border: none;
    padding: 0;
}
}
.wov-skill-item {
.skill-item {
     padding: 5px 10px;
    background: #ffffff;
     font-size: 0.85em;
    border-radius: 6px;
     border-bottom: 1px solid #c9b688;
     padding: 10px 14px;
     border-right: 1px solid #c9b688;
     font-size: 0.95em;
    color: #4a3c28;
     box-shadow: 0 2px 6px rgba(61, 43, 31, 0.08);
     border: 1px solid rgba(179, 160, 125, 0.4);
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     gap: 5px;
     gap: 12px;
    transition: all 0.2s ease;
}
}
.wov-skill-item:nth-child(3n) {
.skill-item img {
    border-right: none;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}
}
.wov-skill-item img {
.skill-item a {
     width: 16px !important;
     color: #4a3c28 !important;
    height: 16px !important;
     font-weight: bold;
     object-fit: contain;
     text-decoration: none;
     vertical-align: middle;
     flex-grow: 1;
     flex-shrink: 0;
}
}
.wov-skill-item a {
.skill-item:hover {  
     color: #936039 !important;
     transform: translateX(4px);
     text-decoration: none;
    box-shadow: 0 4px 8px rgba(61, 43, 31, 0.15);
     border-color: #b3a07d;
}
}
.wov-skill-item a:hover {
.skill-item:hover a {
     text-decoration: underline;
     color: #791a1a !important;
}
}


/* ============================================================
.discord-widget, .widget-box {
  SIDEBAR WIDGETS
    background: linear-gradient(to bottom, #fcf6e8, #f1e7d3);
  ============================================================ */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(61, 43, 31, 0.15);
    border: 1px solid rgba(179, 160, 125, 0.4);
    margin-bottom: 20px;
    overflow: hidden;
}


/* -- Wiki Statistics Widget -- */
.discord-widget {
.wov-widget-stats {
     background: linear-gradient(135deg, #3b5580, #263854) !important;
     background: #f1e7d3;
     border: 1px solid #1c2a3d !important;
     border: 1px solid #a19277;
     color: #ffffff;
     margin-bottom: 12px;
    box-shadow: 0 6px 15px rgba(28, 42, 61, 0.4);
}
.discord-top {
    padding: 16px 20px;
    position: relative;
     overflow: hidden;
     overflow: hidden;
}
}
.wov-stats-body {
.discord-title {
     padding: 10px 14px;
    font-family: 'Inter', sans-serif;
     font-size: 0.86em;
    font-size: 0.9em;
     color: #4a3c28;
    text-transform: uppercase;
     line-height: 2;
    letter-spacing: 0.05em;
    font-weight: bold;
    color: #94a3b8;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}
.discord-server-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 4px;
}
.discord-join-text {
    font-size: 0.9em;
    color: #cbd5e1;
}
.discord-bottom {  
    background: rgba(0,0,0,0.2);
     padding: 12px 20px;
     font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.discord-widget:hover .discord-arrow {
    transform: translateX(4px);
}
 
.widget-title {
    font-family: 'Kingthings Petrock', 'PT Serif', serif;
    font-size: 1.3em;
    font-weight: normal;
     color: #3b240b;
    border-bottom: 1px solid rgba(179, 160, 125, 0.4);
    padding: 14px 20px;
    background: rgba(255,255,255,0.4);
}
.widget-body {
    padding: 16px 20px;
    font-size: 0.9em;
     line-height: 1.6;
    background: none;
}
}
.wov-stats-body dl {
.widget-body p { margin: 0 0 12px 0; color: #4a3c28; }
.plainlist ul {
    list-style: none;
     margin: 0;
     margin: 0;
     display: grid;
     padding: 0;
     grid-template-columns: auto 1fr;
}
     gap: 0 8px;
.plainlist li {
     margin-bottom: 8px;
    padding-left: 14px;
     position: relative;
}
.plainlist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #b3a07d;
    border-radius: 50%;
}
}
.wov-stats-body dt {
.plainlist a {
    color: #611313 !important;
     font-weight: bold;
     font-weight: bold;
     color: #6b5b45;
     text-decoration: none;
    transition: color 0.2s ease;
}
}
.wov-stats-body dd {
.plainlist a:hover {  
    margin: 0;
     color: #a61c1c !important;
    font-weight: bold;
     text-decoration: underline;  
     color: #4a3c28;
     text-align: right;
}
}


/* -- Discord / Community Widget -- */
/* Responsive adjustments for legacy vector */
.wov-discord-widget {
@media screen and (max-width: 980px) {
    background: linear-gradient(135deg, #1e3a6e 0%, #2b5797 60%, #1a306e 100%);
    #content { margin: 10px; border-width: 2px; }
    border: 1px solid #16306e;
}
    margin-bottom: 12px;
/* --- 9. Vector Legacy Tabs Styling --- */
     overflow: hidden;
/* Remove default Vector tab backgrounds */
    box-shadow: 0 2px 10px rgba(20,40,100,0.3);
.vector-menu-tabs,
.vector-menu-tabs a,  
.vector-menu-tabs li,
#p-views,
#p-cactions {
     background-image: none !important;
}
}
.wov-discord-body {
 
     padding: 10px 14px 14px;
/* Base inactive tab style */
.vector-menu-tabs .vector-menu-content-list > li {
    background-color: transparent !important;
    border: none !important;
    margin-right: 0 !important;
    display: inline-block;
     padding: 0 !important;
}
}
.wov-discord-desc {
 
     font-size: 0.84em;
/* Active tab style */
     color: #b8cdf0;
.vector-menu-tabs .vector-menu-content-list > li.selected {
     line-height: 1.6;
     background-color: #ffffff !important;
     margin-bottom: 10px;
    border: none !important;
     position: relative;
     z-index: 2;  
     margin-bottom: 0;  
}
}
.wov-discord-link {
 
/* Tab link text */
.vector-menu-tabs .vector-menu-content-list > li > a {
    color: #794900 !important;
    padding: 10px 14px !important;
    font-family: 'Museo Sans', 'PT Serif', sans-serif;
    font-weight: normal;
    font-size: 0.95em;
    background: transparent !important;
    height: 40px !important;
    box-sizing: border-box !important;
     display: flex !important;
     display: flex !important;
     align-items: center;
     align-items: center !important;
     justify-content: center;
}
     gap: 8px;
 
     background: #5865F2;
/* Active tab text */
     border: 1px solid #4752c4;
.vector-menu-tabs .vector-menu-content-list > li.selected > a {
     border-bottom: 2px solid #3341a8;
    color: #3b240b !important;
}
 
/* --- Right Navigation (Read, Edit, History) Overrides --- */
/* In OSRS, the right tabs are just text links, not white boxes */
#p-views .vector-menu-content-list > li.selected {
    background-color: transparent !important;
    margin-bottom: 0 !important;
     z-index: 2 !important;
}
#p-views .vector-menu-content-list > li.selected > a {
    color: #794900 !important;
}
 
/* Remove the top margin on content so tabs touch the border */
#content {
    margin-top: 0 !important;
}
 
/* Push the whole header/navigation block down so it doesn't overlap the logo */
#mw-head {
     top: 15px !important;
}
 
/* Style the Search Box to match OSRS */
#p-search {
    margin-top: 4px !important;
    margin-left: 10px !important;
}
#simpleSearch {
     background-color: #efeee6 !important;
     border: 1px solid #94866d !important;
}
/* --- 10. OSRS Full-Width Header Bar --- */
/* Create the continuous beige bar behind the tabs */
#mw-head::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 170px; /* Starts just right of the logo */
    right: 0;
    height: 38px; /* Matches tab height */
    background-color: #d8ccb4; /* Darker parchment */
     border-top: 1px solid #94866d;
    z-index: 0;
}
 
/* Ensure navigation sits on top of the pseudo-element bar */
#left-navigation,
#right-navigation {
    position: relative;
    z-index: 1;
}
 
/* Force transparency on all Vector legacy header backgrounds so the beige bar shows through */
#mw-head-base,
.vector-menu-tabs,
.vector-menu-tabs ul,
.vector-menu-tabs li,
#p-views,
#p-cactions,
#p-search,
#p-personal {
    background-image: none !important;
    background-color: transparent !important;
}
 
/* Hide the Read tab to match OSRS */
#ca-view {
    display: none !important;
}
 
/* Personal tools (top right: Create account, Log in) */
#p-personal {
    top: -20px !important; /* Push it up into the mushroom background */
}
#p-personal ul {
    background-color: rgba(241, 231, 211, 0.85); /* Semi-transparent parchment */
    padding: 4px 10px;
     border-radius: 4px;
     border-radius: 4px;
     color: #fff !important;
     border: 1px solid #b3a07d;
     font-family: 'Inter', sans-serif;
}
#p-personal li a {
     color: #4a3c28 !important;
     font-weight: bold;
     font-weight: bold;
    font-size: 0.87em;
    padding: 8px 14px;
    text-decoration: none !important;
    transition: background 0.15s ease;
    cursor: pointer;
}
}
.wov-discord-link:hover {
/* --- 12. Remove Vector Text Shadows --- */
     background: #4752c4 !important;
/* Legacy Vector adds text-shadows to tabs and personal tools which look like a bad "backstroke" with our new dark text colors */
     color: #fff !important;
.vector-menu-tabs .vector-menu-content-list > li > a,
     text-decoration: none !important;
#p-personal li a,
.vector-menu-tabs li a {
    text-shadow: none !important;
}
/* --- 13. Header Bar Padding & Overlap Fixes --- */
/* Increase the height of the beige bar so it has more padding and fully encompasses the tabs and search bar */
#mw-head::before {
    height: 46px !important;
}
 
/* Push the search bar down slightly so it's vertically centered in the taller beige bar */
#p-search {
    margin-top: 8px !important;
    margin-right: 15px !important; /* Give it some breathing room on the right */
}
 
/* Ensure the tabs have a little extra padding inside so they don't look cramped */
.vector-menu-tabs .vector-menu-content-list > li > a {
    padding-left: 14px !important;
    padding-right: 14px !important;
}
/* --- 15. VisualEditor Toolbar Fixes --- */
/* Prevent the VE toolbar from overlapping the beige header bar by enforcing z-indexes */
#mw-head {
    position: absolute;
    z-index: 100 !important;
}
#mw-head::before {
    z-index: 0 !important;
}
#left-navigation, #right-navigation {
    z-index: 2 !important;
}
 
/* Style the VisualEditor toolbar to match the OSRS parchment theme */
.ve-init-mw-desktopArticleTarget-toolbar,
.oo-ui-toolbar-bar,
.oo-ui-toolbar {
     background-color: #f1e7d3 !important;
     border-bottom: 2px solid #b3a07d !important;
     border-top: none !important;
    z-index: 90 !important; /* Ensure it tucks UNDER the header tabs/bar if it tries to overlap */
}
}
.wov-discord-icon {
 
     width: 20px;
/* Add the dark brown top border specifically to the VE toolbar so tabs have something to sit on */
    height: 20px;
.ve-init-mw-desktopArticleTarget-toolbar {
    flex-shrink: 0;
     border-top: 3px solid #3d2b1f !important;
}
}


/* -- Help Improve Widget -- */
/* Ensure dropdowns and menus in VE are also parchment colored */
.wov-widget-help {
.oo-ui-popupWidget-popup,
     background: #f1e7d3;
.oo-ui-menuSelectWidget {
     border: 1px solid #a19277;
     background-color: #fcf6e8 !important;
    margin-bottom: 12px;
     border: 1px solid #b3a07d !important;
     overflow: hidden;
}
/* --- 16. Push VisualEditor Down --- */
/* Remove the z-index that hid the toolbar, and physically push it down so the buttons are visible */
#mw-head {
     z-index: auto !important;
}
}
.wov-help-body {
.ve-init-mw-desktopArticleTarget-toolbar {
     padding: 8px 14px 12px;
     z-index: 10 !important;
    font-size: 0.85em;
     margin-top: 48px !important; /* Push it down below the beige header bar */
    color: #4a3c28;
     line-height: 1.7;
}
}
.wov-help-body p {
 
     margin: 0 0 6px;
 
/* ==========================================================================
  BODY & BACKGROUND
  ========================================================================== */
body {
     background: #e1d5be;
    background-image: none;
}
}
.wov-help-body ul {
 
     margin: 4px 0 0;
/* ==========================================================================
     padding: 0 0 0 14px;
  LOGO TEXT (sidebar, below logo icon)
     list-style: disc;
  ========================================================================== */
#p-logo::after {
    content: "The Winds of Valen Wiki";
    display: block;
    text-align: center;
    font-family: 'Kingthings Petrock', 'PT Serif', Georgia, serif;
    font-size: 1.1em;
    font-weight: normal;
    color: #f1e7d3;
    text-shadow: 2px 2px 4px #000000, -1px -1px 2px #000000;
     line-height: 1.2;
     padding: 0 6px;
     margin-top: 2px;
}
}
.wov-help-body ul li {
 
     margin-bottom: 1px;
/* ==========================================================================
  BANNER
  #mw-page-base is already position:absolute in Vector Legacy skin.
  We use it as the full-width banner container.
  ========================================================================== */
#mw-page-base {
     position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 160px !important;
    background-image: none !important;
    background-color: transparent !important;
    z-index: 0 !important;
    display: block !important;
}
}
.wov-help-body ul li a {
 
     color: #936039 !important;
/* Hide the redundant head-base gradient overlay */
    text-decoration: none;
#mw-head-base {
     display: none !important;
}
}
.wov-help-body ul li a:hover {
 
     text-decoration: underline;
/* ==========================================================================
  DESKTOP LAYOUT  >= 1000px
  ========================================================================== */
@media screen and (min-width: 1000px) {
 
    /* Tab bar row: sits at the bottom of the 160px banner */
    #mw-head {
        position: absolute !important;
        top: 120px !important;
        left: 0 !important;
        right: 0 !important;
        height: 40px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 50 !important;
    }
 
    /* Beige bar behind the tabs */
    #mw-head::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 165px !important;
        right: 0 !important;
        height: 40px !important;
        background-color: #d8ccb4 !important;
        border-top: 2px solid #3d2b1f !important;
        z-index: 0 !important;
    }
 
    /* Left nav: Main Page, Discussion tabs */
    #left-navigation {
        position: absolute !important;
        bottom: 0 !important;
        left: 165px !important;
        margin: 0 !important;
        float: none !important;
        z-index: 2 !important;
    }
 
    /* Right nav: Read, Edit, Search */
    #right-navigation {
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        float: none !important;
        z-index: 2 !important;
    }
 
    /* Personal tools: Create account / Log in ??? top right corner */
    #p-personal {
        position: absolute !important;
        top: -80px !important;
        right: 10px !important;
        margin: 0 !important;
        z-index: 200 !important;
    }
    #p-personal ul {
        background: rgba(241, 231, 211, 0.95) !important;
        border: 1px solid #b3a07d !important;
        padding: 6px 12px !important;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
 
    /* Content box: starts at bottom of banner, shifted right of sidebar */
    #content {
        position: relative !important;
        z-index: 1 !important;
        margin-top: 160px !important;
        margin-left: 165px !important;
        padding-top: 0 !important;
    }
 
    /* Active tab latches onto content box top border (only left tabs) */
    #left-navigation .vector-menu-tabs .vector-menu-content-list > li.selected {
        margin-bottom: -3px !important;
        z-index: 3 !important;
        position: relative !important;
    }
   
    #right-navigation .vector-menu-tabs .vector-menu-content-list > li.selected {
        margin-bottom: 0 !important;
    }
 
    /* Sidebar: starts at top:0 so logo naturally overlaps the banner */
    #mw-panel {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 165px !important;
        padding-top: 0 !important;
        z-index: 10 !important;
        background: transparent !important;
    }
 
    /* Logo area: spans full 160px banner height */
    #p-logo {
        height: 160px !important;
        display: block !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
     }
 
    /* Logo anchor: shows the icon image in top portion, leaves room for text below */
    #p-logo a {
        display: block !important;
        width: 165px !important;
        height: 110px !important;
        background-size: 100px auto !important;
        background-position: center 8px !important;
        background-repeat: no-repeat !important;
    }
}
}


/* ============================================================
/* ==========================================================================
   RESPONSIVE — collapse to single column
   MOBILE LAYOUT  < 1000px
   ============================================================ */
   ========================================================================== */
@media screen and (max-width: 800px) {
@media screen and (max-width: 999px) {
     .wov-layout-grid {
     body {
         flex-direction: column;
        background: #e1d5be !important;
        background-image: none !important;
    }
    #mw-page-base {
         display: none !important;
     }
     }
     .wov-side-col {
     #content {
         width: 100%;
        margin-top: 20px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
         padding-top: 10px !important;
     }
     }
     .wov-categories-grid {
     #mw-head {
         grid-template-columns: repeat(2, 1fr);
         position: static !important;
        top: auto !important;
     }
     }
     .wov-popular-grid {
     #mw-head::before {
         grid-template-columns: repeat(2, 1fr);
         display: none !important;
     }
     }
     .wov-updates-row {
     #mw-panel {
         flex-direction: column;
         position: static !important;
     }
     }
     .wov-update-card {
     #p-logo {
         border-right: none;
         height: auto !important;
        border-bottom: 1px solid #a19277;
     }
     }
     .wov-skills-grid {
     #p-logo a {
         grid-template-columns: repeat(2, 1fr);
         height: 80px !important;
        background-size: contain !important;
        background-position: center !important;
     }
     }
    .vector-menu-tabs .vector-menu-content-list > li {
        margin-bottom: 2px !important;
    }
}
/* ==========================================================================
  SIDEBAR PORTAL BACKGROUNDS
  ========================================================================== */
div.vector-menu-portal,
#mw-panel div.portal,
.portal,
.mw-portlet {
    background-image: none !important;
    background-color: transparent !important;
}
/* ==========================================================================
  DISCORD WIDGET
  ========================================================================== */
.discord-widget-modern {
    position: relative;
    background-color: #5865F2;
    border-radius: 4px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
}
.discord-widget-modern a {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    text-decoration: none !important;
}
.discord-click-target { display: block; width: 100%; height: 100%; }
.discord-top { padding: 16px 20px; display: flex; align-items: center; }
.discord-icon {
    width: 45px; height: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 127.14 96.36" fill="%23ffffff"><path d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1,105.25,105.25,0,0,0,32.19-16.14c0,0,.04-.06.05-.09,2.7-27.14-2.88-51.52-19-72.06ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.31,60,73.31,53s5-12.74,11.43-12.74S96.2,46,96.09,53,91.04,65.69,84.69,65.69Z"/></svg>');
    background-size: contain; background-repeat: no-repeat; background-position: center;
    margin-right: 15px;
}
.discord-text { flex-grow: 1; }
.discord-server-name { font-weight: 800; font-size: 17px; margin-bottom: 2px; }
.discord-join-text { font-size: 14px; }
.discord-arrow { font-size: 28px; font-weight: bold; margin-left: 10px; line-height: 1; }
.discord-bottom {
    background-color: #4752C4; padding: 10px; text-align: center;
    font-size: 12px; font-weight: 800; letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}
.discord-widget-modern:hover { background-color: #4752C4; cursor: pointer; }
.discord-widget-modern:hover .discord-bottom { background-color: #3b45a5; }
/* Hide Powered by MediaWiki */
#footer-poweredbyico { display: none !important; }
/* OSRS Style Wikitables and Infoboxes */
table.infobox, table.wikitable {
    background-color: #dfd0b6;
    border: 1px solid #7d6b54;
    border-collapse: collapse;
    color: #2b2b2b;
}
table.infobox th, table.wikitable th {
    background-color: #cbb493;
    border: 1px solid #7d6b54;
    padding: 6px;
    text-align: center;
}
table.infobox td, table.wikitable td {
    border: 1px solid #7d6b54;
    padding: 6px;
}
table.infobox caption {
    background-color: #cbb493;
    border: 1px solid #7d6b54;
    border-bottom: none;
    padding: 4px;
    font-weight: bold;
}
/* Section Headers */
#content h2 {
    border-bottom: 2px solid #7d6b54;
    font-family: 'PT Serif', Georgia, serif;
    color: #4a3c28;
    margin-top: 1.5em;
    padding-bottom: 2px;
}
#content h3 {
    font-family: 'PT Serif', Georgia, serif;
    color: #4a3c28;
}
/* --- TOC Styling --- */
#toc, .toc, .mw-parser-output #toc, .mw-parser-output .toc {
    background-color: #e2d1b4 !important;
    border: 1px solid #998363 !important;
    padding: 2px !important;
    display: inline-block;
    color: #2b2b2b;
    border-radius: 0;
    margin-bottom: 15px;
}
#toc .toctitle, .toc .toctitle, #toc h2, .toc h2 {
    background-color: #c7b08d !important;
    border-bottom: none !important;
    text-align: center;
    font-family: 'PT Serif', serif !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    margin: 0 !important;
    padding: 6px 15px !important;
    color: #4a3c28 !important;
}
#toc ul, .toc ul {
    list-style-type: none !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    background-color: #e2d1b4 !important;
}
#toc ul ul, .toc ul ul {
    padding-left: 1.5em !important;
    border-left: 1px dotted #a08c6c;
    margin-left: 5px !important;
    padding-top: 5px;
    padding-bottom: 5px;
}
#toc li, .toc li {
    margin-bottom: 4px !important;
    font-size: 0.95em;
    line-height: 1.4;
}
#toc a, .toc a {
    color: #5a3c21 !important;
    text-decoration: none !important;
}
#toc a:hover, .toc a:hover {
    text-decoration: underline !important;
}
/* --- Popups (PagePreviews) Styling --- */
.mwe-popups {
    background-color: transparent !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6) !important;
}
.mwe-popups .mwe-popups-container {
    background-color: #e2d1b4 !important;
    border: 1px solid #7d6b54 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}
.mwe-popups .mwe-popups-extract {
    color: #2b2b2b !important;
    font-family: 'Museo Sans', sans-serif !important;
    padding: 15px !important;
    font-size: 0.95em !important;
}
.mwe-popups.mwe-popups-is-tall .mwe-popups-extract {
    padding-top: 10px !important;
}
.mwe-popups .mwe-popups-settings-icon {
    opacity: 0.7 !important;
}
.mwe-popups .mwe-popups-settings-icon:hover {
    opacity: 1 !important;
}
.mwe-popups .mwe-popups-extract::after {
    background-image: linear-gradient(to right, rgba(226, 209, 180, 0), #e2d1b4 50%) !important;
}
.mwe-popups .mwe-popups-extract[dir='ltr']::after {
    background-image: linear-gradient(to right, rgba(226, 209, 180, 0), #e2d1b4 50%) !important;
}
svg.mwe-popups-settings-icon path {
    fill: #2b2b2b !important;
}
/* Discord Widget Clickable Overlay */
.discord-widget {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.discord-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 42, 61, 0.6);
}
.discord-widget .external {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
}
.discord-click-target {
    display: block;
    width: 100%;
    height: 100%;
}
}

Latest revision as of 19:51, 11 July 2026

/* ==========================================================================
   OSRS EXACT REPLICA DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;600;700&display=swap');

/* --- 1. Custom Fonts --- */
@font-face {
    font-family: 'Kingthings Petrock';
    src: url('/resources/assets/fonts/Kingthings_Petrock.woff2') format('woff2');
}
@font-face {
    font-family: 'League Spartan';
    src: url('/resources/assets/fonts/LeagueSpartan-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Museo Sans';
    src: url('/resources/assets/fonts/MuseoSans-500.woff2') format('woff2');
}
@font-face {
    font-family: 'RuneScape Chat';
    src: url('/resources/assets/fonts/RuneScape-Chat.woff2') format('woff2');
}

/* --- 2. Base Body Override --- */
body {
    background-image: none !important;
    background-color: #e1d5be !important;
    font-family: 'Museo Sans', 'PT Serif', Georgia, serif;
}

/* --- 3. Content Parchment Container --- */
#content {
    background: url('/resources/assets/background_parchment.png') repeat #f1e7d3 !important;
    border: 3px solid #3d2b1f !important;
    border-radius: 4px;
    margin-top: 15px;
}

#mw-content-text {
    background-color: transparent !important;
}

/* --- 4. Header Styling --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Kingthings Petrock', serif;
    color: #4a3c28;
    border-bottom: 1px solid #b3a07d; /* Gold trim */
}

/* --- 5. Hide Foreground Logo (Use Background Instead) --- */
#p-logo a {
    height: 140px !important;
}

/* --- 6. Main Page Layout Tweaks --- */
.page-Main_Page #firstHeading,
.page-Main_Page .mw-first-heading {
    display: none !important;
}

/* Give all page titles some breathing room from the top border */
.firstHeading {
    padding-top: 15px !important;
}
.page-Main_Page .mw-body-content {
    padding-top: 0 !important;
}

/* --- 7. Margin Collapse Fix --- */
.mw-parser-output .column-grid > * {
    margin-top: 0;
}
.mw-parser-output .column-grid > *:last-child {
    margin-bottom: 0;
}

/* --- 8. Reader Mode --- */
body.reader-mode-active #mw-panel,
body.reader-mode-active #mw-head {
    display: none;
}
body.reader-mode-active #content {
    margin-left: auto;
    margin-right: auto;
    max-width: 960px;
    padding: 40px;
}

/* ==========================================================================
   OSRS NATIVE DOM ARCHITECTURE (Main Page Layout Engine)
   ========================================================================== */


.mainpage-container {
    max-width: 100%;
    color: #4a3c28;
    box-sizing: border-box;
    font-family: 'PT Serif', Georgia, serif;
}

.mainpage-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

@media screen and (max-width: 900px) {
    .mainpage-layout {
        grid-template-columns: 1fr;
    }
}

.mainpage-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.header-intro {
    flex: 1;
    background: url('/resources/assets/welcomeimage.jpg') center center no-repeat !important;
    background-size: cover !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.header-intro::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(20, 15, 10, 0.8) 0%, rgba(40, 25, 15, 0.6) 100%);
    z-index: -1;
}
.header-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 15px rgba(255, 215, 0, 0.3);
    margin-bottom: 12px;
    line-height: 1.2;
}
.header-intro p {
    font-size: 1.05em;
    color: #f1e7d3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    margin: 0;
}
.header-intro p a {
    color: #7dd3fc !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.header-intro p a:hover {
    color: #bae6fd !important;
    text-shadow: 0 0 8px rgba(125, 211, 252, 0.6);
}

.header-stats {
    width: 300px;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #fcf6e8, #f1e7d3) !important;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(61, 43, 31, 0.15);
    border: 1px solid rgba(179, 160, 125, 0.4);
    padding: 20px 25px;
    box-sizing: border-box;
}
.header-stats ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-stats li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95em;
    border-bottom: 1px dashed rgba(179, 160, 125, 0.6);
    padding-bottom: 8px;
}
.header-stats li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.header-stats b {
    color: #611313;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 900px) {
    .mainpage-header { flex-direction: column; }
    .header-stats { width: 100%; }
}

.section-title {
    font-family: 'Kingthings Petrock', 'PT Serif', serif;
    font-size: 1.6em;
    font-weight: normal;
    color: #3b240b;
    text-align: center;
    padding: 0 0 10px 0;
    margin: 30px 0 20px 0;
    position: relative;
    background: none;
    border-bottom: none;
}
.section-title::after {
    content: "";
    display: block;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #b3a07d, transparent);
    margin: 8px auto 0 auto;
}

.tile-row {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}
.updates-row {
    grid-template-columns: 1fr 1fr;
    background: none;
    border: none;
}
.categories-grid {
    grid-template-columns: repeat(4, 1fr);
    background: none;
    border: none;
    padding: 0;
}

.update-card {
    background: linear-gradient(145deg, #ffffff, #fcf6e8);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(61, 43, 31, 0.1);
    border: 1px solid rgba(179, 160, 125, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(61, 43, 31, 0.15);
}
.update-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    color: #8c7657;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.update-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}
.update-title a {
    color: #791a1a !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.update-title a:hover { 
    color: #a61c1c !important;
    text-decoration: none;
}
.update-card p {
    font-size: 0.9em;
    color: #4a3c28;
    line-height: 1.5;
    margin: 0;
}

.category-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(61, 43, 31, 0.1);
    border: 1px solid rgba(179, 160, 125, 0.3);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(61, 43, 31, 0.15), 0 0 15px rgba(255, 215, 0, 0.15);
    border-color: #b3a07d;
}
.tile-top.tile-image {
    background: radial-gradient(circle, #ffffff 0%, #f1e7d3 100%) !important;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid rgba(179, 160, 125, 0.3);
}
.tile-top.tile-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}
.category-card:hover .tile-top.tile-image img {
    transform: scale(1.05);
}
.tile-bottom.link-button {
    background: #fcf6e8 !important;
    padding: 12px 10px;
    text-align: center;
    font-size: 1em;
    flex-grow: 1;
}
.tile-bottom.link-button a {
    color: #4a3c28 !important;
    font-weight: bold;
    text-decoration: none !important;
    display: block;
    transition: color 0.2s ease;
}
.category-card:hover .tile-bottom.link-button a {
    color: #791a1a !important;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    background: none;
    border: none;
    padding: 0;
}
.link-button.dark-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #4a3c28, #3b240b) !important;
    color: #f1e7d3 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    padding: 14px 10px;
    border-radius: 6px;
    text-decoration: none !important;
    border: 1px solid #231607;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.1);
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.link-button.dark-button a:hover { 
    background: linear-gradient(to bottom, #5c4e38, #4a3c28) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4), 0 0 10px rgba(255, 215, 0, 0.2), inset 0 1px 1px rgba(255,255,255,0.2);
    color: #ffffff !important;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    background: none;
    border: none;
    padding: 0;
}
.skill-item {
    background: #ffffff;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.95em;
    box-shadow: 0 2px 6px rgba(61, 43, 31, 0.08);
    border: 1px solid rgba(179, 160, 125, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}
.skill-item img {
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}
.skill-item a {
    color: #4a3c28 !important;
    font-weight: bold;
    text-decoration: none;
    flex-grow: 1;
}
.skill-item:hover { 
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(61, 43, 31, 0.15);
    border-color: #b3a07d;
}
.skill-item:hover a {
    color: #791a1a !important;
}

.discord-widget, .widget-box {
    background: linear-gradient(to bottom, #fcf6e8, #f1e7d3);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(61, 43, 31, 0.15);
    border: 1px solid rgba(179, 160, 125, 0.4);
    margin-bottom: 20px;
    overflow: hidden;
}

.discord-widget {
    background: linear-gradient(135deg, #3b5580, #263854) !important;
    border: 1px solid #1c2a3d !important;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(28, 42, 61, 0.4);
}
.discord-top {
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}
.discord-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
    color: #94a3b8;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}
.discord-server-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 4px;
}
.discord-join-text {
    font-size: 0.9em;
    color: #cbd5e1;
}
.discord-bottom { 
    background: rgba(0,0,0,0.2);
    padding: 12px 20px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.discord-widget:hover .discord-arrow {
    transform: translateX(4px);
}

.widget-title {
    font-family: 'Kingthings Petrock', 'PT Serif', serif;
    font-size: 1.3em;
    font-weight: normal;
    color: #3b240b;
    border-bottom: 1px solid rgba(179, 160, 125, 0.4);
    padding: 14px 20px;
    background: rgba(255,255,255,0.4);
}
.widget-body {
    padding: 16px 20px;
    font-size: 0.9em;
    line-height: 1.6;
    background: none;
}
.widget-body p { margin: 0 0 12px 0; color: #4a3c28; }
.plainlist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.plainlist li {
    margin-bottom: 8px;
    padding-left: 14px;
    position: relative;
}
.plainlist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #b3a07d;
    border-radius: 50%;
}
.plainlist a {
    color: #611313 !important;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}
.plainlist a:hover { 
    color: #a61c1c !important;
    text-decoration: underline; 
}

/* Responsive adjustments for legacy vector */
@media screen and (max-width: 980px) {
    #content { margin: 10px; border-width: 2px; }
}
/* --- 9. Vector Legacy Tabs Styling --- */
/* Remove default Vector tab backgrounds */
.vector-menu-tabs, 
.vector-menu-tabs a, 
.vector-menu-tabs li,
#p-views,
#p-cactions {
    background-image: none !important;
}

/* Base inactive tab style */
.vector-menu-tabs .vector-menu-content-list > li {
    background-color: transparent !important; 
    border: none !important;
    margin-right: 0 !important;
    display: inline-block;
    padding: 0 !important;
}

/* Active tab style */
.vector-menu-tabs .vector-menu-content-list > li.selected {
    background-color: #ffffff !important; 
    border: none !important;
    position: relative;
    z-index: 2; 
    margin-bottom: 0; 
}

/* Tab link text */
.vector-menu-tabs .vector-menu-content-list > li > a {
    color: #794900 !important;
    padding: 10px 14px !important;
    font-family: 'Museo Sans', 'PT Serif', sans-serif;
    font-weight: normal;
    font-size: 0.95em;
    background: transparent !important;
    height: 40px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}

/* Active tab text */
.vector-menu-tabs .vector-menu-content-list > li.selected > a {
    color: #3b240b !important;
}

/* --- Right Navigation (Read, Edit, History) Overrides --- */
/* In OSRS, the right tabs are just text links, not white boxes */
#p-views .vector-menu-content-list > li.selected {
    background-color: transparent !important;
    margin-bottom: 0 !important;
    z-index: 2 !important;
}
#p-views .vector-menu-content-list > li.selected > a {
    color: #794900 !important;
}

/* Remove the top margin on content so tabs touch the border */
#content {
    margin-top: 0 !important;
}

/* Push the whole header/navigation block down so it doesn't overlap the logo */
#mw-head {
    top: 15px !important;
}

/* Style the Search Box to match OSRS */
#p-search {
    margin-top: 4px !important;
    margin-left: 10px !important;
}
#simpleSearch {
    background-color: #efeee6 !important;
    border: 1px solid #94866d !important;
}
/* --- 10. OSRS Full-Width Header Bar --- */
/* Create the continuous beige bar behind the tabs */
#mw-head::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 170px; /* Starts just right of the logo */
    right: 0;
    height: 38px; /* Matches tab height */
    background-color: #d8ccb4; /* Darker parchment */
    border-top: 1px solid #94866d;
    z-index: 0;
}

/* Ensure navigation sits on top of the pseudo-element bar */
#left-navigation, 
#right-navigation {
    position: relative;
    z-index: 1;
}

/* Force transparency on all Vector legacy header backgrounds so the beige bar shows through */
#mw-head-base,
.vector-menu-tabs,
.vector-menu-tabs ul,
.vector-menu-tabs li,
#p-views,
#p-cactions,
#p-search,
#p-personal {
    background-image: none !important;
    background-color: transparent !important;
}

/* Hide the Read tab to match OSRS */
#ca-view {
    display: none !important;
}

/* Personal tools (top right: Create account, Log in) */
#p-personal {
    top: -20px !important; /* Push it up into the mushroom background */
}
#p-personal ul {
    background-color: rgba(241, 231, 211, 0.85); /* Semi-transparent parchment */
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #b3a07d;
}
#p-personal li a {
    color: #4a3c28 !important;
    font-weight: bold;
}
/* --- 12. Remove Vector Text Shadows --- */
/* Legacy Vector adds text-shadows to tabs and personal tools which look like a bad "backstroke" with our new dark text colors */
.vector-menu-tabs .vector-menu-content-list > li > a,
#p-personal li a,
.vector-menu-tabs li a {
    text-shadow: none !important;
}
/* --- 13. Header Bar Padding & Overlap Fixes --- */
/* Increase the height of the beige bar so it has more padding and fully encompasses the tabs and search bar */
#mw-head::before {
    height: 46px !important; 
}

/* Push the search bar down slightly so it's vertically centered in the taller beige bar */
#p-search {
    margin-top: 8px !important; 
    margin-right: 15px !important; /* Give it some breathing room on the right */
}

/* Ensure the tabs have a little extra padding inside so they don't look cramped */
.vector-menu-tabs .vector-menu-content-list > li > a {
    padding-left: 14px !important;
    padding-right: 14px !important;
}
/* --- 15. VisualEditor Toolbar Fixes --- */
/* Prevent the VE toolbar from overlapping the beige header bar by enforcing z-indexes */
#mw-head {
    position: absolute;
    z-index: 100 !important;
}
#mw-head::before {
    z-index: 0 !important;
}
#left-navigation, #right-navigation {
    z-index: 2 !important;
}

/* Style the VisualEditor toolbar to match the OSRS parchment theme */
.ve-init-mw-desktopArticleTarget-toolbar,
.oo-ui-toolbar-bar,
.oo-ui-toolbar {
    background-color: #f1e7d3 !important;
    border-bottom: 2px solid #b3a07d !important;
    border-top: none !important;
    z-index: 90 !important; /* Ensure it tucks UNDER the header tabs/bar if it tries to overlap */
}

/* Add the dark brown top border specifically to the VE toolbar so tabs have something to sit on */
.ve-init-mw-desktopArticleTarget-toolbar {
    border-top: 3px solid #3d2b1f !important;
}

/* Ensure dropdowns and menus in VE are also parchment colored */
.oo-ui-popupWidget-popup, 
.oo-ui-menuSelectWidget {
    background-color: #fcf6e8 !important;
    border: 1px solid #b3a07d !important;
}
/* --- 16. Push VisualEditor Down --- */
/* Remove the z-index that hid the toolbar, and physically push it down so the buttons are visible */
#mw-head {
    z-index: auto !important;
}
.ve-init-mw-desktopArticleTarget-toolbar {
    z-index: 10 !important;
    margin-top: 48px !important; /* Push it down below the beige header bar */
}


/* ==========================================================================
   BODY & BACKGROUND
   ========================================================================== */
body {
    background: #e1d5be;
    background-image: none;
}

/* ==========================================================================
   LOGO TEXT (sidebar, below logo icon)
   ========================================================================== */
#p-logo::after {
    content: "The Winds of Valen Wiki";
    display: block;
    text-align: center;
    font-family: 'Kingthings Petrock', 'PT Serif', Georgia, serif;
    font-size: 1.1em;
    font-weight: normal;
    color: #f1e7d3;
    text-shadow: 2px 2px 4px #000000, -1px -1px 2px #000000;
    line-height: 1.2;
    padding: 0 6px;
    margin-top: 2px;
}

/* ==========================================================================
   BANNER
   #mw-page-base is already position:absolute in Vector Legacy skin.
   We use it as the full-width banner container.
   ========================================================================== */
#mw-page-base {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 160px !important;
    background-image: none !important;
    background-color: transparent !important;
    z-index: 0 !important;
    display: block !important;
}

/* Hide the redundant head-base gradient overlay */
#mw-head-base {
    display: none !important;
}

/* ==========================================================================
   DESKTOP LAYOUT  >= 1000px
   ========================================================================== */
@media screen and (min-width: 1000px) {

    /* Tab bar row: sits at the bottom of the 160px banner */
    #mw-head {
        position: absolute !important;
        top: 120px !important;
        left: 0 !important;
        right: 0 !important;
        height: 40px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 50 !important;
    }

    /* Beige bar behind the tabs */
    #mw-head::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 165px !important;
        right: 0 !important;
        height: 40px !important;
        background-color: #d8ccb4 !important;
        border-top: 2px solid #3d2b1f !important;
        z-index: 0 !important;
    }

    /* Left nav: Main Page, Discussion tabs */
    #left-navigation {
        position: absolute !important;
        bottom: 0 !important;
        left: 165px !important;
        margin: 0 !important;
        float: none !important;
        z-index: 2 !important;
    }

    /* Right nav: Read, Edit, Search */
    #right-navigation {
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        float: none !important;
        z-index: 2 !important;
    }

    /* Personal tools: Create account / Log in ??? top right corner */
    #p-personal {
        position: absolute !important;
        top: -80px !important;
        right: 10px !important;
        margin: 0 !important;
        z-index: 200 !important;
    }
    #p-personal ul {
        background: rgba(241, 231, 211, 0.95) !important;
        border: 1px solid #b3a07d !important;
        padding: 6px 12px !important;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    /* Content box: starts at bottom of banner, shifted right of sidebar */
    #content {
        position: relative !important;
        z-index: 1 !important;
        margin-top: 160px !important;
        margin-left: 165px !important;
        padding-top: 0 !important;
    }

    /* Active tab latches onto content box top border (only left tabs) */
    #left-navigation .vector-menu-tabs .vector-menu-content-list > li.selected {
        margin-bottom: -3px !important;
        z-index: 3 !important;
        position: relative !important;
    }
    
    #right-navigation .vector-menu-tabs .vector-menu-content-list > li.selected {
        margin-bottom: 0 !important;
    }

    /* Sidebar: starts at top:0 so logo naturally overlaps the banner */
    #mw-panel {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 165px !important;
        padding-top: 0 !important;
        z-index: 10 !important;
        background: transparent !important;
    }

    /* Logo area: spans full 160px banner height */
    #p-logo {
        height: 160px !important;
        display: block !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Logo anchor: shows the icon image in top portion, leaves room for text below */
    #p-logo a {
        display: block !important;
        width: 165px !important;
        height: 110px !important;
        background-size: 100px auto !important;
        background-position: center 8px !important;
        background-repeat: no-repeat !important;
    }
}

/* ==========================================================================
   MOBILE LAYOUT  < 1000px
   ========================================================================== */
@media screen and (max-width: 999px) {
    body {
        background: #e1d5be !important;
        background-image: none !important;
    }
    #mw-page-base {
        display: none !important;
    }
    #content {
        margin-top: 20px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        padding-top: 10px !important;
    }
    #mw-head {
        position: static !important;
        top: auto !important;
    }
    #mw-head::before {
        display: none !important;
    }
    #mw-panel {
        position: static !important;
    }
    #p-logo {
        height: auto !important;
    }
    #p-logo a {
        height: 80px !important;
        background-size: contain !important;
        background-position: center !important;
    }
    .vector-menu-tabs .vector-menu-content-list > li {
        margin-bottom: 2px !important;
    }
}

/* ==========================================================================
   SIDEBAR PORTAL BACKGROUNDS
   ========================================================================== */
div.vector-menu-portal,
#mw-panel div.portal,
.portal,
.mw-portlet {
    background-image: none !important;
    background-color: transparent !important;
}

/* ==========================================================================
   DISCORD WIDGET
   ========================================================================== */
.discord-widget-modern {
    position: relative;
    background-color: #5865F2;
    border-radius: 4px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
}
.discord-widget-modern a {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    text-decoration: none !important;
}
.discord-click-target { display: block; width: 100%; height: 100%; }
.discord-top { padding: 16px 20px; display: flex; align-items: center; }
.discord-icon {
    width: 45px; height: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 127.14 96.36" fill="%23ffffff"><path d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1,105.25,105.25,0,0,0,32.19-16.14c0,0,.04-.06.05-.09,2.7-27.14-2.88-51.52-19-72.06ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.31,60,73.31,53s5-12.74,11.43-12.74S96.2,46,96.09,53,91.04,65.69,84.69,65.69Z"/></svg>');
    background-size: contain; background-repeat: no-repeat; background-position: center;
    margin-right: 15px;
}
.discord-text { flex-grow: 1; }
.discord-server-name { font-weight: 800; font-size: 17px; margin-bottom: 2px; }
.discord-join-text { font-size: 14px; }
.discord-arrow { font-size: 28px; font-weight: bold; margin-left: 10px; line-height: 1; }
.discord-bottom {
    background-color: #4752C4; padding: 10px; text-align: center;
    font-size: 12px; font-weight: 800; letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}
.discord-widget-modern:hover { background-color: #4752C4; cursor: pointer; }
.discord-widget-modern:hover .discord-bottom { background-color: #3b45a5; }

/* Hide Powered by MediaWiki */
#footer-poweredbyico { display: none !important; }

/* OSRS Style Wikitables and Infoboxes */
table.infobox, table.wikitable {
    background-color: #dfd0b6;
    border: 1px solid #7d6b54;
    border-collapse: collapse;
    color: #2b2b2b;
}
table.infobox th, table.wikitable th {
    background-color: #cbb493;
    border: 1px solid #7d6b54;
    padding: 6px;
    text-align: center;
}
table.infobox td, table.wikitable td {
    border: 1px solid #7d6b54;
    padding: 6px;
}
table.infobox caption {
    background-color: #cbb493;
    border: 1px solid #7d6b54;
    border-bottom: none;
    padding: 4px;
    font-weight: bold;
}
/* Section Headers */
#content h2 {
    border-bottom: 2px solid #7d6b54;
    font-family: 'PT Serif', Georgia, serif;
    color: #4a3c28;
    margin-top: 1.5em;
    padding-bottom: 2px;
}
#content h3 {
    font-family: 'PT Serif', Georgia, serif;
    color: #4a3c28;
}

/* --- TOC Styling --- */
#toc, .toc, .mw-parser-output #toc, .mw-parser-output .toc {
    background-color: #e2d1b4 !important;
    border: 1px solid #998363 !important;
    padding: 2px !important;
    display: inline-block;
    color: #2b2b2b;
    border-radius: 0;
    margin-bottom: 15px;
}
#toc .toctitle, .toc .toctitle, #toc h2, .toc h2 {
    background-color: #c7b08d !important;
    border-bottom: none !important;
    text-align: center;
    font-family: 'PT Serif', serif !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    margin: 0 !important;
    padding: 6px 15px !important;
    color: #4a3c28 !important;
}
#toc ul, .toc ul {
    list-style-type: none !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    background-color: #e2d1b4 !important;
}
#toc ul ul, .toc ul ul {
    padding-left: 1.5em !important; 
    border-left: 1px dotted #a08c6c;
    margin-left: 5px !important;
    padding-top: 5px;
    padding-bottom: 5px;
}
#toc li, .toc li {
    margin-bottom: 4px !important;
    font-size: 0.95em;
    line-height: 1.4;
}
#toc a, .toc a {
    color: #5a3c21 !important;
    text-decoration: none !important;
}
#toc a:hover, .toc a:hover {
    text-decoration: underline !important;
}

/* --- Popups (PagePreviews) Styling --- */
.mwe-popups {
    background-color: transparent !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6) !important;
}
.mwe-popups .mwe-popups-container {
    background-color: #e2d1b4 !important;
    border: 1px solid #7d6b54 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}
.mwe-popups .mwe-popups-extract {
    color: #2b2b2b !important;
    font-family: 'Museo Sans', sans-serif !important;
    padding: 15px !important;
    font-size: 0.95em !important;
}
.mwe-popups.mwe-popups-is-tall .mwe-popups-extract {
    padding-top: 10px !important;
}
.mwe-popups .mwe-popups-settings-icon {
    opacity: 0.7 !important;
}
.mwe-popups .mwe-popups-settings-icon:hover {
    opacity: 1 !important;
}
.mwe-popups .mwe-popups-extract::after {
    background-image: linear-gradient(to right, rgba(226, 209, 180, 0), #e2d1b4 50%) !important;
}
.mwe-popups .mwe-popups-extract[dir='ltr']::after {
    background-image: linear-gradient(to right, rgba(226, 209, 180, 0), #e2d1b4 50%) !important;
}
svg.mwe-popups-settings-icon path {
    fill: #2b2b2b !important;
}

/* Discord Widget Clickable Overlay */
.discord-widget {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.discord-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 42, 61, 0.6);
}
.discord-widget .external {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
}
.discord-click-target {
    display: block;
    width: 100%;
    height: 100%;
}