MediaWiki:Common.css: Difference between revisions

From Winds Of Valen Wiki
Jump to navigation Jump to search
Revert absolute header layout and remove legacy background
Perfect OSRS Layout Override
Line 787: Line 787:
     background-color: transparent !important;
     background-color: transparent !important;
     height: 0 !important;
     height: 0 !important;
}
/* --- PERFECT OSRS LAYOUT OVERRIDE --- */
@media screen and (min-width: 1000px) {
    /* 1. The Body Banner */
    body {
        background: url('/resources/assets/mystical_header.png') center top no-repeat !important;
        background-color: #e1d5be !important;
        background-size: 100% 180px !important;
    }
    /* 2. Hide Native Page Gradients */
    #mw-page-base, #mw-head-base {
        display: none !important;
        height: 0 !important;
    }
    /* 3. Push Content Down 180px */
    #content {
        margin-top: 180px !important;
        position: relative !important;
        z-index: 1 !important;
    }
    /* 4. Position the Tabs Exactly on top of Content */
    /* If #content starts at 180px, and tabs are 46px tall, they should start at 134px */
    #mw-head {
        position: absolute !important;
        top: 134px !important;
        height: 46px !important;
        width: 100% !important;
        margin: 0 !important;
    }
    /* 5. Personal tools (Login etc) should be moved up above the tabs */
    #p-personal {
        position: absolute !important;
        top: -30px !important;
        right: 15px !important;
        z-index: 100 !important;
    }
    /* 6. Fix the Beige Tab Bar background */
    #mw-head::before {
        bottom: 0 !important;
        height: 46px !important;
        z-index: 0 !important;
    }
    /* 7. Push the Sidebar down so it aligns with content */
    #mw-panel {
        top: 180px !important;
    }
    /* 8. Pull the Logo back up to the top */
    #p-logo {
        top: -180px !important;
        height: 180px !important;
    }
    /* 9. Make the active tab visually latch */
    .vector-menu-tabs .vector-menu-content-list > li.selected {
        margin-bottom: -3px !important;
        z-index: 2 !important;
    }
}
}

Revision as of 13:38, 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. Fix Logo Clipping --- */
#p-logo a {
    background-size: contain !important;
    background-position: center center !important;
    height: 140px !important; /* Optional: shrink if it overlaps */
}

/* --- 6. Main Page Layout Tweaks --- */
.page-Main_Page #firstHeading,
.page-Main_Page .mw-first-heading {
    display: none !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: 14px;
    align-items: start;
}

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

.mainpage-header {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}
.header-intro {
    flex: 1;
    background-color: #fcf6e8 !important;
    border: 1px solid #b3a07d;
    padding: 25px;
    text-align: center;
}
.header-title {
    font-size: 1.6em;
    font-weight: bold;
    color: #4a3c28;
    margin-bottom: 8px;
    line-height: 1.2;
}
.header-intro p {
    font-size: 0.95em;
    color: #5c4e38;
    margin: 0;
}

.header-stats {
    width: 300px;
    flex-shrink: 0;
    background-color: #f1e7d3 !important;
    border: 1px solid #b3a07d;
    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: 6px;
    font-size: 0.9em;
    border-bottom: 1px dashed #d1c4ac;
    padding-bottom: 6px;
}
.header-stats li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.header-stats b {
    color: #4a3c28;
}

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

.section-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.15em;
    font-weight: bold;
    color: #4a3c28;
    padding: 8px 14px 7px;
    border-bottom: 2px solid #b3a07d;
    background-color: #f1e7d3;
    margin: 0 0 14px 0;
}

.tile-row {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}
.updates-row {
    grid-template-columns: 1fr 1fr;
    background-color: #fcf6e8;
    border: 1px solid #b3a07d;
    gap: 0;
}
.categories-grid {
    grid-template-columns: repeat(4, 1fr);
    background-color: #f1e7d3;
    padding: 10px;
    border: 1px solid #b3a07d;
}

.tile-halves {
    display: flex;
    flex-direction: column;
}

.update-card {
    padding: 12px 14px;
    border-right: 1px solid #b3a07d;
}
.update-card:last-child { border-right: none; }
.update-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    color: #5c4e38;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.update-title {
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1.3;
}
.update-title a {
    color: #a61c1c !important;
    text-decoration: none;
}
.update-title a:hover { text-decoration: underline; }

.categories-grid .tile-halves {
    border: 1px solid #b3a07d;
    background-color: #ffffff;
}
.tile-top.tile-image {
    background-color: #ffffff !important;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #b3a07d;
}
.tile-top.tile-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.tile-bottom.link-button {
    background-color: #fcf6e8 !important;
    padding: 8px 6px;
    text-align: center;
    font-size: 0.9em;
    flex-grow: 1;
}
.tile-bottom.link-button a {
    color: #611313 !important;
    font-weight: bold;
    text-decoration: none !important;
    display: block;
}
.tile-bottom.link-button a:hover { text-decoration: underline !important; }

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background-color: #f1e7d3;
    padding: 10px;
    border: 1px solid #b3a07d;
    margin-bottom: 14px;
}
.link-button.dark-button a {
    display: block;
    background-color: #5c4e38 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 0.85em;
    text-align: center;
    padding: 12px 6px;
    text-decoration: none !important;
    border: 1px solid #3d3324;
}
.link-button.dark-button a:hover { background-color: #6e5e44 !important; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #fcf6e8;
    border: 1px solid #b3a07d;
    padding: 8px 10px;
    margin-bottom: 14px;
}
.skill-item {
    padding: 8px 10px;
    font-size: 0.85em;
    border-bottom: 1px solid #b3a07d;
    border-right: 1px solid #b3a07d;
    display: flex;
    align-items: center;
    gap: 8px;
}
.skill-item:nth-child(3n) { border-right: none; }
.skill-item a {
    color: #4a3c28 !important;
    font-weight: bold;
    text-decoration: none;
}
.skill-item a:hover { color: #611313 !important; text-decoration: underline; }

.discord-widget, .widget-box {
    background-color: #f1e7d3;
    border: 1px solid #b3a07d;
    margin-bottom: 14px;
}

.discord-widget {
    background-color: #3b5580 !important;
    border: 1px solid #263854 !important;
    color: #ffffff;
}
.discord-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.15em;
    font-weight: bold;
    border-bottom: 1px solid #526e9c;
    padding: 10px 14px;
}
.discord-body { padding: 12px 14px; }
.discord-body p { margin: 0 0 12px 0; font-size: 0.85em; line-height: 1.5; color: #e2e8f0; }
.discord-btn a {
    display: block;
    background-color: #21324d !important;
    color: #ffffff !important;
    text-align: center;
    padding: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    text-decoration: none !important;
    border: 1px solid #141f30;
    border-radius: 2px;
}
.discord-btn a:hover { background-color: #17253a !important; }

.widget-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.15em;
    font-weight: bold;
    color: #4a3c28;
    border-bottom: 1px solid #b3a07d;
    padding: 10px 14px;
}
.widget-body {
    padding: 12px 14px;
    font-size: 0.85em;
    background-color: #fcf6e8;
    line-height: 1.6;
}
.widget-body p { margin: 0 0 8px 0; }
.plainlist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.plainlist li {
    margin-bottom: 4px;
}
.plainlist li::before {
    content: "•";
    color: #611313;
    margin-right: 6px;
    font-weight: bold;
}
.plainlist a {
    color: #611313 !important;
    font-weight: bold;
    text-decoration: none;
}
.plainlist a:hover { text-decoration: underline; }

@media screen and (max-width: 900px) {
    .updates-row, .categories-grid, .popular-grid, .skills-grid {
        grid-template-columns: 1fr;
    }
    .update-card { border-right: none; border-bottom: 1px solid #b3a07d; }
}

/* 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: #cfc08d !important; /* OSRS inactive tab beige */
    border: 1px solid #94866d !important;
    border-bottom: none !important;
    border-radius: 3px 3px 0 0;
    margin-right: 4px !important;
    display: inline-block;
    padding: 0 !important;
}

/* Active tab style */
.vector-menu-tabs .vector-menu-content-list > li.selected {
    background-color: #f1e7d3 !important; /* Matches #content parchment */
    border: 3px solid #3d2b1f !important;
    border-bottom: none !important;
    position: relative;
    z-index: 2; /* Sit on top of the content border */
    margin-bottom: -3px; /* Pull it down over the content border */
}

/* Tab link text */
.vector-menu-tabs .vector-menu-content-list > li > a {
    color: #4a3c28 !important;
    padding: 10px 12px 6px 12px !important;
    font-family: 'PT Serif', Georgia, serif;
    font-weight: bold;
    font-size: 0.9em;
    background: transparent !important;
}

/* Active tab text */
.vector-menu-tabs .vector-menu-content-list > li.selected > a {
    color: #000000 !important;
    padding-bottom: 9px !important; /* Extra padding to cover the gap */
}

/* 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;
}

/* Re-apply the specific tab backgrounds we WANT */
.vector-menu-tabs .vector-menu-content-list > li {
    background-color: #cfc08d !important; /* Inactive tab */
}
.vector-menu-tabs .vector-menu-content-list > li.selected {
    background-color: #f1e7d3 !important; /* Active tab */
}

/* 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;
}
/* --- 11. Cut-off Background & Attach Welcome Box --- */
/* Change body background to repeat-x (horizontal only) so it cuts off, 
   and use a solid color for the rest of the page behind the content */
body {
    background-image: none !important;
    background-color: #e1d5be !important; /* Or #e1d5be if they want tan canvas */
}

/* Remove the top padding from #content ONLY on the Main Page so the 
   Welcome box slides up and attaches perfectly to the top border */
.page-Main_Page #content {
    padding-top: 0 !important;
}

/* The Welcome Box and Stats Box touch the top border */
.page-Main_Page .mainpage-header {
    margin-top: 0;
}
/* --- 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;
}
/* --- 14. Logo Subtext --- */
/* Inject text under the logo */
#p-logo::after {
    content: "The Winds of Valen Wiki";
    display: block;
    text-align: center;
    font-family: 'Kingthings Petrock', 'PT Serif', Georgia, serif; /* Using the custom OSRS font! */
    font-size: 1.3em;
    font-weight: normal;
    color: #f1e7d3; /* Parchment color */
    text-shadow: 2px 2px 3px #000000, -1px -1px 2px #000000; /* Strong dark outline to make it readable over backgrounds */
    position: relative;
    top: -35px; /* Pull it up into the logo bounding box so it sits right under the image */
    line-height: 1.2;
    z-index: 10;
}

/* Push the sidebar navigation down slightly to make room for the new text */
#p-navigation {
    margin-top: 10px !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 */
}
/* --- 19. Fix Header Banner & Solid Body Canvas --- */
/* Move the banner image from the body to the dedicated #mw-page-base container. 
   This explicitly crops the image to the header height (hiding the watermark) 
   and prevents it from fading or bleeding down behind the main content area. */
#mw-page-base {
    background-image: none !important;
    background-size: cover !important;
    height: 180px !important;
    width: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Ensure the body is strictly a solid beige color, with NO background image */
body {
    background-image: none !important;
    background-color: #e1d5be !important;
}

/* Make sure the content box (#content) has a solid background so it doesn't look faded */
#content {
    background-color: #f1e7d3 !important;
}
/* --- 20. Final Layout Fixes --- */
/* Remove absolute positioning from mw-page-base so it actually pushes the content down below the header again */
#mw-page-base {
    position: static !important;
}

/* Ensure the main content box does NOT use the mountain background image, and is strictly solid beige */
#content {
    background-image: none !important;
    background-color: #f1e7d3 !important;
}

/* --- DESKTOP ONLY OSRS LAYOUT OVERRIDES --- */
@media screen and (min-width: 1000px) {
    /* --- 21. Pixel-Perfect Content Latch --- */
    #mw-page-base { position: absolute !important; }
    #content { margin-top: 61px !important; position: relative; z-index: 1; }
    
    /* --- 22. Fine-Tuned 4px Shift --- */
    #content { margin-top: 65px !important; }
    .vector-menu-tabs .vector-menu-content-list > li.selected { margin-bottom: -7px !important; }
    
    /* --- 23. Shift Header Up & Unify Left Padding --- */
    #mw-head { margin-top: -30px !important; }
    #content { margin-top: 35px !important; }
    #left-navigation { margin-left: 175px !important; }
    #content { margin-left: 175px !important; }
    #mw-head::before { left: 175px !important; }
    
    /* --- 24. Fix Buttons Overlapping and Login Visibility --- */
    #p-personal { top: 35px !important; z-index: 100 !important; }
    #left-navigation, #right-navigation { position: relative !important; z-index: 50 !important; }
    #content { position: relative !important; z-index: 1 !important; }
    
    }
/* --- MOBILE ONLY FIXES --- */
@media screen and (max-width: 999px) {
    #mw-page-base { display: none !important; } /* Hide the banner image on small screens */
    #content { margin-top: 20px !important; margin-left: 10px !important; margin-right: 10px !important; }
    #mw-head::before { display: none !important; } /* Hide the beige tab bar on mobile */
    .vector-menu-tabs .vector-menu-content-list > li { margin-bottom: 2px !important; }
}

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

/* MODERN DISCORD BUTTON OVERRIDE */
.discord-btn a {
    background-color: #5865F2 !important;
    padding: 12px 20px !important;
    font-size: 1.05em !important;
    border: none !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease-in-out !important;
}
.discord-btn a:hover {
    background-color: #4752C4 !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-2px) !important;
}
/* NEW 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;
}
/* --- FORCE HIDE ALL LEGACY GRADIENTS --- */
#mw-page-base, 
#mw-head-base {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    height: 0 !important;
}
/* --- PERFECT OSRS LAYOUT OVERRIDE --- */
@media screen and (min-width: 1000px) {
    /* 1. The Body Banner */
    body {
        background: url('/resources/assets/mystical_header.png') center top no-repeat !important;
        background-color: #e1d5be !important;
        background-size: 100% 180px !important;
    }

    /* 2. Hide Native Page Gradients */
    #mw-page-base, #mw-head-base {
        display: none !important;
        height: 0 !important;
    }

    /* 3. Push Content Down 180px */
    #content {
        margin-top: 180px !important;
        position: relative !important;
        z-index: 1 !important;
    }

    /* 4. Position the Tabs Exactly on top of Content */
    /* If #content starts at 180px, and tabs are 46px tall, they should start at 134px */
    #mw-head {
        position: absolute !important;
        top: 134px !important;
        height: 46px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* 5. Personal tools (Login etc) should be moved up above the tabs */
    #p-personal {
        position: absolute !important;
        top: -30px !important;
        right: 15px !important;
        z-index: 100 !important;
    }

    /* 6. Fix the Beige Tab Bar background */
    #mw-head::before {
        bottom: 0 !important;
        height: 46px !important;
        z-index: 0 !important;
    }

    /* 7. Push the Sidebar down so it aligns with content */
    #mw-panel {
        top: 180px !important;
    }

    /* 8. Pull the Logo back up to the top */
    #p-logo {
        top: -180px !important;
        height: 180px !important;
    }

    /* 9. Make the active tab visually latch */
    .vector-menu-tabs .vector-menu-content-list > li.selected {
        margin-bottom: -3px !important;
        z-index: 2 !important;
    }
}