Jump to content

MediaWiki:Common.css: Difference between revisions

From Archive
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* EJ Fox MediaWiki Theme - Consistent with main site */
/* EJ Fox Archive - Matched to website2 */


/* ==================== IMPORTS ==================== */
:root {
@import url('https://fonts.googleapis.com/css2?family=Signika+Negative:wght@200;300;400;500;600;700;800&family=Red+Hat+Mono:wght@300;400&family=Fjalla+One:wght@400&display=swap');
  /* Typography - Match website2 exactly */
  --font-body: 'Georgia', 'Times New Roman', 'Droid Serif', 'Times', 'Source Serif Pro', serif;
  --font-mono: ui-monospace, 'SF Mono', Monaco, monospace;


/* ==================== ROOT VARIABLES ==================== */
   /* Colors - Tailwind zinc, warm tones */
:root {
   --bg: #fafafa;
   /* Typography */
   --bg-alt: #f4f4f5;
  --font-primary: 'Signika Negative', sans-serif;
   --fg: #1a1a1a;           /* warm near-black */
  --font-mono: 'Red Hat Mono', monospace;
   --fg-secondary: #52525b; /* zinc-600 */
  --font-heading: 'Fjalla One', sans-serif;
   --fg-muted: #71717a;     /* zinc-500 */
 
   --border: #e4e4e7;        /* zinc-200 */
  /* Font Sizes - slightly reduced */
   --red: #dc2626;
   --text-base: 1rem;         /* 16px - reduced from 18px */
   --text-lg: 1.125rem;       /* 18px - reduced from 20px */
   --text-sm: 0.875rem;       /* 14px */
  --text-xs: 0.75rem;        /* 12px */
   --text-3xl: 1.75rem;       /* 28px - reduced from 30px */
   --text-4xl: 2rem;         /* 32px - reduced from 36px */
  --text-5xl: 2.75rem;      /* 44px - reduced from 48px */
 
  /* Spacing - tightened up */
   --space-1: 0.25rem;        /* 4px */
  --space-2: 0.5rem;        /* 8px */
   --space-3: 0.75rem;       /* 12px */
  --space-4: 1rem;          /* 16px */
  --space-5: 1.25rem;        /* 20px */
  --space-6: 1.5rem;        /* 24px */
  --space-8: 2rem;          /* 32px */
  --space-12: 3rem;          /* 48px */
 
  /* Layout */
  --max-width-3xl: 48rem; /* 768px */
  --max-width-4xl: 56rem; /* 896px */
 
  /* Transitions */
  --transition-fast: 200ms ease-out;
  --transition-normal: 300ms ease-out;
}


/* Light mode colors */
   --max-w: 65ch;
:root {
  --bg-primary: rgb(250, 250, 250);      /* zinc-50 */
  --bg-secondary: rgb(244, 244, 245);    /* zinc-100 */
  --bg-tertiary: rgb(228, 228, 231);    /* zinc-200 */
 
  --border-light: rgb(228, 228, 231);    /* zinc-200 */
  --border-medium: rgb(212, 212, 216);  /* zinc-300 */
  --border-dark: rgb(161, 161, 170);    /* zinc-400 */
 
  --text-primary: rgb(39, 39, 42);      /* zinc-800 */
  --text-secondary: rgb(82, 82, 91);    /* zinc-600 */
  --text-tertiary: rgb(113, 113, 122);  /* zinc-500 */
  --text-muted: rgb(161, 161, 170);      /* zinc-400 */
 
   --accent-primary: rgb(22, 163, 74);   /* green-600 */
  --accent-error: rgb(220, 38, 38);      /* red-600 */
 
  --hover-bg: rgb(228, 228, 231, 0.3);  /* zinc-200/30 */
  --focus-ring: rgb(161, 161, 170);      /* zinc-400 */
}
}


/* Dark mode colors */
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
   :root {
   :root {
     --bg-primary: rgb(24, 24, 27);       /* zinc-900 */
     --bg: #0a0a0a;           /* warm near-black */
     --bg-secondary: rgb(39, 39, 42);      /* zinc-800 */
     --bg-alt: #18181b;      /* zinc-900 */
    --bg-tertiary: rgb(63, 63, 70);      /* zinc-700 */
     --fg: #f5f5f4;           /* warmer off-white */
      
     --fg-secondary: #a1a1aa; /* zinc-400 */
    --border-light: rgb(63, 63, 70);     /* zinc-700 */
     --fg-muted: #71717a;    /* zinc-500 */
     --border-medium: rgb(82, 82, 91);    /* zinc-600 */
     --border: #3f3f46;       /* zinc-700 */
    --border-dark: rgb(113, 113, 122);    /* zinc-500 */
     --red: #f87171;
   
    --text-primary: rgb(244, 244, 245);  /* zinc-100 */
    --text-secondary: rgb(212, 212, 216); /* zinc-300 */
    --text-tertiary: rgb(161, 161, 170); /* zinc-400 */
     --text-muted: rgb(113, 113, 122);    /* zinc-500 */
   
     --accent-primary: rgb(74, 222, 128); /* green-400 */
    --accent-error: rgb(248, 113, 113);  /* red-400 */
   
    --hover-bg: rgb(63, 63, 70, 0.3);    /* zinc-700/30 */
     --focus-ring: rgb(82, 82, 91);       /* zinc-600 */
   }
   }
}
}


/* ==================== RESET & BASE ==================== */
/* === BASE === */
body {
body {
   background: var(--bg-primary) !important;
   background: var(--bg);
   color: var(--text-primary) !important;
   color: var(--fg);
   font-family: var(--font-primary) !important;
   font-family: var(--font-body);
   font-size: var(--text-base) !important;
   font-size: 1rem;
   line-height: 1.6 !important; /* Reduced from 2rem for tighter spacing */
   line-height: 1.6;
   margin: 0 !important;
  /* Match website2 OpenType features */
   padding: 0 !important;
   font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'onum' 1;
   transition: background-color var(--transition-normal), color var(--transition-normal) !important;
   font-variant-ligatures: common-ligatures contextual;
   font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
}
}


/* ==================== CLEANUP - Keep edit buttons visible ==================== */
@media (prefers-color-scheme: dark) {
#p-search,
  body { font-weight: 375; }
#p-logo,
.mw-wiki-logo,
#footer,
.printfooter,
#catlinks,
#f-poweredbyico,
#f-copyrightico {
    display: none !important;
}
}


/* Keep edit buttons visible - removed #p-views and #p-cactions from hidden list */
/* === LAYOUT === */
#p-search, #p-logo, .mw-wiki-logo, #footer, .printfooter,
#f-poweredbyico, #f-copyrightico, .mw-jump-link, #jump-to-nav {
  display: none;
}
 
.mw-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  background: transparent;
  border: none;
}


/* ==================== EDIT BUTTONS STYLING - Minimal ==================== */
#content {
#p-views, #p-cactions {
  margin-left: 0;
    margin: var(--space-3) 0 !important;
  background: transparent;
    padding: 0 !important;
  border: none;
    background: transparent !important;
}
    border: none !important;
 
/* === TYPOGRAPHY - Match website2 optical sizing === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--fg);
}
 
.mw-body h1, .firstHeading {
  font-size: 2rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  border: none;
}
 
.mw-body h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px dotted var(--border);
}
 
.mw-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
 
.mw-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
 
/* === LINKS === */
.mw-body a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 200ms ease-out;
}
}


#p-views ul, #p-cactions ul {
.mw-body a:hover {
    display: flex !important;
  border-color: var(--fg);
    gap: var(--space-4) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
}


#p-views li, #p-cactions li {
.mw-body a.new {
    margin: 0 !important;
  color: var(--red);
  border-color: var(--red);
  opacity: 0.7;
}
}


#p-views a, #p-cactions a {
.mw-body a.new:hover { opacity: 1; }
    color: var(--text-tertiary) !important;
 
    font-family: var(--font-mono) !important;
.mw-body a.external {
    font-size: var(--text-sm) !important;
  color: var(--fg-secondary);
    text-decoration: none !important;
  border-color: var(--fg-secondary);
    border-bottom: 1px dotted var(--border-medium) !important;
    padding: 1px 2px !important;
    transition: all var(--transition-fast) !important;
    background: transparent !important;
    border-radius: 0 !important;
}
}


#p-views a:hover, #p-cactions a:hover {
/* === CODE - Mono with tabular nums === */
    color: var(--text-primary) !important;
code, pre {
    border-bottom-color: var(--text-primary) !important;
  font-family: var(--font-mono);
    background: transparent !important;
  font-size: 0.875rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
}
}


/* ==================== LAYOUT ==================== */
code { padding: 1px 4px; }
.mw-body {
 
    margin: 0 !important;
pre {
    border: none !important;
  padding: 1rem;
    padding: var(--space-6) !important; /* Reduced from space-8 */
  margin: 1rem 0;
    background: transparent !important;
  overflow-x: auto;
    max-width: var(--max-width-3xl) !important;
  line-height: 1.4;
    margin: 0 auto !important;
}
}


#content {
/* === TABLES === */
    margin-left: 0 !important;
.wikitable {
    background: transparent !important;
  width: 100%;
    border: none !important;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  margin: 1rem 0;
}
}


/* ==================== TYPOGRAPHY ==================== */
.wikitable th, .wikitable td {
.mw-body h1 {
  border: 1px solid var(--border);
    color: var(--text-primary) !important;
  padding: 0.375rem 0.5rem;
    font-family: var(--font-heading) !important;
  text-align: left;
    font-size: var(--text-4xl) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 0 var(--space-5) 0 !important; /* Reduced from space-6 */
    border-bottom: none !important;
}
}


.mw-body h2 {
.wikitable th {
    color: var(--text-primary) !important;
  background: var(--bg-alt);
    font-family: var(--font-heading) !important;
  font-weight: 600;
    font-size: var(--text-3xl) !important;
  text-transform: uppercase;
    font-weight: 400 !important;
  letter-spacing: 0.05em;
    line-height: 1.3 !important;
  font-size: 0.7rem;
    margin: var(--space-6) 0 var(--space-3) 0 !important; /* Reduced bottom margin */
    border-bottom: 1px dotted var(--border-medium) !important;
    padding-bottom: var(--space-2) !important;
}
}


.mw-body h3 {
/* === LISTS === */
    color: var(--text-primary) !important;
.mw-body ul, .mw-body ol {
    font-family: var(--font-primary) !important;
  margin: 0.5rem 0;
    font-size: var(--text-lg) !important;
  padding-left: 1.5rem;
    font-weight: 600 !important;
    margin: var(--space-5) 0 var(--space-3) 0 !important; /* Reduced margins */
}
}


/* Removed geometric symbols */
.mw-body li { margin-bottom: 0.25rem; }


/* Body text */
/* === TOC - Compact, mono labels === */
.mw-body p {
#toc, .toc {
    color: var(--text-primary) !important;
  display: inline-block;
    font-family: var(--font-primary) !important;
  background: transparent;
    font-size: var(--text-base) !important;
  border: 1px solid var(--border);
    line-height: 1.6 !important; /* Reduced from 2rem */
  padding: 0.5rem 0.75rem;
    margin-bottom: var(--space-4) !important; /* Reduced from space-6 */
  margin: 0.75rem 0;
  font-size: 0.8rem;
  max-width: 260px;
}
 
.toctitle h2 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
}
}


/* ==================== LINKS - More prominent and natural ==================== */
.toc ul { margin: 0; padding-left: 0.75rem; list-style: none; }
.mw-body a:not(.external) {
.tocnumber {
    color: var(--accent-primary) !important;
  font-family: var(--font-mono);
    text-decoration: none !important;
  font-size: 0.6rem;
    border-bottom: 1px solid transparent !important;
  color: var(--fg-muted);
    padding: 1px 2px !important;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
    transition: all var(--transition-fast) !important;
}
}


.mw-body a:not(.external):hover {
/* === EDIT LINKS - Mono, muted === */
    color: var(--accent-primary) !important;
#p-views, #p-cactions {
    border-bottom-color: var(--accent-primary) !important;
  margin: 0.5rem 0;
    background: var(--hover-bg) !important;
  background: transparent;
  border: none;
}
}


/* External links - naturally colored */
#p-views ul, #p-cactions ul {
.mw-body a.external {
  display: flex;
    color: var(--accent-primary) !important;
  gap: 1rem;
    text-decoration: none !important;
  list-style: none;
    border-bottom: 1px solid transparent !important;
  margin: 0;
    padding: 1px 2px 1px 2px !important;
  padding: 0;
    transition: all var(--transition-fast) !important;
    background-position: right center !important;
    background-repeat: no-repeat !important;
    padding-right: 13px !important; /* Space for external link icon */
}
}


.mw-body a.external:hover {
#p-views a, #p-cactions a {
    background: var(--hover-bg) !important;
  font-family: var(--font-mono);
    background-position: right center !important;
  font-size: 0.7rem;
    background-repeat: no-repeat !important;
  text-transform: uppercase;
    border-bottom-color: var(--accent-primary) !important;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  border-bottom: 1px dotted var(--border);
  background: transparent;
}
}


/* Hide default external link icons to prevent overlap */
#p-views a:hover, #p-cactions a:hover {
.mw-body .external::after {
  color: var(--fg);
    display: none !important;
  border-color: var(--fg);
}
}


/* ==================== TABLES ==================== */
.mw-editsection {
.wikitable {
  font-family: var(--font-mono);
    background: var(--bg-secondary) !important;
  font-size: 0.6rem;
    border: 1px solid var(--border-light) !important;
  text-transform: uppercase;
    border-collapse: collapse !important;
  letter-spacing: 0.1em;
    font-family: var(--font-mono) !important;
  opacity: 0.3;
    font-size: var(--text-sm) !important;
  margin-left: 0.5rem;
    margin: var(--space-5) 0 !important; /* Reduced from space-6 */
    width: 100% !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}
}


.wikitable th {
.mw-editsection:hover { opacity: 0.6; }
    background: var(--bg-tertiary) !important;
.mw-editsection a { border: none; color: var(--fg-muted); }
    border: 1px solid var(--border-medium) !important;
 
    color: var(--text-primary) !important;
/* === CATEGORIES - label-uppercase-mono style === */
    padding: var(--space-3) !important; /* Reduced from space-4 */
#catlinks {
    font-weight: 600 !important;
  display: block;
    text-align: left !important;
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border-top: 1px dotted var(--border);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
}
}


.wikitable td {
#catlinks a {
    border: 1px solid var(--border-light) !important;
  color: var(--fg-muted);
    color: var(--text-primary) !important;
  border: none;
    padding: var(--space-3) !important; /* Reduced from space-4 */
}
}


.wikitable tr:nth-child(even) td {
#catlinks a:hover {
    background: rgba(0, 0, 0, 0.02) !important;
  color: var(--fg-secondary);
}
}


@media (prefers-color-scheme: dark) {
/* === SPECIAL PAGES === */
    .wikitable tr:nth-child(even) td {
.ns-special .mw-body { line-height: 1.4; }
        background: rgba(255, 255, 255, 0.02) !important;
 
    }
.mw-changeslist-line {
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
}


/* ==================== CODE ==================== */
.mw-changeslist-time {
code, pre {
  font-family: var(--font-mono);
    font-family: var(--font-mono) !important;
  font-size: 0.75rem;
    font-feature-settings: "tnum", "zero" !important;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 4px !important;
    color: var(--text-primary) !important;
}
}


code {
.mw-diff-bytes {
    padding: 2px 4px !important;
  font-family: var(--font-mono);
    font-size: var(--text-sm) !important;
  font-size: 0.65rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
}


pre {
.comment {
    padding: var(--space-4) !important;
  font-style: italic;
    margin: var(--space-5) 0 !important; /* Reduced from space-6 */
  color: var(--fg-muted);
    overflow-x: auto !important;
  margin-left: 0.25rem;
    line-height: 1.5 !important;
}
}


/* ==================== LISTS ==================== */
/* === VECTOR SKIN CLEANUP === */
.mw-body ul, .mw-body ol {
.vector-page-titlebar,
    margin: var(--space-3) 0 !important; /* Reduced from space-4 */
.vector-page-toolbar,
    padding-left: var(--space-6) !important;
.vector-menu-tabs,
.vector-menu-content,
#p-views, #p-namespaces, #p-cactions,
.mw-portlet, .vector-tabs, .vector-menu {
  border: none;
  box-shadow: none;
}
}


.mw-body li {
.vector-menu-tabs li, .vector-tabs li, #p-views li {
    margin-bottom: var(--space-1) !important; /* Reduced from space-2 */
  border: none;
    color: var(--text-primary) !important;
  background: transparent;
}
}


/* ==================== RESPONSIVE ==================== */
/* === NAVBOXES === */
@media (max-width: 768px) {
.wikitable[style*="margin-top"] {
    :root {
  font-size: 0.75rem;
        --text-base: 0.95rem; /* Slightly smaller on mobile */
  margin-top: 2rem;
    }
   
    .mw-body {
        padding: var(--space-4) !important;
        margin-left: 0 !important;
    }
   
    #mw-panel {
        position: relative !important;
        width: 100% !important;
        margin: 0 0 var(--space-4) 0 !important; /* Reduced from space-6 */
        backdrop-filter: blur(16px) !important;
        background: rgba(var(--bg-secondary), 0.8) !important;
    }
   
    .mw-body h1 {
        font-size: var(--text-3xl) !important;
    }
   
    .mw-body h2 {
        font-size: var(--text-lg) !important;
    }
   
    /* Simple mobile edit buttons */
    #p-views ul, #p-cactions ul {
        flex-direction: column !important;
        gap: var(--space-2) !important;
    }
}
}


/* ==================== SEARCH (if you want to show it) ==================== */
.wikitable[style*="margin-top"] th {
#searchform {
  font-size: 0.7rem;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 4px !important;
    margin: var(--space-4) 0 !important;
    overflow: hidden !important;
}
}


/* === SEARCH === */
#searchInput {
#searchInput {
    background: transparent !important;
  font-family: var(--font-mono);
    border: none !important;
  font-size: 0.875rem;
    color: var(--text-primary) !important;
  background: var(--bg-alt);
    font-family: var(--font-mono) !important;
  border: 1px solid var(--border);
    font-size: var(--text-sm) !important;
  padding: 0.25rem 0.5rem;
    padding: var(--space-2) var(--space-4) !important;
  color: var(--fg);
     width: calc(100% - var(--space-8)) !important;
}
 
#searchInput::placeholder { color: var(--fg-muted); }
 
/* === MOBILE === */
@media (max-width: 768px) {
  .mw-body { padding: 1rem 0.75rem; }
  .mw-body h1 { font-size: 1.5rem; }
  .mw-body h2 { font-size: 1.125rem; }
 
  #p-views ul, #p-cactions ul {
    flex-direction: column;
     gap: 0.5rem;
  }
 
  #toc, .toc { max-width: 100%; }
}
}


#searchInput::placeholder {
/* === INFOBOXES === */
    color: var(--text-muted) !important;
.infobox {
  float: right;
  width: 240px;
  margin: 0 0 1rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.8rem;
  padding: 0.5rem;
}
}


#searchInput:focus {
.infobox th {
    outline: none !important;
  font-family: var(--font-mono);
    box-shadow: 0 0 0 1px var(--focus-ring) !important;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 0.25rem;
  font-weight: 600;
}
}


/* ==================== GEOMETRIC ACCENTS ==================== */
.infobox td { padding: 0.25rem; }
.mw-body::before {
 
    content: "";
/* === SUBTITLE/META === */
    position: fixed;
#siteSub, #contentSub, .mw-content-subtitle {
    top: var(--space-4);
  font-family: var(--font-mono);
    right: var(--space-4);
  font-size: 0.65rem;
    width: 8px;
  text-transform: uppercase;
    height: 8px;
  letter-spacing: 0.1em;
    background: var(--accent-primary);
  color: var(--fg-muted);
    border-radius: 50%;
  opacity: 0.6;
    z-index: 1000;
}
}

Latest revision as of 20:34, 7 December 2025

/* EJ Fox Archive - Matched to website2 */

:root {
  /* Typography - Match website2 exactly */
  --font-body: 'Georgia', 'Times New Roman', 'Droid Serif', 'Times', 'Source Serif Pro', serif;
  --font-mono: ui-monospace, 'SF Mono', Monaco, monospace;

  /* Colors - Tailwind zinc, warm tones */
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --fg: #1a1a1a;           /* warm near-black */
  --fg-secondary: #52525b;  /* zinc-600 */
  --fg-muted: #71717a;      /* zinc-500 */
  --border: #e4e4e7;        /* zinc-200 */
  --red: #dc2626;

  --max-w: 65ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;           /* warm near-black */
    --bg-alt: #18181b;       /* zinc-900 */
    --fg: #f5f5f4;           /* warmer off-white */
    --fg-secondary: #a1a1aa; /* zinc-400 */
    --fg-muted: #71717a;     /* zinc-500 */
    --border: #3f3f46;       /* zinc-700 */
    --red: #f87171;
  }
}

/* === BASE === */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  /* Match website2 OpenType features */
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'onum' 1;
  font-variant-ligatures: common-ligatures contextual;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  body { font-weight: 375; }
}

/* === LAYOUT === */
#p-search, #p-logo, .mw-wiki-logo, #footer, .printfooter,
#f-poweredbyico, #f-copyrightico, .mw-jump-link, #jump-to-nav {
  display: none;
}

.mw-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  background: transparent;
  border: none;
}

#content {
  margin-left: 0;
  background: transparent;
  border: none;
}

/* === TYPOGRAPHY - Match website2 optical sizing === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--fg);
}

.mw-body h1, .firstHeading {
  font-size: 2rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  border: none;
}

.mw-body h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px dotted var(--border);
}

.mw-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.mw-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* === LINKS === */
.mw-body a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 200ms ease-out;
}

.mw-body a:hover {
  border-color: var(--fg);
}

.mw-body a.new {
  color: var(--red);
  border-color: var(--red);
  opacity: 0.7;
}

.mw-body a.new:hover { opacity: 1; }

.mw-body a.external {
  color: var(--fg-secondary);
  border-color: var(--fg-secondary);
}

/* === CODE - Mono with tabular nums === */
code, pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
}

code { padding: 1px 4px; }

pre {
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  line-height: 1.4;
}

/* === TABLES === */
.wikitable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  margin: 1rem 0;
}

.wikitable th, .wikitable td {
  border: 1px solid var(--border);
  padding: 0.375rem 0.5rem;
  text-align: left;
}

.wikitable th {
  background: var(--bg-alt);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

/* === LISTS === */
.mw-body ul, .mw-body ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.mw-body li { margin-bottom: 0.25rem; }

/* === TOC - Compact, mono labels === */
#toc, .toc {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.8rem;
  max-width: 260px;
}

.toctitle h2 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
}

.toc ul { margin: 0; padding-left: 0.75rem; list-style: none; }
.tocnumber {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg-muted);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

/* === EDIT LINKS - Mono, muted === */
#p-views, #p-cactions {
  margin: 0.5rem 0;
  background: transparent;
  border: none;
}

#p-views ul, #p-cactions ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#p-views a, #p-cactions a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  border-bottom: 1px dotted var(--border);
  background: transparent;
}

#p-views a:hover, #p-cactions a:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.mw-editsection {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.3;
  margin-left: 0.5rem;
}

.mw-editsection:hover { opacity: 0.6; }
.mw-editsection a { border: none; color: var(--fg-muted); }

/* === CATEGORIES - label-uppercase-mono style === */
#catlinks {
  display: block;
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border-top: 1px dotted var(--border);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
}

#catlinks a {
  color: var(--fg-muted);
  border: none;
}

#catlinks a:hover {
  color: var(--fg-secondary);
}

/* === SPECIAL PAGES === */
.ns-special .mw-body { line-height: 1.4; }

.mw-changeslist-line {
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.mw-changeslist-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.mw-diff-bytes {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.comment {
  font-style: italic;
  color: var(--fg-muted);
  margin-left: 0.25rem;
}

/* === VECTOR SKIN CLEANUP === */
.vector-page-titlebar,
.vector-page-toolbar,
.vector-menu-tabs,
.vector-menu-content,
#p-views, #p-namespaces, #p-cactions,
.mw-portlet, .vector-tabs, .vector-menu {
  border: none;
  box-shadow: none;
}

.vector-menu-tabs li, .vector-tabs li, #p-views li {
  border: none;
  background: transparent;
}

/* === NAVBOXES === */
.wikitable[style*="margin-top"] {
  font-size: 0.75rem;
  margin-top: 2rem;
}

.wikitable[style*="margin-top"] th {
  font-size: 0.7rem;
}

/* === SEARCH === */
#searchInput {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  color: var(--fg);
}

#searchInput::placeholder { color: var(--fg-muted); }

/* === MOBILE === */
@media (max-width: 768px) {
  .mw-body { padding: 1rem 0.75rem; }
  .mw-body h1 { font-size: 1.5rem; }
  .mw-body h2 { font-size: 1.125rem; }

  #p-views ul, #p-cactions ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  #toc, .toc { max-width: 100%; }
}

/* === INFOBOXES === */
.infobox {
  float: right;
  width: 240px;
  margin: 0 0 1rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.8rem;
  padding: 0.5rem;
}

.infobox th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 0.25rem;
  font-weight: 600;
}

.infobox td { padding: 0.25rem; }

/* === SUBTITLE/META === */
#siteSub, #contentSub, .mw-content-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  opacity: 0.6;
}