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
 
(7 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
   Paste into: User:USERNAME/common.css
   Scope: User:USERNAME/common.css (personal preview)
  Targets: MediaWiki Vector (legacy) skin
  Mimics: about.html design without requiring JavaScript
   ============================================================ */
   ============================================================ */


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


/* ── 1. Design Tokens ───────────────────────────────────────── */
body, html {
:root {
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
   --bmc-crimson:       #a31f34;
   color: #1a1a1a !important;
  --bmc-crimson-dark:  #7a1626;
   background: #f4f4f4 !important;
  --bmc-crimson-light: #fde8ec;
   line-height: 1.6 !important;
   --bmc-text:         #1a1a1a;
   font-size: 16px !important;
   --bmc-text-muted:   #666;
   margin: 0 !important;
   --bmc-bg:           #fff;
   padding: 0 !important;
   --bmc-bg-card:      #f9f9f9;
  --bmc-border:       #e8e8e8;
   --bmc-border-hover: #c8a0a8;
   --bmc-font:          'Helvetica Neue', Arial, sans-serif;
  --bmc-max-width:     1140px;
}
}


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 header, left nav sidebar, and footer with our own */
/* Shows contact info as a red strip above the header */
 
#mw-page-base {
.vector-header,
  background: #a31f34 !important;
.vector-sticky-header,
  height: 32px !important;
.vector-main-menu-container,
  position: fixed !important;
.vector-footer,
  top: 0 !important;
#footer,
  left: 0 !important;
.mw-footer {
  right: 0 !important;
   display: none !important;
   z-index: 200 !important;
}
}


/* Remove Vector's default page padding that assumes its header height */
#mw-page-base::after {
.mw-page-container {
  content: "biomicro@mit.edu  ·  617-715-4533  ·  Building 68-322";
   padding-top: 0 !important;
  display: block;
   margin-top: 0 !important;
   text-align: right;
   max-width: 100% !important;
  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;
}
}


.mw-page-container-inner {
/* ── Header (#mw-head) ──────────────────────────────────────── */
   display: block !important;
#mw-head {
   padding: 0 !important;
  background: #fff !important;
   margin: 0 !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;
}
}


/* Content container: remove Vector's column layout so our layout takes over */
#mw-head-base {
.mw-content-container {
   height: 92px !important; /* 32px topbar + 60px header */
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}
 
/* The actual content area */
#mw-content {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
 
/* Hide original h1 — we recreate it in the hero banner */
h1.firstHeading,
.mw-first-heading {
   display: none !important;
}
 
/* Hide Vector's page toolbar (edit tabs area) background/border,
  but keep the actual edit buttons visible and accessible */
.vector-page-toolbar {
  border-bottom: 1px solid var(--bmc-border) !important;
   background: #fff !important;
   background: #fff !important;
  max-width: var(--bmc-max-width) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}
}


/* Vector-2022 TOC — restyle to match our sidebar card */
/* Page tabs (Read / Edit / History) */
.vector-toc-landmark,
#left-navigation {
#mw-panel-toc {
   margin-left: 0 !important;
   margin: 0 !important;
  padding: 0 !important;
}
}
 
#left-navigation li a,
.vector-toc {
#right-navigation li a {
   background: var(--bmc-bg-card) !important;
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
   border: 1px solid var(--bmc-border) !important;
  font-size: 0.83rem !important;
   border-radius: 8px !important;
  font-weight: 500 !important;
   padding: 20px !important;
  color: #555 !important;
   box-shadow: none !important;
   background: transparent !important;
   font-family: var(--bmc-font) !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,
.vector-toc .vector-toc-title-bar {
#left-navigation li a:hover,
   border-bottom: 1px solid var(--bmc-border) !important;
#right-navigation li a:hover {
   padding-bottom: 10px !important;
   background: #f5f5f5 !important;
   margin-bottom: 10px !important;
   color: #a31f34 !important;
   border: none !important;
}
}


.vector-toc .vector-toc-title-text {
/* Search box in header */
   font-size: 0.78rem !important;
#p-search {
  font-weight: 700 !important;
   margin-top: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #999 !important;
}
}
 
#searchInput {
.vector-toc-toggle { display: none !important; }
   border: 1px solid #e0e0e0 !important;
 
.vector-toc .vector-toc-link {
   font-size: 0.82rem !important;
  color: #444 !important;
  padding: 4px 8px !important;
   border-radius: 4px !important;
   border-radius: 4px !important;
   transition: background 0.12s, color 0.12s !important;
   padding: 5px 10px !important;
   text-decoration: none !important;
  font-size: 0.83rem !important;
   display: block !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; }
.vector-toc .vector-toc-link:hover {
#searchButton, #mw-searchButton {
   background: #f0e8ea !important;
   background: #a31f34 !important;
   color: var(--bmc-crimson) !important;
  border: none !important;
   text-decoration: 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;
}
}


.vector-toc-list-item-active > .vector-toc-link {
/* Personal tools (login/logout) */
   color: var(--bmc-crimson) !important;
#p-personal li a {
   font-weight: 600 !important;
   font-size: 0.8rem !important;
   background: #fdf5f6 !important;
   color: #666 !important;
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
}
}
#p-personal li a:hover { color: #a31f34 !important; }


.vector-toc .vector-toc-list .vector-toc-list > li > .vector-toc-link {
/* ── Logo & Sidebar container (#mw-navigation) ──────────────── */
   padding-left: 20px !important;
#mw-navigation {
   font-size: 0.78rem !important;
   background: #fff !important;
   color: var(--bmc-text-muted) !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 */
/* ── 3. Our Injected Topbar ─────────────────────────────────── */
#p-logo {
.bmc-topbar {
   position: static !important;
   background: var(--bmc-crimson);
   width: auto !important;
   color: #fff;
   height: auto !important;
   font-size: 0.75rem;
   margin: 0 !important;
   padding: 6px 0;
   padding: 20px 16px 16px !important;
   text-align: right;
   border-bottom: 1px solid #e8e8e8 !important;
   font-family: var(--bmc-font);
}
}
.bmc-topbar .bmc-inner {
  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; }


 
/* Hide the actual logo image; replace with CSS text badge */
/* ── 4. Our Injected Header ─────────────────────────────────── */
#p-logo a {
.bmc-header {
   background-image: none !important;
   background: #fff;
   display: flex !important;
  border-bottom: 1px solid #e0e0e0;
   align-items: center !important;
   position: sticky;
   gap: 10px !important;
   top: 0;
   text-decoration: none !important;
   z-index: 500;
   height: auto !important;
   box-shadow: 0 1px 4px rgba(0,0,0,0.07);
   width: auto !important;
   font-family: var(--bmc-font);
   float: none !important;
}
.bmc-header-inner {
   max-width: var(--bmc-max-width);
  margin: 0 auto;
   padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
}


/* Logo */
#p-logo a::before {
.bmc-logo {
  content: "BMC";
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   gap: 12px;
   justify-content: center;
  text-decoration: none;
   flex-shrink: 0;
   flex-shrink: 0;
}
   width: 38px;
.bmc-logo-mark {
  height: 38px;
   width: 40px; height: 40px;
   background: #a31f34;
   background: var(--bmc-crimson);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
   border-radius: 4px;
   border-radius: 4px;
   display: flex; align-items: center; justify-content: center;
   letter-spacing: -0.5px;
  color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: -0.5px;
   font-family: 'Helvetica Neue', Arial, sans-serif;
   flex-shrink: 0;
}
}
.bmc-logo-text .bmc-logo-name {
 
   font-size: 1rem; font-weight: 700; color: var(--bmc-text); letter-spacing: -0.2px;
#p-logo a::after {
   line-height: 1.2;
  content: "MIT BioMicro Center";
}
  display: block;
.bmc-logo-text .bmc-logo-sub {
   font-size: 0.82rem;
   font-size: 0.72rem; color: var(--bmc-text-muted); font-weight: 400;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Helvetica Neue', Arial, sans-serif;
   line-height: 1.3;
   letter-spacing: -0.1px;
}
}


/* Right side: search + user tools from Vector (moved into our header) */
/* ── Sidebar navigation portlets (#mw-panel) ─────────────────── */
.bmc-header-right {
#mw-panel {
   display: flex;
   position: static !important;
   align-items: center;
  width: auto !important;
   gap: 12px;
   float: none !important;
   padding: 12px 0 !important;
  background: transparent !important;
}
}


/* The Vector search form we move into our header */
.portlet,
.bmc-header-right .vector-search-box,
.mw-portlet {
.bmc-header-right #p-search {
   margin: 0 !important;
   margin: 0 !important;
   padding: 0 !important;
   padding: 0 0 8px !important;
  border: none !important;
  background: transparent !important;
}
}


.bmc-header-right .vector-search-box-input,
/* Portlet headings */
.bmc-header-right #searchInput {
.portlet h3,
   border: 1px solid #e0e0e0 !important;
.mw-portlet-heading,
   border-radius: 6px !important;
div.portlet h3 {
   padding: 6px 10px !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
   font-size: 0.83rem !important;
   font-size: 0.68rem !important;
   font-family: var(--bmc-font) !important;
   font-weight: 700 !important;
   width: 180px !important;
   text-transform: uppercase !important;
   transition: border-color 0.15s !important;
   letter-spacing: 0.08em !important;
   color: #999 !important;
   padding: 10px 16px 4px !important;
   margin: 0 !important;
  border: none !important;
  background: none !important;
}
}


.bmc-header-right .vector-search-box-input:focus,
/* Portlet links */
.bmc-header-right #searchInput:focus {
.portlet li,
   border-color: var(--bmc-crimson) !important;
.mw-portlet-body li {
   outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
   list-style: none !important;
   border: none !important;
}
}
 
.portlet li a,
/* User menu moved into our header */
.mw-portlet-body li a {
.bmc-header-right .vector-user-links {
  display: block !important;
   display: flex !important;
  padding: 5px 16px !important;
   align-items: center !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 {
/* ── 5. Our Injected Navigation ─────────────────────────────── */
   background: #f0e8ea !important;
.bmc-nav { display: flex; align-items: center; }
   color: #a31f34 !important;
.bmc-nav > ul {
   text-decoration: none !important;
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0; padding: 0;
}
.bmc-nav > ul > li { position: relative; }
.bmc-nav > ul > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem; font-weight: 500; color: #333;
  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;
}
}


/* Dropdown arrow */
/* ── Main content area (#content) ───────────────────────────── */
.bmc-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.6; }
#content,
 
#mw-content-wrapper {
/* Dropdown menu */
  margin-left: 180px !important; /* match sidebar width */
.bmc-dropdown-menu {
  margin-top: 92px !important/* topbar 32 + header 60 */
  display: none;
   margin-right: 0 !important;
   position: absolute; top: calc(100% + 4px); left: 0;
   margin-bottom: 0 !important;
   background: #fff; border: 1px solid #e0e0e0;
   padding: 0 !important;
  border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.10);
   background: #fff !important;
   min-width: 200px; padding: 6px 0; z-index: 600;
   border: none !important;
  font-family: var(--bmc-font);
   box-shadow: none !important;
}
   border-radius: 0 !important;
.bmc-dropdown:hover .bmc-dropdown-menu { display: block; }
   float: none !important;
.bmc-dropdown-menu a {
   min-height: calc(100vh - 92px) !important;
   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;
}
}


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


/* ── 6. Our Injected Hero ───────────────────────────────────── */
/* ── Page Hero: style #firstHeading as the about.html hero ───── */
.bmc-hero {
#firstHeading,
   background: linear-gradient(135deg, var(--bmc-crimson) 0%, var(--bmc-crimson-dark) 100%);
.mw-first-heading {
   color: #fff;
   background: linear-gradient(135deg, #a31f34 0%, #7a1626 100%) !important;
  padding: 40px 0 36px;
   color: #fff !important;
   font-family: var(--bmc-font);
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
}
   font-size: 1.9rem !important;
.bmc-hero .bmc-inner {
   font-weight: 700 !important;
  max-width: var(--bmc-max-width);
  letter-spacing: -0.5px !important;
  margin: 0 auto;
   padding: 36px 40px 32px !important;
  padding: 0 24px;
  margin: 0 !important;
}
   border: none !important;
.bmc-breadcrumb {
  width: 100% !important;
   font-size: 0.78rem; margin-bottom: 10px; opacity: 0.75;
  display: block !important;
}
.bmc-breadcrumb a { color: #fff; text-decoration: none; }
.bmc-breadcrumb a:hover { text-decoration: underline; }
.bmc-breadcrumb .bmc-sep { margin: 0 6px; }
.bmc-hero h1 {
   font-size: 2rem; font-weight: 700; letter-spacing: -0.5px;
   color: #fff !important; display: block !important;
   border: none !important; padding: 0 !important; margin: 0 !important;
}
}


 
/* Breadcrumb "Home ›" before the title */
/* ── 7. Page Layout Wrapper ─────────────────────────────────── */
#firstHeading::before {
/* Wraps Vector's content region in our grid */
   content: "Home  ›";
.bmc-page-layout {
   display: block;
   max-width: var(--bmc-max-width);
   font-size: 0.78rem;
   margin: 0 auto;
   font-weight: 400;
   padding: 40px 24px 80px;
   color: rgba(255,255,255,0.75);
   display: grid;
   margin-bottom: 8px;
   grid-template-columns: 220px 1fr;
   letter-spacing: 0;
   gap: 40px;
   font-family: var(--bmc-font);
}
}


.bmc-sidebar {
/* ── Body content area ──────────────────────────────────────── */
   position: sticky;
#bodyContent {
   top: 84px;
   padding: 36px 40px 60px !important;
  align-self: start;
   max-width: 860px !important;
}
   background: #fff !important;
 
.bmc-content-col {
   min-width: 0; /* prevent grid blowout */
}
}


 
/* ── Typography ─────────────────────────────────────────────── */
/* ── 8. Content Typography ──────────────────────────────────── */
.mw-parser-output {
.mw-parser-output {
   font-family: var(--bmc-font) !important;
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
   font-size: 0.9rem;
   font-size: 0.9rem !important;
  color: #333;
   line-height: 1.6 !important;
   line-height: 1.6;
  color: #333 !important;
}
}
.mw-parser-output a,
.mw-body-content a {
  color: var(--bmc-crimson);
  text-decoration: none;
}
.mw-parser-output a:hover { color: var(--bmc-crimson-dark); text-decoration: underline; }
.mw-parser-output a:visited { 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: 88px;
  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 h2:first-child { margin-top: 0 !important; }
Line 374: 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: 88px;
}
}


Line 382: Line 336:
   font-size: 0.88rem !important;
   font-size: 0.88rem !important;
   font-weight: 700 !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;
   color: #444 !important;
   margin: 20px 0 8px !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;
}
}


.mw-parser-output p { margin-bottom: 14px !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; }


/* ── 9. Tables ──────────────────────────────────────────────── */
/* ── Tables ─────────────────────────────────────────────────── */
.mw-parser-output .wikitable {
.wikitable,
  width: 100%;
.mw-parser-output table:not(.toc) {
   border-collapse: collapse !important;
   border-collapse: collapse !important;
   font-size: 0.83rem;
  width: 100% !important;
   font-family: var(--bmc-font);
  margin: 16px 0 !important;
   background: var(--bmc-bg);
   font-size: 0.88rem !important;
   border: 1px solid #e4e4e4 !important;
   border: 1px solid #e8e8e8 !important;
   margin-bottom: 26px;
   border-radius: 8px !important;
   overflow: hidden !important;
   background: #fff !important;
}
}
.mw-parser-output .wikitable thead th,
.wikitable th,
.mw-parser-output .wikitable > tr > th {
.mw-parser-output table:not(.toc) th {
   background: #1a1a1a !important;
   background: #a31f34 !important;
   color: #fff !important;
   color: #fff !important;
  padding: 11px 14px !important;
   font-weight: 600 !important;
   font-weight: 600;
   padding: 10px 14px !important;
   font-size: 0.78rem;
   text-align: left !important;
   text-align: left;
   border: none !important;
   border: none !important;
   white-space: nowrap;
   font-size: 0.85rem !important;
}
}
.mw-parser-output .wikitable tbody td,
.wikitable td,
.mw-parser-output .wikitable > tr > td {
.mw-parser-output table:not(.toc) td {
   padding: 10px 14px !important;
   padding: 9px 14px !important;
   vertical-align: top;
   border: none !important;
   border-bottom: 1px solid #f0f0f0 !important;
   border-bottom: 1px solid #f0f0f0 !important;
   border-left: none !important;
   vertical-align: top !important;
  border-right: none !important;
   color: #333 !important;
   border-top: none !important;
}
}
.mw-parser-output .wikitable tbody tr:hover td { background: #fafafa; }
.wikitable tr:nth-child(even) td,
.mw-parser-output .wikitable tbody tr:last-child td { border-bottom: none !important; }
.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. Note Boxes ─────────────────────────────────────────── */
.mw-parser-output code,
.bmc-note {
.mw-parser-output pre,
   background: #fdf6f0; border-left: 3px solid #e07b39;
.mw-parser-output tt {
   padding: 10px 14px; border-radius: 0 6px 6px 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
   font-size: 0.82rem; color: #555; margin: 12px 0 18px;
   background: #f4f4f4 !important;
  font-family: var(--bmc-font);
  border: 1px solid #e8e8e8 !important;
   border-radius: 4px !important;
   font-size: 0.85rem !important;
}
}
.bmc-note strong { color: #c0622a; }
.mw-parser-output code,
.bmc-note-info { background: #f0f6ff; border-left-color: #3b7dd8; }
.mw-parser-output tt { padding: 1px 5px !important; }
.bmc-note-warn { background: #fff9e6; border-left-color: #d4a017; }
.mw-parser-output pre { padding: 12px 16px !important; overflow-x: auto !important; }


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


/* ── 11. Cards & Grids ──────────────────────────────────────── */
.service-grid {
.bmc-card {
  display: grid;
   background: var(--bmc-bg-card); border: 1px solid var(--bmc-border);
  grid-template-columns: repeat(2, 1fr);
   border-radius: 8px; padding: 20px 22px;
  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;
   transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--bmc-font);
}
}
.bmc-card:hover {
.service-card:hover { border-color: #c8a0a8; box-shadow: 0 2px 10px rgba(163,31,52,0.07); }
  border-color: var(--bmc-border-hover);
.service-card h4 { font-size: 0.88rem !important; font-weight: 700 !important; color: #a31f34 !important; margin-bottom: 6px !important; }
  box-shadow: 0 2px 10px rgba(163,31,52,0.07);
.service-card p { font-size: 0.82rem !important; color: #555 !important; margin: 0 !important; line-height: 1.5 !important; }
}
.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; }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bmc-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 20px 0 28px; }
.staff-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 18px; }
.bmc-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 20px 0 28px; }
.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; }


/* ── 12. Badges ─────────────────────────────────────────────── */
.affil-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 24px; }
.bmc-badge {
.affil-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 18px; }
  display: inline-block; font-size: 0.68rem; padding: 2px 7px;
.affil-card .affil-name { font-size: 0.85rem; font-weight: 700; color: #1a1a1a; display: block; }
  border-radius: 10px; font-weight: 600; white-space: nowrap;
.affil-card .affil-rep { font-size: 0.78rem; color: #666; margin-top: 4px; display: block; }
  font-family: var(--bmc-font);
}
.bmc-badge-red  { background: var(--bmc-crimson-light); color: var(--bmc-crimson); }
.bmc-badge-blue  { background: #e8f4fd; color: #1a6fa8; }
.bmc-badge-green { background: #e8f9ef; color: #1a8042; }
.bmc-badge-gray  { background: #f0f0f0; color: #555; }


.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; }


/* ── 13. Our Injected Footer ────────────────────────────────── */
.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-footer {
.contact-item { display: flex; flex-direction: column; gap: 3px; }
  background: #1a1a1a; color: #aaa;
.contact-item .label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #999; }
  padding: 40px 0; font-size: 0.82rem;
.contact-item .value { color: #1a1a1a; font-weight: 500; }
  font-family: var(--bmc-font);
.contact-item a { color: #a31f34 !important; }
}
.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 ul li a { color: #aaa; text-decoration: none; }
.bmc-footer ul li 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;
}
.bmc-footer-bottom a { color: #666; }
.bmc-footer-bottom a:hover { color: #aaa; }


 
/* ── Footer ─────────────────────────────────────────────────── */
/* ── 14. Tab Panel System ───────────────────────────────────── */
#footer {
.tab-bar-wrap {
   background: #1a1a1a !important;
   background: linear-gradient(135deg, var(--bmc-crimson) 0%, var(--bmc-crimson-dark) 100%);
   color: #aaa !important;
   border-bottom: 3px solid rgba(0,0,0,0.15);
   padding: 32px 40px !important;
}
   margin-left: 180px !important;
.tab-bar {
  border-top: none !important;
   max-width: var(--bmc-max-width); margin: 0 auto; padding: 0 24px;
   font-size: 0.82rem !important;
   display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
}
.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); }
#footer a { color: #aaa !important; }
.tab-btn.active { color: #fff; font-weight: 600; background: rgba(255,255,255,0.12); border-bottom-color: #fff; }
#footer a:hover { color: #fff !important; text-decoration: none !important; }
.tab-panel { display: none; }
#footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex !important; flex-wrap: wrap !important; gap: 6px 20px !important; }
.tab-panel.active { display: block; }
#footer ul li { padding: 0 !important; margin: 0 !important; font-size: 0.8rem !important; }
#footer-info li::before { content: none !important; }


 
/* Footer top accent */
/* ── 15. Responsive ─────────────────────────────────────────── */
#footer::before {
@media screen and (max-width: 860px) {
   content: "";
   .bmc-page-layout { grid-template-columns: 1fr; }
  display: block;
   .bmc-sidebar { position: static; }
   height: 3px;
   .bmc-grid-2, .bmc-grid-3, .bmc-grid-4 { grid-template-columns: 1fr; }
   background: #a31f34;
   .bmc-footer-inner { grid-template-columns: 1fr 1fr; }
   margin: -32px -40px 24px;
}
}


@media screen and (max-width: 580px) {
/* ── Responsive ─────────────────────────────────────────────── */
   .bmc-hero h1 { font-size: 1.5rem !important; }
@media (max-width: 860px) {
   .bmc-footer-inner { grid-template-columns: 1fr; }
   #mw-navigation {
   .bmc-nav > ul { display: none; }
    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; }
}
}

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; }
}