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
Line 1: Line 1:
/* ============================================================
/* ============================================================
   BioMicro Center Wiki — Modern UI (matches about.html)
   BioMicro Center Wiki — Full DOM Replacement CSS
   Paste into: User:USERNAME/common.css
   Paste into: User:USERNAME/common.css
   Promoted to: MediaWiki:Common.css (by sysop)
   Strategy: hide all MediaWiki structural HTML, style the
  JS-injected #bmc-wrapper shell to exactly match about.html
   ============================================================ */
   ============================================================ */


/* ── Reset & Base ───────────────────────────────────────────── */
/* ── 1. Hide ALL MediaWiki structural elements ──────────────── */
*, *::before, *::after { box-sizing: border-box; }
#mw-page-base,
#mw-head-base,
#mw-head,
#mw-navigation,
#mw-panel,
.mw-sidebar,
#firstHeading,
.mw-first-heading,
#siteSub,
#contentSub,
#contentSub2,
#jump-to-nav,
#mw-indicator-mw-helplink,
.mw-indicators,
#footer,
.mw-footer,
.vector-header,
.vector-header-container,
.vector-column-start,
.vector-page-toolbar,
.vector-sticky-header,
#mw-notification-area {
  display: none !important;
}


html { font-size: 16px; scroll-behavior: smooth; }
/* Remove MediaWiki's content positioning (sidebar offset, etc.) */
#mw-content-wrapper,
.mw-content-container,
#mw-content,
.mw-body,
.vector-body,
.vector-body-before-content,
#content {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  position: static !important;
}


body {
/* Body — reset MediaWiki defaults */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 16px !important;
   color: #1a1a1a !important;
   color: #1a1a1a !important;
  background: #fff !important;
   line-height: 1.6 !important;
   line-height: 1.6 !important;
}
}


a { color: #a31f34 !important; text-decoration: none !important; }
/* ── 2. About.html styles — copied verbatim ─────────────────── */
a:hover { text-decoration: underline !important; }
 
/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: #a31f34; text-decoration: none; }
a:hover { text-decoration: underline; }


/* ── Topbar (injected by JS as .bmc-topbar) ─────────────────── */
/* Top bar */
.bmc-topbar {
.bmc-topbar {
   background: #a31f34;
   background: #a31f34;
Line 27: Line 77:
   padding: 6px 0;
   padding: 6px 0;
   text-align: right;
   text-align: right;
  width: 100%;
  position: relative;
  z-index: 200;
}
.bmc-topbar .bmc-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
}
.bmc-topbar .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.bmc-topbar a { color: #fff !important; opacity: 0.85; }
.bmc-topbar a { color: #fff !important; opacity: 0.85; }
.bmc-topbar a:hover { opacity: 1; text-decoration: none !important; }
.bmc-topbar a:hover { opacity: 1; text-decoration: none !important; }
.bmc-topbar span { margin: 0 6px; opacity: 0.5; }
.bmc-topbar span { margin: 0 6px; opacity: 0.5; }


/* ── Header: restyle #mw-head to white bar ──────────────────── */
/* Header */
/* Legacy Vector */
.bmc-header {
#mw-head,
   background: #fff;
#mw-head-base {
   border-bottom: 1px solid #e0e0e0;
   background: #fff !important;
   position: sticky;
   border-bottom: 1px solid #e0e0e0 !important;
   top: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
   z-index: 100;
  height: 68px !important;
   box-shadow: 0 1px 4px rgba(0,0,0,0.07);
   position: sticky !important;
   top: 0 !important;
   z-index: 100 !important;
   left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}
}
/* Vector 2022 */
.vector-header,
.vector-header-container {
  background: #fff !important;
  border-bottom: 1px solid #e0e0e0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
  height: 68px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}
/* Inner wrapper for header content (flex row) */
#mw-head .bmc-header-inner,
.bmc-header-inner {
.bmc-header-inner {
   max-width: 1140px;
   max-width: 1140px; margin: 0 auto; padding: 0 24px;
  margin: 0 auto;
   display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
   display: flex;
  align-items: center;
  justify-content: space-between;
   height: 68px;
   height: 68px;
}
}
.bmc-logo { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.bmc-logo-mark {
  width: 40px; height: 40px; background: #a31f34; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff !important; font-weight: 700; font-size: 1rem; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.bmc-logo-text .bmc-logo-name { font-size: 1rem; font-weight: 700; color: #1a1a1a !important; letter-spacing: -0.2px; display: block; }
.bmc-logo-text .bmc-logo-sub { font-size: 0.72rem; color: #666; font-weight: 400; display: block; }


/* ── Logo ───────────────────────────────────────────────────── */
/* Header right side: nav + search */
/* Hide default MediaWiki logo (replaced by JS-injected logo in header) */
.bmc-header-right { display: flex; align-items: center; gap: 16px; }
#p-logo,
.mw-wiki-logo {
  display: none !important;
}


.bmc-logo {
/* Search in header */
  display: flex;
.bmc-search-form { display: flex; align-items: center; }
  align-items: center;
.bmc-search-form input[type="search"] {
   gap: 12px;
   border: 1px solid #e0e0e0;
   text-decoration: none !important;
   border-radius: 4px;
   flex-shrink: 0;
  padding: 5px 10px;
  font-size: 0.82rem;
  width: 160px;
  color: #333;
  outline: none;
   transition: border-color 0.15s;
}
}
.bmc-logo-mark {
.bmc-search-form input[type="search"]:focus { border-color: #a31f34; }
  width: 40px;
.bmc-search-form button {
  height: 40px;
   background: #a31f34;
   background: #a31f34;
  color: #fff;
  border: none;
   border-radius: 4px;
   border-radius: 4px;
   display: flex;
   padding: 5px 10px;
  align-items: center;
   margin-left: 4px;
  justify-content: center;
   font-size: 0.82rem;
  color: #fff;
   cursor: pointer;
  font-weight: 700;
   transition: background 0.15s;
  font-size: 1rem;
  letter-spacing: -0.5px;
   flex-shrink: 0;
}
.bmc-logo-text .bmc-logo-name {
   font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.2px;
   display: block;
}
.bmc-logo-text .bmc-logo-sub {
   font-size: 0.72rem;
  color: #666;
  font-weight: 400;
  display: block;
}
}
.bmc-search-form button:hover { background: #8b1a2c; }


/* ── Horizontal Navigation (injected by JS as .bmc-hnav) ────── */
/* Nav */
.bmc-hnav {
.bmc-nav { display: flex; align-items: center; }
  display: flex;
.bmc-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
  align-items: center;
.bmc-nav > ul > li { position: relative; margin: 0; padding: 0; }
}
.bmc-nav > ul > li > a {
.bmc-hnav > ul {
   display: block; padding: 8px 14px;
  list-style: none;
   font-size: 0.85rem; font-weight: 500; color: #333 !important;
  display: flex;
   border-radius: 4px; white-space: nowrap;
  gap: 2px;
   transition: background 0.15s, color 0.15s;
  margin: 0;
  padding: 0;
}
.bmc-hnav > ul > li {
  position: relative;
  margin: 0;
}
.bmc-hnav > ul > li > a {
   display: block !important;
  padding: 8px 14px !important;
   font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #333 !important;
   border-radius: 4px !important;
  white-space: nowrap !important;
   transition: background 0.15s, color 0.15s !important;
   text-decoration: none !important;
   text-decoration: none !important;
}
}
.bmc-hnav > ul > li > a:hover,
.bmc-nav > ul > li > a:hover,
.bmc-hnav > ul > li.bmc-active > a {
.bmc-nav > ul > li.bmc-active > a {
   background: #f5f5f5 !important;
   background: #f5f5f5; color: #a31f34 !important; text-decoration: none !important;
  color: #a31f34 !important;
  text-decoration: none !important;
}
.bmc-hnav .bmc-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.6;
}
}
.bmc-dropdown { position: relative; }
.bmc-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.6; }
.bmc-dropdown-menu {
.bmc-dropdown-menu {
   display: none;
   display: none; position: absolute; top: calc(100% + 4px); left: 0;
  position: absolute;
   background: #fff; border: 1px solid #e0e0e0;
  top: calc(100% + 4px);
   border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  left: 0;
   min-width: 200px; padding: 6px 0; z-index: 200;
   background: #fff;
  border: 1px solid #e0e0e0;
   border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
   min-width: 200px;
  padding: 6px 0;
  z-index: 200;
}
}
.bmc-dropdown:hover .bmc-dropdown-menu { display: block; }
.bmc-dropdown:hover .bmc-dropdown-menu { display: block; }
.bmc-dropdown-menu a {
.bmc-dropdown-menu a {
   display: block !important;
   display: block !important; padding: 8px 18px; font-size: 0.83rem; color: #333 !important;
  padding: 8px 18px !important;
   transition: background 0.12s; text-decoration: none !important;
  font-size: 0.83rem !important;
  color: #333 !important;
   transition: background 0.12s !important;
  text-decoration: none !important;
}
.bmc-dropdown-menu a:hover {
  background: #faf0f0 !important;
  color: #a31f34 !important;
  text-decoration: none !important;
}
}
.bmc-dropdown-menu a:hover { background: #faf0f0; color: #a31f34 !important; text-decoration: none !important; }
.bmc-dropdown-menu .bmc-divider { border-top: 1px solid #eee; margin: 4px 0; }
.bmc-dropdown-menu .bmc-divider { border-top: 1px solid #eee; margin: 4px 0; }
.bmc-dropdown-menu .bmc-group-label {
.bmc-dropdown-menu .bmc-group-label {
   padding: 6px 18px 2px;
   padding: 6px 18px 2px; font-size: 0.7rem;
  font-size: 0.7rem;
   font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.05em;
   font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
}


/* Hide original MediaWiki nav elements that are replaced */
/* Page hero */
#mw-head #left-navigation,
#mw-head #right-navigation,
#mw-panel,
.vector-column-start,
#p-personal,
#pt-userpage,
#p-namespaces {
  display: none !important;
}
 
/* Keep search accessible but repositioned into header by JS */
#p-search, .vector-search-box {
  display: none !important;
}
 
/* ── Page Hero (injected by JS as .bmc-page-hero) ───────────── */
.bmc-page-hero {
.bmc-page-hero {
   background: linear-gradient(135deg, #a31f34 0%, #7a1626 100%);
   background: linear-gradient(135deg, #a31f34 0%, #7a1626 100%);
   color: #fff;
   color: #fff; padding: 40px 0 36px;
  padding: 40px 0 36px;
  width: 100%;
}
.bmc-page-hero .bmc-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.bmc-breadcrumb {
  font-size: 0.78rem;
  margin-bottom: 10px;
  opacity: 0.75;
}
}
.bmc-page-hero .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.bmc-breadcrumb { font-size: 0.78rem; margin-bottom: 10px; opacity: 0.75; }
.bmc-breadcrumb a { color: #fff !important; }
.bmc-breadcrumb a { color: #fff !important; }
.bmc-breadcrumb span { margin: 0 6px; }
.bmc-breadcrumb .sep { margin: 0 6px; }
.bmc-page-hero h1 {
.bmc-page-hero h1 {
   font-size: 2rem !important;
   font-size: 2rem; font-weight: 700; letter-spacing: -0.5px;
  font-weight: 700 !important;
   color: #fff !important; margin: 0; padding: 0; border: none;
  letter-spacing: -0.5px !important;
   color: #fff !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
}


/* Hide original page title (shown in hero instead) */
/* Page layout */
#firstHeading,
.bmc-page-layout {
.mw-first-heading {
  max-width: 1140px; margin: 0 auto; padding: 40px 24px 80px;
   display: none !important;
   display: grid; grid-template-columns: 220px 1fr; gap: 40px;
}
}


/* ── Page Layout Container ──────────────────────────────────── */
/* Sidebar TOC */
#content,
.bmc-sidebar { position: sticky; top: 84px; align-self: start; }
.mw-body,
.bmc-toc {
.vector-body {
   background: #f9f9f9; border: 1px solid #e8e8e8;
   max-width: 1140px !important;
   border-radius: 8px; padding: 20px;
   margin: 0 auto !important;
}
  padding: 40px 24px 80px !important;
.bmc-toc h3 {
   background: #fff !important;
   font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  border: none !important;
   letter-spacing: 0.08em; color: #999; margin-bottom: 12px;
  box-shadow: none !important;
   border: none; background: none; padding: 0;
   border-radius: 0 !important;
   float: none !important;
}
}
 
.bmc-toc ul { list-style: none; margin: 0; padding: 0; }
/* Remove MediaWiki's default content margin-left (for sidebar offset) */
.bmc-toc ul li { margin-bottom: 2px; }
#mw-content-wrapper,
.bmc-toc ul li a {
.mw-content-container {
   font-size: 0.82rem; color: #444 !important; padding: 4px 8px; display: block;
   margin-left: 0 !important;
   border-radius: 4px; transition: background 0.12s, color 0.12s;
   padding-left: 0 !important;
  text-decoration: none !important;
}
}
.bmc-toc ul li a:hover { background: #f0e8ea; color: #a31f34 !important; text-decoration: none !important; }
.bmc-toc ul li.bmc-sub a { padding-left: 20px; color: #666 !important; font-size: 0.78rem; }


/* ── Table of Contents ──────────────────────────────────────── */
/* Content area */
#toc,
.bmc-content { min-width: 0; }
.toc {
.bmc-content h2 {
   background: #f9f9f9 !important;
   font-size: 1.35rem; font-weight: 700; color: #1a1a1a;
   border: 1px solid #e8e8e8 !important;
   padding-bottom: 10px; border-bottom: 2px solid #a31f34;
  border-radius: 8px !important;
   margin: 48px 0 18px; letter-spacing: -0.2px;
   padding: 20px !important;
   scroll-margin-top: 88px;
  display: inline-block !important;
   background: none; box-shadow: none; border-left: none; border-radius: 0;
   min-width: 200px !important;
   font-size: 0.82rem !important;
  float: none !important;
  margin: 0 0 28px 0 !important;
}
}
#toc .toctitle h2,
.bmc-content h2:first-child { margin-top: 0; }
.toc .toctitle h2 {
.bmc-content h3 {
   font-size: 0.78rem !important;
   font-size: 1rem; font-weight: 600; color: #1a1a1a;
  font-weight: 700 !important;
   margin: 28px 0 10px; scroll-margin-top: 88px;
  text-transform: uppercase !important;
   letter-spacing: 0.08em !important;
  color: #999 !important;
  margin-bottom: 12px !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}
}
#toc ul, .toc ul {
.bmc-content p { margin-bottom: 14px; font-size: 0.9rem; color: #333; }
   list-style: none !important;
.bmc-content p:last-child { margin-bottom: 0; }
   margin: 0 !important;
 
   padding: 0 !important;
/* ── 3. Wiki content typography (inside .bmc-content) ────────── */
.bmc-content .mw-parser-output {
   font-family: 'Helvetica Neue', Arial, sans-serif;
   font-size: 0.9rem;
  line-height: 1.6;
   color: #333;
}
}
#toc ul li, .toc ul li { margin-bottom: 2px !important; }
.bmc-content .mw-parser-output h2 {
#toc ul li a, .toc ul li a {
   font-size: 1.35rem; font-weight: 700; color: #1a1a1a;
   font-size: 0.82rem !important;
   padding-bottom: 10px; border-bottom: 2px solid #a31f34 !important;
   color: #444 !important;
   border-left: none !important; border-top: none !important; border-right: none !important;
   padding: 4px 8px !important;
   margin: 48px 0 18px; letter-spacing: -0.2px;
  display: block !important;
  scroll-margin-top: 88px;
  border-radius: 4px !important;
  background: none !important; box-shadow: none !important; border-radius: 0 !important;
   transition: background 0.12s, color 0.12s !important;
  text-decoration: none !important;
}
}
#toc ul li a:hover, .toc ul li a:hover {
.bmc-content .mw-parser-output h2:first-child { margin-top: 0; }
   background: #f0e8ea !important;
.bmc-content .mw-parser-output h3 {
  color: #a31f34 !important;
   font-size: 1rem; font-weight: 600; color: #1a1a1a; margin: 28px 0 10px;
  text-decoration: none !important;
}
}
/* Sub-items */
.bmc-content .mw-parser-output h4 {
#toc ul li ul li a, .toc ul li ul li a {
   font-size: 0.88rem; font-weight: 700; color: #a31f34; margin-bottom: 6px;
   padding-left: 20px !important;
  color: #666 !important;
  font-size: 0.78rem !important;
}
}
.bmc-content .mw-parser-output p { margin-bottom: 14px; font-size: 0.9rem; color: #333; }
.bmc-content .mw-parser-output a { color: #a31f34 !important; }
.bmc-content .mw-parser-output a:hover { text-decoration: underline !important; }
.bmc-content .mw-parser-output ul,
.bmc-content .mw-parser-output ol { margin: 0 0 14px 24px; font-size: 0.9rem; color: #333; }
.bmc-content .mw-parser-output li { margin-bottom: 4px; }


/* ── Typography ─────────────────────────────────────────────── */
/* Edit section links */
.mw-parser-output {
.bmc-content .mw-editsection {
   font-family: 'Helvetica Neue', Arial, sans-serif !important;
   display: inline !important;
   font-size: 0.95rem !important;
   font-size: 0.72rem;
   line-height: 1.6 !important;
   margin-left: 8px;
  color: #333 !important;
}
}
.bmc-content .mw-editsection a { color: #999 !important; font-size: 0.72rem !important; }
.bmc-content .mw-editsection a:hover { color: #a31f34 !important; }
.bmc-content .mw-editsection-bracket { color: #ccc; }


.mw-parser-output h2 {
/* Wiki TOC (if kept inside content) */
   font-size: 1.35rem !important;
.bmc-content #toc,
  font-weight: 700 !important;
.bmc-content .toc {
   color: #1a1a1a !important;
  background: #f9f9f9; border: 1px solid #e8e8e8;
  padding-bottom: 10px !important;
  border-radius: 8px; padding: 20px;
   border-bottom: 2px solid #a31f34 !important;
  display: inline-block; min-width: 200px;
  margin: 48px 0 18px !important;
  margin: 0 0 24px;
   letter-spacing: -0.2px !important;
}
  scroll-margin-top: 88px !important;
.bmc-content .toctitle h2 {
  /* remove any card styling from prior CSS */
   font-size: 0.78rem !important; font-weight: 700 !important;
  background: none !important;
  text-transform: uppercase !important; letter-spacing: 0.08em !important;
   box-shadow: none !important;
   color: #999 !important; margin-bottom: 12px !important;
  border-left: none !important;
   border: none !important; background: none !important; padding: 0 !important;
   border-top: none !important;
}
   border-right: none !important;
.bmc-content #toc ul, .bmc-content .toc ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
  border-radius: 0 !important;
.bmc-content #toc ul li a, .bmc-content .toc ul li a {
   font-size: 0.82rem !important; color: #444 !important; padding: 4px 8px !important;
   display: block !important; border-radius: 4px !important;
   transition: background 0.12s !important;
}
.bmc-content #toc ul li a:hover, .bmc-content .toc ul li a:hover {
   background: #f0e8ea !important; color: #a31f34 !important; text-decoration: none !important;
}
}
.mw-parser-output h2:first-child { margin-top: 0 !important; }


.mw-parser-output h3 {
/* Tables */
   font-size: 1rem !important;
.bmc-content .wikitable,
   font-weight: 600 !important;
.bmc-content .mw-parser-output table {
   color: #1a1a1a !important;
   border-collapse: collapse; width: 100%; margin: 16px 0;
   margin: 28px 0 10px !important;
   font-size: 0.88rem; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden;
  scroll-margin-top: 88px !important;
}
.bmc-content .wikitable th,
.bmc-content .mw-parser-output table th {
   background: #a31f34; color: #fff; font-weight: 600;
   padding: 10px 14px; text-align: left; border: none; font-size: 0.85rem;
}
}
 
.bmc-content .wikitable td,
.mw-parser-output h4 {
.bmc-content .mw-parser-output table td {
   font-size: 0.88rem !important;
   padding: 9px 14px; border: none;
  font-weight: 700 !important;
   border-bottom: 1px solid #f0f0f0; vertical-align: top; color: #333;
   color: #a31f34 !important;
  margin-bottom: 6px !important;
  letter-spacing: -0.1px !important;
}
}
.bmc-content .wikitable tr:nth-child(even) td,
.bmc-content .mw-parser-output table tr:nth-child(even) td { background: #fafafa; }
.bmc-content .wikitable tr:last-child td,
.bmc-content .mw-parser-output table tr:last-child td { border-bottom: none; }


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


/* ── Links ──────────────────────────────────────────────────── */
/* ── 4. Component classes (for wiki editors to use in markup) ── */
.mw-parser-output a,
#bodyContent a {
  color: #a31f34 !important;
  text-decoration: none !important;
}
.mw-parser-output a:hover,
#bodyContent a:hover {
  text-decoration: underline !important;
}


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


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


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


/* ── Affiliation Grid ───────────────────────────────────────── */
/* Affiliations */
.affil-grid {
.affil-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 24px; }
  display: grid;
.affil-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 18px; }
  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; }
.affil-card .affil-name { font-size: 0.85rem; font-weight: 700; color: #1a1a1a; }
.affil-card .affil-rep { font-size: 0.78rem; color: #666; margin-top: 4px; }
.affil-card .affil-rep { font-size: 0.78rem; color: #666; margin-top: 4px; }


/* ── Contact Block ──────────────────────────────────────────── */
/* Note boxes */
.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 */
.contact-block {
.contact-block {
   background: #f9f9f9;
   background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px;
  border: 1px solid #e8e8e8;
   padding: 22px 24px; display: flex; gap: 40px; flex-wrap: wrap; font-size: 0.85rem;
  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 { display: flex; flex-direction: column; gap: 3px; }
.contact-item .label {
.contact-item .label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #999; }
  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 .value { color: #1a1a1a; font-weight: 500; }
.contact-item a { color: #a31f34 !important; }
.contact-item a { color: #a31f34 !important; }


/* ── Note / Info Boxes ──────────────────────────────────────── */
/* ── 5. Footer ───────────────────────────────────────────────── */
.note {
.bmc-footer { background: #1a1a1a; color: #aaa; padding: 40px 0; font-size: 0.82rem; }
  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;
}
 
/* ── Tables ─────────────────────────────────────────────────── */
.wikitable,
.mw-parser-output table {
  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;
}
.wikitable th,
.mw-parser-output table 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 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 tr:nth-child(even) td {
  background: #fafafa !important;
}
.wikitable tr:last-child td,
.mw-parser-output table tr:last-child td {
  border-bottom: none !important;
}
.wikitable tr:hover td,
.mw-parser-output table tr:hover td {
  background: rgba(163,31,52,0.03) !important;
}
 
/* ── Edit Section Links ─────────────────────────────────────── */
.mw-editsection a,
.mw-editsection-bracket {
  color: #999 !important;
  font-size: 0.75rem !important;
}
.mw-editsection a:hover { color: #a31f34 !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; }
 
/* ── Footer ─────────────────────────────────────────────────── */
#footer,
.mw-footer {
  background: #1a1a1a !important;
  color: #aaa !important;
  padding: 40px 0 !important;
  font-size: 0.82rem !important;
  margin: 0 !important;
  border: none !important;
}
.bmc-footer-inner {
.bmc-footer-inner {
   max-width: 1140px;
   max-width: 1140px; margin: 0 auto; padding: 0 24px;
  margin: 0 auto;
   display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
  padding: 0 24px;
   display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
#footer h4,
.mw-footer h4,
.bmc-footer-inner h4 {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #fff !important;
  margin-bottom: 12px !important;
}
}
#footer ul,
.bmc-footer h4 {
.mw-footer ul,
   font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
.bmc-footer-inner ul {
   letter-spacing: 0.08em; color: #fff; margin-bottom: 12px;
   list-style: none !important;
   padding: 0 !important;
  margin: 0 !important;
}
}
#footer ul li,
.bmc-footer ul { list-style: none; margin: 0; padding: 0; }
.mw-footer ul li,
.bmc-footer ul li { margin-bottom: 6px; }
.bmc-footer-inner li { margin-bottom: 6px !important; }
.bmc-footer ul li a { color: #aaa !important; }
#footer ul li a,
.bmc-footer ul li a:hover { color: #fff !important; text-decoration: none !important; }
.mw-footer ul li a,
.bmc-footer-inner a { color: #aaa !important; }
#footer ul li a:hover,
.mw-footer ul li a:hover,
.bmc-footer-inner a:hover { color: #fff !important; text-decoration: none !important; }
 
/* Footer bottom bar */
.bmc-footer-bottom {
.bmc-footer-bottom {
   max-width: 1140px;
   max-width: 1140px; margin: 24px auto 0; padding: 20px 24px 0;
  margin: 24px auto 0;
   border-top: 1px solid #333; display: flex;
  padding: 20px 24px 0;
   justify-content: space-between; align-items: center;
   border-top: 1px solid #333;
   flex-wrap: wrap; gap: 8px; font-size: 0.77rem; color: #666;
  display: flex;
   justify-content: space-between;
  align-items: center;
   flex-wrap: wrap;
  gap: 8px;
  font-size: 0.77rem;
  color: #666;
}
 
/* Hide default MediaWiki footer items (replaced by JS-injected structure) */
#footer-info,
#footer-places,
#footer-icons {
  display: none !important;
}
}
.bmc-footer-bottom a { color: #aaa !important; }
.bmc-footer-bottom a:hover { color: #fff !important; }


/* ── Responsive ─────────────────────────────────────────────── */
/* ── 6. Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
@media (max-width: 860px) {
   .bmc-hnav { display: none !important; }
   .bmc-page-layout { grid-template-columns: 1fr; }
 
   .bmc-sidebar { position: static; }
  /* Restore wiki sidebar on mobile */
   .staff-grid { grid-template-columns: repeat(2, 1fr); }
  #mw-panel,
   .bmc-footer-inner { grid-template-columns: 1fr 1fr; }
   .vector-column-start {
   .bmc-nav { display: none; }
    display: block !important;
   .bmc-search-form input[type="search"] { width: 120px; }
    background: #f9f9f9 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    width: 100% !important;
  }
 
   .staff-grid { grid-template-columns: repeat(2, 1fr) !important; }
   .bmc-footer-inner { grid-template-columns: 1fr 1fr !important; }
 
  #content,
   .mw-body,
   .vector-body {
    padding: 24px 16px 48px !important;
  }
}
}
@media (max-width: 580px) {
@media (max-width: 580px) {
   .bmc-page-hero h1 { font-size: 1.5rem !important; }
  .bmc-footer-inner { grid-template-columns: 1fr; }
   .service-grid,
   .bmc-page-hero h1 { font-size: 1.5rem; }
  .staff-grid,
   .service-grid, .staff-grid, .affil-grid { grid-template-columns: 1fr; }
  .affil-grid { grid-template-columns: 1fr !important; }
   .staff-card.director { flex-direction: column; }
   .staff-card.director { flex-direction: column !important; }
   .contact-block { flex-direction: column; gap: 16px; }
   .contact-block { flex-direction: column !important; gap: 16px !important; }
   .bmc-search-form { display: none; }
   .bmc-footer-inner { grid-template-columns: 1fr !important; }
}
}

Revision as of 22:37, 8 May 2026

/* ============================================================
   BioMicro Center Wiki — Full DOM Replacement CSS
   Paste into: User:USERNAME/common.css
   Strategy: hide all MediaWiki structural HTML, style the
   JS-injected #bmc-wrapper shell to exactly match about.html
   ============================================================ */

/* ── 1. Hide ALL MediaWiki structural elements ──────────────── */
#mw-page-base,
#mw-head-base,
#mw-head,
#mw-navigation,
#mw-panel,
.mw-sidebar,
#firstHeading,
.mw-first-heading,
#siteSub,
#contentSub,
#contentSub2,
#jump-to-nav,
#mw-indicator-mw-helplink,
.mw-indicators,
#footer,
.mw-footer,
.vector-header,
.vector-header-container,
.vector-column-start,
.vector-page-toolbar,
.vector-sticky-header,
#mw-notification-area {
  display: none !important;
}

/* Remove MediaWiki's content positioning (sidebar offset, etc.) */
#mw-content-wrapper,
.mw-content-container,
#mw-content,
.mw-body,
.vector-body,
.vector-body-before-content,
#content {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  position: static !important;
}

/* Body — reset MediaWiki defaults */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 16px !important;
  color: #1a1a1a !important;
  line-height: 1.6 !important;
}

/* ── 2. About.html styles — copied verbatim ─────────────────── */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: #a31f34; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top bar */
.bmc-topbar {
  background: #a31f34;
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 0;
  text-align: right;
}
.bmc-topbar .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.bmc-topbar a { color: #fff !important; opacity: 0.85; }
.bmc-topbar a:hover { opacity: 1; text-decoration: none !important; }
.bmc-topbar span { margin: 0 6px; opacity: 0.5; }

/* Header */
.bmc-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.bmc-header-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.bmc-logo { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.bmc-logo-mark {
  width: 40px; height: 40px; background: #a31f34; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff !important; font-weight: 700; font-size: 1rem; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.bmc-logo-text .bmc-logo-name { font-size: 1rem; font-weight: 700; color: #1a1a1a !important; letter-spacing: -0.2px; display: block; }
.bmc-logo-text .bmc-logo-sub { font-size: 0.72rem; color: #666; font-weight: 400; display: block; }

/* Header right side: nav + search */
.bmc-header-right { display: flex; align-items: center; gap: 16px; }

/* Search in header */
.bmc-search-form { display: flex; align-items: center; }
.bmc-search-form input[type="search"] {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.82rem;
  width: 160px;
  color: #333;
  outline: none;
  transition: border-color 0.15s;
}
.bmc-search-form input[type="search"]:focus { border-color: #a31f34; }
.bmc-search-form button {
  background: #a31f34;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  margin-left: 4px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}
.bmc-search-form button:hover { background: #8b1a2c; }

/* Nav */
.bmc-nav { display: flex; align-items: center; }
.bmc-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.bmc-nav > ul > li { position: relative; margin: 0; padding: 0; }
.bmc-nav > ul > li > a {
  display: block; padding: 8px 14px;
  font-size: 0.85rem; font-weight: 500; color: #333 !important;
  border-radius: 4px; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  text-decoration: none !important;
}
.bmc-nav > ul > li > a:hover,
.bmc-nav > ul > li.bmc-active > a {
  background: #f5f5f5; color: #a31f34 !important; text-decoration: none !important;
}
.bmc-dropdown { position: relative; }
.bmc-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.6; }
.bmc-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border: 1px solid #e0e0e0;
  border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  min-width: 200px; padding: 6px 0; z-index: 200;
}
.bmc-dropdown:hover .bmc-dropdown-menu { display: block; }
.bmc-dropdown-menu a {
  display: block !important; padding: 8px 18px; font-size: 0.83rem; color: #333 !important;
  transition: background 0.12s; text-decoration: none !important;
}
.bmc-dropdown-menu a:hover { background: #faf0f0; color: #a31f34 !important; text-decoration: none !important; }
.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;
}

/* Page hero */
.bmc-page-hero {
  background: linear-gradient(135deg, #a31f34 0%, #7a1626 100%);
  color: #fff; padding: 40px 0 36px;
}
.bmc-page-hero .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.bmc-breadcrumb { font-size: 0.78rem; margin-bottom: 10px; opacity: 0.75; }
.bmc-breadcrumb a { color: #fff !important; }
.bmc-breadcrumb .sep { margin: 0 6px; }
.bmc-page-hero h1 {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.5px;
  color: #fff !important; margin: 0; padding: 0; border: none;
}

/* Page layout */
.bmc-page-layout {
  max-width: 1140px; margin: 0 auto; padding: 40px 24px 80px;
  display: grid; grid-template-columns: 220px 1fr; gap: 40px;
}

/* Sidebar TOC */
.bmc-sidebar { position: sticky; top: 84px; align-self: start; }
.bmc-toc {
  background: #f9f9f9; border: 1px solid #e8e8e8;
  border-radius: 8px; padding: 20px;
}
.bmc-toc h3 {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #999; margin-bottom: 12px;
  border: none; background: none; padding: 0;
}
.bmc-toc ul { list-style: none; margin: 0; padding: 0; }
.bmc-toc ul li { margin-bottom: 2px; }
.bmc-toc ul li a {
  font-size: 0.82rem; color: #444 !important; padding: 4px 8px; display: block;
  border-radius: 4px; transition: background 0.12s, color 0.12s;
  text-decoration: none !important;
}
.bmc-toc ul li a:hover { background: #f0e8ea; color: #a31f34 !important; text-decoration: none !important; }
.bmc-toc ul li.bmc-sub a { padding-left: 20px; color: #666 !important; font-size: 0.78rem; }

/* Content area */
.bmc-content { min-width: 0; }
.bmc-content h2 {
  font-size: 1.35rem; font-weight: 700; color: #1a1a1a;
  padding-bottom: 10px; border-bottom: 2px solid #a31f34;
  margin: 48px 0 18px; letter-spacing: -0.2px;
  scroll-margin-top: 88px;
  background: none; box-shadow: none; border-left: none; border-radius: 0;
}
.bmc-content h2:first-child { margin-top: 0; }
.bmc-content h3 {
  font-size: 1rem; font-weight: 600; color: #1a1a1a;
  margin: 28px 0 10px; scroll-margin-top: 88px;
}
.bmc-content p { margin-bottom: 14px; font-size: 0.9rem; color: #333; }
.bmc-content p:last-child { margin-bottom: 0; }

/* ── 3. Wiki content typography (inside .bmc-content) ────────── */
.bmc-content .mw-parser-output {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}
.bmc-content .mw-parser-output h2 {
  font-size: 1.35rem; font-weight: 700; color: #1a1a1a;
  padding-bottom: 10px; border-bottom: 2px solid #a31f34 !important;
  border-left: none !important; border-top: none !important; border-right: none !important;
  margin: 48px 0 18px; letter-spacing: -0.2px;
  scroll-margin-top: 88px;
  background: none !important; box-shadow: none !important; border-radius: 0 !important;
}
.bmc-content .mw-parser-output h2:first-child { margin-top: 0; }
.bmc-content .mw-parser-output h3 {
  font-size: 1rem; font-weight: 600; color: #1a1a1a; margin: 28px 0 10px;
}
.bmc-content .mw-parser-output h4 {
  font-size: 0.88rem; font-weight: 700; color: #a31f34; margin-bottom: 6px;
}
.bmc-content .mw-parser-output p { margin-bottom: 14px; font-size: 0.9rem; color: #333; }
.bmc-content .mw-parser-output a { color: #a31f34 !important; }
.bmc-content .mw-parser-output a:hover { text-decoration: underline !important; }
.bmc-content .mw-parser-output ul,
.bmc-content .mw-parser-output ol { margin: 0 0 14px 24px; font-size: 0.9rem; color: #333; }
.bmc-content .mw-parser-output li { margin-bottom: 4px; }

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

/* Wiki TOC (if kept inside content) */
.bmc-content #toc,
.bmc-content .toc {
  background: #f9f9f9; border: 1px solid #e8e8e8;
  border-radius: 8px; padding: 20px;
  display: inline-block; min-width: 200px;
  margin: 0 0 24px;
}
.bmc-content .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: 12px !important;
  border: none !important; background: none !important; padding: 0 !important;
}
.bmc-content #toc ul, .bmc-content .toc ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.bmc-content #toc ul li a, .bmc-content .toc ul li a {
  font-size: 0.82rem !important; color: #444 !important; padding: 4px 8px !important;
  display: block !important; border-radius: 4px !important;
  transition: background 0.12s !important;
}
.bmc-content #toc ul li a:hover, .bmc-content .toc ul li a:hover {
  background: #f0e8ea !important; color: #a31f34 !important; text-decoration: none !important;
}

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

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

/* ── 4. Component classes (for wiki editors to use in markup) ── */

/* Service cards */
.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; font-weight: 700; color: #a31f34; margin-bottom: 6px; }
.service-card p { font-size: 0.82rem; color: #555; margin: 0; line-height: 1.5; }

/* Staff grid */
.staff-section { margin-bottom: 32px; }
.staff-section h3 { margin-bottom: 16px; }
.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; }
.staff-card .staff-role { font-size: 0.78rem; color: #666; margin-top: 3px; line-height: 1.4; }
.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; }
.staff-card.director .staff-role { font-size: 0.82rem; color: #7a1626; font-weight: 500; }

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

/* Affiliations */
.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; }
.affil-card .affil-rep { font-size: 0.78rem; color: #666; margin-top: 4px; }

/* Note boxes */
.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 */
.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; }

/* ── 5. Footer ───────────────────────────────────────────────── */
.bmc-footer { background: #1a1a1a; color: #aaa; padding: 40px 0; font-size: 0.82rem; }
.bmc-footer-inner {
  max-width: 1140px; 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 !important; }
.bmc-footer ul li a:hover { color: #fff !important; text-decoration: none !important; }
.bmc-footer-bottom {
  max-width: 1140px; 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: #aaa !important; }
.bmc-footer-bottom a:hover { color: #fff !important; }

/* ── 6. Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .bmc-page-layout { grid-template-columns: 1fr; }
  .bmc-sidebar { position: static; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .bmc-footer-inner { grid-template-columns: 1fr 1fr; }
  .bmc-nav { display: none; }
  .bmc-search-form input[type="search"] { width: 120px; }
}
@media (max-width: 580px) {
  .bmc-footer-inner { grid-template-columns: 1fr; }
  .bmc-page-hero h1 { font-size: 1.5rem; }
  .service-grid, .staff-grid, .affil-grid { grid-template-columns: 1fr; }
  .staff-card.director { flex-direction: column; }
  .contact-block { flex-direction: column; gap: 16px; }
  .bmc-search-form { display: none; }
}