/* ============================================================
   MSK · Medical Microbiology — Microbiology Diagnostics module
   Prompt 1: Foundation page + module-wide shared components.

   This stylesheet owns the single most reused visual system in
   the module — the MEDIA-CLASS PALETTE — plus the shared badge,
   acronym term, and the four foundation-page sections.

   Everything here is keyed off `micro-` CLASSES (not a content
   id) so plate cards, test cards, and later pages inherit the
   exact same palette. Lock the tokens; never fork them per page.
   ============================================================ */

/* ---- 1. DESIGN TOKENS — media-class palette (module-wide) ---- */
:root {
    /* Selective — Gatekeeper · amber/gold · "who's allowed to grow" */
    --micro-selective:        #b9770a;
    --micro-selective-ink:    #8a5a00;
    --micro-selective-bg:     rgba(201, 138, 16, 0.14);
    --micro-selective-line:   rgba(201, 138, 16, 0.42);

    /* Differential — Revealer · teal/cyan · "who grows looks different" */
    --micro-differential:     #0f9d94;
    --micro-differential-ink: #0a726c;
    --micro-differential-bg:  rgba(15, 157, 148, 0.14);
    --micro-differential-line:rgba(15, 157, 148, 0.42);

    /* Enrichment — Nurse · green · "helps the picky ones grow" */
    --micro-enrichment:       #1f9d4d;
    --micro-enrichment-ink:   #157a3b;
    --micro-enrichment-bg:    rgba(31, 157, 77, 0.14);
    --micro-enrichment-line:  rgba(31, 157, 77, 0.42);
}

/* ---- 2. SHARED COMPONENT · MediaClassBadge ----
   Must read as the LOUDEST element on any card it sits on — the
   media class is the single highest-yield fact about a plate. */
.micro-badgeset {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    vertical-align: middle;
}
.micro-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    border: 1.5px solid transparent;
}
.micro-badge::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55) inset;
}
.micro-badge--selective {
    color: var(--micro-selective-ink);
    background: var(--micro-selective-bg);
    border-color: var(--micro-selective-line);
}
.micro-badge--selective::before { background: var(--micro-selective); }
.micro-badge--differential {
    color: var(--micro-differential-ink);
    background: var(--micro-differential-bg);
    border-color: var(--micro-differential-line);
}
.micro-badge--differential::before { background: var(--micro-differential); }
.micro-badge--enrichment {
    color: var(--micro-enrichment-ink);
    background: var(--micro-enrichment-bg);
    border-color: var(--micro-enrichment-line);
}
.micro-badge--enrichment::before { background: var(--micro-enrichment); }

/* Large variant — used where the badge is the headline of a card. */
.micro-badge--lg {
    padding: 8px 16px;
    font-size: 14.5px;
}
.micro-badge--lg::before { width: 11px; height: 11px; }

/* ---- 3. SHARED COMPONENT · AcronymTerm ----
   Rendered from the central map by initMskMicroFoundation. First
   use = "Full term (ABBR)"; every later use = hoverable ABBR. The
   abbreviation reuses the global .cav-term dotted-underline tooltip
   so it matches the rest of Arcanium. */
.micro-abbr,
abbr.micro-abbr {
    text-decoration: none;
    font-weight: 700;
}

/* ============================================================
   FOUNDATION PAGE SECTIONS
   ============================================================ */

.micro-lead {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text, #111318);
}
.micro-note {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text, #111318);
}
.micro-note strong { color: var(--text, #111318); }
.micro-def {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text, #111318);
}

/* ---- SECTION A · the workflow arc ---- */
.micro-arc {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 2px;
}
.micro-arc-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 12px 13px;
    border-radius: 16px;
    background: var(--surface-2, #f6f8fb);
    border: 1px solid var(--border, #e5e9f0);
    text-align: left;
}
.micro-arc-step::after {
    content: "\2192";
    position: absolute;
    top: 50%;
    right: -11px;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 800;
    color: var(--text, #29303d);
    z-index: 1;
}
.micro-arc-step:last-child::after { content: none; }
.micro-arc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #5e5ce6;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.micro-arc-name {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text, #111318);
}
.micro-arc-what {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--text, #111318);
}
.micro-arc-scale {
    margin: 14px 0 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text, #111318);
    display: flex;
    justify-content: space-between;
}

/* ---- SECTION B · the 6 pillars ---- */
.micro-pillars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.micro-pillar {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 16px;
    border-radius: 16px;
    background: var(--surface-1, #fff);
    border: 1px solid var(--border, #e5e9f0);
}
.micro-pillar-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(94, 92, 230, 0.1);
    color: #4b49c9;
    font-size: 20px;
    font-weight: 800;
}
.micro-pillar-title {
    margin: 2px 0 5px;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text, #111318);
}
.micro-pillar-body {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text, #29303d);
}
.micro-pillar-body strong { font-weight: 800; }

/* ---- SECTION C · oxygen-tolerance figure + table ---- */
.micro-figure { margin: 4px 0 18px; }
.micro-figure-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border, #e5e9f0);
    border-radius: 16px;
    background: var(--surface-2, #f6f8fb);
    cursor: zoom-in;
    overflow: hidden;
}
.micro-figure-btn img {
    display: block;
    width: 100%;
    height: auto;
}
.micro-figure-cap {
    margin: 8px 2px 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text, #111318);
}
.micro-o2table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border, #e5e9f0);
    border-radius: 16px;
    overflow: hidden;
}
.micro-o2row {
    display: grid;
    grid-template-columns: 190px 200px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border, #eef1f6);
}
.micro-o2row:first-child { border-top: none; }
.micro-o2row--head {
    background: var(--surface-2, #f6f8fb);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text, #111318);
}
.micro-o2row--cap { background: rgba(94, 92, 230, 0.05); }
.micro-o2type {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text, #111318);
}
.micro-o2pattern {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-strong, #0066cc);
}
.micro-o2why {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text, #111318);
}

/* ---- SECTION D · media classification legend ---- */
.micro-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.micro-legend-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid var(--border, #e5e9f0);
    background: var(--surface-1, #fff);
}
.micro-legend-badge { padding-top: 2px; }
.micro-legend-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text, #29303d);
}
.micro-legend-text strong { font-weight: 800; }
.micro-legend-row--selective    { border-left: 4px solid var(--micro-selective); }
.micro-legend-row--differential { border-left: 4px solid var(--micro-differential); }
.micro-legend-row--combo        { border-left: 4px solid var(--micro-differential); }
.micro-legend-row--enrichment   { border-left: 4px solid var(--micro-enrichment); }
.micro-legend-row--enriched     { border-left: 4px solid var(--micro-enrichment); }

/* ---- SECTION D · plate preview map (teaser only) ---- */
.micro-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.micro-preview-group {
    padding: 13px 14px 14px;
    border-radius: 16px;
    background: var(--surface-2, #f6f8fb);
    border: 1px solid var(--border, #e5e9f0);
}
.micro-preview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.micro-preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.micro-plate-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--surface-1, #fff);
    border: 1px solid var(--border, #e5e9f0);
    font-size: 12px;
    font-weight: 700;
    color: var(--text, #29303d);
}
.micro-preview-foot {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text, #111318);
    font-style: italic;
}

/* ---- figure lightbox (self-contained, one per page) ---- */
.micro-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.micro-lightbox[hidden] { display: none; }
.micro-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 13, 22, 0.72);
}
.micro-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: min(920px, 94vw);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 30px 80px rgba(9, 13, 22, 0.4);
}
.micro-lightbox-inner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.micro-lightbox-desc {
    margin: 12px 4px 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text, #29303d);
}
.micro-lightbox-cite {
    margin: 6px 4px 0;
    font-size: 11.5px;
    color: var(--text, #29303d);
}
.micro-lightbox-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(9, 13, 22, 0.06);
    color: #29303d;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.micro-lightbox-x:hover { background: rgba(9, 13, 22, 0.12); }

/* ---- responsive ---- */
@media (max-width: 860px) {
    .micro-arc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .micro-arc-step::after { content: none; }
    .micro-o2row { grid-template-columns: 1fr; gap: 4px; }
    .micro-o2row--head { display: none; }
    .micro-legend-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
    .micro-arc { grid-template-columns: 1fr; }
    .micro-pillar { grid-template-columns: 1fr; }
    .micro-pillar-num { width: 40px; height: 40px; font-size: 17px; }
}

/* ============================================================
   PLATE LIBRARY (Prompt 2)
   ============================================================ */

.micro-plate-group { margin: 22px 0 0; }
.micro-plate-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border, #e5e9f0);
}
.micro-plate-group-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text, #111318);
}

/* ---- collapsible card ---- */
.micro-plate-card {
    margin: 10px 0 0;
    border: 1px solid var(--border, #e5e9f0);
    border-radius: 16px;
    background: var(--surface-1, #fff);
    overflow: hidden;
}
.micro-plate-card[open] {
    border-color: rgba(94, 92, 230, 0.35);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.micro-plate-summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 15px 46px 15px 16px;
    display: block;
}
.micro-plate-summary::-webkit-details-marker { display: none; }
.micro-plate-summary:hover { background: var(--surface-2, #f6f8fb); }
.micro-plate-headline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.micro-plate-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text, #111318);
}
.micro-plate-name .micro-abbr {
    font-size: 13px;
    color: var(--accent-strong, #0066cc);
}
.micro-plate-purpose {
    margin: 0 0 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text, #29303d);
}
.micro-plate-targets {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    font-size: 12.5px;
    color: var(--text, #111318);
}
.micro-plate-targets-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text, #29303d);
}
.micro-plate-caret {
    position: absolute;
    top: 18px;
    right: 16px;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--muted, #98a2b3);
    border-bottom: 2px solid var(--muted, #98a2b3);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.micro-plate-card[open] .micro-plate-caret {
    transform: rotate(-135deg);
    top: 22px;
}

/* ---- expanded body ---- */
.micro-plate-body {
    padding: 4px 16px 18px;
    border-top: 1px solid var(--border, #eef1f6);
}
.micro-plate-block { margin-top: 16px; }
.micro-plate-block .section-label { margin-bottom: 10px; }

/* ---- PlateImage ---- */
.micro-pi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.micro-pi-grid--multi {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.micro-pi { margin: 0; }
.micro-pi-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border, #e5e9f0);
    border-radius: 14px;
    background: var(--surface-2, #f6f8fb);
    cursor: zoom-in;
    overflow: hidden;
}
.micro-pi-btn img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.micro-pi-zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(9, 13, 22, 0.62);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.16s ease;
}
.micro-pi-btn:hover .micro-pi-zoom,
.micro-pi-btn:focus-visible .micro-pi-zoom { opacity: 1; }
.micro-pi-state {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
}
.micro-pi-state--pos { background: #1f9d4d; }
.micro-pi-state--neg { background: #8a94a6; }
.micro-pi-cap {
    margin: 8px 2px 0;
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--text, #29303d);
}
.micro-pi-credit {
    margin: 4px 2px 0;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text, #29303d);
}
.micro-pi-credit a { color: var(--text, #111318); }

/* ---- Ingredients & mechanism table ---- */
.micro-ing-wrap {
    overflow-x: auto;
    border: 1px solid var(--border, #e5e9f0);
    border-radius: 14px;
}
.micro-ing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 520px;
}
.micro-ing-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--surface-2, #f6f8fb);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text, #111318);
    border-bottom: 1px solid var(--border, #e5e9f0);
}
.micro-ing-table td {
    padding: 11px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--border, #eef1f6);
}
.micro-ing-table tr:last-child td { border-bottom: none; }
.micro-ing-comp { font-weight: 700; color: var(--text, #111318); width: 27%; }
.micro-ing-role { width: 15%; white-space: nowrap; }
.micro-ing-mech { color: var(--text, #29303d); line-height: 1.5; }

/* role chips — colored by role, matching the media-class palette */
.micro-rolechip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid transparent;
}
.micro-rolechip--selective    { color: var(--micro-selective-ink);    background: var(--micro-selective-bg);    border-color: var(--micro-selective-line); }
.micro-rolechip--differential { color: var(--micro-differential-ink); background: var(--micro-differential-bg); border-color: var(--micro-differential-line); }
.micro-rolechip--enrichment   { color: var(--micro-enrichment-ink);   background: var(--micro-enrichment-bg);   border-color: var(--micro-enrichment-line); }
.micro-rolechip--nutrient     { color: #29303d; background: rgba(102, 112, 133, 0.12); border-color: rgba(102, 112, 133, 0.28); }

/* ---- Results ---- */
.micro-res-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.micro-res {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 16px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-2, #f6f8fb);
    font-size: 13px;
}
.micro-res-app { font-weight: 700; color: var(--text, #111318); }
.micro-res-arrow { color: var(--text, #29303d); font-weight: 800; }
.micro-res-mean { color: var(--text, #29303d); line-height: 1.45; }
.micro-res-org {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(94, 92, 230, 0.1);
    color: #4b49c9;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
}

/* ---- Discriminators ---- */
.micro-disc-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text, #29303d);
}
.micro-disc-list li::marker { color: var(--micro-differential); }

/* ---- Cross-references ---- */
.micro-xref {
    margin-top: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}
.micro-xref-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text, #29303d);
}
.micro-xref-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.micro-xref-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--border, #e5e9f0);
    background: var(--surface-1, #fff);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-strong, #0066cc);
    cursor: pointer;
}
.micro-xref-chip::before { content: "\2192"; color: var(--text, #29303d); font-weight: 800; }
.micro-xref-chip:hover { background: rgba(10, 132, 255, 0.08); border-color: rgba(10, 132, 255, 0.3); }

@media (max-width: 620px) {
    .micro-res { grid-template-columns: 1fr; gap: 3px; }
    .micro-res-arrow { display: none; }
    .micro-pi-btn img { height: 180px; }
}

/* ============================================================
   FigureImage placeholder fallback (Prompt 3)
   Broken/unsourced images swap to a labeled pending box.
   ============================================================ */
.micro-pi-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 180px;
    padding: 18px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text, #29303d);
    border: 1.5px dashed var(--border, #d5dbe6);
    border-radius: 12px;
    background: repeating-linear-gradient(45deg, rgba(148,163,184,0.05) 0 10px, rgba(148,163,184,0.1) 10px 20px);
}
.micro-pi-placeholder-src {
    font-size: 11px;
    font-weight: 600;
    color: var(--text, #29303d);
    word-break: break-all;
}
.micro-pi.is-pending .micro-pi-btn {
    cursor: default;
    border-style: dashed;
    background: transparent;
}
.micro-pi.is-pending .micro-pi-btn img,
.micro-pi.is-pending .micro-pi-zoom { display: none; }
.micro-pi.is-pending .micro-pi-placeholder { display: flex; }

/* ============================================================
   DIAGNOSTIC TESTS (Prompt 3)
   ============================================================ */

/* category tag on the collapsed card */
.micro-test-cat {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
}
.micro-test-cat--enzyme         { color: #7a3aa8; background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.35); }
.micro-test-cat--metabolic      { color: #b9770a; background: var(--micro-selective-bg); border-color: var(--micro-selective-line); }
.micro-test-cat--hemolysis      { color: #b3261e; background: rgba(214, 60, 46, 0.12); border-color: rgba(214, 60, 46, 0.32); }
.micro-test-cat--serologic      { color: #0a726c; background: var(--micro-differential-bg); border-color: var(--micro-differential-line); }
.micro-test-cat--susceptibility { color: #2a5ca8; background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.34); }

/* sign marker in the results list */
.micro-res--test {
    grid-template-columns: 28px minmax(150px, 220px) 16px minmax(0, 1fr);
}
.micro-sign {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
}
.micro-sign--pos { background: #1f9d4d; }
.micro-sign--neg { background: #8a94a6; }

/* prose blocks (principle / method) */
.micro-prose {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text, #29303d);
}

/* positive vs negative organism columns */
.micro-orgcols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.micro-orgcol {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border, #e5e9f0);
    background: var(--surface-1, #fff);
}
.micro-orgcol-head {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border, #eef1f6);
}
.micro-orgcol--pos { border-top: 3px solid #1f9d4d; }
.micro-orgcol--neg { border-top: 3px solid #8a94a6; }
.micro-orgcol--pos .micro-orgcol-head { color: #157a3b; }
.micro-orgcol--neg .micro-orgcol-head { color: #29303d; }
.micro-orgcol-list {
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text, #29303d);
}

@media (max-width: 620px) {
    .micro-res--test { grid-template-columns: 28px 1fr; }
    .micro-orgcols { grid-template-columns: 1fr; }
}

/* ============================================================
   MICROSCOPY & STAINS (Prompt 4)
   ============================================================ */

/* stain category chips (reuse .micro-test-cat base) */
.micro-stain-cat--wetprep     { color: #0a726c; background: var(--micro-differential-bg); border-color: var(--micro-differential-line); }
.micro-stain-cat--stain       { color: #7a3aa8; background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.35); }
.micro-stain-cat--fluorescent { color: #2a5ca8; background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.34); }
.micro-test-cat {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1.5px solid transparent;
}

/* target chips */
.micro-target-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.micro-target-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 8px;
    background: var(--surface-2, #f6f8fb);
    border: 1px solid var(--border, #e5e9f0);
    font-size: 12px;
    font-weight: 700;
    color: var(--text, #29303d);
}

/* GramStepStrip */
.micro-gramstrip { margin: 0; }
.micro-gramstrip-scroll {
    overflow-x: auto;
    padding: 4px 0;
    border: 1px solid var(--border, #e5e9f0);
    border-radius: 14px;
    background: var(--surface-1, #fff);
}
.micro-gramstrip-svg {
    display: block;
    width: 100%;
    min-width: 620px;
    height: auto;
}
.micro-gramstrip-note {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text, #111318);
}
.micro-gramstrip-note strong { color: var(--text, #111318); }

/* Morphology reference block */
.micro-morph-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}
.micro-morph-card {
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid var(--border, #e5e9f0);
    background: var(--surface-1, #fff);
}
.micro-morph-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text, #111318);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border, #eef1f6);
}
.micro-morph-list { margin-bottom: 12px; }
.micro-morph-list-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text, #29303d);
    margin-bottom: 4px;
}
.micro-morph-list ul {
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text, #29303d);
}
.micro-morph-imgs { margin-top: 12px; }

@media (max-width: 720px) {
    .micro-morph-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SEROTYPING · SEROLOGY · MOLECULAR (Prompt 5)
   ============================================================ */

/* new TestCategory chip colors */
.micro-test-cat--antigen-detection { color: #b9770a; background: var(--micro-selective-bg); border-color: var(--micro-selective-line); }
.micro-test-cat--serology          { color: #0a726c; background: var(--micro-differential-bg); border-color: var(--micro-differential-line); }
.micro-test-cat--molecular         { color: #4b49c9; background: rgba(94, 92, 230, 0.12); border-color: rgba(94, 92, 230, 0.34); }

/* single-column organism block (negativeOrgs empty) */
.micro-orgcols--single { grid-template-columns: 1fr; }

/* group sub-label */
.micro-group-sub {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text, #111318);
}

/* DetectionAxisDiagram */
.micro-axis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 2px;
}
.micro-axis-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 16px;
    border-radius: 16px;
    background: var(--surface-1, #fff);
    border: 1px solid var(--border, #e5e9f0);
    border-top: 4px solid var(--muted, #98a2b3);
}
.micro-axis-col--sero  { border-top-color: var(--micro-selective); }
.micro-axis-col--serol { border-top-color: var(--micro-differential); }
.micro-axis-col--mol   { border-top-color: #5e5ce6; }
.micro-axis-tier {
    font-size: 15px;
    font-weight: 800;
    color: var(--text, #111318);
    margin-bottom: 2px;
}
.micro-axis-col--sero  .micro-axis-tier { color: var(--micro-selective-ink, #8a5a00); }
.micro-axis-col--serol .micro-axis-tier { color: var(--micro-differential-ink, #0a726c); }
.micro-axis-col--mol   .micro-axis-tier { color: #4b49c9; }
.micro-axis-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-2, #f6f8fb);
}
.micro-axis-cell--find { background: rgba(94, 92, 230, 0.06); }
.micro-axis-k {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text, #29303d);
}
.micro-axis-v {
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #29303d);
}
.micro-axis-target { font-weight: 800; }
.micro-axis-join {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text, #29303d);
}

@media (max-width: 720px) {
    .micro-axis { grid-template-columns: 1fr; }
}

/* ============================================================
   INTEGRATION — Dichotomous keys + Specimen router (Prompt 6)
   ============================================================ */

/* ---- referenced-card chip (reused by walker + router) ---- */
.micro-refchip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px 5px 5px;
    border-radius: 999px;
    border: 1px solid var(--border, #e5e9f0);
    background: var(--surface-1, #fff);
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-strong, #0066cc);
}
.micro-refchip:hover { background: rgba(10, 132, 255, 0.07); border-color: rgba(10, 132, 255, 0.3); }
.micro-refchip-thumb {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--border, #e5e9f0);
}
.micro-refchip-go { color: var(--text, #29303d); font-weight: 800; }

/* ---- key-tree tabs ---- */
.micro-keytabs {
    display: inline-flex;
    gap: 4px;
    margin: 16px 0 14px;
    padding: 4px;
    border-radius: 12px;
    background: var(--surface-2, #f6f8fb);
    border: 1px solid var(--border, #e5e9f0);
}
.micro-keytab {
    padding: 8px 16px;
    border: none;
    border-radius: 9px;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    color: var(--text, #111318);
    cursor: pointer;
}
.micro-keytab.is-active { background: #5e5ce6; color: #fff; }

/* ---- walker ---- */
.micro-key-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}
.micro-key-crumb {
    display: inline-flex;
    flex-direction: column;
    padding: 5px 11px;
    border-radius: 10px;
    background: var(--surface-2, #f6f8fb);
    border: 1px solid var(--border, #e5e9f0);
}
.micro-key-crumb-q { font-size: 10px; font-weight: 700; color: var(--text, #29303d); }
.micro-key-crumb-a { font-size: 12.5px; font-weight: 800; color: var(--text, #29303d); }
.micro-key-sep { color: var(--text, #29303d); font-weight: 800; }

.micro-key-node {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border, #e5e9f0);
    background: var(--surface-1, #fff);
}
.micro-key-q {
    font-size: 16px;
    font-weight: 800;
    color: var(--text, #111318);
    margin-bottom: 12px;
}
.micro-key-ref { margin-bottom: 14px; }
.micro-key-branches { display: flex; flex-wrap: wrap; gap: 10px; }
.micro-key-branch {
    padding: 11px 18px;
    border-radius: 12px;
    border: 1.5px solid rgba(94, 92, 230, 0.3);
    background: rgba(94, 92, 230, 0.06);
    font-size: 13.5px;
    font-weight: 700;
    color: #4b49c9;
    cursor: pointer;
}
.micro-key-branch:hover { background: rgba(94, 92, 230, 0.14); border-color: rgba(94, 92, 230, 0.5); }
.micro-key-reset {
    margin-top: 16px;
    padding: 8px 16px;
    border: 1px solid var(--border, #e5e9f0);
    border-radius: 10px;
    background: var(--surface-2, #f6f8fb);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text, #111318);
    cursor: pointer;
}
.micro-key-reset--sm { margin-top: 14px; padding: 6px 12px; font-size: 12px; }
.micro-key-node--leaf {
    text-align: center;
    border-color: rgba(31, 157, 77, 0.4);
    background: rgba(31, 157, 77, 0.06);
}
.micro-key-leaf-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #1f9d4d;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.micro-key-organism {
    font-size: 20px;
    font-weight: 800;
    color: var(--text, #111318);
}
.micro-key-note {
    margin-top: 4px;
    font-size: 13px;
    font-style: italic;
    color: var(--text, #111318);
}

/* ---- specimen router ---- */
.micro-router-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 16px;
}
.micro-router-tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border, #e5e9f0);
    background: var(--surface-1, #fff);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text, #29303d);
    cursor: pointer;
}
.micro-router-tab.is-active { background: #5e5ce6; border-color: #5e5ce6; color: #fff; }
.micro-router-case {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border, #e5e9f0);
    background: var(--surface-1, #fff);
}
.micro-router-vignette {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text, #29303d);
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-2, #f6f8fb);
    margin-bottom: 14px;
}
.micro-router-vlabel {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text, #29303d);
    margin-bottom: 4px;
}
.micro-router-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}
.micro-router-path-lead {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text, #29303d);
}
.micro-router-crumb {
    display: inline-flex;
    flex-direction: column;
    padding: 4px 10px;
    border-radius: 9px;
    background: rgba(31, 157, 77, 0.08);
    border: 1px solid rgba(31, 157, 77, 0.25);
}
.micro-router-crumb-stage { font-size: 9.5px; font-weight: 800; text-transform: uppercase; color: #157a3b; }
.micro-router-crumb-pick { font-size: 12px; font-weight: 800; color: var(--text, #29303d); }

.micro-router-stage-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(94, 92, 230, 0.1);
    color: #4b49c9;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.micro-router-q { font-size: 15px; font-weight: 800; color: var(--text, #111318); margin-bottom: 6px; }
.micro-router-clue {
    font-size: 12.5px;
    font-style: italic;
    color: var(--text, #111318);
    margin-bottom: 12px;
}
.micro-router-opts { display: flex; flex-direction: column; gap: 8px; }
.micro-router-opt {
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--border, #e5e9f0);
    background: var(--surface-1, #fff);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text, #29303d);
    cursor: pointer;
}
.micro-router-opt:hover:not([disabled]) { border-color: rgba(94, 92, 230, 0.4); background: rgba(94, 92, 230, 0.04); }
.micro-router-opt.is-correct { border-color: #1f9d4d; background: rgba(31, 157, 77, 0.1); color: #157a3b; font-weight: 800; }
.micro-router-opt.is-wrong { border-color: #d63c2e; background: rgba(214, 60, 46, 0.08); color: #b3261e; }
.micro-router-opt[disabled] { cursor: default; }
.micro-router-feedback {
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}
.micro-router-feedback.is-correct { background: rgba(31, 157, 77, 0.1); color: #157a3b; }
.micro-router-feedback.is-wrong { background: rgba(214, 60, 46, 0.08); color: #b3261e; }
.micro-router-open {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    color: inherit;
    cursor: pointer;
}
.micro-router-next {
    margin-top: 14px;
    padding: 11px 20px;
    border: none;
    border-radius: 12px;
    background: #5e5ce6;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
}
.micro-router-next:hover { background: #4b49c9; }
.micro-router-reveal {
    text-align: center;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(31, 157, 77, 0.4);
    background: rgba(31, 157, 77, 0.06);
}
.micro-router-takeaway {
    margin: 12px auto 16px;
    max-width: 620px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text, #29303d);
}
.micro-router-takeaway strong { font-weight: 800; }

/* ============================================================
   LOCK IT IN — Plate Library game
   ============================================================ */
.micro-liin {
    border: 1px solid var(--border, #e5e9f0);
    border-radius: 16px;
    background: var(--surface-1, #fff);
    padding: 20px;
}
.micro-liin-start, .micro-liin-summary { text-align: center; padding: 14px 8px 8px; }
.micro-liin-start-icon { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.micro-liin-start-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--text, #111318); }
.micro-liin-start-blurb {
    margin: 0 auto 16px;
    max-width: 560px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text, #111318);
}
.micro-liin-primary {
    padding: 11px 22px;
    border: none;
    border-radius: 12px;
    background: #5e5ce6;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.micro-liin-primary:hover { background: #4b49c9; }
.micro-liin-primary[disabled] { opacity: 0.4; cursor: default; }

/* HUD */
.micro-liin-hud {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.micro-liin-progress { font-size: 13.5px; font-weight: 800; color: var(--text, #111318); }
.micro-liin-bankcount {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4b49c9;
    background: rgba(94, 92, 230, 0.1);
    padding: 3px 10px;
    border-radius: 999px;
}
.micro-liin-diff {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}
.micro-liin-diff--easy { color: #157a3b; background: rgba(31, 157, 77, 0.12); }
.micro-liin-diff--med  { color: #8a5a00; background: var(--micro-selective-bg); }
.micro-liin-diff--hard { color: #b3261e; background: rgba(214, 60, 46, 0.1); }

/* figure */
.micro-liin-figure { margin: 0 0 14px; }
.micro-liin-figbtn {
    position: relative;
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid var(--border, #e5e9f0);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-2, #f6f8fb);
    cursor: zoom-in;
}
.micro-liin-figbtn img { display: block; width: 100%; height: 260px; object-fit: cover; }
.micro-liin-figbtn.is-missing { min-height: 120px; }
.micro-liin-figbtn.is-missing img { display: none; }
.micro-liin-figbtn.is-missing::after {
    content: "image pending";
    display: block;
    padding: 40px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text, #29303d);
}
.micro-liin-zoomhint {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(9, 13, 22, 0.62);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
}

.micro-liin-stem {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 700;
    color: var(--text, #111318);
}
.micro-liin-opts { display: flex; flex-direction: column; gap: 8px; }
.micro-liin-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--border, #e5e9f0);
    background: var(--surface-1, #fff);
    font-size: 15px;
    color: var(--text, #111318);
    cursor: pointer;
}
.micro-liin-opt:hover:not([disabled]) { border-color: rgba(94, 92, 230, 0.4); background: rgba(94, 92, 230, 0.04); }
.micro-liin-opt.is-selected { border-color: #5e5ce6; background: rgba(94, 92, 230, 0.08); }
.micro-liin-opt.is-correct { border-color: #1f9d4d; background: rgba(31, 157, 77, 0.1); color: #157a3b; font-weight: 700; }
.micro-liin-opt.is-wrong { border-color: #d63c2e; background: rgba(214, 60, 46, 0.08); color: #b3261e; }
.micro-liin-opt[disabled] { cursor: default; }
.micro-liin-opt-letter {
    flex: none;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface-2, #f0f2f7);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text, #111318);
}
.micro-liin-opt.is-correct .micro-liin-opt-letter { background: #1f9d4d; color: #fff; }
.micro-liin-opt.is-wrong .micro-liin-opt-letter { background: #d63c2e; color: #fff; }
.micro-liin-opt.is-selected .micro-liin-opt-letter { background: #5e5ce6; color: #fff; }

.micro-liin-explain { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.micro-liin-ex {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.micro-liin-ex--right { background: rgba(31, 157, 77, 0.09); color: #14532d; }
.micro-liin-ex--wrong { background: rgba(214, 60, 46, 0.08); color: #7a1a12; }
.micro-liin-ex strong { font-weight: 800; }
.micro-liin-actions { margin-top: 16px; text-align: center; }
.micro-liin-score { font-size: 34px; font-weight: 800; color: #4b49c9; margin: 4px 0 8px; }

/* ============================================================
   HARD OVERRIDES (must win over global modules.css:618
   `.topic-section-card p { color: var(--muted); font-size: 15px }`,
   which was greying/shrinking every paragraph in the module).
   ============================================================ */

/* 1. NO grey text anywhere in the module — force black on all copy. */
.msk-topic-content p,
.msk-topic-content li,
.micro-liin p { color: #111318 !important; }

/* 2. Even spacing — cards must never touch (incl. the game card
      that sits right under the last plate card). */
.msk-topic-content .topic-section-card { margin-top: 24px; }
.msk-topic-content > .topic-section-card:first-child { margin-top: 0; }
.micro-plate-group:last-child { margin-bottom: 6px; }

/* 3. Lock It In game — question MUCH larger than answers, all black. */
.micro-liin-stem {
    font-size: 22px !important;
    line-height: 1.5 !important;
    font-weight: 800;
    color: #111318 !important;
}
.micro-liin-opt { font-size: 16.5px; color: #111318; }
.micro-liin-opt-text { font-size: 16.5px; color: #111318; }
.micro-liin-start-blurb { font-size: 15px !important; color: #111318 !important; }
.micro-liin-start-title,
.micro-liin-progress { color: #111318; }

/* ============================================================
   CROSS-MODULE POLISH PASS
   Emphasis, spacing, section delineation, black-only body text.
   Overrides earlier rules (loaded later in the file).
   ============================================================ */

/* --- (1/8) organism names: black, emphasized, hover-defined --- */
.micro-bug {
    color: var(--text, #111318);
    font-weight: 700;
    border-bottom: 1px dotted rgba(17, 19, 24, 0.45);
    cursor: help;
}
.micro-bug:hover { border-bottom-color: rgba(17, 19, 24, 0.8); }

/* plate "Targets" line — species must read loud */
.micro-plate-targets { font-size: 14px; gap: 8px 10px; }
.micro-plate-targets-orgs {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #111318);
}
.micro-plate-targets-label { font-size: 11px; }

/* result organism pill: black, larger */
.micro-res-org {
    background: rgba(17, 19, 24, 0.06);
    color: var(--text, #111318);
    font-weight: 700;
    font-size: 12.5px;
}

/* --- (2) section switches (Enrichment / Selective / …) obvious --- */
.micro-plate-group { margin-top: 40px; }
.micro-plate-group:first-child { margin-top: 6px; }
.micro-plate-group-head {
    gap: 14px;
    margin-bottom: 16px;
    padding: 0 0 12px;
    border-bottom: 3px solid var(--border, #d5dbe6);
}
.micro-plate-group-head h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.micro-group-sub { font-size: 13.5px; color: var(--text, #29303d); }

/* --- (3/8) in-card section titles: vertical rule + bigger/bolder --- */
.micro-plate-body .section-label,
.micro-plate-block > .section-label {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text, #111318);
    padding-left: 11px;
    border-left: 3px solid #5e5ce6;
    line-height: 1.2;
    margin-bottom: 11px;
}

/* --- (6) even spacing between every card in the module --- */
.msk-topic-content .topic-section-card { margin-bottom: 22px; }
.msk-topic-content .topic-section-card:last-child { margin-bottom: 0; }
.micro-plate-card { margin-top: 14px; }
.micro-pillars { gap: 16px; }
.micro-legend { gap: 16px; }
.micro-preview { gap: 16px; }

/* --- (7) foundation oxygen-tube figure: markedly smaller --- */
.micro-figure {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* --- (10) larger, black body text where reading matters --- */
.micro-lead { font-size: 16px; color: var(--text, #111318); }
.micro-note { font-size: 14px; }
.micro-pillar-body { font-size: 14.5px; color: var(--text, #111318); }
.micro-legend-text { font-size: 14.5px; color: var(--text, #111318); }
.micro-o2type { font-size: 14.5px; }
.micro-o2pattern { font-size: 14px; color: var(--text, #111318); }
.micro-o2why { font-size: 13.5px; color: var(--text, #111318); }
.micro-plate-purpose { font-size: 14.5px; color: var(--text, #111318); }
.micro-prose { font-size: 14.5px; color: var(--text, #111318); }
.micro-res { font-size: 14px; }
.micro-res-app { color: var(--text, #111318); }
.micro-res-mean { color: var(--text, #29303d); }
.micro-orgcol-list { font-size: 13.5px; color: var(--text, #111318); }
.micro-disc-list { font-size: 14px; color: var(--text, #29303d); }
.micro-target-chip { font-size: 13px; color: var(--text, #111318); }
.micro-pi-cap { color: var(--text, #111318); font-size: 13px; }
.micro-pi-credit { color: var(--text, #29303d); }
.micro-pi-credit a { color: var(--text, #29303d); }

/* --- card TITLE must be the biggest thing on the card --- */
.micro-plate-name { font-size: 21px; line-height: 1.2; font-weight: 800; }
.micro-plate-name .micro-abbr { font-size: 14px; }
.micro-plate-headline { gap: 12px 14px; }

/* --- shared intro "Reference" boxes (solid-text-card) + emoji points --- */
.msk-topic-content .solid-text-card { margin: 0 0 24px; }
.msk-topic-content > .solid-text-card:first-child { margin-top: 0; }
.micro-intro-points {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.micro-intro-points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 16.5px;
    line-height: 1.6;
    color: #111318;
}
.micro-intro-points .micro-intro-emoji {
    flex: none;
    font-size: 22px;
    line-height: 1.45;
}
.micro-intro-points li strong { font-weight: 800; }

/* --- Router + Bug Scenario games: larger, pure-black vignette / prompt / options --- */
.micro-router-vignette { font-size: 15.5px; line-height: 1.6; color: #111318; }
.micro-router-vlabel { color: #4b49c9; }
.micro-router-q { font-size: 17px; color: #111318; }
.micro-router-clue { font-size: 14px; color: #111318; }
.micro-router-opt { font-size: 15.5px; color: #111318; }
.micro-router-feedback { font-size: 14.5px; }
.micro-router-takeaway { font-size: 15px; color: #111318; }
.micro-router-crumb-pick { color: #111318; }
