MediaWiki:Timeless.css: Difference between revisions

From Tarazedi
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 3: Line 3:
   ========================================================== */
   ========================================================== */


/* GLOBAL INTERFACE */
/* BASE INTERFACE */


body.skin-timeless {
body.skin-timeless {
Line 9: Line 9:
     color: var(--primary);
     color: var(--primary);
     font-family: var(--font-body);
     font-family: var(--font-body);
    font-size: 16px;
}
}


/* REMOVE DEFAULT BACKGROUNDS AND DECORATION */
/* BLACK INTERFACE PANELS */


#mw-header-container,
#mw-header-container,
Line 17: Line 18:
#mw-content-container,
#mw-content-container,
#mw-content-block,
#mw-content-block,
#mw-content,
#mw-site-navigation,
#mw-site-navigation,
#mw-related-navigation,
#mw-related-navigation,
#mw-footer-container,
#mw-footer-container,
#mw-footer,
#mw-footer,
#mw-page-header-links,
#mw-header-hack,
#mw-page-header-links-bottom,
#mw-header-nav-hack,
.sidebar-inner,
.sidebar-inner,
.mw-body,
.sidebar-chunk,
.mw-portlet,
.mw-portlet,
.ts-container {
.ts-container {
     background: var(--background);
     background-color: var(--background) !important;
    color: var(--primary);
     border-color: transparent !important;
     border-color: transparent;
     box-shadow: none !important;
     box-shadow: none;
}
 
#mw-content-container {
    background-image: none !important;
}
}


/* REMOVE TIMELESS COLOURED STRIPE */
/* REMOVE TIMELESS COLOUR STRIPE */


.color-bar,
.color-bar,
Line 44: Line 47:
}
}


/* SITE WORDMARK */
/* CENTRAL CONTENT */
 
.skin-timeless #mw-content {
    background: var(--content-background) !important;
    color: var(--primary);
    border: none;
    border-radius: 4px;
    box-shadow: none;
}
 
#bodyContent,
#bodyContentOuter,
#mw-content-text {
    background: transparent;
    color: var(--primary);
    font-family: var(--font-body);
}
 
#mw-content-text {
    font-size: 1rem;
    line-height: 1.5;
}
 
/* HEADINGS — SHARED PROPERTIES */


#p-logo-text,
.skin-timeless h1,
#p-logo-text a,
.skin-timeless h2,
#p-logo-text a:visited {
.skin-timeless h3,
     font-family: var(--font-heading);
.skin-timeless h4,
     font-size: 1.5em;
.skin-timeless h5,
     font-weight: 400;
.skin-timeless h6 {
     font-weight: 400 !important;
     font-variant: normal !important;
     text-align: center !important;


     background-image: var(--heading-gradient);
     background-image: var(--heading-gradient);
Line 58: Line 87:
     -webkit-text-fill-color: transparent;
     -webkit-text-fill-color: transparent;


     border: none;
     border: none !important;
     text-decoration: none;
    box-shadow: none !important;
    overflow: visible !important;
 
    line-height: 1;
    margin: 0.2em 0 0.1em;
    padding: 0;
}
 
/* HEADINGS — GREAT VIBES */
 
.skin-timeless h1,
.skin-timeless h2,
.skin-timeless h3 {
    font-family: var(--font-heading) !important;
     text-transform: lowercase !important;
}
 
/* HEADINGS — ARIAL */
 
.skin-timeless h4,
.skin-timeless h5,
.skin-timeless h6 {
    font-family: var(--font-body) !important;
    text-transform: none !important;
}
 
/* ARTICLE TITLE */
 
.skin-timeless #firstHeading {
    font-size: 3rem;
    margin-bottom: 0.3em;
    padding: 0.1em 0;
}
 
/* SECTION HEADINGS */
 
.skin-timeless #mw-content-text h2 {
    font-size: 2.5rem;
}
 
.skin-timeless #mw-content-text h3 {
    font-size: 2rem;
}
 
.skin-timeless #mw-content-text h4 {
    font-size: 1.5rem;
}
 
.skin-timeless #mw-content-text h5 {
    font-size: 1.3rem;
}
 
.skin-timeless #mw-content-text h6 {
    font-size: 1.1rem;
}
}


/* SITE LOGO */
/* SECTION HEADING WRAPPERS */


#p-logo {
.skin-timeless .mw-heading {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5em;
     text-align: center;
     text-align: center;
    border: none !important;
    overflow: visible !important;
}
}


.mw-wiki-logo {
.skin-timeless .mw-heading h2,
    display: block;
.skin-timeless .mw-heading h3,
    width: 135px;
.skin-timeless .mw-heading h4,
    height: 135px;
.skin-timeless .mw-heading h5,
     margin: 0 auto;
.skin-timeless .mw-heading h6 {
    background-size: contain;
     padding: 0.1em 0.15em;
     background-position: center;
     overflow: visible !important;
    background-repeat: no-repeat;
}
}


/* ARTICLE CONTAINER */
/* SITE WORDMARK */


#mw-content {
#p-logo-text {
     border: none;
     background: none;
     box-shadow: none;
    padding: 0;
    text-align: center;
     box-sizing: border-box;
}
}


/* ARTICLE TITLE */
.skin-timeless #p-logo-text a,
.skin-timeless #p-logo-text a.long {
    display: inline-block;
    height: auto;
    margin: 0 auto;
    padding: 0.1em 0.2em;


#firstHeading {
     font-family: var(--font-heading) !important;
     font-family: var(--font-heading);
     font-size: 2.5rem;
     font-size: 3.5em;
     font-weight: 400;
     font-weight: 400;
    font-variant: normal;
    text-transform: lowercase;
     text-align: center;
     text-align: center;
     border: none;
    line-height: 1.15;
     margin-bottom: 0.3em;
 
    background-image: var(--heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent !important;
 
     border: none !important;
}
 
/* DESKTOP WORDMARK ALIGNMENT */
 
@media screen and (min-width: 851px) {
 
    #p-logo-text {
        flex: 0 0 14em;
        width: 14em;
        max-width: 14em;
        order: 1;
        align-self: center;
        text-align: center;
     }
 
    #p-search {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
    }
 
    #user-tools {
        order: 3;
    }
}
}


/* SECTION HEADINGS */
/* SITE LOGO */


.mw-body h2,
#p-logo {
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6 {
    font-family: var(--font-heading);
    font-weight: 400;
     text-align: center;
     text-align: center;
    border: none;
}
}


/* SIDEBAR */
#p-logo .mw-wiki-logo {
    display: block;
    margin: 0.75em auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
 
#p-logo .mw-wiki-logo img {
    width: 135px;
    max-width: 100%;
    height: auto;
}
 
/* SIDEBARS */


.sidebar-chunk {
.skin-timeless .sidebar-chunk {
     background: var(--background);
     background: var(--background) !important;
     border: none;
     border: none !important;
     box-shadow: none;
     box-shadow: none !important;
}
}


.sidebar-chunk h2,
.skin-timeless .sidebar-chunk h3,
.sidebar-chunk h3,
.skin-timeless .mw-portlet h3 {
.mw-portlet h3 {
     font-size: 1.8rem;
    font-family: var(--font-heading);
     font-size: 1.8em;
     font-weight: 400;
     font-weight: 400;
     text-align: center;
     text-align: center;
     border: none;
     margin: 0.6em auto 0.3em;
    padding: 0.1em 0;
}
}


Line 133: Line 265:


.sidebar-chunk li {
.sidebar-chunk li {
     margin: 0.4em 0;
     margin: 0.3em 0;
    font-size: 0.9rem;
    line-height: 1.5;
}
}


/* NAVIGATION LINKS */
/* ALL LINKS */


.mw-portlet a,
body.skin-timeless a,
.sidebar-chunk a,
body.skin-timeless a:link,
#mw-page-header-links a,
body.skin-timeless a:visited,
#mw-page-header-links-bottom a {
body.skin-timeless a.external,
     color: var(--secondary);
body.skin-timeless a.extiw,
     font-family: var(--font-body);
body.skin-timeless a.new {
     text-decoration: none;
     color: var(--secondary) !important;
     text-decoration: none !important;
}
 
body.skin-timeless a:hover,
body.skin-timeless a:focus-visible {
     color: var(--primary) !important;
}
}


.sidebar-chunk a {
#mw-content-text a:not(.image):not(.mw-file-description),
.sidebar-chunk li a,
#mw-footer a,
.mw-editsection a {
     border-bottom: 1px dotted var(--accent);
     border-bottom: 1px dotted var(--accent);
}
}


.mw-portlet a:hover,
/* EXTERNAL LINKS */
.sidebar-chunk a:hover {
 
     color: var(--primary);
.mw-parser-output a.external {
    background-image: none !important;
    padding-right: 0 !important;
}
 
/* PAGE NAVIGATION TABS */
 
#mw-page-header-links,
#mw-page-header-links-bottom {
    text-align: left;
    background: transparent;
}
 
#p-namespaces,
#p-views {
     float: left !important;
    text-align: left;
}
 
#p-namespaces li,
#p-views li {
    margin-left: 0;
    margin-right: 1em;
}
}


/* SELECTED NAVIGATION TAB */
.tools-inline li,
.tools-inline li.selected,
.tools-inline li:hover {
    border-bottom: none !important;
    box-shadow: none !important;
}


.mw-portlet .selected a {
.tools-inline a {
    color: var(--primary);
     border-bottom: 1px dotted var(--accent);
     border-bottom: 1px dotted var(--accent);
}
/* PRESERVE WATCHLIST ICON WITHOUT EMPTY UNDERLINE */
#ca-watch a,
#ca-unwatch a {
    border-bottom: none;
    filter: brightness(1.7);
}
#mw-page-header-links::after,
#mw-page-header-links-bottom::after {
    content: "";
    display: block;
    clear: both;
}
}


Line 174: Line 358:
     border-radius: 3px;
     border-radius: 3px;
     font-family: var(--font-body);
     font-family: var(--font-body);
}
#simpleSearch {
    background: var(--background);
    border: 1px solid var(--secondary);
    box-shadow: none;
}
#searchInput {
    color: var(--primary);
    background: transparent;
    border: none;
    box-shadow: none;
}
}


Line 190: Line 387:
}
}


#searchInput {
#searchButton,
     background-color: var(--background);
#mw-searchButton {
     color: var(--primary);
    filter: brightness(0) invert(1);
     border-color: var(--secondary);
    border: none;
}
 
/* ACCOUNT MENU — PRESERVE NATIVE CONTROLS */
 
#personal h2,
#user-tools h2 {
     font-family: var(--font-body) !important;
    font-size: 1rem;
    text-transform: none !important;
 
     color: var(--secondary);
     -webkit-text-fill-color: var(--secondary);
 
    background-clip: border-box;
    -webkit-background-clip: border-box;
}
 
#personal h2 {
    background-image: none;
}
}


/* DROPDOWN MENUS */
/* DROPDOWNS AND SEARCH SUGGESTIONS */


.mw-portlet-body,
.dropdown,
.dropdown,
.suggestions,
.suggestions,
.suggestions-results,
.suggestions-results,
.suggestions-special {
.suggestions-special {
     background-color: var(--background);
     background-color: var(--background) !important;
     color: var(--primary);
     color: var(--primary);
    border-color: var(--border);
}
}


Line 254: Line 470:
}
}


/* CATEGORY LIST */
/* CATEGORIES */


#catlinks {
#catlinks {
     background: var(--background);
     background: transparent;
     color: var(--primary);
     color: var(--primary);
     border: none;
     border: none;
Line 267: Line 483:


#mw-footer {
#mw-footer {
    background: var(--background);
     color: var(--secondary);
     color: var(--secondary);
     font-size: 0.8em;
     font-size: 0.75rem;
     text-align: center;
     text-align: center;
}
}
Line 287: Line 504:
@media screen and (max-width: 850px) {
@media screen and (max-width: 850px) {


     #mw-header-container,
     #p-logo-text {
     #mw-content-container,
        width: auto;
     #mw-content {
        max-width: none;
         background: var(--background);
    }
        border: none;
 
        box-shadow: none;
     .skin-timeless #p-logo-text a,
     .skin-timeless #p-logo-text a.long {
         font-size: 1.8rem;
     }
     }


     #firstHeading {
     .skin-timeless #firstHeading {
         font-size: 2.7em;
         font-size: 2.7rem;
     }
     }


     #p-logo-text {
     .skin-timeless #mw-content-text h2 {
         font-size: 1.2em;
         font-size: 2rem;
     }
     }


     .mw-body h2 {
     .skin-timeless #mw-content-text h3 {
         font-size: 2em;
         font-size: 1.7rem;
     }
     }


     .mw-body h3 {
     .skin-timeless #mw-content {
         font-size: 1.7em;
         border-radius: 0;
     }
     }


     .mw-parser-output {
     #mw-content-text {
         font-size: 1em;
         font-size: 1rem;
         line-height: 1.5;
         line-height: 1.5;
     }
     }
Line 329: Line 548:
         max-width: 100%;
         max-width: 100%;
         box-sizing: border-box;
         box-sizing: border-box;
    }
    .mw-parser-output img {
        max-width: 100%;
        height: auto;
     }
     }
}
}


/* ==========================================================
/* SIDEBAR TYPOGRAPHY */
  TARAZEDI — TIMELESS CORRECTIONS
  ========================================================== */


/* REMOVE RESIDUAL WHITE PANELS */
.skin-timeless .sidebar-chunk h2,
 
.skin-timeless .sidebar-chunk h3,
.skin-timeless .sidebar-chunk,
.skin-timeless .mw-portlet h3 {
.skin-timeless .sidebar-chunk .mw-portlet,
.skin-timeless #mw-site-navigation,
.skin-timeless #mw-related-navigation,
.skin-timeless #mw-site-navigation .sidebar-chunk,
.skin-timeless #mw-related-navigation .sidebar-chunk {
    background: #000000 !important;
    border: none !important;
    box-shadow: none !important;
}
 
/* REMOVE RESIDUAL BACKGROUND IMAGES */
 
body.skin-timeless,
#mw-content-container,
#mw-header-container,
#mw-footer-container {
    background-color: #000000 !important;
    background-image: none !important;
}
 
/* BASE TYPOGRAPHY */
 
body.skin-timeless {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}
 
#mw-content-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}
 
/* SITE WORDMARK */
 
#p-logo-text a,
#p-logo-text a.long {
     font-family: var(--font-heading) !important;
     font-family: var(--font-heading) !important;
     font-variant: normal !important;
     font-size: 2rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
     font-weight: 400 !important;
     font-weight: 400 !important;
     font-size: 2.2rem;
     line-height: 1.2 !important;
}


/* ALL HEADINGS */
    text-align: center;
    text-transform: lowercase;


.skin-timeless h1,
     background-image: var(--heading-gradient);
.skin-timeless h2,
.skin-timeless h3,
.skin-timeless h4,
.skin-timeless h5,
.skin-timeless h6 {
     font-family: var(--font-heading) !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    text-transform: none !important;
    text-align: center !important;
 
    background: var(--heading-gradient);
     background-clip: text;
     background-clip: text;
     -webkit-background-clip: text;
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     -webkit-text-fill-color: transparent;


     border: none !important;
     margin: 0.5em 0 0.25em;
     box-shadow: none !important;
     padding: 0.15em 0;
}
}


/* ARTICLE HEADINGS */
/* REDUCE EXCESSIVE SIDEBAR SPACING */


#firstHeading {
.skin-timeless .sidebar-chunk {
     font-size: 3.5rem !important;
     margin-bottom: 0.75em;
    padding-top: 0;
    padding-bottom: 0;
}
}


#mw-content-text h2 {
.skin-timeless .sidebar-chunk li {
     font-size: 2.4rem !important;
     margin: 0.15em 0;
    line-height: 1.4;
}
}


#mw-content-text h3 {
/* ARTICLE NAVIGATION — TOP RIGHT */
    font-size: 2rem !important;
}


#mw-content-text h4 {
@media screen and (min-width: 851px) {
    font-size: 1.7rem !important;
}


/* MODERN MEDIAWIKI SECTION WRAPPERS */
    #mw-content #content {
        position: relative;
        padding-top: 3em;
    }


.mw-heading {
    #bodyContentOuter {
    text-align: center !important;
        position: static;
     justify-content: center !important;
     }
    border: none !important;
    box-shadow: none !important;
}


.mw-heading h2,
    #mw-page-header-links {
.mw-heading h3,
        position: absolute;
.mw-heading h4 {
        top: 0;
    border: none !important;
        right: 0;
}
        left: auto;


.mw-editsection {
        display: flex;
    font-family: var(--font-body) !important;
        flex-wrap: wrap;
    font-size: 0.75rem !important;
        justify-content: flex-end;
    -webkit-text-fill-color: initial;
        align-items: center;
}
        gap: 1em;


/* SIDEBAR HEADINGS */
        width: auto;
        max-width: 100%;


.skin-timeless .sidebar-chunk h2,
        margin: 0;
.skin-timeless .sidebar-chunk h3,
        padding: 0;
.skin-timeless .mw-portlet h2,
.skin-timeless .mw-portlet h3 {
    font-size: 1.8rem !important;
    text-align: center !important;
    padding: 0.25em 0;
    margin: 0.5em 0 0.2em;
    border: none !important;
}


/* SIDEBAR LINKS */
        background: transparent !important;
        border: none;
    }


.sidebar-chunk li {
    #mw-page-header-links #p-namespaces,
     font-size: 0.9rem;
     #mw-page-header-links #p-views {
    line-height: 1.5;
        float: none !important;
}
        margin: 0;
        padding: 0;
        background: transparent !important;
    }


/* OVERRIDE DEFAULT LINK COLOURS */
    #mw-page-header-links .mw-portlet,
    #mw-page-header-links .mw-portlet-body,
    #mw-page-header-links ul,
    #mw-page-header-links li {
        background: transparent !important;
    }


.skin-timeless a,
    #mw-page-header-links li {
.skin-timeless a:visited,
        margin: 0 0 0 0.75em;
.skin-timeless a.external,
        padding: 0;
.skin-timeless a.external:visited,
        border: none !important;
.skin-timeless a.extiw,
    }
.skin-timeless a.new,
.skin-timeless .mw-parser-output a.external {
    color: var(--secondary) !important;
    text-decoration: none !important;
}


.skin-timeless a:hover,
    #mw-page-header-links::after {
.skin-timeless a:focus-visible {
        display: none;
    color: var(--primary) !important;
    }
}


/* DOTTED WHITE LINK BORDERS */
    #firstHeading {
 
        margin-top: 0;
#mw-content-text a:not(.image):not(.mw-file-description),
    }
.sidebar-chunk li a,
#mw-footer a {
    border-bottom: 1px dotted #FFFFFF;
}
}


/* REMOVE EXTERNAL LINK ICONS */
/* MOBILE — KEEP NATIVE NAVIGATION POSITION */


.mw-parser-output a.external {
@media screen and (max-width: 850px) {
    background-image: none !important;
    padding-right: 0 !important;
}


/* REMOVE DEFAULT BLUE TAB ACCENTS */
    #mw-page-header-links {
        background: transparent !important;
    }


#mw-page-header-links li,
    #mw-page-header-links .mw-portlet {
#mw-page-header-links-bottom li,
        background: transparent !important;
#mw-page-header-links .selected,
     }
#mw-page-header-links-bottom .selected {
    border-color: var(--secondary) !important;
     box-shadow: none !important;
}
}


#mw-page-header-links .selected a,
/* TWO-COLUMN DESKTOP LAYOUT */
#mw-page-header-links-bottom .selected a {
    color: var(--primary) !important;
    border-bottom: 1px dotted #FFFFFF !important;
}
 
/* SEARCH */
 
#searchInput,
#simpleSearch,
#searchform {
    background-color: #000000 !important;
    border-color: var(--secondary) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
}


/* FOOTER */
@media screen and (min-width: 1100px) {


#mw-footer-container,
     #mw-related-navigation {
#mw-footer {
         display: none !important;
     background: #000000 !important;
    color: var(--secondary) !important;
    border: none !important;
    box-shadow: none !important;
}
 
#mw-footer {
    font-size: 0.75rem;
}
 
/* MOBILE ADJUSTMENTS */
 
@media screen and (max-width: 850px) {
 
    #firstHeading {
         font-size: 2.7rem !important;
     }
     }


     #mw-content-text h2 {
     #mw-content-wrapper {
         font-size: 2rem !important;
         flex: 1 1 auto !important;
        min-width: 0;
        max-width: none;
     }
     }


     #mw-content-text h3 {
     #catlinks {
         font-size: 1.7rem !important;
         display: block;
     }
     }
}


    #p-logo-text a,
/* HIDE WORDMARK WITHOUT ALTERING HEADER LAYOUT */
    #p-logo-text a.long {
        font-size: 1.8rem;
    }


    #mw-content-text {
#p-logo-text {
        font-size: 1rem;
    visibility: hidden !important;
    }
}
}

Latest revision as of 11:02, 2 December 2026

/* ==========================================================
   TARAZEDI — TIMELESS SKIN
   ========================================================== */

/* BASE INTERFACE */

body.skin-timeless {
    background: var(--background);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 16px;
}

/* BLACK INTERFACE PANELS */

#mw-header-container,
#mw-header,
#mw-content-container,
#mw-content-block,
#mw-site-navigation,
#mw-related-navigation,
#mw-footer-container,
#mw-footer,
#mw-header-hack,
#mw-header-nav-hack,
.sidebar-inner,
.sidebar-chunk,
.mw-portlet,
.ts-container {
    background-color: var(--background) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

#mw-content-container {
    background-image: none !important;
}

/* REMOVE TIMELESS COLOUR STRIPE */

.color-bar,
.color-left,
.color-middle,
.color-right,
.color-middle-container {
    display: none;
}

/* CENTRAL CONTENT */

.skin-timeless #mw-content {
    background: var(--content-background) !important;
    color: var(--primary);
    border: none;
    border-radius: 4px;
    box-shadow: none;
}

#bodyContent,
#bodyContentOuter,
#mw-content-text {
    background: transparent;
    color: var(--primary);
    font-family: var(--font-body);
}

#mw-content-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* HEADINGS — SHARED PROPERTIES */

.skin-timeless h1,
.skin-timeless h2,
.skin-timeless h3,
.skin-timeless h4,
.skin-timeless h5,
.skin-timeless h6 {
    font-weight: 400 !important;
    font-variant: normal !important;
    text-align: center !important;

    background-image: var(--heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;

    line-height: 1;
    margin: 0.2em 0 0.1em;
    padding: 0;
}

/* HEADINGS — GREAT VIBES */

.skin-timeless h1,
.skin-timeless h2,
.skin-timeless h3 {
    font-family: var(--font-heading) !important;
    text-transform: lowercase !important;
}

/* HEADINGS — ARIAL */

.skin-timeless h4,
.skin-timeless h5,
.skin-timeless h6 {
    font-family: var(--font-body) !important;
    text-transform: none !important;
}

/* ARTICLE TITLE */

.skin-timeless #firstHeading {
    font-size: 3rem;
    margin-bottom: 0.3em;
    padding: 0.1em 0;
}

/* SECTION HEADINGS */

.skin-timeless #mw-content-text h2 {
    font-size: 2.5rem;
}

.skin-timeless #mw-content-text h3 {
    font-size: 2rem;
}

.skin-timeless #mw-content-text h4 {
    font-size: 1.5rem;
}

.skin-timeless #mw-content-text h5 {
    font-size: 1.3rem;
}

.skin-timeless #mw-content-text h6 {
    font-size: 1.1rem;
}

/* SECTION HEADING WRAPPERS */

.skin-timeless .mw-heading {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5em;
    text-align: center;
    border: none !important;
    overflow: visible !important;
}

.skin-timeless .mw-heading h2,
.skin-timeless .mw-heading h3,
.skin-timeless .mw-heading h4,
.skin-timeless .mw-heading h5,
.skin-timeless .mw-heading h6 {
    padding: 0.1em 0.15em;
    overflow: visible !important;
}

/* SITE WORDMARK */

#p-logo-text {
    background: none;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
}

.skin-timeless #p-logo-text a,
.skin-timeless #p-logo-text a.long {
    display: inline-block;
    height: auto;
    margin: 0 auto;
    padding: 0.1em 0.2em;

    font-family: var(--font-heading) !important;
    font-size: 2.5rem;
    font-weight: 400;
    font-variant: normal;
    text-transform: lowercase;
    text-align: center;
    line-height: 1.15;

    background-image: var(--heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent !important;

    border: none !important;
}

/* DESKTOP WORDMARK ALIGNMENT */

@media screen and (min-width: 851px) {

    #p-logo-text {
        flex: 0 0 14em;
        width: 14em;
        max-width: 14em;
        order: 1;
        align-self: center;
        text-align: center;
    }

    #p-search {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
    }

    #user-tools {
        order: 3;
    }
}

/* SITE LOGO */

#p-logo {
    text-align: center;
}

#p-logo .mw-wiki-logo {
    display: block;
    margin: 0.75em auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#p-logo .mw-wiki-logo img {
    width: 135px;
    max-width: 100%;
    height: auto;
}

/* SIDEBARS */

.skin-timeless .sidebar-chunk {
    background: var(--background) !important;
    border: none !important;
    box-shadow: none !important;
}

.skin-timeless .sidebar-chunk h3,
.skin-timeless .mw-portlet h3 {
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    margin: 0.6em auto 0.3em;
    padding: 0.1em 0;
}

.sidebar-chunk ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-chunk li {
    margin: 0.3em 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ALL LINKS */

body.skin-timeless a,
body.skin-timeless a:link,
body.skin-timeless a:visited,
body.skin-timeless a.external,
body.skin-timeless a.extiw,
body.skin-timeless a.new {
    color: var(--secondary) !important;
    text-decoration: none !important;
}

body.skin-timeless a:hover,
body.skin-timeless a:focus-visible {
    color: var(--primary) !important;
}

#mw-content-text a:not(.image):not(.mw-file-description),
.sidebar-chunk li a,
#mw-footer a,
.mw-editsection a {
    border-bottom: 1px dotted var(--accent);
}

/* EXTERNAL LINKS */

.mw-parser-output a.external {
    background-image: none !important;
    padding-right: 0 !important;
}

/* PAGE NAVIGATION TABS */

#mw-page-header-links,
#mw-page-header-links-bottom {
    text-align: left;
    background: transparent;
}

#p-namespaces,
#p-views {
    float: left !important;
    text-align: left;
}

#p-namespaces li,
#p-views li {
    margin-left: 0;
    margin-right: 1em;
}

.tools-inline li,
.tools-inline li.selected,
.tools-inline li:hover {
    border-bottom: none !important;
    box-shadow: none !important;
}

.tools-inline a {
    border-bottom: 1px dotted var(--accent);
}

/* PRESERVE WATCHLIST ICON WITHOUT EMPTY UNDERLINE */

#ca-watch a,
#ca-unwatch a {
    border-bottom: none;
    filter: brightness(1.7);
}

#mw-page-header-links::after,
#mw-page-header-links-bottom::after {
    content: "";
    display: block;
    clear: both;
}

/* SEARCH AND FORM CONTROLS */

input,
textarea,
select,
button {
    background-color: var(--background);
    color: var(--primary);
    border: 1px solid var(--secondary);
    border-radius: 3px;
    font-family: var(--font-body);
}

#simpleSearch {
    background: var(--background);
    border: 1px solid var(--secondary);
    box-shadow: none;
}

#searchInput {
    color: var(--primary);
    background: transparent;
    border: none;
    box-shadow: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--secondary);
    opacity: 1;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible {
    outline: 1px solid var(--primary);
    outline-offset: 2px;
}

#searchButton,
#mw-searchButton {
    filter: brightness(0) invert(1);
    border: none;
}

/* ACCOUNT MENU — PRESERVE NATIVE CONTROLS */

#personal h2,
#user-tools h2 {
    font-family: var(--font-body) !important;
    font-size: 1rem;
    text-transform: none !important;

    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);

    background-clip: border-box;
    -webkit-background-clip: border-box;
}

#personal h2 {
    background-image: none;
}

/* DROPDOWNS AND SEARCH SUGGESTIONS */

.dropdown,
.suggestions,
.suggestions-results,
.suggestions-special {
    background-color: var(--background) !important;
    color: var(--primary);
    border-color: var(--border);
}

.suggestions-result {
    color: var(--primary);
}

.suggestions-result-current {
    background-color: var(--surface);
    color: var(--accent);
}

/* TABLE OF CONTENTS */

#toc,
.toc {
    background: var(--surface);
    color: var(--primary);
    border: none;
    padding: 1em;
}

.tocnumber {
    color: var(--primary);
}

.toctext {
    color: var(--secondary);
}

/* INFOBOXES */

.infobox {
    background: var(--background);
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 0.5em;
    margin: 0 0 1em 1em;
    max-width: 100%;
}

.infobox th {
    background: var(--surface);
    color: var(--secondary);
}

.infobox td {
    color: var(--primary);
}

/* CATEGORIES */

#catlinks {
    background: transparent;
    color: var(--primary);
    border: none;
    border-top: 1px solid var(--border);
    padding: 0.75em 0;
}

/* FOOTER */

#mw-footer {
    background: var(--background);
    color: var(--secondary);
    font-size: 0.75rem;
    text-align: center;
}

/* EDITING INTERFACE */

#wpTextbox1 {
    background: var(--background);
    color: var(--primary);
    border: 1px solid var(--secondary);
    font-family: var(--font-body);
}

/* ==========================================================
   RESPONSIVE — MOBILE
   ========================================================== */

@media screen and (max-width: 850px) {

    #p-logo-text {
        width: auto;
        max-width: none;
    }

    .skin-timeless #p-logo-text a,
    .skin-timeless #p-logo-text a.long {
        font-size: 1.8rem;
    }

    .skin-timeless #firstHeading {
        font-size: 2.7rem;
    }

    .skin-timeless #mw-content-text h2 {
        font-size: 2rem;
    }

    .skin-timeless #mw-content-text h3 {
        font-size: 1.7rem;
    }

    .skin-timeless #mw-content {
        border-radius: 0;
    }

    #mw-content-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    .infobox {
        float: none !important;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        margin: 1em auto;
    }

    .thumb,
    .thumbinner,
    figure {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* SIDEBAR TYPOGRAPHY */

.skin-timeless .sidebar-chunk h2,
.skin-timeless .sidebar-chunk h3,
.skin-timeless .mw-portlet h3 {
    font-family: var(--font-heading) !important;
    font-size: 2rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;

    text-align: center;
    text-transform: lowercase;

    background-image: var(--heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    margin: 0.5em 0 0.25em;
    padding: 0.15em 0;
}

/* REDUCE EXCESSIVE SIDEBAR SPACING */

.skin-timeless .sidebar-chunk {
    margin-bottom: 0.75em;
    padding-top: 0;
    padding-bottom: 0;
}

.skin-timeless .sidebar-chunk li {
    margin: 0.15em 0;
    line-height: 1.4;
}

/* ARTICLE NAVIGATION — TOP RIGHT */

@media screen and (min-width: 851px) {

    #mw-content #content {
        position: relative;
        padding-top: 3em;
    }

    #bodyContentOuter {
        position: static;
    }

    #mw-page-header-links {
        position: absolute;
        top: 0;
        right: 0;
        left: auto;

        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 1em;

        width: auto;
        max-width: 100%;

        margin: 0;
        padding: 0;

        background: transparent !important;
        border: none;
    }

    #mw-page-header-links #p-namespaces,
    #mw-page-header-links #p-views {
        float: none !important;
        margin: 0;
        padding: 0;
        background: transparent !important;
    }

    #mw-page-header-links .mw-portlet,
    #mw-page-header-links .mw-portlet-body,
    #mw-page-header-links ul,
    #mw-page-header-links li {
        background: transparent !important;
    }

    #mw-page-header-links li {
        margin: 0 0 0 0.75em;
        padding: 0;
        border: none !important;
    }

    #mw-page-header-links::after {
        display: none;
    }

    #firstHeading {
        margin-top: 0;
    }
}

/* MOBILE — KEEP NATIVE NAVIGATION POSITION */

@media screen and (max-width: 850px) {

    #mw-page-header-links {
        background: transparent !important;
    }

    #mw-page-header-links .mw-portlet {
        background: transparent !important;
    }
}

/* TWO-COLUMN DESKTOP LAYOUT */

@media screen and (min-width: 1100px) {

    #mw-related-navigation {
        display: none !important;
    }

    #mw-content-wrapper {
        flex: 1 1 auto !important;
        min-width: 0;
        max-width: none;
    }

    #catlinks {
        display: block;
    }
}

/* HIDE WORDMARK WITHOUT ALTERING HEADER LAYOUT */

#p-logo-text {
    visibility: hidden !important;
}