Jump to content

MediaWiki:Common.css: Difference between revisions

From BD ZONE WIKI
Add front page and wiki styling
 
Apply Wynncraft-style dark theme
 
Line 1: Line 1:
/* BD Zone Wiki Custom Styles */
/* ============================================================
  BD ZONE WIKI — Theme (Wynncraft-style dark theme)
  ============================================================ */


:root {
    /* BD Zone brand */
    --bdzone-primary: #14b2b8;
    --bdzone-primary-hover: #48e4ea;
    --bdzone-primary-click: #99e250;
    --bdzone-logo: #00d4d4;
    /* Body / content (Wynncraft palette) */
    --color-body-text: #C9E1F2;
    --color-body-bg: #1E252F;
    --color-body-mid: #32445C;
    --color-body-border: #3E5473;
    --color-title-text: #EAF4FA;
    --color-box-bg: #202D3B;
    /* Wynncraft source palette (kept for reuse) */
    --color-wc-darkblue: #080FED;
    --color-wc-darkgreen: #0A0;
    --color-wc-darkaqua: #0AA;
    --color-wc-darkred: #A00;
    --color-wc-darkpurple: #A0A;
    --color-wc-gold: #FA0;
    --color-wc-blue: #55F;
    --color-wc-green: #5F5;
    --color-wc-aqua: #5FF;
    --color-wc-red: #F55;
    --color-wc-purple: #F5F;
    --color-wc-yellow: #FF5;
    --color-wc-cream: #f6e49c;
    --color-wc-crimson: #f94242;
    --color-pure: black;
    --color-plain: white;
}
/* ============================================================
  PAGE BACKGROUND — Dark theme like Wynncraft
  ============================================================ */
body {
    background-color: var(--color-body-bg);
    color: var(--color-body-text);
    font-family: 'Rubik', 'Segoe UI', Helvetica, Arial, sans-serif;
}
#mw-page-base {
    background: linear-gradient(180deg, #141a23 0%, #1E252F 100%);
    border-bottom: 2px solid var(--bdzone-primary);
}
#mw-head {
    background: rgba(20, 26, 35, 0.95);
    border-bottom: 1px solid var(--color-body-border);
}
#content {
    background-color: var(--color-body-bg);
    color: var(--color-body-text);
    border: 1px solid var(--color-body-border);
    border-radius: 0 0 10px 10px;
}
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
    color: var(--bdzone-primary);
    border-bottom: 1px solid var(--color-body-border);
    font-family: 'Rubik', 'Segoe UI', sans-serif;
}
#content h1 {
    font-size: 1.8em;
    margin-bottom: 0.6em;
}
#content a,
#content a:visited {
    color: var(--bdzone-primary);
    text-decoration: none;
}
#content a:hover,
.vector-menu-tabs .selected a,
.vector-menu-tabs .selected a:visited {
    color: var(--bdzone-primary-hover);
    text-decoration: underline;
}
#content a.new {
    color: var(--color-wc-darkred);
}
#content a.external {
    color: var(--color-wc-blue);
}
/* ============================================================
  HEADER (top bar)
  ============================================================ */
.vector-menu-tabs {
    background: transparent;
}
.vector-menu-tabs li {
    background: transparent;
}
.vector-menu-tabs .selected {
    background: var(--color-box-bg);
    color: var(--bdzone-primary);
    border-radius: 5px 5px 0 0;
}
#p-personal {
    background: transparent;
}
#p-personal a {
    color: var(--color-title-text);
}
/* Search bar */
#simpleSearch {
    background: var(--color-box-bg);
    border: 1px solid var(--color-body-border);
    border-radius: 5px;
}
#simpleSearch input {
    color: var(--color-body-text);
    background: transparent;
}
/* ============================================================
  SIDEBAR (right side menu — the "nothing on right" you mentioned!)
  ============================================================ */
#mw-panel {
    background: var(--color-box-bg);
    background-image: linear-gradient(180deg, rgba(20, 26, 35, 0.4) 0%, transparent 100%);
    padding: 0.5em;
    border-radius: 8px;
}
#mw-panel .portal {
    background: transparent;
    border: none;
    margin: 0.3em 0;
}
#mw-panel .vector-menu-portal h3 {
    color: var(--bdzone-primary);
    font-weight: 700;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-body-border);
    padding: 0.5em 0.7em 0.3em;
    font-family: 'Rubik', sans-serif;
}
#mw-panel .vector-menu-portal h3 span,
#mw-panel .vector-menu-portal h3 a {
    color: var(--bdzone-primary);
}
#mw-panel .vector-menu-content {
    background: transparent;
    padding: 0.3em 0;
}
#mw-panel .menu .menu-item a {
    color: var(--color-body-text);
    padding: 0.4em 0.7em;
    display: block;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
#mw-panel .menu .menu-item a:hover,
#mw-panel .menu .menu-item a:focus {
    background: var(--color-body-mid);
    color: var(--bdzone-primary-hover);
    text-decoration: none;
}
/* Discord button styling in sidebar */
#mw-panel #n-Wiki-Discord a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 0.5em 5%;
    padding: 0.5em;
    background: linear-gradient(180deg, #5865F2 0%, #4752C4 100%);
    color: #fff !important;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}
#mw-panel #n-Wiki-Discord a:hover {
    background: linear-gradient(180deg, #4752C4 0%, #3c44ad 100%);
}
/* ============================================================
  FRONT PAGE — Wynncraft-style sections
  ============================================================ */
.fpcontent {
.fpcontent {
     display: flex;
     width: 100%;
     flex-direction: column;
     overflow: hidden;
     gap: 1em;
    z-index: 1;
     margin: -10px 0;
}
}


#fptopsection {
#fptopsection,
#fpflexsection,
#fpbottomsection {
     display: flex;
     display: flex;
     flex-direction: column;
     flex-wrap: wrap;
     gap: 1em;
     margin: 0 -5px;
}
}


#fpflexsection {
#fpflexsection {
    display: flex;
     flex-direction: row;
     flex-direction: row;
    gap: 1em;
    flex-wrap: wrap;
}
}


#fpbottomsection {
.fpbox {
     display: flex;
     background: var(--color-box-bg);
     flex-direction: column;
    color: var(--color-body-text);
     gap: 1em;
    border-radius: 10px;
    border: 3px solid var(--color-body-border);
     box-shadow: 0 2px 6px rgba(0,0,0,0.4);
     margin: 10px 5px;
    padding: 1em 1.2em;
    flex: 1 1 300px;
    box-sizing: border-box;
}
}


.fpbox {
.fpbox .welcome {
     background-color: var(--background-color-interactive-subtle, #f8f9fa);
     border-bottom: 2px solid var(--color-body-mid);
     border: 1px solid var(--border-color-base, #a2a9b1);
     font-size: 160%;
     border-radius: 8px;
    font-variant: small-caps;
     padding: 1em;
    font-weight: 500;
     flex: 1 1 300px;
    color: var(--color-title-text);
     margin: 0 0 12px 0;
     padding: 0 0 6px 0;
     text-align: center;
    letter-spacing: 1px;
}
}


.fpbox .heading {
.fpbox .heading {
     font-size: 1.2em;
    border-bottom: 2px solid var(--color-body-mid);
     font-weight: bold;
     font-size: 140%;
     color: #36c;
    font-variant: small-caps;
     margin-bottom: 0.5em;
     font-weight: 500;
     padding-bottom: 0.3em;
     color: var(--color-title-text);
     border-bottom: 2px solid #36c;
     margin: 0 0 12px 0;
     padding: 0 0 6px 0;
    letter-spacing: 1px;
}
 
.fpbox .heading .smalllink {
    font-size: 65%;
     font-weight: normal;
}
}


.fpbox .body {
.fpbox .body {
     line-height: 1.6;
     line-height: 1.65;
    color: var(--color-body-text);
}
 
.fpbox .body a {
    color: var(--bdzone-primary);
}
 
.fpbox .body a:hover {
    color: var(--bdzone-primary-hover);
}
 
.fpbox hr {
    border: none;
    border-bottom: 2px solid var(--color-body-border);
    margin: 0.8em 0;
}
}


Line 50: Line 291:
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 8px;
    margin: -5px;
     gap: 4px;
     justify-content: center;
     justify-content: center;
}
.fplinks .linkslabel {
    background: transparent;
    border-bottom: 2px solid var(--color-body-border);
    margin: 15px 5px 8px;
    padding: 0 0 5px 0;
    color: var(--bdzone-primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
    width: 100%;
}
}


.fplink {
.fplink {
     display: inline-block;
     display: inline-block;
     min-width: 120px;
     vertical-align: middle;
    margin: 0;
    padding: 5px;
}
 
.fplink .box {
    border-collapse: separate;
    border-spacing: 5px;
    display: table;
    table-layout: fixed;
    width: 100%;
}
 
.fplink .box .row {
    display: table-row;
}
 
.fplink .box .row .cell {
    display: table-cell;
    vertical-align: middle;
    background: var(--color-body-mid);
    border-radius: 8px;
    border: 2px solid var(--color-body-border);
    transition: transform 0.2s, border-color 0.2s;
}
 
.fplink .box .row .cell:hover {
    border-color: var(--bdzone-primary);
    transform: translateY(-2px);
}
 
.fplink .box .row .cell .image {
    display: table-cell;
    width: 50px;
    padding: 5px;
    vertical-align: middle;
}
 
.fplink .box .row .cell .image img {
    max-width: 48px;
    max-height: 48px;
    image-rendering: pixelated;
    vertical-align: middle;
}
 
.fplink .box .row .cell .link {
    display: table-cell;
    padding: 8px 12px;
    vertical-align: middle;
}
}


.fplink .box .row .cell .link a {
.fplink .box .row .cell .link a {
    color: var(--color-title-text) !important;
    font-weight: 500;
    text-decoration: none;
     display: block;
     display: block;
    padding: 8px 16px;
}
    background-color: #36c;
 
     color: #fff;
.fplink .box .row .cell .link a:hover {
     color: var(--bdzone-primary-hover) !important;
     text-decoration: none;
     text-decoration: none;
     border-radius: 6px;
}
 
.fplink.wide {
    width: 25%;
    min-width: 180px;
}
 
@media (max-width: 1024px) {
    .fplink.wide { width: 33.33%; }
}
@media (max-width: 768px) {
    .fplink.wide { width: 50%; }
}
@media (max-width: 480px) {
    .fplink.wide { width: 100%; }
}
 
/* Mobile collapsible class toggling */
.mobilecollapsible > .body { display: block; }
 
/* ============================================================
  TABLES (Wiks are mostly tables — important too)
  ============================================================ */
.wikitable {
    color: var(--color-body-text);
    border: none;
    background-color: var(--color-box-bg);
    margin-bottom: 0;
     border-radius: 5px;
}
.wikitable > tr > th,
.wikitable > * > tr > th {
    background-color: var(--color-body-border);
    color: var(--color-title-text);
    text-shadow: 1px 1px 3px black;
    font-size: 105%;
}
.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
    border: 2px solid var(--color-body-border);
    padding: 0.35em 0.6em;
}
.wikitable > caption {
    color: var(--color-title-text);
    font-size: 110%;
    margin-top: 0.5em;
    font-weight: bold;
}
 
/* ============================================================
  INFOGRAPHIC-STYLE INFOBOXES (BD Zone specific styling)
  ============================================================ */
.infobox {
    background-color: var(--color-box-bg);
    border: 3px solid var(--color-body-border);
    border-radius: 8px;
    color: var(--color-body-text);
    padding: 0.5em;
}
 
.infobox-title {
    color: var(--bdzone-primary);
    font-size: 125%;
    font-weight: bold;
     text-align: center;
     text-align: center;
     font-weight: 500;
    background: var(--color-body-mid);
    padding: 6px;
    border-radius: 5px;
}
 
.infobox-header {
    background-color: var(--color-body-mid);
    color: var(--color-title-text);
     font-weight: 600;
    padding: 4px 8px;
    text-align: right;
    width: 35%;
}
 
/* ============================================================
  EDIT / UTILITY BUTTONS
  ============================================================ */
.cdx-button,
.mw-htmlform-submit {
    background-color: var(--bdzone-primary);
    color: #fff !important;
    border-radius: 5px;
    border: none;
    padding: 0.5em 1em;
     transition: background-color 0.2s;
     transition: background-color 0.2s;
}
}


.fplink .box .row .cell .link a:hover {
.cdx-button:hover,
     background-color: #2a4b8d;
.mw-htmlform-submit:hover {
     color: #fff;
     background-color: var(--bdzone-primary-hover);
     text-decoration: none;
}
 
/* ============================================================
  FOOTER & LINKS
  ============================================================ */
#footer {
    background: var(--color-box-bg);
     color: var(--color-body-text);
}
 
#footer a,
#footer li {
    color: var(--color-body-text) !important;
}
 
#footer a:hover {
     color: var(--bdzone-primary-hover) !important;
}
}


.fplink.wide {
/* ============================================================
     min-width: 200px;
  TOC (table of contents)
     flex: 1 1 auto;
  ============================================================ */
.toc {
    background: var(--color-box-bg);
    border: 2px solid var(--color-body-border);
    color: var(--color-body-text);
    border-radius: 8px;
}
.toc h2 {
     background: var(--color-body-mid);
    color: var(--color-title-text);
     border: none;
}
.toc a, .toc a:visited {
    color: var(--bdzone-primary);
}
}


@media screen and (max-width: 720px) {
/* ============================================================
  RESPONSIVE
  ============================================================ */
@media (max-width: 768px) {
     #fpflexsection {
     #fpflexsection {
         flex-direction: column;
         flex-direction: column;
Line 88: Line 515:
     .fpbox {
     .fpbox {
         flex: 1 1 100%;
         flex: 1 1 100%;
        margin: 5px;
    }
    .fplink.wide {
        width: 100%;
     }
     }
}
}

Latest revision as of 19:45, 30 June 2026

/* ============================================================
   BD ZONE WIKI — Theme (Wynncraft-style dark theme)
   ============================================================ */

:root {
    /* BD Zone brand */
    --bdzone-primary: #14b2b8;
    --bdzone-primary-hover: #48e4ea;
    --bdzone-primary-click: #99e250;
    --bdzone-logo: #00d4d4;

    /* Body / content (Wynncraft palette) */
    --color-body-text: #C9E1F2;
    --color-body-bg: #1E252F;
    --color-body-mid: #32445C;
    --color-body-border: #3E5473;
    --color-title-text: #EAF4FA;
    --color-box-bg: #202D3B;

    /* Wynncraft source palette (kept for reuse) */
    --color-wc-darkblue: #080FED;
    --color-wc-darkgreen: #0A0;
    --color-wc-darkaqua: #0AA;
    --color-wc-darkred: #A00;
    --color-wc-darkpurple: #A0A;
    --color-wc-gold: #FA0;
    --color-wc-blue: #55F;
    --color-wc-green: #5F5;
    --color-wc-aqua: #5FF;
    --color-wc-red: #F55;
    --color-wc-purple: #F5F;
    --color-wc-yellow: #FF5;
    --color-wc-cream: #f6e49c;
    --color-wc-crimson: #f94242;
    --color-pure: black;
    --color-plain: white;
}

/* ============================================================
   PAGE BACKGROUND — Dark theme like Wynncraft
   ============================================================ */
body {
    background-color: var(--color-body-bg);
    color: var(--color-body-text);
    font-family: 'Rubik', 'Segoe UI', Helvetica, Arial, sans-serif;
}

#mw-page-base {
    background: linear-gradient(180deg, #141a23 0%, #1E252F 100%);
    border-bottom: 2px solid var(--bdzone-primary);
}

#mw-head {
    background: rgba(20, 26, 35, 0.95);
    border-bottom: 1px solid var(--color-body-border);
}

#content {
    background-color: var(--color-body-bg);
    color: var(--color-body-text);
    border: 1px solid var(--color-body-border);
    border-radius: 0 0 10px 10px;
}

#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
    color: var(--bdzone-primary);
    border-bottom: 1px solid var(--color-body-border);
    font-family: 'Rubik', 'Segoe UI', sans-serif;
}

#content h1 {
    font-size: 1.8em;
    margin-bottom: 0.6em;
}

#content a,
#content a:visited {
    color: var(--bdzone-primary);
    text-decoration: none;
}

#content a:hover,
.vector-menu-tabs .selected a,
.vector-menu-tabs .selected a:visited {
    color: var(--bdzone-primary-hover);
    text-decoration: underline;
}

#content a.new {
    color: var(--color-wc-darkred);
}

#content a.external {
    color: var(--color-wc-blue);
}

/* ============================================================
   HEADER (top bar)
   ============================================================ */
.vector-menu-tabs {
    background: transparent;
}

.vector-menu-tabs li {
    background: transparent;
}

.vector-menu-tabs .selected {
    background: var(--color-box-bg);
    color: var(--bdzone-primary);
    border-radius: 5px 5px 0 0;
}

#p-personal {
    background: transparent;
}

#p-personal a {
    color: var(--color-title-text);
}

/* Search bar */
#simpleSearch {
    background: var(--color-box-bg);
    border: 1px solid var(--color-body-border);
    border-radius: 5px;
}
#simpleSearch input {
    color: var(--color-body-text);
    background: transparent;
}

/* ============================================================
   SIDEBAR (right side menu — the "nothing on right" you mentioned!)
   ============================================================ */
#mw-panel {
    background: var(--color-box-bg);
    background-image: linear-gradient(180deg, rgba(20, 26, 35, 0.4) 0%, transparent 100%);
    padding: 0.5em;
    border-radius: 8px;
}

#mw-panel .portal {
    background: transparent;
    border: none;
    margin: 0.3em 0;
}

#mw-panel .vector-menu-portal h3 {
    color: var(--bdzone-primary);
    font-weight: 700;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-body-border);
    padding: 0.5em 0.7em 0.3em;
    font-family: 'Rubik', sans-serif;
}

#mw-panel .vector-menu-portal h3 span,
#mw-panel .vector-menu-portal h3 a {
    color: var(--bdzone-primary);
}

#mw-panel .vector-menu-content {
    background: transparent;
    padding: 0.3em 0;
}

#mw-panel .menu .menu-item a {
    color: var(--color-body-text);
    padding: 0.4em 0.7em;
    display: block;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

#mw-panel .menu .menu-item a:hover,
#mw-panel .menu .menu-item a:focus {
    background: var(--color-body-mid);
    color: var(--bdzone-primary-hover);
    text-decoration: none;
}

/* Discord button styling in sidebar */
#mw-panel #n-Wiki-Discord a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 0.5em 5%;
    padding: 0.5em;
    background: linear-gradient(180deg, #5865F2 0%, #4752C4 100%);
    color: #fff !important;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}

#mw-panel #n-Wiki-Discord a:hover {
    background: linear-gradient(180deg, #4752C4 0%, #3c44ad 100%);
}

/* ============================================================
   FRONT PAGE — Wynncraft-style sections
   ============================================================ */
.fpcontent {
    width: 100%;
    overflow: hidden;
    z-index: 1;
    margin: -10px 0;
}

#fptopsection,
#fpflexsection,
#fpbottomsection {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

#fpflexsection {
    flex-direction: row;
}

.fpbox {
    background: var(--color-box-bg);
    color: var(--color-body-text);
    border-radius: 10px;
    border: 3px solid var(--color-body-border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    margin: 10px 5px;
    padding: 1em 1.2em;
    flex: 1 1 300px;
    box-sizing: border-box;
}

.fpbox .welcome {
    border-bottom: 2px solid var(--color-body-mid);
    font-size: 160%;
    font-variant: small-caps;
    font-weight: 500;
    color: var(--color-title-text);
    margin: 0 0 12px 0;
    padding: 0 0 6px 0;
    text-align: center;
    letter-spacing: 1px;
}

.fpbox .heading {
    border-bottom: 2px solid var(--color-body-mid);
    font-size: 140%;
    font-variant: small-caps;
    font-weight: 500;
    color: var(--color-title-text);
    margin: 0 0 12px 0;
    padding: 0 0 6px 0;
    letter-spacing: 1px;
}

.fpbox .heading .smalllink {
    font-size: 65%;
    font-weight: normal;
}

.fpbox .body {
    line-height: 1.65;
    color: var(--color-body-text);
}

.fpbox .body a {
    color: var(--bdzone-primary);
}

.fpbox .body a:hover {
    color: var(--bdzone-primary-hover);
}

.fpbox hr {
    border: none;
    border-bottom: 2px solid var(--color-body-border);
    margin: 0.8em 0;
}

.fplinks {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
    gap: 4px;
    justify-content: center;
}

.fplinks .linkslabel {
    background: transparent;
    border-bottom: 2px solid var(--color-body-border);
    margin: 15px 5px 8px;
    padding: 0 0 5px 0;
    color: var(--bdzone-primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
    width: 100%;
}

.fplink {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 5px;
}

.fplink .box {
    border-collapse: separate;
    border-spacing: 5px;
    display: table;
    table-layout: fixed;
    width: 100%;
}

.fplink .box .row {
    display: table-row;
}

.fplink .box .row .cell {
    display: table-cell;
    vertical-align: middle;
    background: var(--color-body-mid);
    border-radius: 8px;
    border: 2px solid var(--color-body-border);
    transition: transform 0.2s, border-color 0.2s;
}

.fplink .box .row .cell:hover {
    border-color: var(--bdzone-primary);
    transform: translateY(-2px);
}

.fplink .box .row .cell .image {
    display: table-cell;
    width: 50px;
    padding: 5px;
    vertical-align: middle;
}

.fplink .box .row .cell .image img {
    max-width: 48px;
    max-height: 48px;
    image-rendering: pixelated;
    vertical-align: middle;
}

.fplink .box .row .cell .link {
    display: table-cell;
    padding: 8px 12px;
    vertical-align: middle;
}

.fplink .box .row .cell .link a {
    color: var(--color-title-text) !important;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

.fplink .box .row .cell .link a:hover {
    color: var(--bdzone-primary-hover) !important;
    text-decoration: none;
}

.fplink.wide {
    width: 25%;
    min-width: 180px;
}

@media (max-width: 1024px) {
    .fplink.wide { width: 33.33%; }
}
@media (max-width: 768px) {
    .fplink.wide { width: 50%; }
}
@media (max-width: 480px) {
    .fplink.wide { width: 100%; }
}

/* Mobile collapsible class toggling */
.mobilecollapsible > .body { display: block; }

/* ============================================================
   TABLES (Wiks are mostly tables — important too)
   ============================================================ */
.wikitable {
    color: var(--color-body-text);
    border: none;
    background-color: var(--color-box-bg);
    margin-bottom: 0;
    border-radius: 5px;
}
.wikitable > tr > th,
.wikitable > * > tr > th {
    background-color: var(--color-body-border);
    color: var(--color-title-text);
    text-shadow: 1px 1px 3px black;
    font-size: 105%;
}
.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
    border: 2px solid var(--color-body-border);
    padding: 0.35em 0.6em;
}
.wikitable > caption {
    color: var(--color-title-text);
    font-size: 110%;
    margin-top: 0.5em;
    font-weight: bold;
}

/* ============================================================
   INFOGRAPHIC-STYLE INFOBOXES (BD Zone specific styling)
   ============================================================ */
.infobox {
    background-color: var(--color-box-bg);
    border: 3px solid var(--color-body-border);
    border-radius: 8px;
    color: var(--color-body-text);
    padding: 0.5em;
}

.infobox-title {
    color: var(--bdzone-primary);
    font-size: 125%;
    font-weight: bold;
    text-align: center;
    background: var(--color-body-mid);
    padding: 6px;
    border-radius: 5px;
}

.infobox-header {
    background-color: var(--color-body-mid);
    color: var(--color-title-text);
    font-weight: 600;
    padding: 4px 8px;
    text-align: right;
    width: 35%;
}

/* ============================================================
   EDIT / UTILITY BUTTONS
   ============================================================ */
.cdx-button,
.mw-htmlform-submit {
    background-color: var(--bdzone-primary);
    color: #fff !important;
    border-radius: 5px;
    border: none;
    padding: 0.5em 1em;
    transition: background-color 0.2s;
}

.cdx-button:hover,
.mw-htmlform-submit:hover {
    background-color: var(--bdzone-primary-hover);
}

/* ============================================================
   FOOTER & LINKS
   ============================================================ */
#footer {
    background: var(--color-box-bg);
    color: var(--color-body-text);
}

#footer a,
#footer li {
    color: var(--color-body-text) !important;
}

#footer a:hover {
    color: var(--bdzone-primary-hover) !important;
}

/* ============================================================
   TOC (table of contents)
   ============================================================ */
.toc {
    background: var(--color-box-bg);
    border: 2px solid var(--color-body-border);
    color: var(--color-body-text);
    border-radius: 8px;
}
.toc h2 {
    background: var(--color-body-mid);
    color: var(--color-title-text);
    border: none;
}
.toc a, .toc a:visited {
    color: var(--bdzone-primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    #fpflexsection {
        flex-direction: column;
    }
    .fpbox {
        flex: 1 1 100%;
        margin: 5px;
    }
    .fplink.wide {
        width: 100%;
    }
}