跳转到内容

MediaWiki:Common.css:修订间差异

来自槌基百科
Site-wide UI polish: page bg, headings, TOC, tables, typography
Add styles for sysop hide-from-homepage button
 
(未显示同一用户的4个中间版本)
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
/* ── ConfirmAccount: hide unused fields ──────────────────────────── */
.infobox {
#wpRealName, label[for="wpRealName"],
    border: 1px solid #aaa;
#wpCV, label[for="wpCV"],
    background-color: #f9f9f9;
#wpNotes, label[for="wpNotes"],
    color: black;
#wpSites, label[for="wpSites"],
    margin-bottom: 10px;
#wpTermsBox, label[for="wpTermsBox"],
    padding: 15px;
#mw-confirmaccount-info, #mw-confirmaccount-terms { display: none !important; }
    float: right;
#wpBio { height: 2em !important; }
    clear: right;
#mw-confirmaccount-bio > p { display: none !important; }
}
fieldset:has(legend#mw-confirmaccount-attach) { display: none !important; }


/* Hide unnecessary ConfirmAccount fields */
/* ── AllPages: 4-column layout ───────────────────────────────────── */
#wpRealName,
.mw-allpages-body { column-count: 1 !important; }
label[for="wpRealName"],
.mw-allpages-chunk { column-count: 4; column-gap: 1.5em; list-style: none; padding: 0; }
#wpCV,
.mw-allpages-chunk li { break-inside: avoid; padding: 0.15em 0; }
label[for="wpCV"],
@media (max-width: 900px) { .mw-allpages-chunk { column-count: 2; } }
#wpNotes,
@media (max-width: 500px) { .mw-allpages-chunk { column-count: 1; } }
label[for="wpNotes"],
#wpSites,
label[for="wpSites"],
#wpTermsBox,
label[for="wpTermsBox"],
#mw-confirmaccount-info,
#mw-confirmaccount-terms {
    display: none !important;
}


/* Make biography field one-line */
/* ── Shared: section-edit pill ───────────────────────────────────── */
#wpBio {
.mw-editsection { font-size: 0.75em; background: #f0f4f8; border-radius: 4px; padding: 0 0.4em; }
    height: 2em !important;
.mw-editsection a { color: #4a7fa5 !important; }
}


/* Hide description text below biography label */
/* ═══════════════════════════════════════════════════════════════════
#mw-confirmaccount-bio > p {
  CHARACTER INFOBOX
    display: none !important;
  NOTE: we use explicit class names (.theme-slate/.theme-dark/.theme-warm)
}
  NOT [class*="theme-"] which falsely matches skin-theme-clientpref-day.
  ═══════════════════════════════════════════════════════════════════ */


/* Fully hide the "Other Information" section */
/* ── Classic (no theme class): Wikipedia style ───────────────────── */
fieldset:has(legend#mw-confirmaccount-attach) {
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography {
     display: none !important;
     background: #f8f9fa !important;
    border: 1px solid #a2a9b1 !important;
    border-spacing: 3px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 22em !important;
    font-size: 88% !important;
    line-height: 1.6 !important;
    float: right !important;
    clear: right !important;
    margin: 0 0 1em 1em !important;
    padding: 3px !important;
}
}
 
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography > caption {
/* ── AllPages: 4-column layout ─────────────────────────────────────── */
     font-size: 125% !important;
.mw-allpages-body {
    font-weight: bold !important;
     column-count: 1 !important; /* neutralise MediaWiki's default 2-col on this wrapper */
    padding: 4px !important;
    color: #000 !important;
    background: none !important;
    border-radius: 0 !important;
    letter-spacing: normal !important;
    text-align: center !important;
}
}
.mw-allpages-chunk {
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography > tbody > tr:first-child > th {
     column-count: 4;
     background: #cee0f2 !important;
     column-gap: 1.5em;
     padding: 4px !important;
     list-style: none;
     border-radius: 0 !important;
     padding: 0;
     text-align: center !important;
}
}
.mw-allpages-chunk li {
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography > tbody > tr:first-child > th img {
     break-inside: avoid;
     display: inline !important;
     padding: 0.15em 0;
    width: auto !important;
    height: auto !important;
    max-width: 200px !important;
     object-fit: unset !important;
}
}
@media (max-width: 900px) {
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography > tbody > tr > th {
     .mw-allpages-chunk { column-count: 2; }
     background: #eaecf0 !important;
    color: #000 !important;
    font-weight: bold !important;
    font-size: 1em !important;
    padding: 3px 6px !important;
    vertical-align: top !important;
    white-space: nowrap !important;
    width: auto !important;
    border-radius: 0 !important;
}
}
@media (max-width: 500px) {
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography > tbody > tr > td {
     .mw-allpages-chunk { column-count: 1; }
     background: #f8f9fa !important;
    color: #000 !important;
    padding: 3px 6px !important;
    font-size: 1em !important;
    vertical-align: top !important;
    border-radius: 0 !important;
}
}


/* ── Character infobox: modern card style ───────────────────────── */
/* ── Slate / Dark / Warm: modern rounded card ────────────────────── */
 
html.theme-slate table.infobox.biography,
/* Card shell */
html.theme-dark table.infobox.biography,
table.infobox.biography {
html.theme-warm table.infobox.biography {
     background: #ffffff !important;
     background: #ffffff !important;
     border: none !important;
     border: none !important;
     border-radius: 14px !important;
     border-radius: 14px !important;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18) !important;
     box-shadow: 0 4px 20px rgba(0,0,0,.18) !important;
     border-spacing: 0 !important;
     border-spacing: 0 !important;
     overflow: hidden;
     overflow: hidden;
第75行: 第98行:
     width: 240px !important;
     width: 240px !important;
}
}
 
html.theme-slate table.infobox.biography > caption,
/* Character name caption */
html.theme-dark table.infobox.biography > caption,
table.infobox.biography > caption {
html.theme-warm table.infobox.biography > caption {
     background: #2c3a4a !important;
     background: #2c3a4a !important;
     color: #ffffff !important;
     color: #fff !important;
     font-size: 1.15em !important;
     font-size: 1.15em !important;
     font-weight: 700 !important;
     font-weight: 700 !important;
第86行: 第109行:
     border-radius: 14px 14px 0 0;
     border-radius: 14px 14px 0 0;
     caption-side: top;
     caption-side: top;
    text-align: center !important;
}
}
 
html.theme-slate table.infobox.biography > tbody > tr:first-child > th,
/* Image header row — replace the dated blue with dark neutral */
html.theme-dark table.infobox.biography > tbody > tr:first-child > th,
table.infobox.biography > tbody > tr:first-child > th {
html.theme-warm table.infobox.biography > tbody > tr:first-child > th {
     background: #3d4f63 !important;
     background: #3d4f63 !important;
     padding: 0 !important;
     padding: 0 !important;
第95行: 第119行:
     text-align: center !important;
     text-align: center !important;
}
}
 
html.theme-slate table.infobox.biography > tbody > tr:first-child > th img,
/* Image fills the header area */
html.theme-dark table.infobox.biography > tbody > tr:first-child > th img,
table.infobox.biography > tbody > tr:first-child > th img {
html.theme-warm table.infobox.biography > tbody > tr:first-child > th img {
    display: block !important;
     display: block !important; width: 100% !important; height: 200px !important;
    width: 100% !important;
     object-fit: cover !important; object-position: top center !important; margin: 0 auto !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: top center !important;
    margin: 0 auto !important;
}
 
/* Data rows */
table.infobox.biography > tbody > tr + tr {
    border-top: 1px solid #eef0f3;
}
 
/* Label cells */
table.infobox.biography > tbody > tr > th {
     background: #f7f8fb !important;
    color: #555 !important;
    font-weight: 600 !important;
     font-size: 0.88em !important;
    padding: 0.45em 0.75em !important;
    white-space: nowrap;
    width: 38%;
    vertical-align: middle;
}
 
/* Value cells */
table.infobox.biography > tbody > tr > td {
    background: #ffffff !important;
    color: #222 !important;
    padding: 0.45em 0.75em !important;
    font-size: 0.9em !important;
    vertical-align: middle;
}
}
 
html.theme-slate table.infobox.biography > tbody > tr + tr,
/* Last row — round bottom corners */
html.theme-dark table.infobox.biography > tbody > tr + tr,
table.infobox.biography > tbody > tr:last-child > th,
html.theme-warm table.infobox.biography > tbody > tr + tr { border-top: 1px solid #eef0f3; }
table.infobox.biography > tbody > tr:last-child > td {
html.theme-slate table.infobox.biography > tbody > tr > th,
     border-radius: 0 0 0 14px;
html.theme-dark table.infobox.biography > tbody > tr > th,
html.theme-warm table.infobox.biography > tbody > tr > th {
     background: #f7f8fb !important; color: #555 !important; font-weight: 600 !important;
    font-size: 0.88em !important; padding: 0.45em 0.75em !important;
    white-space: nowrap; width: 38%; vertical-align: middle;
}
}
table.infobox.biography > tbody > tr:last-child > td:last-child {
html.theme-slate table.infobox.biography > tbody > tr > td,
     border-radius: 0 0 14px 0;
html.theme-dark table.infobox.biography > tbody > tr > td,
html.theme-warm table.infobox.biography > tbody > tr > td {
     background: #ffffff !important; color: #222 !important;
    padding: 0.45em 0.75em !important; font-size: 0.9em !important; vertical-align: middle;
}
}
/* Dark overrides */
html.theme-dark table.infobox.biography > tbody > tr > th { background: #252836 !important; color: #a0aec0 !important; }
html.theme-dark table.infobox.biography > tbody > tr > td { background: #1a1d27 !important; color: #e2e8f0 !important; }
html.theme-dark table.infobox.biography > tbody > tr + tr { border-top: 1px solid #2d3748; }
/* Warm overrides */
html.theme-warm table.infobox.biography > caption { background: #7a4f1d !important; }
html.theme-warm table.infobox.biography > tbody > tr:first-child > th { background: #9c6b2e !important; }
html.theme-warm table.infobox.biography > tbody > tr > th { background: #f5ede0 !important; color: #6b4c1e !important; }
html.theme-warm table.infobox.biography > tbody > tr > td { background: #faf6ef !important; color: #3d2b0f !important; }
html.theme-warm table.infobox.biography > tbody > tr + tr { border-top: 1px solid #e8dcc8; }


/* ═══════════════════════════════════════════════════════════════════
/* ═══════════════════════════════════════════════════════════════════
   SITE-WIDE UI POLISH
   THEME SYSTEM
  Palette: --dark #2c3a4a  --accent #4a7fa5  --light-bg #f7f8fb
            --border #e0e4ea  --text #1f2937
   ═══════════════════════════════════════════════════════════════════ */
   ═══════════════════════════════════════════════════════════════════ */
html.theme-slate body { background-color: #eef0f4 !important; }
html.theme-slate #content, html.theme-slate .mw-body {
    background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.09);
    border: none !important; padding: 1.8em 2em !important; margin-top: .8em; }
html.theme-slate h1.firstHeading, html.theme-slate #firstHeading {
    font-size: 1.9em; font-weight: 800; color: #2c3a4a;
    border-bottom: 3px solid #4a7fa5 !important; padding-bottom: .3em; margin-bottom: .7em; }
html.theme-slate .mw-body-content h2 {
    font-size: 1.3em; font-weight: 700; color: #2c3a4a; border-bottom: none !important;
    border-left: 4px solid #4a7fa5; padding: .25em 0 .25em .65em; margin: 1.4em 0 .6em;
    background: #f7f8fb; border-radius: 0 6px 6px 0; }
html.theme-slate .mw-body-content h3 { font-size: 1.1em; font-weight: 700; color: #2c3a4a; border-bottom: 1px solid #e0e4ea !important; padding-bottom: .2em; }
html.theme-slate .mw-body-content p { line-height: 1.8; color: #1f2937; }
html.theme-slate .mw-body-content a { color: #3671b5; }
html.theme-slate .mw-body-content a:hover { color: #2c3a4a; }
html.theme-slate .mw-table-of-contents, html.theme-slate #toc, html.theme-slate .toc {
    background: #f7f8fb; border: 1px solid #e0e4ea !important; border-radius: 10px; padding: .8em 1.2em !important; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
html.theme-slate .mw-body-content table:not(.infobox) th { background: #2c3a4a !important; color: #fff !important; padding: .5em .8em !important; }
html.theme-slate .mw-body-content table:not(.infobox) td { padding: .45em .8em !important; border-bottom: 1px solid #e0e4ea; }
html.theme-slate .mw-body-content table:not(.infobox) tr:nth-child(even) td { background: #f7f8fb; }
html.theme-slate .mw-body-content blockquote { border-left: 4px solid #4a7fa5; background: #f7f8fb; padding: .6em 1em; border-radius: 0 6px 6px 0; font-style: italic; }
html.theme-slate .cdx-search-input__input { border-radius: 20px !important; }


/* ── Page background ──────────────────────────────────────────────── */
html.theme-dark body { background-color: #0f1117 !important; color: #e2e8f0 !important; }
body {
html.theme-dark #content, html.theme-dark .mw-body {
    background-color: #eef0f4 !important;
     background: #1a1d27 !important; border-radius: 10px; box-shadow: 0 2px 16px rgba(0,0,0,.5);
}
     border: 1px solid #2d3748 !important; padding: 1.8em 2em !important; color: #e2e8f0; }
 
html.theme-dark h1.firstHeading, html.theme-dark #firstHeading { font-size: 1.9em; font-weight: 800; color: #e2e8f0; border-bottom: 3px solid #4a9edd !important; padding-bottom: .3em; }
/* Content area: white card floating on the grey bg */
html.theme-dark .mw-body-content h2 { font-size: 1.3em; font-weight: 700; color: #e2e8f0; border-bottom: none !important; border-left: 4px solid #4a9edd; padding: .25em 0 .25em .65em; margin: 1.4em 0 .6em; background: #252836; border-radius: 0 6px 6px 0; }
#content,
html.theme-dark .mw-body-content h3 { color: #cbd5e0; border-bottom: 1px solid #2d3748 !important; padding-bottom: .2em; }
.mw-body {
html.theme-dark .mw-body-content p { line-height: 1.8; color: #cbd5e0; }
     background: #ffffff;
html.theme-dark .mw-body-content a { color: #63b3ed; }
    border-radius: 10px;
html.theme-dark .mw-body-content a:hover { color: #90cdf4; }
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
html.theme-dark .mw-body-content a.new { color: #fc8181; }
     border: none !important;
html.theme-dark .mw-table-of-contents, html.theme-dark #toc, html.theme-dark .toc { background: #252836; border: 1px solid #2d3748 !important; border-radius: 10px; padding: .8em 1.2em !important; color: #e2e8f0; }
    padding: 1.8em 2em !important;
html.theme-dark .mw-body-content table:not(.infobox) th { background: #2d3748 !important; color: #e2e8f0 !important; padding: .5em .8em !important; }
    margin-top: 0.8em;
html.theme-dark .mw-body-content table:not(.infobox) td { background: #1a1d27; color: #cbd5e0; padding: .45em .8em !important; border-bottom: 1px solid #2d3748; }
}
html.theme-dark .mw-body-content table:not(.infobox) tr:nth-child(even) td { background: #252836; }
 
html.theme-dark .mw-body-content blockquote { border-left: 4px solid #4a9edd; background: #252836; padding: .6em 1em; border-radius: 0 6px 6px 0; color: #a0aec0; }
/* ── Page title (h1) ──────────────────────────────────────────────── */
html.theme-dark .vector-menu-content-list a { color: #90cdf4 !important; }
h1.firstHeading,
html.theme-dark .cdx-search-input__input { background: #252836 !important; border-color: #4a5568 !important; color: #e2e8f0 !important; border-radius: 20px !important; }
#firstHeading {
    font-size: 1.9em;
    font-weight: 800;
    color: #2c3a4a;
    border-bottom: 3px solid #4a7fa5 !important;
    padding-bottom: 0.3em;
    margin-bottom: 0.7em;
    letter-spacing: 0.01em;
}
 
/* ── Section headings ─────────────────────────────────────────────── */
.mw-body-content h2 {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3a4a;
    border-bottom: none !important;
    border-left: 4px solid #4a7fa5;
    padding: 0.25em 0 0.25em 0.65em;
    margin: 1.4em 0 0.6em;
    background: #f7f8fb;
    border-radius: 0 6px 6px 0;
}
 
.mw-body-content h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3a4a;
    border-bottom: 1px solid #e0e4ea !important;
    padding-bottom: 0.2em;
    margin: 1.1em 0 0.5em;
}
 
.mw-body-content h4 {
    font-size: 1em;
    font-weight: 600;
    color: #3d4f63;
}
 
/* ── Body text ────────────────────────────────────────────────────── */
.mw-body-content p {
    line-height: 1.8;
    color: #1f2937;
    margin-bottom: 0.7em;
}
 
/* ── Links ────────────────────────────────────────────────────────── */
.mw-body-content a {
    color: #3671b5;
}
.mw-body-content a:hover {
    color: #2c3a4a;
    text-decoration: underline;
}
/* Red links (missing pages) */
.mw-body-content a.new {
    color: #c0392b;
}
 
/* ── Table of Contents ────────────────────────────────────────────── */
.mw-table-of-contents,
#toc,
.toc {
    background: #f7f8fb;
    border: 1px solid #e0e4ea !important;
    border-radius: 10px;
    padding: 0.8em 1.2em !important;
    display: inline-block;
    min-width: 200px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.mw-table-of-contents ul,
#toc ul,
.toc ul {
    margin: 0.2em 0 0 1em !important;
}
.mw-table-of-contents .toctitle,
#toc .toctitle {
    font-weight: 700;
    color: #2c3a4a;
    font-size: 0.95em;
}


/* ── Default wiki tables ──────────────────────────────────────────── */
html.theme-warm body { background-color: #f0ebe0 !important; }
.mw-body-content table:not(.infobox):not(.mw-allpages-table-chunk) {
html.theme-warm #content, html.theme-warm .mw-body { background: #faf6ef !important; border-radius: 10px; box-shadow: 0 2px 12px rgba(120,90,40,.12); border: 1px solid #e8dcc8 !important; padding: 1.8em 2em !important; }
     border-collapse: collapse;
html.theme-warm h1.firstHeading, html.theme-warm #firstHeading { font-size: 1.9em; font-weight: 800; color: #5c3d11; border-bottom: 3px solid #c8922a !important; padding-bottom: .3em; }
     width: 100%;
html.theme-warm .mw-body-content h2 { font-size: 1.3em; font-weight: 700; color: #5c3d11; border-bottom: none !important; border-left: 4px solid #c8922a; padding: .25em 0 .25em .65em; margin: 1.4em 0 .6em; background: #f5ede0; border-radius: 0 6px 6px 0; }
     margin: 1em 0;
html.theme-warm .mw-body-content h3 { color: #6b4c1e; border-bottom: 1px solid #e8dcc8 !important; padding-bottom: .2em; }
html.theme-warm .mw-body-content p { line-height: 1.8; color: #3d2b0f; }
html.theme-warm .mw-body-content a { color: #9c6b1e; }
html.theme-warm .mw-body-content a:hover { color: #5c3d11; }
html.theme-warm .mw-table-of-contents, html.theme-warm #toc, html.theme-warm .toc { background: #f5ede0; border: 1px solid #e8dcc8 !important; border-radius: 10px; padding: .8em 1.2em !important; }
html.theme-warm .mw-body-content table:not(.infobox) th { background: #7a4f1d !important; color: #fff !important; padding: .5em .8em !important; }
html.theme-warm .mw-body-content table:not(.infobox) td { padding: .45em .8em !important; border-bottom: 1px solid #e8dcc8; }
html.theme-warm .mw-body-content table:not(.infobox) tr:nth-child(even) td { background: #f5ede0; }
html.theme-warm .mw-body-content blockquote { border-left: 4px solid #c8922a; background: #f5ede0; padding: .6em 1em; border-radius: 0 6px 6px 0; font-style: italic; color: #6b4c1e; }
html.theme-warm .cdx-search-input__input { border-radius: 20px !important; border-color: #e8dcc8 !important; }
/* ── Sysop "Hide from homepage" button ──────────────────────────── */
#hp-hide-btn {
     position: fixed;
    bottom: 9.5rem;
    right: 1.2rem;
    z-index: 9998;
    background: #e53e3e;
     color: #fff;
     border: none;
     border-radius: 8px;
     border-radius: 8px;
    overflow: hidden;
     padding: 0.45em 0.9em;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
     font-size: 0.82em;
}
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
.mw-body-content table:not(.infobox) th {
     cursor: pointer;
    background: #2c3a4a !important;
     box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    color: #fff !important;
     transition: background 0.2s, transform 0.15s;
    padding: 0.5em 0.8em !important;
    white-space: nowrap;
    font-weight: 600;
    text-align: left;
}
.mw-body-content table:not(.infobox) td {
     padding: 0.45em 0.8em !important;
    border-bottom: 1px solid #e0e4ea;
    color: #1f2937;
}
.mw-body-content table:not(.infobox) tr:last-child td {
    border-bottom: none;
}
.mw-body-content table:not(.infobox) tr:nth-child(even) td {
    background: #f7f8fb;
}
 
/* ── Blockquotes ──────────────────────────────────────────────────── */
.mw-body-content blockquote {
    border-left: 4px solid #4a7fa5;
    background: #f7f8fb;
    margin: 0.8em 0;
    padding: 0.6em 1em;
    border-radius: 0 6px 6px 0;
    color: #3d4f63;
    font-style: italic;
}
 
/* ── Sidebar ──────────────────────────────────────────────────────── */
#mw-panel,
.vector-sidebar {
    padding-top: 0.5em;
}
.vector-menu-content-list a {
    color: #2c3a4a !important;
     font-size: 0.9em;
}
.vector-menu-content-list a:hover {
    color: #4a7fa5 !important;
}
.vector-menu-portal-more .vector-menu-heading {
    color: #4a7fa5 !important;
     font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
 
/* ── Search bar ───────────────────────────────────────────────────── */
.cdx-search-input__input {
     border-radius: 20px !important;
    border: 1.5px solid #c8d0dc !important;
}
.cdx-search-input__input:focus {
    border-color: #4a7fa5 !important;
     box-shadow: 0 0 0 2px rgba(74,127,165,0.15) !important;
}
 
/* ── Section edit links ───────────────────────────────────────────── */
.mw-editsection {
     font-size: 0.75em;
    background: #f0f4f8;
    border-radius: 4px;
    padding: 0 0.4em;
}
.mw-editsection a {
    color: #4a7fa5 !important;
}
}
#hp-hide-btn:hover { background: #c53030; transform: scale(1.04); }
#hp-hide-btn:disabled { opacity: 0.7; cursor: default; transform: none; }

2026年3月12日 (四) 12:38的最新版本

/* ── ConfirmAccount: hide unused fields ──────────────────────────── */
#wpRealName, label[for="wpRealName"],
#wpCV, label[for="wpCV"],
#wpNotes, label[for="wpNotes"],
#wpSites, label[for="wpSites"],
#wpTermsBox, label[for="wpTermsBox"],
#mw-confirmaccount-info, #mw-confirmaccount-terms { display: none !important; }
#wpBio { height: 2em !important; }
#mw-confirmaccount-bio > p { display: none !important; }
fieldset:has(legend#mw-confirmaccount-attach) { display: none !important; }

/* ── AllPages: 4-column layout ───────────────────────────────────── */
.mw-allpages-body { column-count: 1 !important; }
.mw-allpages-chunk { column-count: 4; column-gap: 1.5em; list-style: none; padding: 0; }
.mw-allpages-chunk li { break-inside: avoid; padding: 0.15em 0; }
@media (max-width: 900px) { .mw-allpages-chunk { column-count: 2; } }
@media (max-width: 500px) { .mw-allpages-chunk { column-count: 1; } }

/* ── Shared: section-edit pill ───────────────────────────────────── */
.mw-editsection { font-size: 0.75em; background: #f0f4f8; border-radius: 4px; padding: 0 0.4em; }
.mw-editsection a { color: #4a7fa5 !important; }

/* ═══════════════════════════════════════════════════════════════════
   CHARACTER INFOBOX
   NOTE: we use explicit class names (.theme-slate/.theme-dark/.theme-warm)
   NOT [class*="theme-"] which falsely matches skin-theme-clientpref-day.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Classic (no theme class): Wikipedia style ───────────────────── */
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography {
    background: #f8f9fa !important;
    border: 1px solid #a2a9b1 !important;
    border-spacing: 3px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 22em !important;
    font-size: 88% !important;
    line-height: 1.6 !important;
    float: right !important;
    clear: right !important;
    margin: 0 0 1em 1em !important;
    padding: 3px !important;
}
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography > caption {
    font-size: 125% !important;
    font-weight: bold !important;
    padding: 4px !important;
    color: #000 !important;
    background: none !important;
    border-radius: 0 !important;
    letter-spacing: normal !important;
    text-align: center !important;
}
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography > tbody > tr:first-child > th {
    background: #cee0f2 !important;
    padding: 4px !important;
    border-radius: 0 !important;
    text-align: center !important;
}
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography > tbody > tr:first-child > th img {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    max-width: 200px !important;
    object-fit: unset !important;
}
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography > tbody > tr > th {
    background: #eaecf0 !important;
    color: #000 !important;
    font-weight: bold !important;
    font-size: 1em !important;
    padding: 3px 6px !important;
    vertical-align: top !important;
    white-space: nowrap !important;
    width: auto !important;
    border-radius: 0 !important;
}
html:not(.theme-slate):not(.theme-dark):not(.theme-warm) table.infobox.biography > tbody > tr > td {
    background: #f8f9fa !important;
    color: #000 !important;
    padding: 3px 6px !important;
    font-size: 1em !important;
    vertical-align: top !important;
    border-radius: 0 !important;
}

/* ── Slate / Dark / Warm: modern rounded card ────────────────────── */
html.theme-slate table.infobox.biography,
html.theme-dark table.infobox.biography,
html.theme-warm table.infobox.biography {
    background: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.18) !important;
    border-spacing: 0 !important;
    overflow: hidden;
    margin: 0 0 1.2em 1.5em !important;
    width: 240px !important;
}
html.theme-slate table.infobox.biography > caption,
html.theme-dark table.infobox.biography > caption,
html.theme-warm table.infobox.biography > caption {
    background: #2c3a4a !important;
    color: #fff !important;
    font-size: 1.15em !important;
    font-weight: 700 !important;
    padding: 0.55em 0.8em !important;
    letter-spacing: 0.04em;
    border-radius: 14px 14px 0 0;
    caption-side: top;
    text-align: center !important;
}
html.theme-slate table.infobox.biography > tbody > tr:first-child > th,
html.theme-dark table.infobox.biography > tbody > tr:first-child > th,
html.theme-warm table.infobox.biography > tbody > tr:first-child > th {
    background: #3d4f63 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-align: center !important;
}
html.theme-slate table.infobox.biography > tbody > tr:first-child > th img,
html.theme-dark table.infobox.biography > tbody > tr:first-child > th img,
html.theme-warm table.infobox.biography > tbody > tr:first-child > th img {
    display: block !important; width: 100% !important; height: 200px !important;
    object-fit: cover !important; object-position: top center !important; margin: 0 auto !important;
}
html.theme-slate table.infobox.biography > tbody > tr + tr,
html.theme-dark table.infobox.biography > tbody > tr + tr,
html.theme-warm table.infobox.biography > tbody > tr + tr { border-top: 1px solid #eef0f3; }
html.theme-slate table.infobox.biography > tbody > tr > th,
html.theme-dark table.infobox.biography > tbody > tr > th,
html.theme-warm table.infobox.biography > tbody > tr > th {
    background: #f7f8fb !important; color: #555 !important; font-weight: 600 !important;
    font-size: 0.88em !important; padding: 0.45em 0.75em !important;
    white-space: nowrap; width: 38%; vertical-align: middle;
}
html.theme-slate table.infobox.biography > tbody > tr > td,
html.theme-dark table.infobox.biography > tbody > tr > td,
html.theme-warm table.infobox.biography > tbody > tr > td {
    background: #ffffff !important; color: #222 !important;
    padding: 0.45em 0.75em !important; font-size: 0.9em !important; vertical-align: middle;
}
/* Dark overrides */
html.theme-dark table.infobox.biography > tbody > tr > th { background: #252836 !important; color: #a0aec0 !important; }
html.theme-dark table.infobox.biography > tbody > tr > td { background: #1a1d27 !important; color: #e2e8f0 !important; }
html.theme-dark table.infobox.biography > tbody > tr + tr { border-top: 1px solid #2d3748; }
/* Warm overrides */
html.theme-warm table.infobox.biography > caption { background: #7a4f1d !important; }
html.theme-warm table.infobox.biography > tbody > tr:first-child > th { background: #9c6b2e !important; }
html.theme-warm table.infobox.biography > tbody > tr > th { background: #f5ede0 !important; color: #6b4c1e !important; }
html.theme-warm table.infobox.biography > tbody > tr > td { background: #faf6ef !important; color: #3d2b0f !important; }
html.theme-warm table.infobox.biography > tbody > tr + tr { border-top: 1px solid #e8dcc8; }

/* ═══════════════════════════════════════════════════════════════════
   THEME SYSTEM
   ═══════════════════════════════════════════════════════════════════ */
html.theme-slate body { background-color: #eef0f4 !important; }
html.theme-slate #content, html.theme-slate .mw-body {
    background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.09);
    border: none !important; padding: 1.8em 2em !important; margin-top: .8em; }
html.theme-slate h1.firstHeading, html.theme-slate #firstHeading {
    font-size: 1.9em; font-weight: 800; color: #2c3a4a;
    border-bottom: 3px solid #4a7fa5 !important; padding-bottom: .3em; margin-bottom: .7em; }
html.theme-slate .mw-body-content h2 {
    font-size: 1.3em; font-weight: 700; color: #2c3a4a; border-bottom: none !important;
    border-left: 4px solid #4a7fa5; padding: .25em 0 .25em .65em; margin: 1.4em 0 .6em;
    background: #f7f8fb; border-radius: 0 6px 6px 0; }
html.theme-slate .mw-body-content h3 { font-size: 1.1em; font-weight: 700; color: #2c3a4a; border-bottom: 1px solid #e0e4ea !important; padding-bottom: .2em; }
html.theme-slate .mw-body-content p { line-height: 1.8; color: #1f2937; }
html.theme-slate .mw-body-content a { color: #3671b5; }
html.theme-slate .mw-body-content a:hover { color: #2c3a4a; }
html.theme-slate .mw-table-of-contents, html.theme-slate #toc, html.theme-slate .toc {
    background: #f7f8fb; border: 1px solid #e0e4ea !important; border-radius: 10px; padding: .8em 1.2em !important; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
html.theme-slate .mw-body-content table:not(.infobox) th { background: #2c3a4a !important; color: #fff !important; padding: .5em .8em !important; }
html.theme-slate .mw-body-content table:not(.infobox) td { padding: .45em .8em !important; border-bottom: 1px solid #e0e4ea; }
html.theme-slate .mw-body-content table:not(.infobox) tr:nth-child(even) td { background: #f7f8fb; }
html.theme-slate .mw-body-content blockquote { border-left: 4px solid #4a7fa5; background: #f7f8fb; padding: .6em 1em; border-radius: 0 6px 6px 0; font-style: italic; }
html.theme-slate .cdx-search-input__input { border-radius: 20px !important; }

html.theme-dark body { background-color: #0f1117 !important; color: #e2e8f0 !important; }
html.theme-dark #content, html.theme-dark .mw-body {
    background: #1a1d27 !important; border-radius: 10px; box-shadow: 0 2px 16px rgba(0,0,0,.5);
    border: 1px solid #2d3748 !important; padding: 1.8em 2em !important; color: #e2e8f0; }
html.theme-dark h1.firstHeading, html.theme-dark #firstHeading { font-size: 1.9em; font-weight: 800; color: #e2e8f0; border-bottom: 3px solid #4a9edd !important; padding-bottom: .3em; }
html.theme-dark .mw-body-content h2 { font-size: 1.3em; font-weight: 700; color: #e2e8f0; border-bottom: none !important; border-left: 4px solid #4a9edd; padding: .25em 0 .25em .65em; margin: 1.4em 0 .6em; background: #252836; border-radius: 0 6px 6px 0; }
html.theme-dark .mw-body-content h3 { color: #cbd5e0; border-bottom: 1px solid #2d3748 !important; padding-bottom: .2em; }
html.theme-dark .mw-body-content p { line-height: 1.8; color: #cbd5e0; }
html.theme-dark .mw-body-content a { color: #63b3ed; }
html.theme-dark .mw-body-content a:hover { color: #90cdf4; }
html.theme-dark .mw-body-content a.new { color: #fc8181; }
html.theme-dark .mw-table-of-contents, html.theme-dark #toc, html.theme-dark .toc { background: #252836; border: 1px solid #2d3748 !important; border-radius: 10px; padding: .8em 1.2em !important; color: #e2e8f0; }
html.theme-dark .mw-body-content table:not(.infobox) th { background: #2d3748 !important; color: #e2e8f0 !important; padding: .5em .8em !important; }
html.theme-dark .mw-body-content table:not(.infobox) td { background: #1a1d27; color: #cbd5e0; padding: .45em .8em !important; border-bottom: 1px solid #2d3748; }
html.theme-dark .mw-body-content table:not(.infobox) tr:nth-child(even) td { background: #252836; }
html.theme-dark .mw-body-content blockquote { border-left: 4px solid #4a9edd; background: #252836; padding: .6em 1em; border-radius: 0 6px 6px 0; color: #a0aec0; }
html.theme-dark .vector-menu-content-list a { color: #90cdf4 !important; }
html.theme-dark .cdx-search-input__input { background: #252836 !important; border-color: #4a5568 !important; color: #e2e8f0 !important; border-radius: 20px !important; }

html.theme-warm body { background-color: #f0ebe0 !important; }
html.theme-warm #content, html.theme-warm .mw-body { background: #faf6ef !important; border-radius: 10px; box-shadow: 0 2px 12px rgba(120,90,40,.12); border: 1px solid #e8dcc8 !important; padding: 1.8em 2em !important; }
html.theme-warm h1.firstHeading, html.theme-warm #firstHeading { font-size: 1.9em; font-weight: 800; color: #5c3d11; border-bottom: 3px solid #c8922a !important; padding-bottom: .3em; }
html.theme-warm .mw-body-content h2 { font-size: 1.3em; font-weight: 700; color: #5c3d11; border-bottom: none !important; border-left: 4px solid #c8922a; padding: .25em 0 .25em .65em; margin: 1.4em 0 .6em; background: #f5ede0; border-radius: 0 6px 6px 0; }
html.theme-warm .mw-body-content h3 { color: #6b4c1e; border-bottom: 1px solid #e8dcc8 !important; padding-bottom: .2em; }
html.theme-warm .mw-body-content p { line-height: 1.8; color: #3d2b0f; }
html.theme-warm .mw-body-content a { color: #9c6b1e; }
html.theme-warm .mw-body-content a:hover { color: #5c3d11; }
html.theme-warm .mw-table-of-contents, html.theme-warm #toc, html.theme-warm .toc { background: #f5ede0; border: 1px solid #e8dcc8 !important; border-radius: 10px; padding: .8em 1.2em !important; }
html.theme-warm .mw-body-content table:not(.infobox) th { background: #7a4f1d !important; color: #fff !important; padding: .5em .8em !important; }
html.theme-warm .mw-body-content table:not(.infobox) td { padding: .45em .8em !important; border-bottom: 1px solid #e8dcc8; }
html.theme-warm .mw-body-content table:not(.infobox) tr:nth-child(even) td { background: #f5ede0; }
html.theme-warm .mw-body-content blockquote { border-left: 4px solid #c8922a; background: #f5ede0; padding: .6em 1em; border-radius: 0 6px 6px 0; font-style: italic; color: #6b4c1e; }
html.theme-warm .cdx-search-input__input { border-radius: 20px !important; border-color: #e8dcc8 !important; }
/* ── Sysop "Hide from homepage" button ──────────────────────────── */
#hp-hide-btn {
    position: fixed;
    bottom: 9.5rem;
    right: 1.2rem;
    z-index: 9998;
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.45em 0.9em;
    font-size: 0.82em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
#hp-hide-btn:hover { background: #c53030; transform: scale(1.04); }
#hp-hide-btn:disabled { opacity: 0.7; cursor: default; transform: none; }