Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main Page/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
/**
/* Main Page Styles for ComputerScience.wiki
* ComputerScience.wiki Main Page Styles
  * Based exactly on the original MediaWiki styles
  * Using direct styling approach from GitHub MediaWiki-Common.css
  */
  */


/* Main Page Components */
/* Base styles */
.mp-box {
.mp-box {
  background: #f8f9fa;
    border: 1px solid #aaa; /* all colors overridden on specific elements in @media screen */
  border: 1px solid #a2a9b1;
    padding: 0 0.5em 0.5em;
  margin: 0 0 1em;
    margin-top: 4px;
  padding: 1em;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
}


.skin-citizen-dark .mp-box {
.mp-h2, body.skin-timeless .mp-h2 {
  background: #1f2937;
    border: 1px solid #aaa; /* all colors overridden on specific elements in @media screen */
  border-color: #374151;
    margin: 0.5em 0;
    padding: 0.2em 0.4em;
    font-size: 120%;
    font-weight: bold;
    font-family: inherit;
}
}


/* Section headers */
.mp-later {
.mp-h2 {
    font-size: 85%;
  font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    font-weight: normal;
  padding: 0.5em;
  margin: 0.5em 0 0.5em;
  border-bottom: 1px solid #a2a9b1;
  color: #2e51a3;
  font-size: 1.5em;
  font-weight: normal;
}
}


.skin-citizen-dark .mp-h2 {
#mp-welcomecount {
  color: #8ab4f8;
    text-align: center;
  border-color: #374151;
    margin: 0.4em;
}
}


.mp-h2 span {
#mp-welcome {
  padding-right: 0.5em;
    font-size: 162%;
    padding: 0.1em;
}
}


.mp-contains-float {
#mp-welcome h1, #mp-welcome .mw-heading1 {
  overflow: auto;
    font-size: inherit;
}
    font-family: inherit;
 
    display: inline;
/* Main page layout */
    border: none;
.MainPageBG {
  background: #ffffff;
  border: 1px solid #a2a9b1;
  padding: 1em;
  border-radius: 4px;
}
 
.skin-citizen-dark .MainPageBG {
  background: #111827;
  border-color: #374151;
}
 
#mp-upper,
#mp-middle,
#mp-lower {
  overflow: auto;
  margin-bottom: 1.4em;
}
 
#mp-upper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
 
#mp-left,
#mp-right {
  flex: 1;
  min-width: 300px;
}
 
/* Top Banner */
#mp-topbanner {
  background: linear-gradient(135deg, #2e51a3, #4c6fc6);
  color: #ffffff;
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  border: none;
}
 
.skin-citizen-dark #mp-topbanner {
  background: linear-gradient(135deg, #375694, #2c4273);
}
 
#mp-welcome h1 {
  font-size: 2.3rem;
  margin: 0 0 8px;
  font-weight: 700;
}
}


#mp-free {
#mp-free {
  font-size: 1.2rem;
    font-size: 95%;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}
}


/* Search Box */
#articlecount {
.mp-search-container {
    font-size: 85%;
  max-width: 650px;
  margin: -24px auto 32px;
  position: relative;
  z-index: 5;
}
}


.mp-search-box {
#articlecount > ul {
  background-color: #ffffff;
    margin: 0;
  border: 1px solid #dfe1e5;
    padding: 0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
}


.skin-citizen-dark .mp-search-box {
#articlecount > ul > li {
  background-color: #111827;
    margin: 0;
  border-color: #374151;
    display: inline;
}
}


/* Section Headings */
#articlecount > ul > li::after {
.mp-section-heading {
    content: " · ";
  font-size: 1.6rem;
    font-weight: bold;
  font-weight: 700;
  margin: 32px 0 24px;
  text-align: center;
  color: #2e51a3;
  position: relative;
}
}


.skin-citizen-dark .mp-section-heading {
#articlecount > ul > li:last-child::after {
  color: #8ab4f8;
    content: "";
}
}


.mp-section-heading:after {
#mp-banner {
  content: "";
    text-align: center;
  display: block;
    padding-top: 0.5em;
  width: 60px;
  height: 3px;
  background: #4c6fc6;
  margin: 10px auto 0;
  border-radius: 1px;
}
}


.skin-citizen-dark .mp-section-heading:after {
/* clear fix */
  background: #8ab4f8;
.mp-contains-float::after {
}
    content: "";
 
    display: block;
/* Category Layout */
    clear: both;
#mp-categories-container {
  margin: 32px 0;
}
}


/* Category Styles - New additions */
.mp-category-row {
.mp-category-row {
  display: flex;
    display: flex;
  flex-wrap: wrap;
    flex-wrap: wrap;
  margin: 0 -10px 20px;
    margin: 10px 0;
    gap: 15px;
}
}


/* Category Cards */
.mp-category-card {
.mp-category-card {
  background-color: #ffffff;
    border: 1px solid #aaa;
  border-radius: 8px;
    border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 15px;
  padding: 20px;
    flex: 1;
  flex: 1;
    min-width: 200px;
  min-width: 250px;
  max-width: 350px;
  border: 1px solid #eaecef;
  margin: 0 10px 20px;
  transition: box-shadow 0.2s;
}
 
.skin-citizen-dark .mp-category-card {
  background-color: #111827;
  border-color: #374151;
}
 
.mp-category-card:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
}


/* Category Header with Icon and Title on same line */
/* Category Header with Icon and Title on same line */
.mp-category-header {
.mp-category-header {
  display: flex;
    display: flex;
  align-items: center;
    align-items: center;
  margin-bottom: 16px;
    margin-bottom: 12px;
}
}


.mp-category-icon {
.mp-category-icon {
  font-size: 24px;
    font-size: 22px;
  margin-right: 12px;
    margin-right: 10px;
}
}


.mp-category-title {
.mp-category-title {
  font-size: 1.25rem;
    font-size: 1.1rem;
  font-weight: 600;
    font-weight: 600;
  margin: 0;
    margin: 0;
  color: #2e51a3;
}
 
.skin-citizen-dark .mp-category-title {
  color: #8ab4f8;
}
}


.mp-category-list {
.mp-category-list {
  list-style: none;
    list-style: none;
  padding: 0;
    padding: 0;
  margin: 0;
    margin: 0;
}
}


.mp-category-list li {
.mp-category-list li {
  padding: 8px 0;
    padding: 6px 0;
  border-bottom: 1px solid #eaecef;
    border-bottom: 1px solid #eee;
}
 
.skin-citizen-dark .mp-category-list li {
  border-bottom: 1px solid #374151;
}
}


.mp-category-list li:last-child {
.mp-category-list li:last-child {
  border-bottom: none;
    border-bottom: none;
  margin-top: 10px;
    margin-top: 8px;
  font-weight: 500;
    font-weight: 500;
  color: #2e51a3;
}
}


.skin-citizen-dark .mp-category-list li:last-child {
/* Layout adjustments */
  color: #8ab4f8;
@media (max-width: 875px) {
}
    /* We need to improve Template:POTD as used on the main page so that these
    * hacks aren't necessary */
    #mp-tfp table,
    #mp-tfp tr,
    #mp-tfp td,
    #mp-tfp tbody {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }


/* Feature & Trending Grids */
    #mp-tfp tr:first-child td:first-child a.mw-file-description {
.mp-featured-grid,
        text-align: center;
.mp-trending-grid,
        display: table;
.mp-paths-grid {
        margin: 0 auto;
  display: flex;
    }
  flex-wrap: wrap;
   
  margin: 0 -12px;
    #articlecount > ul > li::after {
  padding: 20px 0;
        content: "";
        font-weight: normal;
    }
   
    #articlecount > ul > li {
        display: block;
    }
}
}


.mp-featured-grid > *,
@media (min-width: 875px) {
.mp-trending-grid > *,
    #mp-upper {
.mp-paths-grid > * {
        display: flex;
  flex: 1 1 300px;
    }
  margin: 0 12px 24px;
   
  min-width: 250px;
    #mp-left {
        flex: 1 1 55%;
        margin-right: 2px;
    }
   
    #mp-right {
        flex: 1 1 45%;
        margin-left: 2px;
    }
}
}


/* Community Section */
/* Light theme colors */
.mp-community-flex {
@media screen {
  display: flex;
    #mp-topbanner {
  flex-wrap: wrap;
        background-color: #f9f9f9;
  margin: 0 -12px;
        border-color: #ddd;
}
    }
   
    #mp-banner {
        background-color: #fffaf5;
        border-color: #f2e0ce;
    }
   
    #mp-left {
        background-color: #f5fffa;
        border-color: #cef2e0;
    }
   
    #mp-left .mp-h2 {
        background-color: #cef2e0;
        border-color: #a3bfb1;
    }
   
    #mp-right {
        background-color: #f5faff;
        border-color: #cedff2;
    }
   
    #mp-right .mp-h2 {
        background-color: #cedff2;
        border-color: #a3b0bf;
    }
   
    #mp-middle {
        background-color: #fff5fa;
        border-color: #f2cedd;
    }
   
    #mp-middle .mp-h2 {
        background-color: #f2cedd;
        border-color: #bfa3af;
    }
   
    #mp-lower {
        background-color: #faf5ff;
        border-color: #ddcef2;
    }
   
    #mp-lower .mp-h2 {
        background-color: #ddcef2;
        border-color: #afa3bf;
    }
   
    #mp-bottom {
        /* no background */
        border-color: #e2e2e2;
    }
   
    #mp-bottom .mp-h2 {
        background-color: #eee;
        border-color: #ddd;
    }


.mp-community-card {
    /* Category card styles for light mode */
  flex: 1 1 300px;
    .mp-category-card {
  min-width: 250px;
        background-color: white;
  background-color: #ffffff;
        border-color: #eaecef;
  border-radius: 8px;
    }
  padding: 20px;
   
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    .mp-category-title {
  border: 1px solid #eaecef;
        color: #2e51a3;
  margin: 0 12px 24px;
    }
}
   
    .mp-category-list li {
        border-color: #eaecef;
    }
   
    .mp-category-list li:last-child {
        color: #2e51a3;
    }


.skin-citizen-dark .mp-community-card {
    /* night mode - exactly as in the original CSS */
  background-color: #111827;
    html.skin-theme-clientpref-night #mp-topbanner,
  border-color: #374151;
    .skin-citizen-dark #mp-topbanner {
}
        background-color: #171a1d;
        border-color: #676767;
    }
   
    html.skin-theme-clientpref-night #mp-banner,
    .skin-citizen-dark #mp-banner {
        background-color: #331a00;
        border-color: #663428;
    }
   
    html.skin-theme-clientpref-night #mp-left,
    .skin-citizen-dark #mp-left {
        background-color: #0b1e1c;
        border-color: #104437;
    }
   
    html.skin-theme-clientpref-night #mp-left .mp-h2,
    .skin-citizen-dark #mp-left .mp-h2 {
        background-color: #104437;
        border-color: #2f4d41;
    }
   
    html.skin-theme-clientpref-night #mp-right,
    .skin-citizen-dark #mp-right {
        background-color: #0d1a27;
        border-color: #082849;
    }
   
    html.skin-theme-clientpref-night #mp-right .mp-h2,
    .skin-citizen-dark #mp-right .mp-h2 {
        background-color: #082849;
        border-color: #a3b0bf;
    }
   
    html.skin-theme-clientpref-night #mp-middle,
    .skin-citizen-dark #mp-middle {
        background-color: #270e1a;
        border-color: #882c43;
    }
   
    html.skin-theme-clientpref-night #mp-middle .mp-h2,
    .skin-citizen-dark #mp-middle .mp-h2 {
        background-color: #882c43;
        border-color: #926c80;
    }
   
    html.skin-theme-clientpref-night #mp-lower,
    .skin-citizen-dark #mp-lower {
        background-color: #130e20;
        border-color: #7545ab;
    }
   
    html.skin-theme-clientpref-night #mp-lower .mp-h2,
    .skin-citizen-dark #mp-lower .mp-h2 {
        background-color: #7545ab;
        border-color: #afa3bf;
    }
   
    html.skin-theme-clientpref-night #mp-bottom,
    .skin-citizen-dark #mp-bottom {
        /* no background */
        border-color: #676767;
    }
   
    html.skin-theme-clientpref-night #mp-bottom .mp-h2,
    .skin-citizen-dark #mp-bottom .mp-h2 {
        background-color: #3d3d3d;
        border-color: #676767;
    }


.mp-community-card h3 {
    /* Category card styles for dark mode */
  font-size: 1.1rem;
    html.skin-theme-clientpref-night .mp-category-card,
  margin-top: 0;
    .skin-citizen-dark .mp-category-card {
  margin-bottom: 16px;
        background-color: #111827;
  padding-bottom: 10px;
        border-color: #374151;
  border-bottom: 1px solid #eaecef;
    }
  color: #2e51a3;
   
    html.skin-theme-clientpref-night .mp-category-title,
    .skin-citizen-dark .mp-category-title {
        color: #8ab4f8;
    }
   
    html.skin-theme-clientpref-night .mp-category-list li,
    .skin-citizen-dark .mp-category-list li {
        border-color: #374151;
    }
   
    html.skin-theme-clientpref-night .mp-category-list li:last-child,
    .skin-citizen-dark .mp-category-list li:last-child {
        color: #8ab4f8;
    }
}
}


.skin-citizen-dark .mp-community-card h3 {
/* OS night mode - exactly as in the original CSS */
  border-bottom: 1px solid #374151;
@media screen and (prefers-color-scheme: dark) {
  color: #8ab4f8;
    html.skin-theme-clientpref-os #mp-topbanner {
}
        background-color: #171a1d;
        border-color: #676767;
    }
   
    html.skin-theme-clientpref-os #mp-banner {
        background-color: #331a00;
        border-color: #663428;
    }
   
    html.skin-theme-clientpref-os #mp-left {
        background-color: #0b1e1c;
        border-color: #104437;
    }
   
    html.skin-theme-clientpref-os #mp-left .mp-h2 {
        background-color: #104437;
        border-color: #2f4d41;
    }
   
    html.skin-theme-clientpref-os #mp-right {
        background-color: #0d1a27;
        border-color: #082849;
    }
   
    html.skin-theme-clientpref-os #mp-right .mp-h2 {
        background-color: #082849;
        border-color: #a3b0bf;
    }
   
    html.skin-theme-clientpref-os #mp-middle {
        background-color: #270e1a;
        border-color: #882c43;
    }
   
    html.skin-theme-clientpref-os #mp-middle .mp-h2 {
        background-color: #882c43;
        border-color: #926c80;
    }
   
    html.skin-theme-clientpref-os #mp-lower {
        background-color: #130e20;
        border-color: #7545ab;
    }
   
    html.skin-theme-clientpref-os #mp-lower .mp-h2 {
        background-color: #7545ab;
        border-color: #afa3bf;
    }
   
    html.skin-theme-clientpref-os #mp-bottom {
        /* no background */
        border-color: #676767;
    }
   
    html.skin-theme-clientpref-os #mp-bottom .mp-h2 {
        background-color: #3d3d3d;
        border-color: #676767;
    }


.mp-community-card ul {
    /* Category cards for OS dark mode */
  padding-left: 20px;
    html.skin-theme-clientpref-os .mp-category-card {
  margin: 0;
        background-color: #111827;
}
        border-color: #374151;
 
    }
.mp-community-card li {
   
  margin-bottom: 8px;
    html.skin-theme-clientpref-os .mp-category-title {
}
        color: #8ab4f8;
 
    }
/* Statistics Section */
   
.mp-statistics-container {
    html.skin-theme-clientpref-os .mp-category-list li {
  display: flex;
        border-color: #374151;
  flex-wrap: wrap;
    }
  margin: 0 -12px;
   
}
    html.skin-theme-clientpref-os .mp-category-list li:last-child {
 
        color: #8ab4f8;
.mp-stat-card {
     }
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 20px;
  min-width: 140px;
  text-align: center;
  border: 1px solid #eaecef;
  flex: 1 1 140px;
  margin: 0 12px 24px;
}
 
.skin-citizen-dark .mp-stat-card {
  background-color: #111827;
  border-color: #374151;
}
 
.mp-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2e51a3;
  margin-bottom: 8px;
}
 
.skin-citizen-dark .mp-stat-number {
  color: #8ab4f8;
}
 
.mp-stat-label {
  font-size: 0.95rem;
  color: #586069;
}
 
.skin-citizen-dark .mp-stat-label {
  color: #9ca3af;
}
 
/* Responsive Adjustments */
@media (max-width: 768px) {
  #mp-upper {
    display: block;
  }
 
  .mp-category-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
 
  #mp-welcome h1 {
    font-size: 1.8rem;
  }
 
  .mp-section-heading {
     font-size: 1.4rem;
  }
}
}

Revision as of 17:33, 10 August 2025

/* Main Page Styles for ComputerScience.wiki
 * Based exactly on the original MediaWiki styles
 */

/* Base styles */
.mp-box {
    border: 1px solid #aaa; /* all colors overridden on specific elements in @media screen */
    padding: 0 0.5em 0.5em;
    margin-top: 4px;
}

.mp-h2, body.skin-timeless .mp-h2 {
    border: 1px solid #aaa; /* all colors overridden on specific elements in @media screen */
    margin: 0.5em 0;
    padding: 0.2em 0.4em;
    font-size: 120%;
    font-weight: bold;
    font-family: inherit;
}

.mp-later {
    font-size: 85%;
    font-weight: normal;
}

#mp-welcomecount {
    text-align: center;
    margin: 0.4em;
}

#mp-welcome {
    font-size: 162%;
    padding: 0.1em;
}

#mp-welcome h1, #mp-welcome .mw-heading1 {
    font-size: inherit;
    font-family: inherit;
    display: inline;
    border: none;
}

#mp-free {
    font-size: 95%;
}

#articlecount {
    font-size: 85%;
}

#articlecount > ul {
    margin: 0;
    padding: 0;
}

#articlecount > ul > li {
    margin: 0;
    display: inline;
}

#articlecount > ul > li::after {
    content: " · ";
    font-weight: bold;
}

#articlecount > ul > li:last-child::after {
    content: "";
}

#mp-banner {
    text-align: center;
    padding-top: 0.5em;
}

/* clear fix */
.mp-contains-float::after {
    content: "";
    display: block;
    clear: both;
}

/* Category Styles - New additions */
.mp-category-row {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0;
    gap: 15px;
}

.mp-category-card {
    border: 1px solid #aaa;
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    min-width: 200px;
}

/* Category Header with Icon and Title on same line */
.mp-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.mp-category-icon {
    font-size: 22px;
    margin-right: 10px;
}

.mp-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.mp-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mp-category-list li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.mp-category-list li:last-child {
    border-bottom: none;
    margin-top: 8px;
    font-weight: 500;
}

/* Layout adjustments */
@media (max-width: 875px) {
    /* We need to improve Template:POTD as used on the main page so that these
     * hacks aren't necessary */
    #mp-tfp table,
    #mp-tfp tr,
    #mp-tfp td,
    #mp-tfp tbody {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    #mp-tfp tr:first-child td:first-child a.mw-file-description {
        text-align: center;
        display: table;
        margin: 0 auto;
    }
    
    #articlecount > ul > li::after {
        content: "";
        font-weight: normal;
    }
    
    #articlecount > ul > li {
        display: block;
    }
}

@media (min-width: 875px) {
    #mp-upper {
        display: flex;
    }
    
    #mp-left {
        flex: 1 1 55%;
        margin-right: 2px;
    }
    
    #mp-right {
        flex: 1 1 45%;
        margin-left: 2px;
    }
}

/* Light theme colors */
@media screen {
    #mp-topbanner {
        background-color: #f9f9f9;
        border-color: #ddd;
    }
    
    #mp-banner {
        background-color: #fffaf5;
        border-color: #f2e0ce;
    }
    
    #mp-left {
        background-color: #f5fffa;
        border-color: #cef2e0;
    }
    
    #mp-left .mp-h2 {
        background-color: #cef2e0;
        border-color: #a3bfb1;
    }
    
    #mp-right {
        background-color: #f5faff;
        border-color: #cedff2;
    }
    
    #mp-right .mp-h2 {
        background-color: #cedff2;
        border-color: #a3b0bf;
    }
    
    #mp-middle {
        background-color: #fff5fa;
        border-color: #f2cedd;
    }
    
    #mp-middle .mp-h2 {
        background-color: #f2cedd;
        border-color: #bfa3af;
    }
    
    #mp-lower {
        background-color: #faf5ff;
        border-color: #ddcef2;
    }
    
    #mp-lower .mp-h2 {
        background-color: #ddcef2;
        border-color: #afa3bf;
    }
    
    #mp-bottom {
        /* no background */
        border-color: #e2e2e2;
    }
    
    #mp-bottom .mp-h2 {
        background-color: #eee;
        border-color: #ddd;
    }

    /* Category card styles for light mode */
    .mp-category-card {
        background-color: white;
        border-color: #eaecef;
    }
    
    .mp-category-title {
        color: #2e51a3;
    }
    
    .mp-category-list li {
        border-color: #eaecef;
    }
    
    .mp-category-list li:last-child {
        color: #2e51a3;
    }

    /* night mode - exactly as in the original CSS */
    html.skin-theme-clientpref-night #mp-topbanner,
    .skin-citizen-dark #mp-topbanner {
        background-color: #171a1d;
        border-color: #676767;
    }
    
    html.skin-theme-clientpref-night #mp-banner,
    .skin-citizen-dark #mp-banner {
        background-color: #331a00;
        border-color: #663428;
    }
    
    html.skin-theme-clientpref-night #mp-left,
    .skin-citizen-dark #mp-left {
        background-color: #0b1e1c;
        border-color: #104437;
    }
    
    html.skin-theme-clientpref-night #mp-left .mp-h2,
    .skin-citizen-dark #mp-left .mp-h2 {
        background-color: #104437;
        border-color: #2f4d41;
    }
    
    html.skin-theme-clientpref-night #mp-right,
    .skin-citizen-dark #mp-right {
        background-color: #0d1a27;
        border-color: #082849;
    }
    
    html.skin-theme-clientpref-night #mp-right .mp-h2,
    .skin-citizen-dark #mp-right .mp-h2 {
        background-color: #082849;
        border-color: #a3b0bf;
    }
    
    html.skin-theme-clientpref-night #mp-middle,
    .skin-citizen-dark #mp-middle {
        background-color: #270e1a;
        border-color: #882c43;
    }
    
    html.skin-theme-clientpref-night #mp-middle .mp-h2,
    .skin-citizen-dark #mp-middle .mp-h2 {
        background-color: #882c43;
        border-color: #926c80;
    }
    
    html.skin-theme-clientpref-night #mp-lower,
    .skin-citizen-dark #mp-lower {
        background-color: #130e20;
        border-color: #7545ab;
    }
    
    html.skin-theme-clientpref-night #mp-lower .mp-h2,
    .skin-citizen-dark #mp-lower .mp-h2 {
        background-color: #7545ab;
        border-color: #afa3bf;
    }
    
    html.skin-theme-clientpref-night #mp-bottom,
    .skin-citizen-dark #mp-bottom {
        /* no background */
        border-color: #676767;
    }
    
    html.skin-theme-clientpref-night #mp-bottom .mp-h2,
    .skin-citizen-dark #mp-bottom .mp-h2 {
        background-color: #3d3d3d;
        border-color: #676767;
    }

    /* Category card styles for dark mode */
    html.skin-theme-clientpref-night .mp-category-card,
    .skin-citizen-dark .mp-category-card {
        background-color: #111827;
        border-color: #374151;
    }
    
    html.skin-theme-clientpref-night .mp-category-title,
    .skin-citizen-dark .mp-category-title {
        color: #8ab4f8;
    }
    
    html.skin-theme-clientpref-night .mp-category-list li,
    .skin-citizen-dark .mp-category-list li {
        border-color: #374151;
    }
    
    html.skin-theme-clientpref-night .mp-category-list li:last-child,
    .skin-citizen-dark .mp-category-list li:last-child {
        color: #8ab4f8;
    }
}

/* OS night mode - exactly as in the original CSS */
@media screen and (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os #mp-topbanner {
        background-color: #171a1d;
        border-color: #676767;
    }
    
    html.skin-theme-clientpref-os #mp-banner {
        background-color: #331a00;
        border-color: #663428;
    }
    
    html.skin-theme-clientpref-os #mp-left {
        background-color: #0b1e1c;
        border-color: #104437;
    }
    
    html.skin-theme-clientpref-os #mp-left .mp-h2 {
        background-color: #104437;
        border-color: #2f4d41;
    }
    
    html.skin-theme-clientpref-os #mp-right {
         background-color: #0d1a27;
         border-color: #082849;
    }
    
    html.skin-theme-clientpref-os #mp-right .mp-h2 {
        background-color: #082849;
        border-color: #a3b0bf;
    }
    
    html.skin-theme-clientpref-os #mp-middle {
        background-color: #270e1a;
        border-color: #882c43;
    }
    
    html.skin-theme-clientpref-os #mp-middle .mp-h2 {
        background-color: #882c43;
        border-color: #926c80;
    }
    
    html.skin-theme-clientpref-os #mp-lower {
        background-color: #130e20;
        border-color: #7545ab;
    }
    
    html.skin-theme-clientpref-os #mp-lower .mp-h2 {
        background-color: #7545ab;
        border-color: #afa3bf;
    }
    
    html.skin-theme-clientpref-os #mp-bottom {
        /* no background */
        border-color: #676767;
    }
    
    html.skin-theme-clientpref-os #mp-bottom .mp-h2 {
        background-color: #3d3d3d;
        border-color: #676767;
    }

    /* Category cards for OS dark mode */
    html.skin-theme-clientpref-os .mp-category-card {
        background-color: #111827;
        border-color: #374151;
    }
    
    html.skin-theme-clientpref-os .mp-category-title {
        color: #8ab4f8;
    }
    
    html.skin-theme-clientpref-os .mp-category-list li {
        border-color: #374151;
    }
    
    html.skin-theme-clientpref-os .mp-category-list li:last-child {
        color: #8ab4f8;
    }
}