Jump to content

MediaWiki:Common.css: Difference between revisions

From ZelocoreCMS Wiki
Wikipedia-style light theme v3
Add CSS for Strict Article Creator
Β 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ================================================================
/* ════════════════════════════════════════════════════════════════════
Β Β  ZelocoreCMS Wiki β€” MediaWiki:Common.css
Β Β  ZelocoreCMS Wiki β€” MediaWiki:Common.css v4.0
Β Β  Pixel-perfect Wikipedia-style theme (en.wikipedia.org reference)
Β Β  Wikipedia-style layout with modern card polish
Β Β  ================================================================ */
Β Β  ════════════════════════════════════════════════════════════════════ */


/* ── Variables ─────────────────────────────────────────────── */
/* ── GLOBAL: Hide Main Page title ──────────────────────────────────── */
:root {
body.page-Main_Page h1#firstHeading,
Β Β  --bg: Β  Β  Β  Β  #f8f9fa;
body.page-Main_Page .firstHeading,
Β Β  --white: Β  Β  Β  #ffffff;
body.page-Main_Page .mw-page-title-main { display: none !important; }
Β Β  --border: Β  Β  #a2a9b1;
Β 
Β Β  --border-lt:Β  #eaecf0;
/* ── GLOBAL: Better wikitable ──────────────────────────────────────── */
Β Β  --blue: Β  Β  Β  #3366cc;
table.wikitable {
Β Β  --blue-vis: Β  #6b4ba1;
Β Β  border-radius: 8px;
Β Β  --blue-lt: Β  Β  #eaf3fb;
Β  overflow: hidden;
Β Β  --blue-hd: Β  Β  #cee0f2;
Β  border-collapse: separate;
Β  --blue-hd2: Β  #a3b0cc;
Β  border-spacing: 0;
Β Β  --red-new: Β  Β  #d33;
Β  border: 1px solid #e2e8f0;
Β Β  --green: Β  Β  Β  #14866d;
Β Β  box-shadow: 0 2px 8px rgba(37,99,235,.06);
Β Β  --yellow-bg:Β  #fef6e7;
Β  width: 100%;
Β Β  --yellow-bd:Β  #f0c93a;
}
Β Β  --gray-hd: Β  Β  #dce3ee;
table.wikitable th {
Β Β  --text: Β  Β  Β  #202122;
Β  background: linear-gradient(90deg, #1e1b4b, #2563eb) !important;
Β Β  --text-dim: Β  #54595d;
Β  color: #ffffff !important;
Β Β  --text-sm: Β  Β  #72777d;
Β Β  font-weight: 700;
Β Β  --font-sans:Β  -apple-system, 'Linux Libertine', 'Helvetica Neue', Arial, sans-serif;
Β Β  border: none !important;
Β Β  --font-serif: 'Linux Libertine', Georgia, 'Times New Roman', serif;
Β Β  padding: 10px 12px !important;
Β Β  --font-mono: Β  'SFMono-Regular', 'Courier New', Courier, monospace;
}
table.wikitable td {
Β Β  border: none !important;
Β Β  border-bottom: 1px solid #f1f5f9 !important;
Β Β  padding: 8px 12px !important;
Β Β  vertical-align: middle !important;
}
table.wikitable tr:hover td { background: #eff6ff !important; }
table.wikitable tr:last-child td { border-bottom: none !important; }
Β 
/* ── GLOBAL: Code blocks ───────────────────────────────────────────── */
code, tt, kbd {
Β Β  background: #f1f5f9;
Β Β  border: 1px solid #e2e8f0;
Β Β  border-radius: 4px;
Β Β  padding: 1px 6px;
Β Β  font-size: .88em;
Β Β  color: #7c3aed;
}
pre {
Β Β  background: #0f172a;
Β Β  color: #e2e8f0;
Β Β  border: 1px solid #334155;
Β Β  border-radius: 8px;
Β  padding: 16px 18px;
Β Β  font-size: .875em;
Β Β  line-height: 1.6;
Β Β  overflow-x: auto;
Β Β  position: relative;
}
}


/* ── Reset & Base ──────────────────────────────────────────── */
/* ── GLOBAL: Heading styles ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
#mw-content-text h2 {
html { scroll-behavior: smooth; }
Β Β  border-bottom: 2px solid #2563eb;
body {
Β Β  padding-bottom: 4px;
Β Β  background: var(--bg) !important;
Β Β  margin-top: 1.5em;
Β  color: var(--text) !important;
Β Β  color: #1e1b4b;
Β Β  font-family: var(--font-sans) !important;
Β  font-size: 14px !important;
Β Β  line-height: 1.6 !important;
Β Β  margin: 0; padding: 0;
}
}
#mw-content-text h3 { color: #2563eb; }


/* ── Links ─────────────────────────────────────────────────── */
/* ── GLOBAL: Template callout boxes ────────────────────────────────── */
a, .mw-body-content a { color: var(--blue) !important; text-decoration: none !important; }
.cms-noteΒ  Β  { background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #1e3a5f; font-size: .92em; }
a:hover, .mw-body-content a:hover { text-decoration: underline !important; text-shadow: none !important; color: var(--blue) !important; }
.cms-warning { background: #fff7ed; border-left: 4px solid #f59e0b; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #7c2d12; font-size: .92em; }
a:visited, .mw-body-content a:visited { color: var(--blue-vis) !important; }
.cms-tipΒ  Β  { background: #f0fdf4; border-left: 4px solid #059669; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #064e3b; font-size: .92em; }
a.new, .mw-body-content a.new { color: var(--red-new) !important; }
.cms-stubΒ  Β  { background: #fefce8; border: 1px solid #fde047; border-radius: 8px; padding: 10px 14px; margin: 16px 0; color: #713f12; font-size: .88em; }
a.new:visited { color: #a55858 !important; }
a.external { color: #3366cc !important; }


/* ── Headings ──────────────────────────────────────────────── */
/* ── GLOBAL: Fixed utility buttons ─────────────────────────────────── */
#firstHeading, .mw-page-title-main {
#cms-dark-toggle {
Β Β  font-family: var(--font-sans) !important;
Β Β  position: fixed; bottom: 80px; right: 18px;
Β Β  font-size: 2em !important;
Β Β  width: 42px; height: 42px;
Β  font-weight: normal !important;
Β Β  background: #1e1b4b; color: #fff;
Β Β  color: var(--text) !important;
Β Β  border: none; border-radius: 50%;
Β  -webkit-text-fill-color: var(--text) !important;
Β Β  font-size: 1.2em; cursor: pointer;
Β Β  background: none !important;
Β Β  box-shadow: 0 4px 16px rgba(0,0,0,.3);
Β  border-bottom: 1px solid var(--border) !important;
Β Β  z-index: 9999;
Β Β  padding-bottom: 5px !important;
Β  margin-top: 0 !important;
Β Β  margin-bottom: 10px !important;
Β Β  line-height: 1.2 !important;
}
}
.mw-body-content h2 {
#cms-back-top {
Β Β  font-size: 1.5em !important; font-weight: normal !important;
Β  position: fixed; bottom: 24px; right: 18px;
Β Β  color: var(--text) !important; border-bottom: 1px solid var(--border) !important;
Β  width: 42px; height: 42px;
Β Β  padding-bottom: 3px !important; margin-top: 20px !important;
Β  background: #2563eb; color: #fff;
Β  border: none; border-radius: 50%;
Β Β  font-size: 1.2em; cursor: pointer;
Β Β  box-shadow: 0 4px 16px rgba(37,99,235,.4);
Β Β  z-index: 9999; opacity: 0; pointer-events: none;
}
}
.mw-body-content h2 .mw-headline {
#cms-back-top.visible { opacity: 1; pointer-events: all; }
Β Β  color: var(--text) !important; -webkit-text-fill-color: var(--text) !important; background: none !important;
#cms-progress {
Β Β  position: fixed; top: 0; left: 0;
Β  height: 3px; width: 0%;
Β  background: linear-gradient(90deg, #2563eb, #7c3aed);
Β  z-index: 99999;
}
#cms-helpful {
Β  background: #f8fafc; border: 1px solid #e2e8f0;
Β  border-radius: 10px; padding: 14px 18px;
Β  margin: 24px 0 8px; font-size: .9em; color: #334155;
}
.cms-helpful-btn {
Β  background: #fff; border: 1.5px solid #e2e8f0;
Β  border-radius: 20px; padding: 5px 16px;
Β  cursor: pointer; font-size: .88em; font-weight: 600; margin: 0 4px;
}
}
.mw-body-content h3 { font-size: 1.2em !important; font-weight: bold !important; color: var(--text) !important; }
.mw-body-content h4 { font-size: 1em !important; font-weight: bold !important; color: var(--text) !important; }


/* ── Header / Toolbar ──────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════
#mw-head, .mw-header { background: var(--white) !important; border-bottom: 1px solid var(--border-lt) !important; box-shadow: none !important; }
Β  MAIN PAGE β€” Wikipedia-style layout (scoped to body.page-Main_Page)
.vector-page-toolbar { background: transparent !important; border-bottom: 1px solid var(--border-lt) !important; }
Β  ══════════════════════════════════════════════════════════════════════ */


/* ── Search ────────────────────────────────────────────────── */
/* ── Top welcome banner ────────────────────────────────────────────── */
.cdx-text-input__input, #searchInput, input[name="search"] {
body.page-Main_Page #mp-topbanner {
Β Β  background: var(--white) !important; border: 1px solid var(--border) !important;
Β Β  background: #cee0f2;
Β Β  border-radius: 2px !important; color: var(--text) !important;
Β  border: 1px solid #a2a9b1;
Β Β  font-family: var(--font-sans) !important; font-size: 13px !important;
Β Β  border-radius: 0;
Β Β  padding: 5px 10px !important; box-shadow: none !important;
Β  padding: 8px 16px;
Β  margin-bottom: 14px;
Β Β  text-align: center;
Β  font-size: 1em;
Β Β  color: #202122;
Β  line-height: 1.5;
}
}
.cdx-text-input__input:focus, #searchInput:focus {
body.page-Main_Page #mp-topbanner a { color: #3366cc; }
Β Β  border-color: var(--blue) !important; box-shadow: 0 0 0 2px rgba(51,102,204,0.15) !important; outline: none !important;
Β 
/* ── Two-column layout β€” Wikipedia proportions ─────────────────────── */
body.page-Main_Page #mp-upper {
Β  display: flex;
Β Β  flex-wrap: wrap;
Β  gap: 14px;
Β  margin-bottom: 14px;
Β  align-items: flex-start;
}
}
body.page-Main_Page #mp-leftΒ  { flex: 1 1 58%; min-width: 300px; }
body.page-Main_Page #mp-right { flex: 1 1 35%; min-width: 260px; }


/* ── Sidebar ───────────────────────────────────────────────── */
/* ── Content cards β€” Wikipedia-box style ───────────────────────────── */
#mw-panel, .mw-sidebar { background: transparent !important; }
body.page-Main_Page .mp-card {
.mw-panel .portal, .vector-menu-portal { background: transparent !important; border: none !important; margin-bottom: 10px !important; }
Β Β  background: #ffffff;
.mw-panel .portal h3, .vector-menu-heading {
Β Β  border: 1px solid #a2a9b1;
Β Β  color: var(--text-dim) !important; font-size: 0.75em !important;
Β Β  border-radius: 4px;
Β Β  font-weight: bold !important; text-transform: uppercase !important;
Β Β  margin-bottom: 14px;
Β Β  letter-spacing: 0.025em !important; padding: 4px 0 3px !important;
Β  overflow: hidden;
Β Β  border-bottom: 1px solid var(--border-lt) !important; background: transparent !important;
}
}
.mw-panel .portal ul li a, .vector-menu-content-list li a {
body.page-Main_Page .mp-card-header {
Β Β  color: var(--blue) !important; font-size: 0.875em !important;
Β Β  padding: 6px 12px;
Β Β  padding: 2px 0 !important; display: block !important;
Β  font-weight: bold;
Β Β  background: transparent !important; border: none !important;
Β Β  font-size: .95em;
Β Β  border-bottom: 1px solid #a2a9b1;
}
}
.mw-panel .portal ul li a:hover, .vector-menu-content-list li a:hover {
body.page-Main_Page .mp-card-header-blueΒ  { background: #cee0f2; color: #202122; }
Β Β  text-decoration: underline !important; background: transparent !important; text-shadow: none !important;
body.page-Main_Page .mp-card-header-yellow { background: #fef6e7; color: #202122; }
body.page-Main_Page .mp-card-header-greenΒ  { background: #d5f5e3; color: #202122; }
body.page-Main_Page .mp-card-header-purple { background: #e8d5f5; color: #202122; }
body.page-Main_Page .mp-card-header-grayΒ  { background: #eaecf0; color: #202122; }
body.page-Main_Page .mp-card-body { padding: 10px 12px; font-size: .9em; line-height: 1.65; color: #202122; }
body.page-Main_Page .mp-card-body ul { margin: 0; padding-left: 1.4em; }
body.page-Main_Page .mp-card-body li { margin-bottom: 4px; }
Β 
/* ── Category cards inside Browse box ──────────────────────────────── */
body.page-Main_Page .mp-cat-grid {
Β  display: flex;
Β  flex-wrap: wrap;
Β  gap: 8px;
Β  margin-top: 4px;
}
body.page-Main_Page .mp-cat-card {
Β  flex: 1 1 120px;
Β  border-radius: 6px;
Β  padding: 10px 8px;
Β Β  text-align: center;
Β  border: 1px solid #c8ccd1;
Β  transition: transform .18s, box-shadow .18s;
}
body.page-Main_Page .mp-cat-card:hover {
Β  transform: translateY(-3px);
Β  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
}
body.page-Main_Page .mp-cat-card a {
Β  display: flex;
Β  flex-direction: column;
Β  align-items: center;
Β  gap: 3px;
Β  text-decoration: none !important;
Β  color: inherit !important;
}
body.page-Main_Page .mp-cat-icon { font-size: 1.8em; line-height: 1; display: block; }
body.page-Main_Page .mp-cat-name { font-size: .82em; font-weight: bold; display: block; margin-top: 3px; color: #202122; }
body.page-Main_Page .mp-cat-desc { font-size: .7em; color: #54595d; display: block; line-height: 1.2; }


/* ── Content area ──────────────────────────────────────────── */
/* Card colour themes */
.mw-body { background: var(--white) !important; border: none !important; padding: 20px 30px !important; color: var(--text) !important; }
body.page-Main_Page .mp-cat-bloggingΒ  { background: linear-gradient(135deg,#fef3c7,#fde68a); border-color: #c8a000; }
.mw-body-content { background: var(--white) !important; color: var(--text) !important; font-size: 0.9375em; }
body.page-Main_Page .mp-cat-headlessΒ  { background: linear-gradient(135deg,#ede9fe,#ddd6fe); border-color: #6d28d9; }
.mw-page-container { background: var(--bg) !important; }
body.page-Main_Page .mp-cat-ecommerceΒ  { background: linear-gradient(135deg,#dcfce7,#bbf7d0); border-color: #059669; }
.mw-content-container { background: var(--white) !important; }
body.page-Main_Page .mp-cat-enterprise { background: linear-gradient(135deg,#dbeafe,#bfdbfe); border-color: #2563eb; }
body.page-Main_Page .mp-cat-opensource { background: linear-gradient(135deg,#fee2e2,#fecaca); border-color: #dc2626; }
body.page-Main_Page .mp-cat-saasΒ  Β  Β  { background: linear-gradient(135deg,#e0f2fe,#bae6fd); border-color: #0891b2; }
body.page-Main_Page .mp-cat-wikiΒ  Β  Β  { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color: #16a34a; }
body.page-Main_Page .mp-cat-allΒ  Β  Β  Β  { background: linear-gradient(135deg,#f1f5f9,#e2e8f0); border-color: #64748b; }


/* ── Wikitable ─────────────────────────────────────────────── */
/* ── Portal grid β€” "Other areas" section ───────────────────────────── */
.wikitable {
body.page-Main_Page #mp-portals {
Β Β  background: var(--white) !important; border-collapse: collapse !important;
Β Β  background: #ffffff;
Β Β  border: 1px solid var(--border) !important; margin: 1em 0 !important; font-size: 0.9em;
Β  border: 1px solid #a2a9b1;
Β Β  border-radius: 4px;
Β  margin-top: 14px;
Β  overflow: hidden;
}
}
.wikitable > tr > th, .wikitable > * > tr > th {
body.page-Main_Page #mp-portals-header {
Β Β  background: var(--blue-hd) !important; color: var(--text) !important;
Β Β  background: #cee0f2;
Β Β  border: 1px solid var(--border) !important; padding: 5px 8px !important;
Β Β  border-bottom: 1px solid #a2a9b1;
Β Β  font-weight: bold !important; font-size: 1em !important; text-align: left !important;
Β  padding: 6px 12px;
Β Β  font-weight: bold;
Β  font-size: .95em;
Β  color: #202122;
}
}
.wikitable > tr > td, .wikitable > * > tr > td {
body.page-Main_Page .mp-portal-grid {
Β Β  background: var(--white) !important; color: var(--text) !important;
Β Β  display: flex;
Β Β  border: 1px solid var(--border) !important; padding: 5px 8px !important;
Β  flex-wrap: wrap;
Β Β  background: #ffffff;
}
}
.wikitable > tr:nth-child(even) > td, .wikitable > tbody > tr:nth-child(even) > td {
body.page-Main_Page .mp-portal-cell {
Β Β  background: #f8f9fa !important;
Β  flex: 1 1 140px;
Β  border-right: 1px solid #eaecf0;
Β Β  border-bottom: 1px solid #eaecf0;
Β  padding: 12px 8px;
Β  text-align: center;
Β  font-size: .85em;
Β  transition: background .15s;
}
}
.wikitable > tbody > tr:hover > td { background: var(--blue-lt) !important; }
body.page-Main_Page .mp-portal-cell:hover { background: #eaf3fb; }
body.page-Main_Page .mp-portal-cell a { color: #3366cc !important; font-weight: bold; display: block; text-decoration: none; }
body.page-Main_Page .mp-portal-icon { font-size: 1.8em; display: block; margin-bottom: 4px; }
body.page-Main_Page .mp-portal-desc { display: block; color: #54595d; font-size: .8em; margin-top: 2px; font-weight: normal; }


/* ── Infobox ───────────────────────────────────────────────── */
/* ── Contribute CTA ────────────────────────────────────────────────── */
.infobox, table.infobox {
body.page-Main_Page #mp-contribute {
Β Β  float: right !important; clear: right !important;
Β  background: linear-gradient(135deg, #059669, #065f46);
Β Β  margin: 0 0 1em 1.5em !important; width: 22em !important;
Β  border-radius: 4px;
Β  background: var(--white) !important; border: 1px solid var(--border) !important;
Β Β  padding: 20px 20px;
Β Β  border-collapse: collapse !important; font-size: 88% !important; line-height: 1.5 !important;
Β  text-align: center;
Β Β  box-shadow: none !important; backdrop-filter: none !important;
Β Β  margin-top: 14px;
Β  color: #ffffff;
}
body.page-Main_Page #mp-contribute-title { font-size: 1.15em; font-weight: bold; color: #ffffff; margin-bottom: 8px; }
body.page-Main_Page #mp-contribute-descΒ  { color: rgba(255,255,255,.9); margin-bottom: 14px; font-size: .92em; line-height: 1.55; }
body.page-Main_Page #mp-contribute a {
Β  display: inline-block;
Β  background: #ffffff;
Β  color: #065f46 !important;
Β Β  border-radius: 20px;
Β  padding: 7px 18px;
Β  font-weight: bold;
Β  font-size: .9em;
Β Β  text-decoration: none;
Β  margin: 3px;
}
}
.infobox caption, table.infobox caption {
Β 
Β Β  background: var(--blue-hd) !important; color: var(--text) !important;
/* ── Responsive ────────────────────────────────────────────────────── */
Β Β  font-weight: bold !important; font-size: 1.1em !important;
@media screen and (max-width: 768px) {
Β Β  padding: 6px 10px !important; text-align: center !important;
Β Β  body.page-Main_Page #mp-upper { display: block; }
Β Β  border-bottom: 1px solid var(--border) !important;
Β Β  body.page-Main_Page #mp-left, body.page-Main_Page #mp-right { width: 100%; min-width: 0; }
Β Β  body.page-Main_Page .mp-cat-card { flex: 1 1 calc(50% - 8px); }
Β Β  body.page-Main_Page .mp-portal-cell { flex: 1 1 calc(50% - 0px); }
}
}
.infobox th { background: #f8f9fa !important; color: var(--text) !important; border: 1px solid var(--border) !important; padding: 4px 6px !important; font-weight: bold !important; text-transform: none !important; }
.infobox td { background: var(--white) !important; color: var(--text) !important; border: 1px solid var(--border) !important; padding: 4px 6px !important; }


/* ── TOC ───────────────────────────────────────────────────── */
/* Advanced Create Article Widget */
#toc, .toc {
#advanced-create-widget {
Β  background: #f8f9fa !important; border: 1px solid var(--border) !important;
Β  Β  display: flex;
Β  padding: 10px 16px !important; display: table !important; margin: 0 0 1em 0 !important;
Β  Β  flex-direction: column;
Β  box-shadow: none !important; border-radius: 0 !important;
Β  Β  gap: 8px;
}
#create-article-title {
Β  Β  padding: 8px 12px;
Β  Β  border: 1px solid #c8ccd1;
Β  Β  border-radius: 4px;
Β  Β  font-size: 14px;
Β  Β  outline: none;
Β  Β  transition: border-color 0.2s, box-shadow 0.2s;
}
}
#toc h2, .toc h2, .toc .toctitle {
#create-article-title:focus {
Β  font-size: 1em !important; font-weight: bold !important; text-align: center !important;
Β  Β  border-color: #3366cc;
Β  color: var(--text) !important; -webkit-text-fill-color: var(--text) !important;
Β  Β  box-shadow: 0 0 0 2px rgba(51,102,204,0.2);
Β  background: none !important; border: none !important; padding: 0 0 5px !important; margin: 0 !important;
}
}
.toc a, #toc a { color: var(--blue) !important; font-size: 0.875em !important; }
#create-article-title.is-invalid {
.toc li, #toc li { line-height: 1.7 !important; }
Β  Β  border-color: #d33;
.toc ul, #toc ul { margin: 0 !important; padding: 0 0 0 1.5em !important; list-style: none !important; }
Β  Β  box-shadow: 0 0 0 2px rgba(221,51,51,0.2);
.tocnumber { color: var(--text-dim) !important; padding-right: 4px !important; }
}
Β 
#create-article-title.is-valid {
/* ── Code / Pre ────────────────────────────────────────────── */
Β  Β  border-color: #00af89;
code, tt, kbd, var {
Β  Β  box-shadow: 0 0 0 2px rgba(0,175,137,0.2);
Β  font-family: var(--font-mono) !important; background: #f8f9fa !important;
Β  color: var(--text) !important; padding: 1px 4px !important; font-size: 0.875em !important;
Β  border: 1px solid var(--border-lt) !important; border-radius: 2px !important;
}
}
pre, .mw-code, .mw-body-content pre {
#create-article-status {
Β  font-family: var(--font-mono) !important; background: #f8f9fa !important;
Β  Β  font-size: 12px;
Β  color: var(--text) !important; border: 1px solid var(--border) !important;
Β  Β  min-height: 16px;
Β  padding: 1em !important; overflow-x: auto !important; font-size: 0.875em !important;
Β  Β  font-weight: 500;
Β  line-height: 1.5 !important; margin: 0.8em 0 !important;
Β  border-radius: 0 !important; position: relative;
}
}
.mw-highlight { background: #f8f9fa !important; border: 1px solid var(--border) !important; }
.status-checking { color: #72777d; }
.mw-highlight pre { border: none !important; margin: 0 !important; }
.status-error { color: #d33; }
.status-success { color: #00af89; }


/* ── Message Boxes (ambox) ─────────────────────────────────── */
#create-article-btn {
.zc-note, div.zc-note {
Β  Β  background-color: #3366cc;
Β  background: #eaf3fb !important; border: 1px solid #36c !important;
Β  Β  color: white;
Β  border-left: 4px solid #36c !important; padding: 8px 12px !important;
Β  Β  border: none;
Β  margin: 0.8em 0 !important; font-size: 0.9em !important; border-radius: 0 !important; color: var(--text) !important;
Β  Β  border-radius: 4px;
Β  Β  padding: 8px 16px;
Β  Β  font-size: 14px;
Β  Β  font-weight: bold;
Β  Β  cursor: pointer;
Β  Β  transition: background-color 0.2s, transform 0.1s;
}
}
.zc-warning, div.zc-warning {
#create-article-btn:hover:not(:disabled) {
Β  background: #fef6e7 !important; border: 1px solid var(--yellow-bd) !important;
Β  Β  background-color: #2a4b8d;
Β  border-left: 4px solid var(--yellow-bd) !important; padding: 8px 12px !important;
Β  margin: 0.8em 0 !important; font-size: 0.9em !important; border-radius: 0 !important; color: var(--text) !important;
}
}
.zc-tip, div.zc-tip {
#create-article-btn:active:not(:disabled) {
Β  background: #f3fbef !important; border: 1px solid #36a73a !important;
Β  Β  transform: translateY(1px);
Β  border-left: 4px solid #36a73a !important; padding: 8px 12px !important;
Β  margin: 0.8em 0 !important; font-size: 0.9em !important; border-radius: 0 !important; color: var(--text) !important;
}
}
.zc-verified-banner {
#create-article-btn:disabled {
Β  background: #f3fbf7 !important; border: 1px solid var(--green) !important;
Β  Β  background-color: #c8ccd1;
Β  border-left: 4px solid var(--green) !important; padding: 8px 12px !important;
Β  Β  cursor: not-allowed;
Β  margin-bottom: 1em !important; display: flex; align-items: flex-start; gap: 10px;
Β  color: var(--text) !important; border-radius: 0 !important; box-shadow: none !important; animation: none !important;
}
}
Β 
.create-article-links {
/* ── Badges ────────────────────────────────────────────────── */
Β Β  Β  font-size: 12px;
.zc-owner-badgeΒ  { display:inline-block; background:#14866d; color:#fff !important; font-size:0.75em; font-weight:bold; padding:1px 6px; border-radius:2px; }
Β  Β  text-align: center;
.zc-dev-badge Β  Β  { display:inline-block; background:var(--blue); color:#fff !important; font-size:0.75em; font-weight:bold; padding:1px 6px; border-radius:2px; }
Β  Β  margin-top: 4px;
.zc-contrib-badge { display:inline-block; background:#72777d; color:#fff !important; font-size:0.75em; font-weight:bold; padding:1px 6px; border-radius:2px; }
.zc-version-badge { display:inline-block; background:#f8f9fa; border:1px solid var(--border); color:var(--text); font-family:var(--font-mono); font-size:0.8em; padding:1px 5px; border-radius:2px; }
.zc-license-badge { display:inline-block; background:var(--blue-lt); border:1px solid var(--border); color:var(--blue); font-size:0.8em; font-weight:bold; padding:1px 5px; border-radius:2px; }
Β 
/* ── Profile card ──────────────────────────────────────────── */
.zc-profile-card { background:var(--white) !important; border:1px solid var(--border) !important; padding:16px !important; margin-bottom:1.5em !important; box-shadow:none !important; border-radius:0 !important; }
.zc-skill-tag { display:inline-block; background:#f8f9fa; border:1px solid var(--border); color:var(--text-dim); font-size:0.8em; padding:2px 7px; border-radius:2px; margin:2px; }
Β 
/* ── Buttons ───────────────────────────────────────────────── */
.mw-ui-button { background:#f8f9fa !important; border:1px solid var(--border) !important; border-radius:2px !important; color:var(--text) !important; font-size:0.875em !important; padding:6px 16px !important; box-shadow:none !important; }
.mw-ui-button:hover { background:var(--border-lt) !important; }
.mw-ui-progressive, .mw-ui-button.mw-ui-progressive { background:var(--blue) !important; border-color:#2a4b8d !important; color:#fff !important; }
.mw-ui-progressive:hover { background:#2a4b8d !important; }
Β 
/* ── Page tabs ─────────────────────────────────────────────── */
#p-views .selected a { color:var(--text) !important; border-bottom:2px solid var(--text) !important; }
#p-views li a { color:var(--blue) !important; border-bottom:2px solid transparent; font-size:0.875em !important; }
#p-views li a:hover { text-decoration:none !important; color:var(--text) !important; }
Β 
/* ── Category links ────────────────────────────────────────── */
.mw-normal-catlinks, div.mw-normal-catlinks {
Β  background:#f8f9fa !important; border:1px solid var(--border) !important;
Β  padding:5px 10px !important; margin-top:1em !important; font-size:0.9em !important;
}
}
.mw-normal-catlinks a { color:var(--blue) !important; }


/* ── Footer ────────────────────────────────────────────────── */
/* Strict Article Creator */
#footer, .mw-footer {
.strict-creator {
Β  background:#f8f9fa !important; border-top:1px solid var(--border) !important;
Β  Β  background: #f8fafc;
Β  color:var(--text-sm) !important; padding:16px 24px !important;
Β  Β  border: 1px solid #e2e8f0;
Β  font-size:0.8125em !important; margin-top:2em !important;
Β  Β  border-radius: 8px;
Β  Β  padding: 14px;
}
}
#footer a, .mw-footer a { color:var(--blue) !important; }
.strict-creator label.sc-main-label {
#footer a:hover { text-decoration:underline !important; text-shadow:none !important; }
Β  Β  font-weight: bold;
#footer-icons { float:right !important; }
Β  Β  display: block;
.mw-footer-container { display:flex; flex-wrap:wrap; align-items:center; }
Β  Β  margin-bottom: 6px;
Β 
Β  Β  font-size: 0.9em;
/* ── Edit textarea ─────────────────────────────────────────── */
Β  Β  color: #334155;
textarea#wpTextbox1 { background:var(--white) !important; color:var(--text) !important; border:1px solid var(--border) !important; font-family:var(--font-mono) !important; padding:8px !important; border-radius:2px !important; }
.diff-addedline { background:#d4f4d4 !important; }
.diff-deletedline { background:#f4d4d4 !important; }
.diffchange { background:#ffd !important; font-weight:bold !important; }
Β 
/* ── Notifications / Echo ──────────────────────────────────── */
.oo-ui-popupWidget { background:var(--white) !important; border:1px solid var(--border) !important; box-shadow:0 2px 8px rgba(0,0,0,0.15) !important; border-radius:2px !important; }
.mw-echo-ui-notificationItemWidget { border-bottom:1px solid var(--border-lt) !important; background:var(--white) !important; color:var(--text) !important; }
.mw-echo-ui-notificationItemWidget:hover { background:#f8f9fa !important; }
Β 
/* ── Progress bar (reading) ────────────────────────────────── */
#zc-reading-progress { background:var(--blue) !important; box-shadow:none !important; }
Β 
/* ── Back to top ───────────────────────────────────────────── */
#zc-back-to-top { background:var(--blue) !important; color:#fff !important; box-shadow:0 2px 8px rgba(0,0,0,0.2) !important; font-size:1rem !important; }
Β 
/* ── Copy button ───────────────────────────────────────────── */
.zc-copy-btn { background:#f8f9fa !important; border:1px solid var(--border) !important; color:var(--text-dim) !important; }
.zc-copy-btn:hover { background:var(--border-lt) !important; border-color:var(--blue) !important; color:var(--blue) !important; }
Β 
/* ── Recent changes ────────────────────────────────────────── */
.mw-changeslist-line { border-bottom:1px solid var(--border-lt) !important; padding:3px 0 !important; }
.mw-changeslist-separator { display:none; }
Β 
/* ═══════════════════════════════════════════════════════════
Β  MAIN PAGE β€” Wikipedia Layout
Β  ═══════════════════════════════════════════════════════════ */
Β 
/* Hide the page title on Main_Page */
.page-Main_Page #firstHeading,
.page-Main_Page .mw-page-title-main { display:none !important; }
Β 
/* Top banner */
#mp-topbanner {
Β  background: var(--blue-hd);
Β  border: 1px solid var(--border);
Β  padding: 12px 16px;
Β  margin-bottom: 14px;
Β  text-align: center;
Β  font-size: 1.05em;
}
}
Β 
#sc-title {
/* Main page column container */
Β  Β  width: 100%;
#mp-upper {
Β  Β  padding: 8px 12px;
Β  display: flex;
Β  Β  border: 1px solid #cbd5e1;
Β  gap: 0;
Β  Β  border-radius: 4px;
Β  margin-bottom: 14px;
Β  Β  font-size: 14px;
Β  align-items: flex-start;
Β  Β  box-sizing: border-box;
Β  Β  transition: all 0.2s;
}
}
Β 
#sc-title:focus {
/* Left column (55%) */
Β  Β  border-color: #3b82f6;
#mp-left {
Β  Β  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
Β  width: 55%;
Β  Β  outline: none;
Β  padding-right: 12px;
Β  border-right: 1px solid var(--border);
}
}
Β 
#sc-status {
/* Right column (45%) */
Β  Β  font-size: 12px;
#mp-right {
Β  Β  min-height: 18px;
Β  width: 45%;
Β  Β  margin-top: 4px;
Β  padding-left: 12px;
Β  Β  margin-bottom: 12px;
Β  Β  font-weight: bold;
}
}
Β 
#sc-cats {
/* Section box headings */
Β  Β  display: flex;
.mp-h2 {
Β  Β  flex-wrap: wrap;
Β  background: var(--blue-hd);
Β  Β  gap: 6px;
Β  border: 1px solid var(--border);
Β  Β  margin-bottom: 14px;
Β  border-bottom: none;
Β  padding: 5px 10px;
Β  font-size: 0.95em;
Β  font-weight: bold;
Β  font-family: var(--font-sans);
Β  color: var(--text);
Β  margin: 0;
}
}
.mp-h2-yellow { background: var(--yellow-bg); border-bottom: none; }
.sc-cat-label {
.mp-h2-greenΒ  { background: #ecf5ec; border-bottom: none; }
Β  Β  background: #ffffff;
.mp-h2-grayΒ  { background: var(--gray-hd); border-bottom: none; }
Β  Β  border: 1px solid #cbd5e1;
Β 
Β  Β  border-radius: 16px;
/* Section box body */
Β  Β  padding: 4px 10px;
.mp-body {
Β  Β  font-size: 0.85em;
Β  background: var(--white);
Β  Β  cursor: pointer;
Β  border: 1px solid var(--border);
Β  Β  user-select: none;
Β  border-top: none;
Β  Β  transition: all 0.2s;
Β  padding: 10px 12px;
Β  Β  color: #475569;
Β  margin-bottom: 12px;
Β  Β  margin: 0 !important;
Β  font-size: 0.875em;
Β  line-height: 1.6;
Β  color: var(--text);
}
}
.mp-body ul { margin: 0; padding-left: 1.5em; }
.sc-cat-label.is-checked {
.mp-body li { margin-bottom: 4px; }
Β  Β  background: #eff6ff;
.mp-body a { color: var(--blue) !important; }
Β  Β  border-color: #3b82f6;
Β 
Β  Β  color: #1d4ed8;
/* Portal grid (bottom of main page) */
Β  Β  font-weight: 500;
#mp-portals {
Β  margin-top: 14px;
Β  border: 1px solid var(--border);
}
}
#mp-portals-header {
.sc-cat-label.is-disabled {
Β  background: var(--gray-hd);
Β  Β  opacity: 0.5;
Β  border-bottom: 1px solid var(--border);
Β  Β  cursor: not-allowed;
Β  padding: 6px 12px;
Β  font-weight: bold;
Β  font-size: 0.95em;
}
}
.mp-portal-grid {
.sc-cat-label input {
Β  display: flex;
Β  Β  display: none;
Β  flex-wrap: wrap;
Β  gap: 0;
Β  background: var(--white);
}
}
.mp-portal-cell {
#sc-btn {
Β  flex: 1 1 16%;
Β  Β  width: 100%;
Β  border-right: 1px solid var(--border-lt);
Β  Β  background-color: #00af89;
Β  border-bottom: 1px solid var(--border-lt);
Β  Β  color: white;
Β  padding: 10px 8px;
Β  Β  border: none;
Β  text-align: center;
Β  Β  border-radius: 4px;
Β  font-size: 0.875em;
Β  Β  padding: 10px;
Β  min-width: 100px;
Β  Β  font-size: 14px;
Β  Β  font-weight: bold;
Β  Β  cursor: pointer;
Β  Β  transition: background-color 0.2s;
}
}
.mp-portal-cell:hover { background: var(--blue-lt); }
#sc-btn:hover:not(:disabled) {
.mp-portal-cell a { color: var(--blue) !important; font-weight: bold; display:block; }
Β  Β  background-color: #008a6d;
.mp-portal-icon { font-size: 1.8em; display: block; margin-bottom: 4px; line-height:1; }
.mp-portal-desc { display:block; color:var(--text-dim); font-size:0.85em; margin-top:2px; font-weight:normal; }
Β 
/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
Β  #mp-upper { flex-direction: column; }
Β  #mp-left { width: 100%; padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
Β  #mp-right { width: 100%; padding-left: 0; }
Β  .infobox { float: none !important; width: 100% !important; margin: 0 0 1em 0 !important; }
Β  .mw-body { padding: 12px !important; }
Β  .mp-portal-cell { flex: 1 1 30%; }
}
}
Β 
#sc-btn:disabled {
@media print {
Β  Β  background-color: #cbd5e1;
Β  #mw-head, #mw-panel, #footer, .noprint, #zc-reading-progress, #zc-back-to-top { display:none !important; }
Β  Β  cursor: not-allowed;
Β  body { background:#fff !important; color:#000 !important; }
Β  a { color:#000 !important; text-decoration:underline !important; }
}
}

Latest revision as of 22:42, 29 July 2026

/* ════════════════════════════════════════════════════════════════════
   ZelocoreCMS Wiki β€” MediaWiki:Common.css  v4.0
   Wikipedia-style layout with modern card polish
   ════════════════════════════════════════════════════════════════════ */

/* ── GLOBAL: Hide Main Page title ──────────────────────────────────── */
body.page-Main_Page h1#firstHeading,
body.page-Main_Page .firstHeading,
body.page-Main_Page .mw-page-title-main { display: none !important; }

/* ── GLOBAL: Better wikitable ──────────────────────────────────────── */
table.wikitable {
  border-radius: 8px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(37,99,235,.06);
  width: 100%;
}
table.wikitable th {
  background: linear-gradient(90deg, #1e1b4b, #2563eb) !important;
  color: #ffffff !important;
  font-weight: 700;
  border: none !important;
  padding: 10px 12px !important;
}
table.wikitable td {
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 8px 12px !important;
  vertical-align: middle !important;
}
table.wikitable tr:hover td { background: #eff6ff !important; }
table.wikitable tr:last-child td { border-bottom: none !important; }

/* ── GLOBAL: Code blocks ───────────────────────────────────────────── */
code, tt, kbd {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .88em;
  color: #7c3aed;
}
pre {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: .875em;
  line-height: 1.6;
  overflow-x: auto;
  position: relative;
}

/* ── GLOBAL: Heading styles ────────────────────────────────────────── */
#mw-content-text h2 {
  border-bottom: 2px solid #2563eb;
  padding-bottom: 4px;
  margin-top: 1.5em;
  color: #1e1b4b;
}
#mw-content-text h3 { color: #2563eb; }

/* ── GLOBAL: Template callout boxes ────────────────────────────────── */
.cms-note    { background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #1e3a5f; font-size: .92em; }
.cms-warning { background: #fff7ed; border-left: 4px solid #f59e0b; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #7c2d12; font-size: .92em; }
.cms-tip     { background: #f0fdf4; border-left: 4px solid #059669; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #064e3b; font-size: .92em; }
.cms-stub    { background: #fefce8; border: 1px solid #fde047; border-radius: 8px; padding: 10px 14px; margin: 16px 0; color: #713f12; font-size: .88em; }

/* ── GLOBAL: Fixed utility buttons ─────────────────────────────────── */
#cms-dark-toggle {
  position: fixed; bottom: 80px; right: 18px;
  width: 42px; height: 42px;
  background: #1e1b4b; color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.2em; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  z-index: 9999;
}
#cms-back-top {
  position: fixed; bottom: 24px; right: 18px;
  width: 42px; height: 42px;
  background: #2563eb; color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.2em; cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  z-index: 9999; opacity: 0; pointer-events: none;
}
#cms-back-top.visible { opacity: 1; pointer-events: all; }
#cms-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  z-index: 99999;
}
#cms-helpful {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 14px 18px;
  margin: 24px 0 8px; font-size: .9em; color: #334155;
}
.cms-helpful-btn {
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 20px; padding: 5px 16px;
  cursor: pointer; font-size: .88em; font-weight: 600; margin: 0 4px;
}

/* ══════════════════════════════════════════════════════════════════════
   MAIN PAGE β€” Wikipedia-style layout (scoped to body.page-Main_Page)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Top welcome banner ────────────────────────────────────────────── */
body.page-Main_Page #mp-topbanner {
  background: #cee0f2;
  border: 1px solid #a2a9b1;
  border-radius: 0;
  padding: 8px 16px;
  margin-bottom: 14px;
  text-align: center;
  font-size: 1em;
  color: #202122;
  line-height: 1.5;
}
body.page-Main_Page #mp-topbanner a { color: #3366cc; }

/* ── Two-column layout β€” Wikipedia proportions ─────────────────────── */
body.page-Main_Page #mp-upper {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}
body.page-Main_Page #mp-left  { flex: 1 1 58%; min-width: 300px; }
body.page-Main_Page #mp-right { flex: 1 1 35%; min-width: 260px; }

/* ── Content cards β€” Wikipedia-box style ───────────────────────────── */
body.page-Main_Page .mp-card {
  background: #ffffff;
  border: 1px solid #a2a9b1;
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}
body.page-Main_Page .mp-card-header {
  padding: 6px 12px;
  font-weight: bold;
  font-size: .95em;
  border-bottom: 1px solid #a2a9b1;
}
body.page-Main_Page .mp-card-header-blue   { background: #cee0f2; color: #202122; }
body.page-Main_Page .mp-card-header-yellow { background: #fef6e7; color: #202122; }
body.page-Main_Page .mp-card-header-green  { background: #d5f5e3; color: #202122; }
body.page-Main_Page .mp-card-header-purple { background: #e8d5f5; color: #202122; }
body.page-Main_Page .mp-card-header-gray   { background: #eaecf0; color: #202122; }
body.page-Main_Page .mp-card-body { padding: 10px 12px; font-size: .9em; line-height: 1.65; color: #202122; }
body.page-Main_Page .mp-card-body ul { margin: 0; padding-left: 1.4em; }
body.page-Main_Page .mp-card-body li { margin-bottom: 4px; }

/* ── Category cards inside Browse box ──────────────────────────────── */
body.page-Main_Page .mp-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
body.page-Main_Page .mp-cat-card {
  flex: 1 1 120px;
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid #c8ccd1;
  transition: transform .18s, box-shadow .18s;
}
body.page-Main_Page .mp-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
body.page-Main_Page .mp-cat-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none !important;
  color: inherit !important;
}
body.page-Main_Page .mp-cat-icon { font-size: 1.8em; line-height: 1; display: block; }
body.page-Main_Page .mp-cat-name { font-size: .82em; font-weight: bold; display: block; margin-top: 3px; color: #202122; }
body.page-Main_Page .mp-cat-desc { font-size: .7em; color: #54595d; display: block; line-height: 1.2; }

/* Card colour themes */
body.page-Main_Page .mp-cat-blogging   { background: linear-gradient(135deg,#fef3c7,#fde68a); border-color: #c8a000; }
body.page-Main_Page .mp-cat-headless   { background: linear-gradient(135deg,#ede9fe,#ddd6fe); border-color: #6d28d9; }
body.page-Main_Page .mp-cat-ecommerce  { background: linear-gradient(135deg,#dcfce7,#bbf7d0); border-color: #059669; }
body.page-Main_Page .mp-cat-enterprise { background: linear-gradient(135deg,#dbeafe,#bfdbfe); border-color: #2563eb; }
body.page-Main_Page .mp-cat-opensource { background: linear-gradient(135deg,#fee2e2,#fecaca); border-color: #dc2626; }
body.page-Main_Page .mp-cat-saas       { background: linear-gradient(135deg,#e0f2fe,#bae6fd); border-color: #0891b2; }
body.page-Main_Page .mp-cat-wiki       { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color: #16a34a; }
body.page-Main_Page .mp-cat-all        { background: linear-gradient(135deg,#f1f5f9,#e2e8f0); border-color: #64748b; }

/* ── Portal grid β€” "Other areas" section ───────────────────────────── */
body.page-Main_Page #mp-portals {
  background: #ffffff;
  border: 1px solid #a2a9b1;
  border-radius: 4px;
  margin-top: 14px;
  overflow: hidden;
}
body.page-Main_Page #mp-portals-header {
  background: #cee0f2;
  border-bottom: 1px solid #a2a9b1;
  padding: 6px 12px;
  font-weight: bold;
  font-size: .95em;
  color: #202122;
}
body.page-Main_Page .mp-portal-grid {
  display: flex;
  flex-wrap: wrap;
  background: #ffffff;
}
body.page-Main_Page .mp-portal-cell {
  flex: 1 1 140px;
  border-right: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  padding: 12px 8px;
  text-align: center;
  font-size: .85em;
  transition: background .15s;
}
body.page-Main_Page .mp-portal-cell:hover { background: #eaf3fb; }
body.page-Main_Page .mp-portal-cell a { color: #3366cc !important; font-weight: bold; display: block; text-decoration: none; }
body.page-Main_Page .mp-portal-icon { font-size: 1.8em; display: block; margin-bottom: 4px; }
body.page-Main_Page .mp-portal-desc { display: block; color: #54595d; font-size: .8em; margin-top: 2px; font-weight: normal; }

/* ── Contribute CTA ────────────────────────────────────────────────── */
body.page-Main_Page #mp-contribute {
  background: linear-gradient(135deg, #059669, #065f46);
  border-radius: 4px;
  padding: 20px 20px;
  text-align: center;
  margin-top: 14px;
  color: #ffffff;
}
body.page-Main_Page #mp-contribute-title { font-size: 1.15em; font-weight: bold; color: #ffffff; margin-bottom: 8px; }
body.page-Main_Page #mp-contribute-desc  { color: rgba(255,255,255,.9); margin-bottom: 14px; font-size: .92em; line-height: 1.55; }
body.page-Main_Page #mp-contribute a {
  display: inline-block;
  background: #ffffff;
  color: #065f46 !important;
  border-radius: 20px;
  padding: 7px 18px;
  font-weight: bold;
  font-size: .9em;
  text-decoration: none;
  margin: 3px;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media screen and (max-width: 768px) {
  body.page-Main_Page #mp-upper { display: block; }
  body.page-Main_Page #mp-left, body.page-Main_Page #mp-right { width: 100%; min-width: 0; }
  body.page-Main_Page .mp-cat-card { flex: 1 1 calc(50% - 8px); }
  body.page-Main_Page .mp-portal-cell { flex: 1 1 calc(50% - 0px); }
}

/* Advanced Create Article Widget */
#advanced-create-widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#create-article-title {
    padding: 8px 12px;
    border: 1px solid #c8ccd1;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#create-article-title:focus {
    border-color: #3366cc;
    box-shadow: 0 0 0 2px rgba(51,102,204,0.2);
}
#create-article-title.is-invalid {
    border-color: #d33;
    box-shadow: 0 0 0 2px rgba(221,51,51,0.2);
}
#create-article-title.is-valid {
    border-color: #00af89;
    box-shadow: 0 0 0 2px rgba(0,175,137,0.2);
}
#create-article-status {
    font-size: 12px;
    min-height: 16px;
    font-weight: 500;
}
.status-checking { color: #72777d; }
.status-error { color: #d33; }
.status-success { color: #00af89; }

#create-article-btn {
    background-color: #3366cc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
#create-article-btn:hover:not(:disabled) {
    background-color: #2a4b8d;
}
#create-article-btn:active:not(:disabled) {
    transform: translateY(1px);
}
#create-article-btn:disabled {
    background-color: #c8ccd1;
    cursor: not-allowed;
}
.create-article-links {
    font-size: 12px;
    text-align: center;
    margin-top: 4px;
}

/* Strict Article Creator */
.strict-creator {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
}
.strict-creator label.sc-main-label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
    font-size: 0.9em;
    color: #334155;
}
#sc-title {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s;
}
#sc-title:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
    outline: none;
}
#sc-status {
    font-size: 12px;
    min-height: 18px;
    margin-top: 4px;
    margin-bottom: 12px;
    font-weight: bold;
}
#sc-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.sc-cat-label {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 0.85em;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    color: #475569;
    margin: 0 !important;
}
.sc-cat-label.is-checked {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    font-weight: 500;
}
.sc-cat-label.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.sc-cat-label input {
    display: none;
}
#sc-btn {
    width: 100%;
    background-color: #00af89;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
#sc-btn:hover:not(:disabled) {
    background-color: #008a6d;
}
#sc-btn:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
}