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
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Main Page Styles */
/**
#mp-topbanner {
* ComputerScience.wiki - Final Fix
    background-color: #f8f9fa;
* 1. Responsive Grid
    padding: 0.5em;
* 2. EXACT colors from your original file
    margin-bottom: 1em;
* 3. FIX: Added 'clientpref-os' for automatic dark mode support
    border-radius: 5px;
*/
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


#mp-welcome {
/* --- 1. CONTAINER & TYPOGRAPHY --- */
     font-size: 1.2em;
.cs-container {
     margin: 0;
     max-width: 1200px;
     text-align: center;
     margin: 0 auto;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 0 10px;
}
}


#mp-welcome h1 {
/* --- 2. HEADER --- */
    margin: 0.2em 0;
.cs-header {
    border-bottom: none;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    font-size: 1.7em;
}
 
#mp-free {
     text-align: center;
     text-align: center;
     font-size: 1.1em;
     padding: 30px 20px;
     margin-bottom: 0.5em;
     margin-bottom: 30px;
    color: #54595d;
     border-radius: 8px;
}
     background-color: #f9f9f9;
 
     border: 1px solid #ddd;
#articlecount {
     text-align: center;
     font-size: 0.9em;
     color: #72777d;
}
}


#articlecount ul {
.cs-title {
    font-size: 2em;
    font-weight: 700;
     margin: 0;
     margin: 0;
     display: inline-block;
     color: #000;
     list-style: none;
     border: none;
    padding-left: 0;
}
}


#articlecount li {
.cs-subtitle {
     display: inline-block;
     font-size: 1.1em;
     margin: 0 1em;
    font-weight: normal;
     margin: 10px 0 0;
    color: #444;
}
}


.mp-box {
/* --- 3. SEARCH BAR --- */
     margin-bottom: 1em;
.cs-search {
     padding: 0;
     max-width: 800px;
     border-radius: 5px;
    margin: 0 auto 40px;
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
     padding: 25px;
     border-radius: 8px;
     background-color: #f5f5f5;
    border: 1px solid #ddd;
}
}


.mp-h2 {
.cs-search input[type="search"],
     margin: 0;
.cs-search .mw-searchInput {
     padding: 0.5em;
     background-color: #ffffff !important;
     border-bottom: none;
     border: 1px solid #ddd !important;
     border-top-left-radius: 5px;
     height: 40px !important;
     border-top-right-radius: 5px;
     padding: 5px 12px !important;
     font-size: 1.3em;
     border-radius: 4px !important;
     font-weight: bold;
     font-size: 16px !important;
     color: white;
     color: #333 !important;
     width: 100% !important;
}
}


#mp-tfa-h2, #mp-dyk-h2 {
.cs-search input[type="submit"],
     background: linear-gradient(to right, #36c, #1a6399);
.cs-search .oo-ui-buttonElement-button {
    min-width: 80px !important;
     background-color: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    height: 40px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: #333 !important;
}
}


#mp-itn-h2, #mp-otd-h2 {
.cs-search input[name="fulltext"] { display: none !important; }
    background: linear-gradient(to right, #c36, #9a1c43);
}


#mp-tfl-h2 {
/* --- 4. GRID LAYOUT --- */
     background: linear-gradient(to right, #36b, #274c89);
.cs-grid {
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
}


#mp-tfp-h2 {
/* --- 5. CARDS & SECTIONS (Light Mode Defaults) --- */
    background: linear-gradient(to right, #4caf50, #2e7d32);
.cs-section { margin-bottom: 30px; }
}
.cs-section-header { padding: 12px 15px; margin-bottom: 20px; border-radius: 6px; }
.cs-section-title { margin: 0; font-size: 1.3em; font-weight: 600; border: none; }


#mp-other {
.cs-card {
     background: linear-gradient(to right, #673ab7, #4527a0);
     border-radius: 6px;
     color: white;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-width: 1px;
    border-style: solid;
     transition: transform 0.2s;
}
}


#mp-sister {
.cs-card:hover { transform: translateY(-3px); }
    background: linear-gradient(to right, #ff9800, #e65100);
    color: white;
}


#mp-lang {
.cs-card-header { padding: 12px 15px; }
    background: linear-gradient(to right, #607d8b, #455a64);
.cs-card-title { margin: 0; font-size: 1.1em; font-weight: 600; border: none; }
    color: white;
.cs-card-body { padding: 15px; flex-grow: 1; }
}
.cs-card-list { margin: 0; padding: 0 0 0 10px; list-style: none; }
.cs-card-list li { margin-bottom: 8px; }
.cs-card-footer { padding: 8px 15px; text-align: right; font-weight: bold; }
.cs-card-footer a { text-decoration: none; }


.mp-contains-float {
/* ========================================================= */
    padding: 0.5em;
/* === COLOR THEMES (Light Mode) === */
}
/* ========================================================= */


#mp-tfa, #mp-dyk {
/* PROGRAMMING (Green) */
    background-color: #f8f9fa;
.cs-section.prog .cs-section-header { background-color: #cef2e0; border: 1px solid #cef2e0; }
}
.cs-section.prog .cs-card { background-color: #f5fffa; border-color: #cef2e0; }
.cs-section.prog .cs-card-header { background-color: #cef2e0; border-bottom: 1px solid #cef2e0; }
.cs-section.prog .cs-card-footer { background-color: #f5fffa; border-top: 1px solid #cef2e0; }
.cs-section.prog .cs-card-footer a { color: #2e8b57; }


#mp-itn, #mp-otd {
/* DATA SCIENCE (Blue) */
    background-color: #fef6f9;
.cs-section.data .cs-section-header { background-color: #cedff2; border: 1px solid #cedff2; }
}
.cs-section.data .cs-card { background-color: #f5faff; border-color: #cedff2; }
.cs-section.data .cs-card-header { background-color: #cedff2; border-bottom: 1px solid #cedff2; }
.cs-section.data .cs-card-footer { background-color: #f5faff; border-top: 1px solid #cedff2; }
.cs-section.data .cs-card-footer a { color: #4169e1; }


#mp-tfl {
/* DATABASES (Pink) */
    background-color: #f5f8fa;
.cs-section.db .cs-section-header { background-color: #f2cedd; border: 1px solid #f2cedd; }
}
.cs-section.db .cs-card { background-color: #fff5fa; border-color: #f2cedd; }
.cs-section.db .cs-card-header { background-color: #f2cedd; border-bottom: 1px solid #f2cedd; }
.cs-section.db .cs-card-footer { background-color: #fff5fa; border-top: 1px solid #f2cedd; }
.cs-section.db .cs-card-footer a { color: #db7093; }


#mp-tfp {
/* INFRASTRUCTURE (Purple) */
    background-color: #f1f8e9;
.cs-section.inf .cs-section-header { background-color: #ddcef2; border: 1px solid #ddcef2; }
}
.cs-section.inf .cs-card { background-color: #faf5ff; border-color: #ddcef2; }
.cs-section.inf .cs-card-header { background-color: #ddcef2; border-bottom: 1px solid #ddcef2; }
.cs-section.inf .cs-card-footer { background-color: #faf5ff; border-top: 1px solid #ddcef2; }
.cs-section.inf .cs-card-footer a { color: #8a2be2; }


#mp-other-content {
/* FUNDAMENTALS (Orange) */
    background-color: #f3e5f5;
.cs-section.fund .cs-section-header { background-color: #f2e0ce; border: 1px solid #f2e0ce; }
    padding: 0.5em;
.cs-section.fund .cs-card { background-color: #fffaf5; border-color: #f2e0ce; }
}
.cs-section.fund .cs-card-header { background-color: #f2e0ce; border-bottom: 1px solid #f2e0ce; }
.cs-section.fund .cs-card-footer { background-color: #fffaf5; border-top: 1px solid #f2e0ce; }
.cs-section.fund .cs-card-footer a { color: #d2691e; }


#mp-sister-content {
/* COMMUNITY (Grey) */
    background-color: #fff3e0;
.cs-section.comm .cs-section-header { background-color: #eee; border: 1px solid #eee; }
    padding: 0.5em;
.cs-section.comm .cs-card { background-color: #f9f9f9; border-color: #eee; }
}
.cs-section.comm .cs-card-header { background-color: #eee; border-bottom: 1px solid #eee; }
.cs-section.comm .cs-card-footer { background-color: #f9f9f9; border-top: 1px solid #eee; }
.cs-section.comm .cs-card-footer a { color: #444; }


/* Section grid layout */
.mp-section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    padding: 0.5em;
}


.mp-section-cell {
/* ========================================================= */
    background-color: #ffffff;
/* === DARK MODE FIX (Citizen Skin) === */
    border-radius: 4px;
/* ========================================================= */
    padding: 0.8em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


.mp-section-cell h3 {
@media screen {
     margin-top: 0;
    /* 1. Global Components - Dark Mode */
     border-bottom: 1px solid #eaecf0;
    html.skin-theme-clientpref-night .cs-header,
     padding-bottom: 0.3em;
    html.skin-theme-clientpref-os .cs-header {
     font-size: 1.1em;
        background-color: #171a1d !important;
}
        border-color: #676767 !important;
    }
    html.skin-theme-clientpref-night .cs-title,
    html.skin-theme-clientpref-os .cs-title { color: #fff !important; }
    html.skin-theme-clientpref-night .cs-subtitle,
     html.skin-theme-clientpref-os .cs-subtitle { color: #ccc !important; }
   
    html.skin-theme-clientpref-night .cs-search,
     html.skin-theme-clientpref-os .cs-search {
        background-color: #252525 !important;
        border-color: #676767 !important;  
     }
    html.skin-theme-clientpref-night .cs-search input,
    html.skin-theme-clientpref-os .cs-search input {
        background-color: #1f1f1f !important;
        color: #fff !important;
        border-color: #555 !important;
    }
    html.skin-theme-clientpref-night .cs-search input[type="submit"],
    html.skin-theme-clientpref-os .cs-search input[type="submit"] {
        background-color: #444 !important;
        border-color: #555 !important;  
        color: #fff !important;
    }
      
    html.skin-theme-clientpref-night .cs-section-title,
    html.skin-theme-clientpref-night .cs-card-title,
    html.skin-theme-clientpref-os .cs-section-title,
    html.skin-theme-clientpref-os .cs-card-title { color: #fff !important; }
   
    html.skin-theme-clientpref-night .cs-card-list li,
    html.skin-theme-clientpref-os .cs-card-list li { color: #ccc !important; }


.mp-section-cell ul {
    /* 2. Programming Dark */
     margin: 0.5em 0;
    html.skin-theme-clientpref-night .cs-section.prog .cs-section-header,
     padding-left: 1.5em;
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-header,
}
    html.skin-theme-clientpref-os .cs-section.prog .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.prog .cs-card-header { background-color: #104437 !important; border-color: #104437 !important; }
   
    html.skin-theme-clientpref-night .cs-section.prog .cs-card,
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.prog .cs-card,
     html.skin-theme-clientpref-os .cs-section.prog .cs-card-footer { background-color: #0b1e1c !important; border-color: #104437 !important; }
   
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer a,
     html.skin-theme-clientpref-os .cs-section.prog .cs-card-footer a { color: #8fbc8f !important; }


.mp-section-cell li {
    /* 3. Data Science Dark */
     margin-bottom: 0.3em;
    html.skin-theme-clientpref-night .cs-section.data .cs-section-header,
}
    html.skin-theme-clientpref-night .cs-section.data .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.data .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.data .cs-card-header { background-color: #082849 !important; border-color: #082849 !important; }
      
    html.skin-theme-clientpref-night .cs-section.data .cs-card,
    html.skin-theme-clientpref-night .cs-section.data .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.data .cs-card,
    html.skin-theme-clientpref-os .cs-section.data .cs-card-footer { background-color: #0d1a27 !important; border-color: #082849 !important; }
   
    html.skin-theme-clientpref-night .cs-section.data .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.data .cs-card-footer a { color: #87cefa !important; }


.mp-section-link {
    /* 4. Databases Dark */
     text-align: right;
    html.skin-theme-clientpref-night .cs-section.db .cs-section-header,
     margin-top: 0.5em;
    html.skin-theme-clientpref-night .cs-section.db .cs-card-header,
     font-size: 0.9em;
    html.skin-theme-clientpref-os .cs-section.db .cs-section-header,
}
    html.skin-theme-clientpref-os .cs-section.db .cs-card-header { background-color: #882c43 !important; border-color: #882c43 !important; }
   
    html.skin-theme-clientpref-night .cs-section.db .cs-card,
    html.skin-theme-clientpref-night .cs-section.db .cs-card-footer,
     html.skin-theme-clientpref-os .cs-section.db .cs-card,
    html.skin-theme-clientpref-os .cs-section.db .cs-card-footer { background-color: #270e1a !important; border-color: #882c43 !important; }
      
    html.skin-theme-clientpref-night .cs-section.db .cs-card-footer a,
     html.skin-theme-clientpref-os .cs-section.db .cs-card-footer a { color: #ffb6c1 !important; }


/* CTA section */
    /* 5. Infrastructure Dark */
.mp-cta {
    html.skin-theme-clientpref-night .cs-section.inf .cs-section-header,
     text-align: center;
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-header,
     padding: 1.5em;
    html.skin-theme-clientpref-os .cs-section.inf .cs-section-header,
     background-color: #f5f5f5;
     html.skin-theme-clientpref-os .cs-section.inf .cs-card-header { background-color: #7545ab !important; border-color: #7545ab !important; }
    border-radius: 5px;
   
     margin-top: 1em;
    html.skin-theme-clientpref-night .cs-section.inf .cs-card,
}
     html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card,
     html.skin-theme-clientpref-os .cs-section.inf .cs-card-footer { background-color: #130e20 !important; border-color: #7545ab !important; }
   
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer a,
     html.skin-theme-clientpref-os .cs-section.inf .cs-card-footer a { color: #da70d6 !important; }


.mp-cta h2 {
    /* 6. Fundamentals Dark */
     margin-top: 0;
    html.skin-theme-clientpref-night .cs-section.fund .cs-section-header,
     color: #333;
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-header,
     border: none;
    html.skin-theme-clientpref-os .cs-section.fund .cs-section-header,
}
     html.skin-theme-clientpref-os .cs-section.fund .cs-card-header { background-color: #663428 !important; border-color: #663428 !important; }
      
    html.skin-theme-clientpref-night .cs-section.fund .cs-card,
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.fund .cs-card,
    html.skin-theme-clientpref-os .cs-section.fund .cs-card-footer { background-color: #331a00 !important; border-color: #663428 !important; }
   
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer a,
     html.skin-theme-clientpref-os .cs-section.fund .cs-card-footer a { color: #ffa500 !important; }


.mp-cta-buttons {
    /* 7. Community Dark */
    margin-top: 1em;
    html.skin-theme-clientpref-night .cs-section.comm .cs-section-header,
}
     html.skin-theme-clientpref-night .cs-section.comm .cs-card-header,
 
     html.skin-theme-clientpref-os .cs-section.comm .cs-section-header,
.mp-button {
     html.skin-theme-clientpref-os .cs-section.comm .cs-card-header { background-color: #3d3d3d !important; border-color: #3d3d3d !important; }
     display: inline-block;
    padding: 0.6em 1.2em;
    margin: 0 0.5em;
    background-color: #36c;
     color: white;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
}
 
.mp-button:hover {
    background-color: #447ff5;
    text-decoration: none;
     color: white;
}
 
.mp-button-outline {
    background-color: transparent;
    color: #36c;
    border: 1px solid #36c;
}
 
.mp-button-outline:hover {
    background-color: #eaf3ff;
    color: #36c;
}
 
/* Responsive adjustments */
@media (max-width: 768px) {
    .mp-section-grid {
        grid-template-columns: repeat(1, 1fr);
    }
      
      
     #mp-upper {
     html.skin-theme-clientpref-night .cs-section.comm .cs-card,
        display: block;
    html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer,
    }
    html.skin-theme-clientpref-os .cs-section.comm .cs-card,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card-footer { background-color: #171a1d !important; border-color: #3d3d3d !important; }
      
      
     #mp-left, #mp-right {
     html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer a,
        width: 100%;
    html.skin-theme-clientpref-os .cs-section.comm .cs-card-footer a { color: #ccc !important; }
        margin-right: 0;
    }
}
}

Latest revision as of 23:40, 22 November 2025

/**
 * ComputerScience.wiki - Final Fix
 * 1. Responsive Grid
 * 2. EXACT colors from your original file
 * 3. FIX: Added 'clientpref-os' for automatic dark mode support
 */

/* --- 1. CONTAINER & TYPOGRAPHY --- */
.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 0 10px;
}

/* --- 2. HEADER --- */
.cs-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.cs-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0;
    color: #000;
    border: none;
}

.cs-subtitle {
    font-size: 1.1em;
    font-weight: normal;
    margin: 10px 0 0;
    color: #444;
}

/* --- 3. SEARCH BAR --- */
.cs-search {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 25px;
    border-radius: 8px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

.cs-search input[type="search"],
.cs-search .mw-searchInput {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    height: 40px !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    color: #333 !important;
    width: 100% !important;
}

.cs-search input[type="submit"],
.cs-search .oo-ui-buttonElement-button {
    min-width: 80px !important;
    background-color: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    height: 40px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: #333 !important;
}

.cs-search input[name="fulltext"] { display: none !important; }

/* --- 4. GRID LAYOUT --- */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* --- 5. CARDS & SECTIONS (Light Mode Defaults) --- */
.cs-section { margin-bottom: 30px; }
.cs-section-header { padding: 12px 15px; margin-bottom: 20px; border-radius: 6px; }
.cs-section-title { margin: 0; font-size: 1.3em; font-weight: 600; border: none; }

.cs-card {
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-width: 1px;
    border-style: solid;
    transition: transform 0.2s;
}

.cs-card:hover { transform: translateY(-3px); }

.cs-card-header { padding: 12px 15px; }
.cs-card-title { margin: 0; font-size: 1.1em; font-weight: 600; border: none; }
.cs-card-body { padding: 15px; flex-grow: 1; }
.cs-card-list { margin: 0; padding: 0 0 0 10px; list-style: none; }
.cs-card-list li { margin-bottom: 8px; }
.cs-card-footer { padding: 8px 15px; text-align: right; font-weight: bold; }
.cs-card-footer a { text-decoration: none; }

/* ========================================================= */
/* === COLOR THEMES (Light Mode) === */
/* ========================================================= */

/* PROGRAMMING (Green) */
.cs-section.prog .cs-section-header { background-color: #cef2e0; border: 1px solid #cef2e0; }
.cs-section.prog .cs-card { background-color: #f5fffa; border-color: #cef2e0; }
.cs-section.prog .cs-card-header { background-color: #cef2e0; border-bottom: 1px solid #cef2e0; }
.cs-section.prog .cs-card-footer { background-color: #f5fffa; border-top: 1px solid #cef2e0; }
.cs-section.prog .cs-card-footer a { color: #2e8b57; }

/* DATA SCIENCE (Blue) */
.cs-section.data .cs-section-header { background-color: #cedff2; border: 1px solid #cedff2; }
.cs-section.data .cs-card { background-color: #f5faff; border-color: #cedff2; }
.cs-section.data .cs-card-header { background-color: #cedff2; border-bottom: 1px solid #cedff2; }
.cs-section.data .cs-card-footer { background-color: #f5faff; border-top: 1px solid #cedff2; }
.cs-section.data .cs-card-footer a { color: #4169e1; }

/* DATABASES (Pink) */
.cs-section.db .cs-section-header { background-color: #f2cedd; border: 1px solid #f2cedd; }
.cs-section.db .cs-card { background-color: #fff5fa; border-color: #f2cedd; }
.cs-section.db .cs-card-header { background-color: #f2cedd; border-bottom: 1px solid #f2cedd; }
.cs-section.db .cs-card-footer { background-color: #fff5fa; border-top: 1px solid #f2cedd; }
.cs-section.db .cs-card-footer a { color: #db7093; }

/* INFRASTRUCTURE (Purple) */
.cs-section.inf .cs-section-header { background-color: #ddcef2; border: 1px solid #ddcef2; }
.cs-section.inf .cs-card { background-color: #faf5ff; border-color: #ddcef2; }
.cs-section.inf .cs-card-header { background-color: #ddcef2; border-bottom: 1px solid #ddcef2; }
.cs-section.inf .cs-card-footer { background-color: #faf5ff; border-top: 1px solid #ddcef2; }
.cs-section.inf .cs-card-footer a { color: #8a2be2; }

/* FUNDAMENTALS (Orange) */
.cs-section.fund .cs-section-header { background-color: #f2e0ce; border: 1px solid #f2e0ce; }
.cs-section.fund .cs-card { background-color: #fffaf5; border-color: #f2e0ce; }
.cs-section.fund .cs-card-header { background-color: #f2e0ce; border-bottom: 1px solid #f2e0ce; }
.cs-section.fund .cs-card-footer { background-color: #fffaf5; border-top: 1px solid #f2e0ce; }
.cs-section.fund .cs-card-footer a { color: #d2691e; }

/* COMMUNITY (Grey) */
.cs-section.comm .cs-section-header { background-color: #eee; border: 1px solid #eee; }
.cs-section.comm .cs-card { background-color: #f9f9f9; border-color: #eee; }
.cs-section.comm .cs-card-header { background-color: #eee; border-bottom: 1px solid #eee; }
.cs-section.comm .cs-card-footer { background-color: #f9f9f9; border-top: 1px solid #eee; }
.cs-section.comm .cs-card-footer a { color: #444; }


/* ========================================================= */
/* === DARK MODE FIX (Citizen Skin) === */
/* ========================================================= */

@media screen {
    /* 1. Global Components - Dark Mode */
    html.skin-theme-clientpref-night .cs-header,
    html.skin-theme-clientpref-os .cs-header { 
        background-color: #171a1d !important; 
        border-color: #676767 !important; 
    }
    html.skin-theme-clientpref-night .cs-title,
    html.skin-theme-clientpref-os .cs-title { color: #fff !important; }
    html.skin-theme-clientpref-night .cs-subtitle,
    html.skin-theme-clientpref-os .cs-subtitle { color: #ccc !important; }
    
    html.skin-theme-clientpref-night .cs-search,
    html.skin-theme-clientpref-os .cs-search { 
        background-color: #252525 !important; 
        border-color: #676767 !important; 
    }
    html.skin-theme-clientpref-night .cs-search input,
    html.skin-theme-clientpref-os .cs-search input { 
        background-color: #1f1f1f !important; 
        color: #fff !important; 
        border-color: #555 !important; 
    }
    html.skin-theme-clientpref-night .cs-search input[type="submit"],
    html.skin-theme-clientpref-os .cs-search input[type="submit"] { 
        background-color: #444 !important; 
        border-color: #555 !important; 
        color: #fff !important; 
    }
    
    html.skin-theme-clientpref-night .cs-section-title,
    html.skin-theme-clientpref-night .cs-card-title,
    html.skin-theme-clientpref-os .cs-section-title,
    html.skin-theme-clientpref-os .cs-card-title { color: #fff !important; }
    
    html.skin-theme-clientpref-night .cs-card-list li,
    html.skin-theme-clientpref-os .cs-card-list li { color: #ccc !important; }

    /* 2. Programming Dark */
    html.skin-theme-clientpref-night .cs-section.prog .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.prog .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.prog .cs-card-header { background-color: #104437 !important; border-color: #104437 !important; }
    
    html.skin-theme-clientpref-night .cs-section.prog .cs-card,
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.prog .cs-card,
    html.skin-theme-clientpref-os .cs-section.prog .cs-card-footer { background-color: #0b1e1c !important; border-color: #104437 !important; }
    
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.prog .cs-card-footer a { color: #8fbc8f !important; }

    /* 3. Data Science Dark */
    html.skin-theme-clientpref-night .cs-section.data .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.data .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.data .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.data .cs-card-header { background-color: #082849 !important; border-color: #082849 !important; }
    
    html.skin-theme-clientpref-night .cs-section.data .cs-card,
    html.skin-theme-clientpref-night .cs-section.data .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.data .cs-card,
    html.skin-theme-clientpref-os .cs-section.data .cs-card-footer { background-color: #0d1a27 !important; border-color: #082849 !important; }
    
    html.skin-theme-clientpref-night .cs-section.data .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.data .cs-card-footer a { color: #87cefa !important; }

    /* 4. Databases Dark */
    html.skin-theme-clientpref-night .cs-section.db .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.db .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.db .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.db .cs-card-header { background-color: #882c43 !important; border-color: #882c43 !important; }
    
    html.skin-theme-clientpref-night .cs-section.db .cs-card,
    html.skin-theme-clientpref-night .cs-section.db .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.db .cs-card,
    html.skin-theme-clientpref-os .cs-section.db .cs-card-footer { background-color: #270e1a !important; border-color: #882c43 !important; }
    
    html.skin-theme-clientpref-night .cs-section.db .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.db .cs-card-footer a { color: #ffb6c1 !important; }

    /* 5. Infrastructure Dark */
    html.skin-theme-clientpref-night .cs-section.inf .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.inf .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card-header { background-color: #7545ab !important; border-color: #7545ab !important; }
    
    html.skin-theme-clientpref-night .cs-section.inf .cs-card,
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card-footer { background-color: #130e20 !important; border-color: #7545ab !important; }
    
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card-footer a { color: #da70d6 !important; }

    /* 6. Fundamentals Dark */
    html.skin-theme-clientpref-night .cs-section.fund .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.fund .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.fund .cs-card-header { background-color: #663428 !important; border-color: #663428 !important; }
    
    html.skin-theme-clientpref-night .cs-section.fund .cs-card,
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.fund .cs-card,
    html.skin-theme-clientpref-os .cs-section.fund .cs-card-footer { background-color: #331a00 !important; border-color: #663428 !important; }
    
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.fund .cs-card-footer a { color: #ffa500 !important; }

    /* 7. Community Dark */
    html.skin-theme-clientpref-night .cs-section.comm .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.comm .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.comm .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card-header { background-color: #3d3d3d !important; border-color: #3d3d3d !important; }
    
    html.skin-theme-clientpref-night .cs-section.comm .cs-card,
    html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card-footer { background-color: #171a1d !important; border-color: #3d3d3d !important; }
    
    html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card-footer a { color: #ccc !important; }
}