Jump to content

User:Udays108/common.css: Difference between revisions

From BioMicro Center
Udays108 (talk | contribs)
 
Udays108 (talk | contribs)
No edit summary
 
(8 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 only)
  Targets: MediaWiki Vector (legacy) skin
   Promote to MediaWiki:Common.css for site-wide deployment
   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-shadow-card:   0 2px 10px rgba(163, 31, 52, 0.07);
  --bmc-header-height:  68px;
  --bmc-max-width:      1140px;
  --bmc-font:          'Helvetica Neue', Arial, sans-serif;
}
}


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


/* ── 2. Base Typography ─────────────────────────────────────── */
/* ── Contact topbar (CSS pseudo-element, decorative) ─────────── */
body {
/* Shows contact info as a red strip above the header */
   font-family: var(--bmc-font) !important;
#mw-page-base {
   color: var(--bmc-text);
   background: #a31f34 !important;
   line-height: 1.6;
  height: 32px !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
   right: 0 !important;
   z-index: 200 !important;
}
}


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


 
/* ── Header (#mw-head) ──────────────────────────────────────── */
/* ── 3. Link Colors ─────────────────────────────────────────── */
#mw-head {
/* Scope to body content — avoids clobbering UI chrome links */
  background: #fff !important;
.mw-body a,
  border-bottom: 1px solid #e0e0e0 !important;
.mw-body-content a,
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
.mw-parser-output a {
  height: 60px !important;
   color: var(--bmc-crimson);
  top: 32px !important; /* sit below the red topbar */
   text-decoration: none;
  position: fixed !important;
  left: 0 !important;
   right: 0 !important;
   z-index: 150 !important;
}
}


.mw-body a:visited,
#mw-head-base {
.mw-body-content a:visited {
  height: 92px !important; /* 32px topbar + 60px header */
   color: var(--bmc-crimson);
   background: #fff !important;
}
}


.mw-body a:hover,
/* Page tabs (Read / Edit / History) */
.mw-body-content a:hover,
#left-navigation {
.mw-parser-output a:hover {
   margin-left: 0 !important;
   color: var(--bmc-crimson-dark);
  text-decoration: underline;
}
}
 
#left-navigation li a,
/* External link icon inherits color */
#right-navigation li a {
.mw-parser-output a.external {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
   color: var(--bmc-crimson);
  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,
/* ── 4. Header ──────────────────────────────────────────────── */
#right-navigation li a:hover {
.vector-header {
   background: #f5f5f5 !important;
   background: var(--bmc-bg) !important;
   color: #a31f34 !important;
   border-bottom: 1px solid #e0e0e0 !important;
   border: none !important;
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07) !important;
}
}


/* Remove Vector-2022's default colored top border if present */
/* Search box in header */
.vector-header::before {
#p-search {
   display: none;
   margin-top: 14px !important;
}
}
 
#searchInput {
/* Logo area */
  border: 1px solid #e0e0e0 !important;
.mw-logo {
  border-radius: 4px !important;
   display: flex;
  padding: 5px 10px !important;
   align-items: center;
  font-size: 0.83rem !important;
   gap: 12px;
  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; }
.mw-logo-wordmark {
#searchButton, #mw-searchButton {
   font-family: var(--bmc-font) !important;
   background: #a31f34 !important;
   color: var(--bmc-text) !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;
}
}


.mw-logo-tagline {
/* Personal tools (login/logout) */
   font-size: 0.72rem;
#p-personal li a {
   color: var(--bmc-text-muted);
   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) ──────────────── */
/* ── 5. Navigation ──────────────────────────────────────────── */
#mw-navigation {
/* Vector-2022 left sidebar navigation */
  background: #fff !important;
.vector-main-menu-action > a,
   border-right: 1px solid #e8e8e8 !important;
.vector-main-menu .mw-list-item a,
   top: 92px !important; /* below topbar + header */
#p-navigation .mw-list-item a {
   position: fixed !important;
   font-family: var(--bmc-font);
   left: 0 !important;
   font-size: 0.85rem;
   bottom: 0 !important;
   font-weight: 500;
   width: 180px !important;
   color: #333;
   overflow-y: auto !important;
   border-radius: 4px;
   z-index: 100 !important;
   padding: 6px 10px;
   transition: background 0.15s, color 0.15s;
   text-decoration: none;
}
}


.vector-main-menu .mw-list-item a:hover,
/* Logo area */
#p-navigation .mw-list-item a:hover {
#p-logo {
   background: #f5f5f5;
  position: static !important;
   color: var(--bmc-crimson);
  width: auto !important;
   text-decoration: none;
  height: auto !important;
   margin: 0 !important;
   padding: 20px 16px 16px !important;
   border-bottom: 1px solid #e8e8e8 !important;
}
}


/* Active nav item (set by JS) */
/* Hide the actual logo image; replace with CSS text badge */
.mw-list-item.bmc-active > a,
#p-logo a {
.mw-list-item.bmc-active > a:visited {
  background-image: none !important;
   background: #f5f5f5;
  display: flex !important;
   color: var(--bmc-crimson);
  align-items: center !important;
   font-weight: 600;
  gap: 10px !important;
  text-decoration: none !important;
   height: auto !important;
   width: auto !important;
   float: none !important;
}
}


/* Portal section headings in sidebar */
#p-logo a::before {
.vector-main-menu .mw-portlet-nav-logo,
  content: "BMC";
.vector-menu-heading {
  display: flex;
   font-size: 0.7rem;
  align-items: center;
  justify-content: center;
   flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #a31f34;
  color: #fff;
   font-weight: 700;
   font-weight: 700;
   text-transform: uppercase;
   font-size: 0.9rem;
  letter-spacing: 0.08em;
   border-radius: 4px;
  color: #999;
}
 
 
/* ── 6. Page Title (h1) ─────────────────────────────────────── */
h1.firstHeading,
.mw-first-heading {
   font-family: var(--bmc-font) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--bmc-text) !important;
   letter-spacing: -0.5px;
   letter-spacing: -0.5px;
   border-bottom: 2px solid var(--bmc-crimson) !important;
   font-family: 'Helvetica Neue', Arial, sans-serif;
  padding-bottom: 12px !important;
  margin-bottom: 24px !important;
}
}


 
#p-logo a::after {
/* ── 7. Content Headings ────────────────────────────────────── */
  content: "MIT BioMicro Center";
.mw-parser-output h2,
  display: block;
.mw-body-content h2 {
   font-size: 0.82rem;
   font-size: 1.35rem;
   font-weight: 700;
   font-weight: 700;
   color: var(--bmc-text);
   color: #1a1a1a;
   padding-bottom: 10px;
   font-family: 'Helvetica Neue', Arial, sans-serif;
   border-bottom: 2px solid var(--bmc-crimson) !important;
   line-height: 1.3;
  margin: 48px 0 18px;
   letter-spacing: -0.1px;
   letter-spacing: -0.2px;
  scroll-margin-top: 88px;
}
}


.mw-parser-output h2:first-child,
/* ── Sidebar navigation portlets (#mw-panel) ─────────────────── */
.mw-body-content h2:first-child {
#mw-panel {
   margin-top: 0;
  position: static !important;
  width: auto !important;
  float: none !important;
   padding: 12px 0 !important;
  background: transparent !important;
}
}


/* Remove Vector-2022's default h2 styling */
.portlet,
.mw-parser-output h2 .mw-headline,
.mw-portlet {
.mw-body-content h2 .mw-headline {
   margin: 0 !important;
   border: none;
   padding: 0 0 8px !important;
}
   border: none !important;
 
   background: transparent !important;
.mw-parser-output h3,
.mw-body-content h3 {
  font-size: 1rem;
   font-weight: 600;
   color: var(--bmc-text);
   margin: 28px 0 10px;
  scroll-margin-top: 88px;
}
}


.mw-parser-output h4,
/* Portlet headings */
.mw-body-content h4 {
.portlet h3,
  font-size: 0.88rem;
.mw-portlet-heading,
  font-weight: 700;
div.portlet h3 {
  color: #444;
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
  margin: 20px 0 8px;
   font-size: 0.68rem !important;
}
 
.mw-parser-output p {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 14px;
}
 
 
/* ── 8. Table of Contents (Vector-2022) ─────────────────────── */
/* Vector-2022 renders TOC in .vector-toc / #mw-panel-toc */
.vector-toc,
#mw-panel-toc .vector-toc {
  background: var(--bmc-bg-card) !important;
  border: 1px solid var(--bmc-border) !important;
  border-radius: 8px !important;
  padding: 20px !important;
  box-shadow: none !important;
}
 
/* TOC title: "Contents" / "On this page" */
.vector-toc .vector-toc-title,
.vector-toc-title-bar {
   border-bottom: 1px solid var(--bmc-border) !important;
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
}
 
.vector-toc .vector-toc-title-text {
   font-size: 0.78rem !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;
  padding: 10px 16px 4px !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
}
}


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


/* Active section highlight (Vector-2022 applies this on scroll) */
/* ── Main content area (#content) ───────────────────────────── */
.vector-toc-list-item-active > .vector-toc-link,
#content,
.vector-toc-list-item-active > .vector-toc-link:visited {
#mw-content-wrapper {
   color: var(--bmc-crimson);
  margin-left: 180px !important; /* match sidebar width */
   font-weight: 600;
  margin-top: 92px !important;  /* topbar 32 + header 60 */
   background: #fdf5f6;
  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;
}
}


/* Sub-section indent */
/* Hide MediaWiki "From bmcwiki..." subtitle */
.vector-toc .vector-toc-list .vector-toc-list > li > .vector-toc-link {
#siteSub,
  padding-left: 20px;
#contentSub { display: none !important; }
  font-size: 0.78rem;
  color: var(--bmc-text-muted);
}


 
/* ── Page Hero: style #firstHeading as the about.html hero ───── */
/* ── 9. Tables (.wikitable) ─────────────────────────────────── */
#firstHeading,
.wikitable {
.mw-first-heading {
  width: 100%;
   background: linear-gradient(135deg, #a31f34 0%, #7a1626 100%) !important;
  border-collapse: collapse !important;
  font-size: 0.83rem;
  font-family: var(--bmc-font);
   background: var(--bmc-bg);
  border: 1px solid #e4e4e4 !important;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 26px;
}
 
/* Wrap table for horizontal scroll on mobile */
.wikitable-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e4e4e4;
  margin-bottom: 26px;
}
 
/* Dark header */
.wikitable > thead > tr > th,
.wikitable > tr > th {
  background: #1a1a1a !important;
   color: #fff !important;
   color: #fff !important;
   padding: 11px 14px !important;
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 600;
   font-size: 1.9rem !important;
   font-size: 0.78rem;
   font-weight: 700 !important;
   text-align: left;
   letter-spacing: -0.5px !important;
   letter-spacing: 0.03em;
  padding: 36px 40px 32px !important;
   white-space: nowrap;
   margin: 0 !important;
   border: none !important;
   border: none !important;
  width: 100% !important;
  display: block !important;
}
}


/* Body cells */
/* Breadcrumb "Home ›" before the title */
.wikitable > tbody > tr > td,
#firstHeading::before {
.wikitable > tr > td {
  content: "Home  ›";
   padding: 10px 14px !important;
   display: block;
   vertical-align: top;
   font-size: 0.78rem;
   border-bottom: 1px solid #f0f0f0 !important;
   font-weight: 400;
   border-left: none !important;
   color: rgba(255,255,255,0.75);
   border-right: none !important;
   margin-bottom: 8px;
   border-top: none !important;
   letter-spacing: 0;
}
}


.wikitable > tbody > tr:last-child > td {
/* ── Body content area ──────────────────────────────────────── */
   border-bottom: none !important;
#bodyContent {
  padding: 36px 40px 60px !important;
  max-width: 860px !important;
   background: #fff !important;
}
}


/* Hover row */
/* ── Typography ─────────────────────────────────────────────── */
.wikitable > tbody > tr:hover > td {
.mw-parser-output {
   background: #fafafa;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
   color: #333 !important;
}
}


/* Section row (use class="wikitable-section-row" in wiki markup) */
.mw-parser-output h2 {
.wikitable .section-row > td {
  font-size: 1.35rem !important;
   background: #f5f5f5 !important;
  font-weight: 700 !important;
   font-weight: 600;
  color: #1a1a1a !important;
   font-size: 0.8rem;
  padding-bottom: 10px !important;
   color: #555;
  border-bottom: 2px solid #a31f34 !important;
   padding: 7px 14px !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; }


/* Price / number column alignment */
.mw-parser-output h3 {
.wikitable .price,
   font-size: 1rem !important;
.wikitable .col-right {
   font-weight: 600 !important;
   text-align: right;
   color: #1a1a1a !important;
   font-variant-numeric: tabular-nums;
   margin: 24px 0 8px !important;
   font-weight: 500;
   white-space: nowrap;
}
}


 
.mw-parser-output h4 {
/* ── 10. Note / Alert Boxes ─────────────────────────────────── */
   font-size: 0.88rem !important;
/* Usage in wiki: <div class="bmc-note"> ... </div>              */
   font-weight: 700 !important;
.bmc-note {
   color: #a31f34 !important;
   background: #fdf6f0;
   margin: 16px 0 6px !important;
  border-left: 3px solid #e07b39;
   letter-spacing: -0.1px !important;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
   font-size: 0.82rem;
   color: #555;
   margin: 12px 0 18px;
   font-family: var(--bmc-font);
}
}


.bmc-note strong { color: #c0622a; }
.mw-parser-output p {
 
   margin-bottom: 14px !important;
.bmc-note-info {
   color: #333 !important;
   background: #f0f6ff;
   border-left-color: #3b7dd8;
}
}


.bmc-note-warn {
.mw-parser-output ul,
   background: #fff9e6;
.mw-parser-output ol {
   border-left-color: #d4a017;
   margin: 0 0 14px 22px !important;
   color: #333 !important;
}
}
.mw-parser-output li { margin-bottom: 4px !important; }


/* Map to existing MediaWiki notice boxes too */
/* ── TOC (Table of Contents) ────────────────────────────────── */
.mw-message-box-notice {
#toc, .toc {
   border-left-color: #3b7dd8 !important;
  background: #f9f9f9 !important;
   border-radius: 0 6px 6px 0 !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 {
/* ── 11. Card Components ────────────────────────────────────── */
  font-size: 0.78rem !important;
/* Usage in wiki: <div class="bmc-card"> ... </div>              */
  font-weight: 700 !important;
.bmc-card {
   text-transform: uppercase !important;
   background: var(--bmc-bg-card);
  letter-spacing: 0.08em !important;
   border: 1px solid var(--bmc-border);
   color: #999 !important;
   border-radius: 8px;
  margin-bottom: 10px !important;
   padding: 20px 22px;
   border: none !important;
   transition: border-color 0.15s, box-shadow 0.15s;
   background: none !important;
   font-family: var(--bmc-font);
   padding: 0 !important;
   box-shadow: none !important;
}
}
 
#toc ul, .toc ul {
.bmc-card:hover {
  list-style: none !important;
   border-color: var(--bmc-border-hover);
   margin: 0 !important;
   box-shadow: var(--bmc-shadow-card);
   padding: 0 !important;
}
}
 
#toc ul li, .toc ul li { margin: 0 0 2px !important; }
.bmc-card h4 {
#toc ul li a, .toc ul li a {
   font-size: 0.88rem;
   font-size: 0.82rem !important;
   font-weight: 700;
   color: #444 !important;
   color: var(--bmc-crimson);
  padding: 3px 8px !important;
   margin-bottom: 6px;
   display: block !important;
   letter-spacing: -0.1px;
  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 {
.bmc-card p {
   background: #f0e8ea !important;
   font-size: 0.82rem;
   color: #a31f34 !important;
   color: #555;
   text-decoration: none !important;
  margin: 0;
   line-height: 1.5;
}
}
 
/* Sub-items */
/* Grid containers */
#toc ul ul li a, .toc ul ul li a {
.bmc-grid-2 {
   padding-left: 18px !important;
   display: grid;
   font-size: 0.78rem !important;
   grid-template-columns: repeat(2, 1fr);
   color: #666 !important;
   gap: 16px;
  margin: 20px 0 28px;
}
}


.bmc-grid-3 {
/* ── Edit section links ──────────────────────────────────────── */
  display: grid;
.mw-editsection { display: inline !important; }
   grid-template-columns: repeat(3, 1fr);
.mw-editsection a {
   gap: 14px;
   font-size: 0.72rem !important;
   margin: 20px 0 28px;
   color: #999 !important;
   margin-left: 8px !important;
}
}
.mw-editsection a:hover { color: #a31f34 !important; }
.mw-editsection-bracket { color: #ddd !important; }


.bmc-grid-4 {
/* ── Tables ─────────────────────────────────────────────────── */
   display: grid;
.wikitable,
   grid-template-columns: repeat(4, 1fr);
.mw-parser-output table:not(.toc) {
   gap: 14px;
   border-collapse: collapse !important;
   margin: 20px 0 28px;
  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 {
/* ── 12. Badges / Pills ─────────────────────────────────────── */
   background: #a31f34 !important;
/* Usage: <span class="bmc-badge bmc-badge-red">Label</span>    */
   color: #fff !important;
.bmc-badge {
   font-weight: 600 !important;
   display: inline-block;
   padding: 10px 14px !important;
   font-size: 0.68rem;
   text-align: left !important;
   padding: 2px 7px;
   border: none !important;
   border-radius: 10px;
   font-size: 0.85rem !important;
   font-weight: 600;
   white-space: nowrap;
   font-family: var(--bmc-font);
}
}
 
.wikitable td,
.bmc-badge-red {
.mw-parser-output table:not(.toc) td {
   background: var(--bmc-crimson-light);
   padding: 9px 14px !important;
   color: var(--bmc-crimson);
  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; }


.bmc-badge-blue {
/* ── Code ───────────────────────────────────────────────────── */
   background: #e8f4fd;
.mw-parser-output code,
   color: #1a6fa8;
.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; }


.bmc-badge-green {
/* ── Component classes (wiki editors add these to markup) ────── */
  background: #e8f9ef;
  color: #1a8042;
}


.bmc-badge-gray {
.service-grid {
   background: #f0f0f0;
   display: grid;
   color: #555;
   grid-template-columns: repeat(2, 1fr);
}
 
 
/* ── 13. Step List ──────────────────────────────────────────── */
/* Usage: <div class="bmc-steps"><div class="bmc-step">...</div></div> */
.bmc-steps {
  margin: 16px 0 24px;
}
 
.bmc-step {
  display: flex;
   gap: 16px;
   gap: 16px;
   padding: 14px 0;
   margin: 20px 0 28px;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
}
 
.service-card {
.bmc-step:last-child { border-bottom: none; }
   background: #f9f9f9;
 
   border: 1px solid #e8e8e8;
.bmc-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
   background: var(--bmc-crimson);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
 
.bmc-step-content { flex: 1; }
.bmc-step-content strong { font-size: 0.88rem; color: var(--bmc-text); }
.bmc-step-content p { font-size: 0.82rem; color: #555; margin: 4px 0 0; }
 
 
/* ── 14. Contact Block ──────────────────────────────────────── */
.bmc-contact-block {
  background: var(--bmc-bg-card);
   border: 1px solid var(--bmc-border);
   border-radius: 8px;
   border-radius: 8px;
   padding: 22px 24px;
   padding: 20px 22px;
   display: flex;
   transition: border-color 0.15s, box-shadow 0.15s;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-family: var(--bmc-font);
}
}
.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; }


.bmc-contact-item { display: flex; flex-direction: column; gap: 3px; }
.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; }


.bmc-contact-item .label {
.pub-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
  font-size: 0.72rem;
.pub-list li { padding: 14px 0 !important; border-bottom: 1px solid #f0f0f0 !important; font-size: 0.85rem !important; }
  font-weight: 700;
.pub-list li:last-child { border-bottom: none !important; }
  text-transform: uppercase;
.pub-list .pub-lab { font-weight: 700; color: #1a1a1a; display: block; }
  letter-spacing: 0.07em;
.pub-list .pub-desc { color: #444; margin-top: 3px; line-height: 1.5; display: block; }
  color: #999;
.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-contact-item .value {
  color: var(--bmc-text);
  font-weight: 500;
}
 
.bmc-contact-item a { color: var(--bmc-crimson); }


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


/* ── 15. Tab Panel System ───────────────────────────────────── */
.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; }
/* Used on pricing page. JS activates these.                     */
.note strong { color: #c0622a; }
/* Usage: wrap sections in <div class="tab-panel" id="tab-NAME"> */
.note.note-info { background: #f0f6ff; border-left-color: #3b7dd8; }


.tab-bar-wrap {
.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; }
  background: linear-gradient(135deg, var(--bmc-crimson) 0%, var(--bmc-crimson-dark) 100%);
.contact-item { display: flex; flex-direction: column; gap: 3px; }
  border-bottom: 3px solid rgba(0, 0, 0, 0.15);
.contact-item .label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #999; }
  margin-bottom: 0;
.contact-item .value { color: #1a1a1a; font-weight: 500; }
}
.contact-item a { color: #a31f34 !important; }


.tab-bar {
/* ── Footer ─────────────────────────────────────────────────── */
  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; }
 
 
/* ── 16. Footer ─────────────────────────────────────────────── */
.vector-footer,
#footer {
#footer {
   background: #1a1a1a !important;
   background: #1a1a1a !important;
   color: #aaa !important;
   color: #aaa !important;
   padding: 40px 0 !important;
   padding: 32px 40px !important;
   font-size: 0.82rem;
   margin-left: 180px !important;
  font-family: var(--bmc-font);
   border-top: none !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; }


.vector-footer a,
/* Footer top accent */
#footer a {
#footer::before {
   color: #aaa !important;
   content: "";
   text-decoration: none;
   display: block;
}
   height: 3px;
 
   background: #a31f34;
.vector-footer a:hover,
   margin: -32px -40px 24px;
#footer a:hover {
   color: #fff !important;
   text-decoration: none;
}
 
.vector-footer-container,
#footer-info,
#footer-places {
   max-width: var(--bmc-max-width) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}
}


/* Footer category headings */
/* ── Responsive ─────────────────────────────────────────────── */
.vector-footer h4,
@media (max-width: 860px) {
.vector-footer .mw-portlet-lang > h3,
  #mw-navigation {
#footer h4 {
    position: static !important;
  font-size: 0.75rem;
    width: 100% !important;
  font-weight: 700;
    border-right: none !important;
  text-transform: uppercase;
    border-bottom: 1px solid #e8e8e8 !important;
  letter-spacing: 0.08em;
  color: #fff !important;
  margin-bottom: 12px;
}
 
/* Footer link lists */
.vector-footer ul { list-style: none; }
.vector-footer ul li { margin-bottom: 6px; }
 
 
/* ── 17. Responsive ─────────────────────────────────────────── */
@media screen and (max-width: 860px) {
  .bmc-grid-2,
  .bmc-grid-3,
  .bmc-grid-4 {
    grid-template-columns: 1fr;
   }
   }
 
   #content, #mw-content-wrapper {
   h1.firstHeading { font-size: 1.6rem !important; }
    margin-left: 0 !important;
}
     margin-top: 0 !important;
 
@media screen and (max-width: 580px) {
  h1.firstHeading { font-size: 1.4rem !important; }
 
  .bmc-contact-block {
    flex-direction: column;
     gap: 16px;
  }
 
  .tab-btn {
    padding: 10px 14px;
    font-size: 0.8rem;
   }
   }
  #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; }
}