Jump to content

User:Udays108/common.css: Difference between revisions

From BioMicro Center
Udays108 (talk | contribs)
No edit summary
Udays108 (talk | contribs)
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================================
/* ============================================================
   MIT BioMicro Center — MediaWiki Custom Styles
   BioMicro Center Wiki CSS-only modern UI
   Skin: Vector-2022  |  Scope: User:USERNAME/common.css
   Paste into: User:USERNAME/common.css
  Targets: MediaWiki Vector (legacy) skin
  Mimics: about.html design without requiring JavaScript
   ============================================================ */
   ============================================================ */


/* ── 1. Design Tokens ── */
/* ── Base & Reset ───────────────────────────────────────────── */
:root {
*, *::before, *::after { box-sizing: border-box; }
  --bmc-crimson:       #a31f34;
 
  --bmc-crimson-dark:  #7a1626;
body, html {
  --bmc-crimson-light: #fde8ec;
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
  --bmc-text:          #1a1a1a;
   color: #1a1a1a !important;
   --bmc-text-muted:   #666;
   background: #f4f4f4 !important;
  --bmc-bg:            #fff;
   line-height: 1.6 !important;
   --bmc-bg-card:       #f9f9f9;
   font-size: 16px !important;
   --bmc-border:       #e8e8e8;
   margin: 0 !important;
   --bmc-border-hover: #c8a0a8;
   padding: 0 !important;
   --bmc-font:         'Helvetica Neue', Arial, sans-serif;
   --bmc-max-width:     1140px;
   /* Combined height of topbar (28px) + header (68px) */
  --bmc-chrome-height: 96px;
}
}


a { color: #a31f34 !important; text-decoration: none !important; }
a:hover { text-decoration: underline !important; color: #7a1626 !important; }


/* ── 2. Hide Vector-2022 Chrome ── */
/* ── Contact topbar (CSS pseudo-element, decorative) ─────────── */
/* We replace these with our own injected elements */
/* Shows contact info as a red strip above the header */
.vector-header,
#mw-page-base {
.vector-sticky-header,
  background: #a31f34 !important;
.vector-sticky-header-container,
  height: 32px !important;
.vector-main-menu-container,
  position: fixed !important;
.vector-footer,
  top: 0 !important;
.vector-footer-container,
  left: 0 !important;
#footer,
  right: 0 !important;
.mw-footer,
  z-index: 200 !important;
/* Hide original h1 — recreated in our hero */
h1.firstHeading,
.mw-first-heading {
  display: none !important;
}
}


#mw-page-base::after {
  content: "biomicro@mit.edu  ·  617-715-4533  ·  Building 68-322";
  display: block;
  text-align: right;
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  padding: 7px 28px;
  letter-spacing: 0.02em;
}


/* ── 3. Page Container — push down for our fixed header ── */
/* ── Header (#mw-head) ──────────────────────────────────────── */
html {
#mw-head {
   scroll-behavior: smooth;
  background: #fff !important;
  border-bottom: 1px solid #e0e0e0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
  height: 60px !important;
  top: 32px !important; /* sit below the red topbar */
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
   z-index: 150 !important;
}
}


body {
#mw-head-base {
   font-family: var(--bmc-font) !important;
   height: 92px !important; /* 32px topbar + 60px header */
   background: var(--bmc-bg) !important;
   background: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
}
}


.mw-page-container {
/* Page tabs (Read / Edit / History) */
   padding-top: var(--bmc-chrome-height) !important;
#left-navigation {
   max-width: 100% !important;
   margin-left: 0 !important;
   margin: 0 !important;
}
   padding-left: 0 !important;
#left-navigation li a,
   padding-right: 0 !important;
#right-navigation li a {
   padding-bottom: 0 !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 0.83rem !important;
   font-weight: 500 !important;
  color: #555 !important;
  background: transparent !important;
   border: none !important;
   border-radius: 4px !important;
   padding: 6px 12px !important;
  transition: background 0.15s, color 0.15s !important;
}
#left-navigation li.selected a,
#left-navigation li a:hover,
#right-navigation li a:hover {
  background: #f5f5f5 !important;
  color: #a31f34 !important;
   border: none !important;
}
}


.mw-page-container-inner {
/* Search box in header */
   padding: 0 !important;
#p-search {
   margin: 0 !important;
  margin-top: 14px !important;
}
#searchInput {
  border: 1px solid #e0e0e0 !important;
  border-radius: 4px !important;
  padding: 5px 10px !important;
  font-size: 0.83rem !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  color: #333 !important;
  width: 180px !important;
  outline: none !important;
  transition: border-color 0.15s !important;
  background: #fff !important;
}
#searchInput:focus { border-color: #a31f34 !important; }
#searchButton, #mw-searchButton {
  background: #a31f34 !important;
  border: none !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 0.83rem !important;
   padding: 5px 10px !important;
  cursor: pointer !important;
   margin-left: 4px !important;
}
}


/* Personal tools (login/logout) */
#p-personal li a {
  font-size: 0.8rem !important;
  color: #666 !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
}
#p-personal li a:hover { color: #a31f34 !important; }


/* ── 4. Content Container — match our 1140px centered layout ── */
/* ── Logo & Sidebar container (#mw-navigation) ──────────────── */
.mw-content-container {
#mw-navigation {
   max-width: var(--bmc-max-width) !important;
   background: #fff !important;
   margin: 0 auto !important;
  border-right: 1px solid #e8e8e8 !important;
   padding: 40px 24px 80px !important;
  top: 92px !important; /* below topbar + header */
   box-sizing: border-box !important;
  position: fixed !important;
  left: 0 !important;
   bottom: 0 !important;
   width: 180px !important;
   overflow-y: auto !important;
  z-index: 100 !important;
}
}


/* The main content area */
/* Logo area */
#content,
#p-logo {
.mw-body {
  position: static !important;
  width: auto !important;
  height: auto !important;
   margin: 0 !important;
   margin: 0 !important;
   padding: 0 !important;
   padding: 20px 16px 16px !important;
   border: none !important;
   border-bottom: 1px solid #e8e8e8 !important;
  background: transparent !important;
}
}


/* Vector's page toolbar (edit / talk / history tabs) — restyle subtly */
/* Hide the actual logo image; replace with CSS text badge */
.vector-page-toolbar {
#p-logo a {
   max-width: var(--bmc-max-width) !important;
   background-image: none !important;
   margin: 0 auto !important;
  display: flex !important;
   padding: 0 !important;
  align-items: center !important;
   border-bottom: 1px solid var(--bmc-border) !important;
  gap: 10px !important;
   background: var(--bmc-bg) !important;
   text-decoration: none !important;
   height: auto !important;
   width: auto !important;
   float: none !important;
}
}


.vector-page-toolbar-tabs {
#p-logo a::before {
   font-family: var(--bmc-font) !important;
   content: "BMC";
   font-size: 0.83rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #a31f34;
  color: #fff;
  font-weight: 700;
   font-size: 0.9rem;
  border-radius: 4px;
  letter-spacing: -0.5px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
}


/* Style the active edit tab in crimson */
#p-logo a::after {
.vector-menu-tabs .selected a {
  content: "MIT BioMicro Center";
   color: var(--bmc-crimson) !important;
  display: block;
   border-bottom-color: var(--bmc-crimson) !important;
  font-size: 0.82rem;
  font-weight: 700;
   color: #1a1a1a;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.3;
   letter-spacing: -0.1px;
}
}


 
/* ── Sidebar navigation portlets (#mw-panel) ─────────────────── */
/* ── 5. TOC — restyle Vector's existing TOC to match our sidebar card ── */
#mw-panel {
/* Vector-2022 positions the TOC in a left column inside #content */
  position: static !important;
.vector-toc-landmark,
   width: auto !important;
#mw-panel-toc {
   float: none !important;
   width: 220px !important;
  padding: 12px 0 !important;
   flex-shrink: 0 !important;
  background: transparent !important;
}
}


.vector-toc {
.portlet,
  background: var(--bmc-bg-card) !important;
.mw-portlet {
  border: 1px solid var(--bmc-border) !important;
   margin: 0 !important;
  border-radius: 8px !important;
   padding: 0 0 8px !important;
  padding: 20px !important;
   border: none !important;
  box-shadow: none !important;
   background: transparent !important;
  font-family: var(--bmc-font) !important;
  position: sticky !important;
  top: calc(var(--bmc-chrome-height) + 16px) !important;
}
 
.vector-toc .vector-toc-title-bar {
   border-bottom: 1px solid var(--bmc-border) !important;
   padding-bottom: 10px !important;
   margin-bottom: 10px !important;
   background: none !important;
}
}


.vector-toc .vector-toc-title-text {
/* Portlet headings */
   font-size: 0.78rem !important;
.portlet h3,
.mw-portlet-heading,
div.portlet h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
   font-size: 0.68rem !important;
   font-weight: 700 !important;
   font-weight: 700 !important;
   text-transform: uppercase !important;
   text-transform: uppercase !important;
   letter-spacing: 0.08em !important;
   letter-spacing: 0.08em !important;
   color: #999 !important;
   color: #999 !important;
   font-family: var(--bmc-font) !important;
   padding: 10px 16px 4px !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
}
}


/* Hide the expand/collapse toggle button */
/* Portlet links */
.vector-toc-toggle { display: none !important; }
.portlet li,
 
.mw-portlet-body li {
.vector-toc .vector-toc-link {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  border: none !important;
}
.portlet li a,
.mw-portlet-body li a {
  display: block !important;
  padding: 5px 16px !important;
   font-size: 0.82rem !important;
   font-size: 0.82rem !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
   color: #444 !important;
   color: #444 !important;
  padding: 4px 8px !important;
   border-radius: 4px !important;
   border-radius: 4px !important;
  margin: 0 6px !important;
   transition: background 0.12s, color 0.12s !important;
   transition: background 0.12s, color 0.12s !important;
   text-decoration: none !important;
   text-decoration: none !important;
  display: block !important;
  font-family: var(--bmc-font) !important;
}
}
 
.portlet li a:hover,
.vector-toc .vector-toc-link:hover {
.mw-portlet-body li a:hover {
   background: #f0e8ea !important;
   background: #f0e8ea !important;
   color: var(--bmc-crimson) !important;
   color: #a31f34 !important;
   text-decoration: none !important;
   text-decoration: none !important;
}
}


.vector-toc-list-item-active > .vector-toc-link {
/* ── Main content area (#content) ───────────────────────────── */
   color: var(--bmc-crimson) !important;
#content,
   font-weight: 600 !important;
#mw-content-wrapper {
   background: #fdf5f6 !important;
  margin-left: 180px !important; /* match sidebar width */
  margin-top: 92px !important;  /* topbar 32 + header 60 */
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: #fff !important;
   border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
   float: none !important;
   min-height: calc(100vh - 92px) !important;
}
}


/* Indent sub-sections */
/* Hide MediaWiki "From bmcwiki..." subtitle */
.vector-toc .vector-toc-list .vector-toc-list > li > .vector-toc-link {
#siteSub,
   padding-left: 20px !important;
#contentSub { display: none !important; }
   font-size: 0.78px !important;
 
   color: var(--bmc-text-muted) !important;
/* ── Page Hero: style #firstHeading as the about.html hero ───── */
#firstHeading,
.mw-first-heading {
  background: linear-gradient(135deg, #a31f34 0%, #7a1626 100%) !important;
  color: #fff !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 1.9rem !important;
   font-weight: 700 !important;
   letter-spacing: -0.5px !important;
  padding: 36px 40px 32px !important;
   margin: 0 !important;
  border: none !important;
  width: 100% !important;
  display: block !important;
}
}


/* Breadcrumb "Home ›" before the title */
#firstHeading::before {
  content: "Home  ›";
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
  letter-spacing: 0;
}


/* ── 6. Content Typography ── */
/* ── Body content area ──────────────────────────────────────── */
.mw-parser-output,
#bodyContent {
.mw-body-content {
   padding: 36px 40px 60px !important;
   font-family: var(--bmc-font) !important;
   max-width: 860px !important;
   font-size: 0.9rem;
   background: #fff !important;
   color: #333;
  line-height: 1.6;
}
}


.mw-parser-output a,
/* ── Typography ─────────────────────────────────────────────── */
.mw-body-content a {
.mw-parser-output {
   color: var(--bmc-crimson);
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
   text-decoration: none;
   font-size: 0.9rem !important;
  line-height: 1.6 !important;
   color: #333 !important;
}
}
.mw-parser-output a:hover { color: var(--bmc-crimson-dark); text-decoration: underline; }
.mw-parser-output a:visited { color: var(--bmc-crimson); }
/* External link icon */
.mw-parser-output a.external { color: var(--bmc-crimson); }


.mw-parser-output h2 {
.mw-parser-output h2 {
   font-size: 1.35rem !important;
   font-size: 1.35rem !important;
   font-weight: 700 !important;
   font-weight: 700 !important;
   color: var(--bmc-text) !important;
   color: #1a1a1a !important;
   padding-bottom: 10px !important;
   padding-bottom: 10px !important;
   border-bottom: 2px solid var(--bmc-crimson) !important;
   border-bottom: 2px solid #a31f34 !important;
   margin: 48px 0 18px !important;
  border-left: none !important;
   letter-spacing: -0.2px;
  border-top: none !important;
   scroll-margin-top: calc(var(--bmc-chrome-height) + 20px);
  border-right: none !important;
  font-family: var(--bmc-font) !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
   margin: 40px 0 16px !important;
   letter-spacing: -0.2px !important;
   scroll-margin-top: 100px !important;
}
}
.mw-parser-output h2:first-child { margin-top: 0 !important; }
.mw-parser-output h2:first-child { margin-top: 0 !important; }
Line 209: Line 329:
   font-size: 1rem !important;
   font-size: 1rem !important;
   font-weight: 600 !important;
   font-weight: 600 !important;
   color: var(--bmc-text) !important;
   color: #1a1a1a !important;
   margin: 28px 0 10px !important;
   margin: 24px 0 8px !important;
  scroll-margin-top: calc(var(--bmc-chrome-height) + 20px);
  font-family: var(--bmc-font) !important;
}
}


Line 218: Line 336:
   font-size: 0.88rem !important;
   font-size: 0.88rem !important;
   font-weight: 700 !important;
   font-weight: 700 !important;
   color: #444 !important;
   color: #a31f34 !important;
   margin: 20px 0 8px !important;
   margin: 16px 0 6px !important;
   font-family: var(--bmc-font) !important;
   letter-spacing: -0.1px !important;
}
}


.mw-parser-output p { margin-bottom: 14px !important; }
.mw-parser-output p {
 
   margin-bottom: 14px !important;
 
   color: #333 !important;
/* ── 7. Tables (.wikitable) ── */
.mw-parser-output .wikitable {
  width: 100%;
  border-collapse: collapse !important;
  font-size: 0.83rem;
  font-family: var(--bmc-font);
  background: var(--bmc-bg);
  border: 1px solid #e4e4e4 !important;
   margin-bottom: 26px;
}
.mw-parser-output .wikitable thead th,
.mw-parser-output .wikitable > tr > th {
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 11px 14px !important;
  font-weight: 600;
  font-size: 0.78rem;
  text-align: left;
  border: none !important;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.mw-parser-output .wikitable tbody td,
.mw-parser-output .wikitable > tr > td {
  padding: 10px 14px !important;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}
.mw-parser-output .wikitable tbody tr:hover td { background: #fafafa; }
.mw-parser-output .wikitable tbody tr:last-child td { border-bottom: none !important; }
.mw-parser-output .wikitable .section-row td {
  background: #f5f5f5 !important;
  font-weight: 600;
  font-size: 0.8rem;
   color: #555;
  padding: 7px 14px !important;
}
}


 
.mw-parser-output ul,
/* ── 8. Our Injected Topbar ── */
.mw-parser-output ol {
.bmc-topbar {
   margin: 0 0 14px 22px !important;
   position: fixed;
   color: #333 !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bmc-crimson);
   color: #fff;
  font-size: 0.75rem;
  padding: 5px 0;
  text-align: right;
  font-family: var(--bmc-font);
  height: 28px;
  box-sizing: border-box;
}
}
.bmc-topbar .bmc-inner {
.mw-parser-output li { margin-bottom: 4px !important; }
  max-width: var(--bmc-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.bmc-topbar a { color: #fff; opacity: 0.85; text-decoration: none; }
.bmc-topbar a:hover { opacity: 1; }
.bmc-topbar .bmc-sep { margin: 0 6px; opacity: 0.5; }


 
/* ── TOC (Table of Contents) ────────────────────────────────── */
/* ── 9. Our Injected Header ── */
#toc, .toc {
.bmc-header {
   background: #f9f9f9 !important;
   position: fixed;
   border: 1px solid #e8e8e8 !important;
   top: 28px; /* sits below topbar */
   border-radius: 8px !important;
   left: 0;
   padding: 18px 20px !important;
   right: 0;
   display: inline-block !important;
   z-index: 999;
   min-width: 200px !important;
   background: #fff;
   font-size: 0.82rem !important;
  border-bottom: 1px solid #e0e0e0;
   float: none !important;
   box-shadow: 0 1px 4px rgba(0,0,0,0.07);
   margin: 0 0 28px !important;
   font-family: var(--bmc-font);
   height: 68px;
}
}
.bmc-header-inner {
.toctitle h2,
   max-width: var(--bmc-max-width);
#toc .toctitle h2 {
   margin: 0 auto;
   font-size: 0.78rem !important;
   padding: 0 24px;
  font-weight: 700 !important;
   display: flex;
  text-transform: uppercase !important;
   align-items: center;
  letter-spacing: 0.08em !important;
   justify-content: space-between;
   color: #999 !important;
   height: 68px;
   margin-bottom: 10px !important;
   border: none !important;
   background: none !important;
   padding: 0 !important;
   box-shadow: none !important;
}
}
 
#toc ul, .toc ul {
/* Logo */
   list-style: none !important;
.bmc-logo {
  margin: 0 !important;
   display: flex; align-items: center; gap: 12px;
   padding: 0 !important;
   text-decoration: none; flex-shrink: 0;
}
}
.bmc-logo-mark {
#toc ul li, .toc ul li { margin: 0 0 2px !important; }
   width: 40px; height: 40px;
#toc ul li a, .toc ul li a {
   background: var(--bmc-crimson);
  font-size: 0.82rem !important;
   border-radius: 4px;
   color: #444 !important;
   display: flex; align-items: center; justify-content: center;
  padding: 3px 8px !important;
   color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: -0.5px;
   display: block !important;
  flex-shrink: 0;
   border-radius: 4px !important;
   text-decoration: none !important;
   transition: background 0.12s, color 0.12s !important;
}
}
.bmc-logo-name {
#toc ul li a:hover, .toc ul li a:hover {
   font-size: 1rem; font-weight: 700; color: var(--bmc-text);
   background: #f0e8ea !important;
   letter-spacing: -0.2px; line-height: 1.2; display: block;
  color: #a31f34 !important;
   text-decoration: none !important;
}
}
.bmc-logo-sub {
/* Sub-items */
   font-size: 0.72rem; color: var(--bmc-text-muted); display: block;
#toc ul ul li a, .toc ul ul li a {
  padding-left: 18px !important;
   font-size: 0.78rem !important;
  color: #666 !important;
}
}


/* Right side wrapper (nav + search + user tools) */
/* ── Edit section links ──────────────────────────────────────── */
.bmc-header-right {
.mw-editsection { display: inline !important; }
   display: flex; align-items: center; gap: 8px;
.mw-editsection a {
   font-size: 0.72rem !important;
  color: #999 !important;
  margin-left: 8px !important;
}
}
.mw-editsection a:hover { color: #a31f34 !important; }
.mw-editsection-bracket { color: #ddd !important; }


/* Vector search box moved into our header */
/* ── Tables ─────────────────────────────────────────────────── */
.bmc-header-right .vector-search-box { margin: 0 !important; padding: 0 !important; }
.wikitable,
.bmc-header-right #searchform input[type="search"],
.mw-parser-output table:not(.toc) {
.bmc-header-right .vector-search-box-input {
  border-collapse: collapse !important;
   border: 1px solid #e0e0e0 !important;
  width: 100% !important;
   border-radius: 6px !important;
   margin: 16px 0 !important;
   padding: 5px 10px !important;
   font-size: 0.88rem !important;
   font-size: 0.82rem !important;
   border: 1px solid #e8e8e8 !important;
   font-family: var(--bmc-font) !important;
   border-radius: 8px !important;
   width: 160px !important;
   overflow: hidden !important;
   background: #fff !important;
}
}
.bmc-header-right #searchform input[type="search"]:focus,
.wikitable th,
.bmc-header-right .vector-search-box-input:focus {
.mw-parser-output table:not(.toc) th {
   border-color: var(--bmc-crimson) !important;
  background: #a31f34 !important;
   outline: none !important;
   color: #fff !important;
   width: 200px !important;
  font-weight: 600 !important;
   transition: width 0.2s !important;
  padding: 10px 14px !important;
   text-align: left !important;
   border: none !important;
   font-size: 0.85rem !important;
}
}
 
.wikitable td,
/* Vector user links moved into our header */
.mw-parser-output table:not(.toc) td {
.bmc-header-right .vector-user-links,
   padding: 9px 14px !important;
.bmc-header-right #p-personal {
  border: none !important;
   margin: 0 !important; padding: 0 !important;
   border-bottom: 1px solid #f0f0f0 !important;
   font-size: 0.82rem !important;
   vertical-align: top !important;
   font-family: var(--bmc-font) !important;
  color: #333 !important;
}
}
.wikitable tr:nth-child(even) td,
.mw-parser-output table:not(.toc) tr:nth-child(even) td { background: #fafafa !important; }
.wikitable tr:last-child td,
.mw-parser-output table:not(.toc) tr:last-child td { border-bottom: none !important; }
.wikitable tr:hover td,
.mw-parser-output table:not(.toc) tr:hover td { background: rgba(163,31,52,0.03) !important; }


 
/* ── Code ───────────────────────────────────────────────────── */
/* ── 10. Navigation ── */
.mw-parser-output code,
.bmc-nav > ul {
.mw-parser-output pre,
  list-style: none; display: flex; gap: 2px; margin: 0; padding: 0;
.mw-parser-output tt {
}
   font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
.bmc-nav > ul > li { position: relative; }
   background: #f4f4f4 !important;
.bmc-nav > ul > li > a {
   border: 1px solid #e8e8e8 !important;
  display: block; padding: 8px 14px;
   border-radius: 4px !important;
  font-size: 0.85rem; font-weight: 500; color: #333;
   font-size: 0.85rem !important;
  border-radius: 4px; white-space: nowrap;
   transition: background 0.15s, color 0.15s;
  text-decoration: none; font-family: var(--bmc-font);
}
.bmc-nav > ul > li > a:hover,
.bmc-nav > ul > li.bmc-active > a {
   background: #f5f5f5; color: var(--bmc-crimson); text-decoration: none;
}
.bmc-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.6; }
.bmc-dropdown-menu {
   display: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border: 1px solid #e0e0e0;
   border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  min-width: 200px; padding: 6px 0; z-index: 1100;
  font-family: var(--bmc-font);
}
.bmc-dropdown:hover .bmc-dropdown-menu { display: block; }
.bmc-dropdown-menu a {
  display: block; padding: 8px 18px;
  font-size: 0.83rem; color: #333;
  transition: background 0.12s; text-decoration: none;
}
.bmc-dropdown-menu a:hover { background: #faf0f0; color: var(--bmc-crimson); text-decoration: none; }
.bmc-dropdown-menu .bmc-divider { border-top: 1px solid #eee; margin: 4px 0; }
.bmc-dropdown-menu .bmc-group-label {
   padding: 6px 18px 2px; font-size: 0.7rem;
  font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.05em;
}
}
.mw-parser-output code,
.mw-parser-output tt { padding: 1px 5px !important; }
.mw-parser-output pre { padding: 12px 16px !important; overflow-x: auto !important; }


/* ── Component classes (wiki editors add these to markup) ────── */


/* ── 11. Our Injected Hero ── */
.service-grid {
.bmc-hero {
   display: grid;
   background: linear-gradient(135deg, var(--bmc-crimson) 0%, var(--bmc-crimson-dark) 100%);
  grid-template-columns: repeat(2, 1fr);
   color: #fff; padding: 40px 0 36px;
   gap: 16px;
   font-family: var(--bmc-font);
   margin: 20px 0 28px;
}
}
.bmc-hero .bmc-inner {
.service-card {
   max-width: var(--bmc-max-width); margin: 0 auto; padding: 0 24px;
   background: #f9f9f9;
}
  border: 1px solid #e8e8e8;
.bmc-breadcrumb { font-size: 0.78rem; margin-bottom: 10px; opacity: 0.75; }
  border-radius: 8px;
.bmc-breadcrumb a { color: #fff; text-decoration: none; }
  padding: 20px 22px;
.bmc-breadcrumb a:hover { text-decoration: underline; }
   transition: border-color 0.15s, box-shadow 0.15s;
.bmc-breadcrumb .bmc-sep { margin: 0 6px; }
.bmc-hero-title {
   font-size: 2rem; font-weight: 700; letter-spacing: -0.5px;
  color: #fff; margin: 0; padding: 0; border: none;
}
}
.service-card:hover { border-color: #c8a0a8; box-shadow: 0 2px 10px rgba(163,31,52,0.07); }
.service-card h4 { font-size: 0.88rem !important; font-weight: 700 !important; color: #a31f34 !important; margin-bottom: 6px !important; }
.service-card p { font-size: 0.82rem !important; color: #555 !important; margin: 0 !important; line-height: 1.5 !important; }


.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.staff-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 18px; }
.staff-card .staff-name { font-size: 0.88rem; font-weight: 700; color: #1a1a1a; display: block; }
.staff-card .staff-role { font-size: 0.78rem; color: #666; margin-top: 3px; line-height: 1.4; display: block; }
.staff-card.director { grid-column: 1 / -1; background: #fdf5f6; border-color: #d4a0a8; display: flex; align-items: center; gap: 18px; }
.director-badge { width: 44px; height: 44px; background: #a31f34; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.staff-card.director .staff-name { font-size: 1rem !important; }
.staff-card.director .staff-role { font-size: 0.82rem !important; color: #7a1626 !important; font-weight: 500; }


/* ── 12. Our Injected Footer ── */
.pub-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.bmc-footer {
.pub-list li { padding: 14px 0 !important; border-bottom: 1px solid #f0f0f0 !important; font-size: 0.85rem !important; }
  background: #1a1a1a; color: #aaa;
.pub-list li:last-child { border-bottom: none !important; }
  padding: 40px 0; font-size: 0.82rem;
.pub-list .pub-lab { font-weight: 700; color: #1a1a1a; display: block; }
  font-family: var(--bmc-font);
.pub-list .pub-desc { color: #444; margin-top: 3px; line-height: 1.5; display: block; }
}
.pub-list .pub-cite { display: inline-block; margin-top: 5px; font-size: 0.75rem; background: #f0f0f0; color: #555; padding: 2px 8px; border-radius: 10px; }
.bmc-footer-inner {
  max-width: var(--bmc-max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
}
.bmc-footer h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #fff; margin-bottom: 12px;
}
.bmc-footer ul { list-style: none; margin: 0; padding: 0; }
.bmc-footer ul li { margin-bottom: 6px; }
.bmc-footer a { color: #aaa; text-decoration: none; }
.bmc-footer a:hover { color: #fff; }
.bmc-footer-bottom {
  max-width: var(--bmc-max-width); margin: 24px auto 0;
  padding: 20px 24px 0; border-top: 1px solid #333;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 0.77rem; color: #666;
}


.affil-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 24px; }
.affil-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 18px; }
.affil-card .affil-name { font-size: 0.85rem; font-weight: 700; color: #1a1a1a; display: block; }
.affil-card .affil-rep { font-size: 0.78rem; color: #666; margin-top: 4px; display: block; }


/* ── 13. Component Classes (for use in wiki markup) ── */
.note { background: #fdf6f0; border-left: 3px solid #e07b39; padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 0.82rem; color: #555; margin: 12px 0 18px; }
.bmc-card {
.note strong { color: #c0622a; }
  background: var(--bmc-bg-card); border: 1px solid var(--bmc-border);
.note.note-info { background: #f0f6ff; border-left-color: #3b7dd8; }
  border-radius: 8px; padding: 20px 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--bmc-font);
}
.bmc-card:hover { border-color: var(--bmc-border-hover); box-shadow: 0 2px 10px rgba(163,31,52,0.07); }
.bmc-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--bmc-crimson); margin-bottom: 6px; }
.bmc-card p  { font-size: 0.82rem; color: #555; margin: 0; line-height: 1.5; }


.bmc-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin: 20px 0 28px; }
.contact-block { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 22px 24px; display: flex; gap: 40px; flex-wrap: wrap; font-size: 0.85rem; }
.bmc-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 20px 0 28px; }
.contact-item { display: flex; flex-direction: column; gap: 3px; }
.bmc-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 20px 0 28px; }
.contact-item .label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #999; }
.contact-item .value { color: #1a1a1a; font-weight: 500; }
.contact-item a { color: #a31f34 !important; }


.bmc-note {
/* ── Footer ─────────────────────────────────────────────────── */
   background: #fdf6f0; border-left: 3px solid #e07b39;
#footer {
   padding: 10px 14px; border-radius: 0 6px 6px 0;
   background: #1a1a1a !important;
   font-size: 0.82rem; color: #555; margin: 12px 0 18px;
  color: #aaa !important;
   padding: 32px 40px !important;
  margin-left: 180px !important;
  border-top: none !important;
   font-size: 0.82rem !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
}
}
.bmc-note strong { color: #c0622a; }
#footer a { color: #aaa !important; }
.bmc-note-info { background: #f0f6ff; border-left-color: #3b7dd8; }
#footer a:hover { color: #fff !important; text-decoration: none !important; }
.bmc-note-warn { background: #fff9e6; border-left-color: #d4a017; }
#footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex !important; flex-wrap: wrap !important; gap: 6px 20px !important; }
#footer ul li { padding: 0 !important; margin: 0 !important; font-size: 0.8rem !important; }
#footer-info li::before { content: none !important; }


.bmc-badge { display: inline-block; font-size: 0.68rem; padding: 2px 7px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
/* Footer top accent */
.bmc-badge-red   { background: var(--bmc-crimson-light); color: var(--bmc-crimson); }
#footer::before {
.bmc-badge-blue  { background: #e8f4fd; color: #1a6fa8; }
   content: "";
.bmc-badge-green { background: #e8f9ef; color: #1a8042; }
  display: block;
.bmc-badge-gray  { background: #f0f0f0; color: #555; }
  height: 3px;
 
  background: #a31f34;
 
   margin: -32px -40px 24px;
/* ── 14. Tab Panel System ── */
.tab-bar-wrap {
   background: linear-gradient(135deg, var(--bmc-crimson) 0%, var(--bmc-crimson-dark) 100%);
  border-bottom: 3px solid rgba(0,0,0,0.15);
}
}
.tab-bar {
  max-width: var(--bmc-max-width); margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0; padding: 13px 22px;
  font-size: 0.87rem; font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: transparent; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
  cursor: pointer; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  border-radius: 4px 4px 0 0; font-family: var(--bmc-font);
}
.tab-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.tab-btn.active { color: #fff; font-weight: 600; background: rgba(255,255,255,0.12); border-bottom-color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }


 
/* ── Responsive ─────────────────────────────────────────────── */
/* ── 15. Responsive ── */
@media (max-width: 860px) {
@media screen and (max-width: 860px) {
   #mw-navigation {
   .bmc-grid-2, .bmc-grid-3, .bmc-grid-4 { grid-template-columns: 1fr; }
    position: static !important;
  .bmc-footer-inner { grid-template-columns: 1fr 1fr; }
    width: 100% !important;
   .mw-content-container { padding: 24px 16px 60px !important; }
    border-right: none !important;
}
    border-bottom: 1px solid #e8e8e8 !important;
@media screen and (max-width: 580px) {
  }
   .bmc-hero-title { font-size: 1.5rem; }
   #content, #mw-content-wrapper {
   .bmc-footer-inner { grid-template-columns: 1fr; }
    margin-left: 0 !important;
   .bmc-nav > ul { display: none; }
    margin-top: 0 !important;
  }
   #footer { margin-left: 0 !important; }
   .service-grid, .staff-grid, .affil-grid { grid-template-columns: 1fr !important; }
   .contact-block { flex-direction: column !important; gap: 16px !important; }
}
}

Latest revision as of 23:30, 8 May 2026

/* ============================================================
   BioMicro Center Wiki — CSS-only modern UI
   Paste into: User:USERNAME/common.css
   Targets: MediaWiki Vector (legacy) skin
   Mimics: about.html design without requiring JavaScript
   ============================================================ */

/* ── Base & Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body, html {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  color: #1a1a1a !important;
  background: #f4f4f4 !important;
  line-height: 1.6 !important;
  font-size: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

a { color: #a31f34 !important; text-decoration: none !important; }
a:hover { text-decoration: underline !important; color: #7a1626 !important; }

/* ── Contact topbar (CSS pseudo-element, decorative) ─────────── */
/* Shows contact info as a red strip above the header */
#mw-page-base {
  background: #a31f34 !important;
  height: 32px !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 200 !important;
}

#mw-page-base::after {
  content: "biomicro@mit.edu  ·  617-715-4533  ·  Building 68-322";
  display: block;
  text-align: right;
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  padding: 7px 28px;
  letter-spacing: 0.02em;
}

/* ── Header (#mw-head) ──────────────────────────────────────── */
#mw-head {
  background: #fff !important;
  border-bottom: 1px solid #e0e0e0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
  height: 60px !important;
  top: 32px !important; /* sit below the red topbar */
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 150 !important;
}

#mw-head-base {
  height: 92px !important; /* 32px topbar + 60px header */
  background: #fff !important;
}

/* Page tabs (Read / Edit / History) */
#left-navigation {
  margin-left: 0 !important;
}
#left-navigation li a,
#right-navigation li a {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 0.83rem !important;
  font-weight: 500 !important;
  color: #555 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  transition: background 0.15s, color 0.15s !important;
}
#left-navigation li.selected a,
#left-navigation li a:hover,
#right-navigation li a:hover {
  background: #f5f5f5 !important;
  color: #a31f34 !important;
  border: none !important;
}

/* Search box in header */
#p-search {
  margin-top: 14px !important;
}
#searchInput {
  border: 1px solid #e0e0e0 !important;
  border-radius: 4px !important;
  padding: 5px 10px !important;
  font-size: 0.83rem !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  color: #333 !important;
  width: 180px !important;
  outline: none !important;
  transition: border-color 0.15s !important;
  background: #fff !important;
}
#searchInput:focus { border-color: #a31f34 !important; }
#searchButton, #mw-searchButton {
  background: #a31f34 !important;
  border: none !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 0.83rem !important;
  padding: 5px 10px !important;
  cursor: pointer !important;
  margin-left: 4px !important;
}

/* Personal tools (login/logout) */
#p-personal li a {
  font-size: 0.8rem !important;
  color: #666 !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
}
#p-personal li a:hover { color: #a31f34 !important; }

/* ── Logo & Sidebar container (#mw-navigation) ──────────────── */
#mw-navigation {
  background: #fff !important;
  border-right: 1px solid #e8e8e8 !important;
  top: 92px !important; /* below topbar + header */
  position: fixed !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 180px !important;
  overflow-y: auto !important;
  z-index: 100 !important;
}

/* Logo area */
#p-logo {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 20px 16px 16px !important;
  border-bottom: 1px solid #e8e8e8 !important;
}

/* Hide the actual logo image; replace with CSS text badge */
#p-logo a {
  background-image: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  height: auto !important;
  width: auto !important;
  float: none !important;
}

#p-logo a::before {
  content: "BMC";
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #a31f34;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  letter-spacing: -0.5px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

#p-logo a::after {
  content: "MIT BioMicro Center";
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.3;
  letter-spacing: -0.1px;
}

/* ── Sidebar navigation portlets (#mw-panel) ─────────────────── */
#mw-panel {
  position: static !important;
  width: auto !important;
  float: none !important;
  padding: 12px 0 !important;
  background: transparent !important;
}

.portlet,
.mw-portlet {
  margin: 0 !important;
  padding: 0 0 8px !important;
  border: none !important;
  background: transparent !important;
}

/* Portlet headings */
.portlet h3,
.mw-portlet-heading,
div.portlet h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #999 !important;
  padding: 10px 16px 4px !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
}

/* Portlet links */
.portlet li,
.mw-portlet-body li {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  border: none !important;
}
.portlet li a,
.mw-portlet-body li a {
  display: block !important;
  padding: 5px 16px !important;
  font-size: 0.82rem !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  color: #444 !important;
  border-radius: 4px !important;
  margin: 0 6px !important;
  transition: background 0.12s, color 0.12s !important;
  text-decoration: none !important;
}
.portlet li a:hover,
.mw-portlet-body li a:hover {
  background: #f0e8ea !important;
  color: #a31f34 !important;
  text-decoration: none !important;
}

/* ── Main content area (#content) ───────────────────────────── */
#content,
#mw-content-wrapper {
  margin-left: 180px !important; /* match sidebar width */
  margin-top: 92px !important;   /* topbar 32 + header 60 */
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  float: none !important;
  min-height: calc(100vh - 92px) !important;
}

/* Hide MediaWiki "From bmcwiki..." subtitle */
#siteSub,
#contentSub { display: none !important; }

/* ── Page Hero: style #firstHeading as the about.html hero ───── */
#firstHeading,
.mw-first-heading {
  background: linear-gradient(135deg, #a31f34 0%, #7a1626 100%) !important;
  color: #fff !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 1.9rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  padding: 36px 40px 32px !important;
  margin: 0 !important;
  border: none !important;
  width: 100% !important;
  display: block !important;
}

/* Breadcrumb "Home ›" before the title */
#firstHeading::before {
  content: "Home  ›";
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
  letter-spacing: 0;
}

/* ── Body content area ──────────────────────────────────────── */
#bodyContent {
  padding: 36px 40px 60px !important;
  max-width: 860px !important;
  background: #fff !important;
}

/* ── Typography ─────────────────────────────────────────────── */
.mw-parser-output {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  color: #333 !important;
}

.mw-parser-output h2 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #a31f34 !important;
  border-left: none !important;
  border-top: none !important;
  border-right: none !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 40px 0 16px !important;
  letter-spacing: -0.2px !important;
  scroll-margin-top: 100px !important;
}
.mw-parser-output h2:first-child { margin-top: 0 !important; }

.mw-parser-output h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin: 24px 0 8px !important;
}

.mw-parser-output h4 {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #a31f34 !important;
  margin: 16px 0 6px !important;
  letter-spacing: -0.1px !important;
}

.mw-parser-output p {
  margin-bottom: 14px !important;
  color: #333 !important;
}

.mw-parser-output ul,
.mw-parser-output ol {
  margin: 0 0 14px 22px !important;
  color: #333 !important;
}
.mw-parser-output li { margin-bottom: 4px !important; }

/* ── TOC (Table of Contents) ────────────────────────────────── */
#toc, .toc {
  background: #f9f9f9 !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
  display: inline-block !important;
  min-width: 200px !important;
  font-size: 0.82rem !important;
  float: none !important;
  margin: 0 0 28px !important;
}
.toctitle h2,
#toc .toctitle h2 {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #999 !important;
  margin-bottom: 10px !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
#toc ul, .toc ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#toc ul li, .toc ul li { margin: 0 0 2px !important; }
#toc ul li a, .toc ul li a {
  font-size: 0.82rem !important;
  color: #444 !important;
  padding: 3px 8px !important;
  display: block !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  transition: background 0.12s, color 0.12s !important;
}
#toc ul li a:hover, .toc ul li a:hover {
  background: #f0e8ea !important;
  color: #a31f34 !important;
  text-decoration: none !important;
}
/* Sub-items */
#toc ul ul li a, .toc ul ul li a {
  padding-left: 18px !important;
  font-size: 0.78rem !important;
  color: #666 !important;
}

/* ── Edit section links ──────────────────────────────────────── */
.mw-editsection { display: inline !important; }
.mw-editsection a {
  font-size: 0.72rem !important;
  color: #999 !important;
  margin-left: 8px !important;
}
.mw-editsection a:hover { color: #a31f34 !important; }
.mw-editsection-bracket { color: #ddd !important; }

/* ── Tables ─────────────────────────────────────────────────── */
.wikitable,
.mw-parser-output table:not(.toc) {
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 16px 0 !important;
  font-size: 0.88rem !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
}
.wikitable th,
.mw-parser-output table:not(.toc) th {
  background: #a31f34 !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  text-align: left !important;
  border: none !important;
  font-size: 0.85rem !important;
}
.wikitable td,
.mw-parser-output table:not(.toc) td {
  padding: 9px 14px !important;
  border: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  vertical-align: top !important;
  color: #333 !important;
}
.wikitable tr:nth-child(even) td,
.mw-parser-output table:not(.toc) tr:nth-child(even) td { background: #fafafa !important; }
.wikitable tr:last-child td,
.mw-parser-output table:not(.toc) tr:last-child td { border-bottom: none !important; }
.wikitable tr:hover td,
.mw-parser-output table:not(.toc) tr:hover td { background: rgba(163,31,52,0.03) !important; }

/* ── Code ───────────────────────────────────────────────────── */
.mw-parser-output code,
.mw-parser-output pre,
.mw-parser-output tt {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
  background: #f4f4f4 !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 4px !important;
  font-size: 0.85rem !important;
}
.mw-parser-output code,
.mw-parser-output tt { padding: 1px 5px !important; }
.mw-parser-output pre { padding: 12px 16px !important; overflow-x: auto !important; }

/* ── Component classes (wiki editors add these to markup) ────── */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
}
.service-card {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.service-card:hover { border-color: #c8a0a8; box-shadow: 0 2px 10px rgba(163,31,52,0.07); }
.service-card h4 { font-size: 0.88rem !important; font-weight: 700 !important; color: #a31f34 !important; margin-bottom: 6px !important; }
.service-card p { font-size: 0.82rem !important; color: #555 !important; margin: 0 !important; line-height: 1.5 !important; }

.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.staff-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 18px; }
.staff-card .staff-name { font-size: 0.88rem; font-weight: 700; color: #1a1a1a; display: block; }
.staff-card .staff-role { font-size: 0.78rem; color: #666; margin-top: 3px; line-height: 1.4; display: block; }
.staff-card.director { grid-column: 1 / -1; background: #fdf5f6; border-color: #d4a0a8; display: flex; align-items: center; gap: 18px; }
.director-badge { width: 44px; height: 44px; background: #a31f34; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.staff-card.director .staff-name { font-size: 1rem !important; }
.staff-card.director .staff-role { font-size: 0.82rem !important; color: #7a1626 !important; font-weight: 500; }

.pub-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.pub-list li { padding: 14px 0 !important; border-bottom: 1px solid #f0f0f0 !important; font-size: 0.85rem !important; }
.pub-list li:last-child { border-bottom: none !important; }
.pub-list .pub-lab { font-weight: 700; color: #1a1a1a; display: block; }
.pub-list .pub-desc { color: #444; margin-top: 3px; line-height: 1.5; display: block; }
.pub-list .pub-cite { display: inline-block; margin-top: 5px; font-size: 0.75rem; background: #f0f0f0; color: #555; padding: 2px 8px; border-radius: 10px; }

.affil-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 24px; }
.affil-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 18px; }
.affil-card .affil-name { font-size: 0.85rem; font-weight: 700; color: #1a1a1a; display: block; }
.affil-card .affil-rep { font-size: 0.78rem; color: #666; margin-top: 4px; display: block; }

.note { background: #fdf6f0; border-left: 3px solid #e07b39; padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 0.82rem; color: #555; margin: 12px 0 18px; }
.note strong { color: #c0622a; }
.note.note-info { background: #f0f6ff; border-left-color: #3b7dd8; }

.contact-block { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 22px 24px; display: flex; gap: 40px; flex-wrap: wrap; font-size: 0.85rem; }
.contact-item { display: flex; flex-direction: column; gap: 3px; }
.contact-item .label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #999; }
.contact-item .value { color: #1a1a1a; font-weight: 500; }
.contact-item a { color: #a31f34 !important; }

/* ── Footer ─────────────────────────────────────────────────── */
#footer {
  background: #1a1a1a !important;
  color: #aaa !important;
  padding: 32px 40px !important;
  margin-left: 180px !important;
  border-top: none !important;
  font-size: 0.82rem !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
}
#footer a { color: #aaa !important; }
#footer a:hover { color: #fff !important; text-decoration: none !important; }
#footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex !important; flex-wrap: wrap !important; gap: 6px 20px !important; }
#footer ul li { padding: 0 !important; margin: 0 !important; font-size: 0.8rem !important; }
#footer-info li::before { content: none !important; }

/* Footer top accent */
#footer::before {
  content: "";
  display: block;
  height: 3px;
  background: #a31f34;
  margin: -32px -40px 24px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  #mw-navigation {
    position: static !important;
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
  }
  #content, #mw-content-wrapper {
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
  #footer { margin-left: 0 !important; }
  .service-grid, .staff-grid, .affil-grid { grid-template-columns: 1fr !important; }
  .contact-block { flex-direction: column !important; gap: 16px !important; }
}