/* ============================================================
   RAR MEDICAL MICROBIOLOGY · "Streptococcus pyogenes" page styles
   Scoped to .rar-topic-content. Reuses the shared canonical blocks
   (.topic-section-card, .section-label, .solid-text-card, .atl-figure,
   .atl-find-list, .atl-flag, .hy-callout, .cav-term, .vasc-tbd). Only
   figure/list layout + the lab card live here. Prefix: sp-.
   These conventions carry forward to the next canonical bug page.
   ============================================================ */

.rar-topic-content #sp-virulence h3,
.rar-topic-content #sp-labid h3,
.rar-topic-content #sp-scarlet h3,
.rar-topic-content #sp-sequelae h3 { color: #111111; margin: 2px 0 12px; }

/* ---------- figure + list layouts ---------- */
.rar-topic-content .sp-figrow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    align-items: start;
    margin: 4px 0 14px;
}
/* Section 2 — keep the virulence diagram size; center the list against it */
.rar-topic-content .sp-figrow--single { align-items: center; }
/* Section 3 — two lab previews that SPAN the card (elongated, short height) */
.rar-topic-content .sp-figrow--labs {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.rar-topic-content .sp-figrow--labs .sp-figure { max-width: none; }
.rar-topic-content .sp-figrow--labs .sp-figure .atl-figure__img {
    width: 100%;
    height: 210px;              /* landscape crop — wide, short (matches the CXR row) */
    object-fit: cover;
    border-radius: 12px;
}
/* Section 4 — text fills, strawberry-tongue image small on the right */
.rar-topic-content .sp-figrow--scarlet {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
    align-items: center;
}

.rar-topic-content .sp-figure { margin: 0; max-width: 100%; }
.rar-topic-content .sp-figure--sm { max-width: 240px; }
.rar-topic-content .sp-figure .atl-figure__img { width: 100%; height: auto; max-width: 100%; }

/* ---------- bullet lists ---------- */
.rar-topic-content .sp-vf { margin: 4px 0 0; }
.rar-topic-content .sp-vf li { color: #111111; }
.rar-topic-content .sp-vf .atl-find-emoji { font-size: 14px; top: 0; }
/* larger reader text + emoji for lab / scarlet lists */
.rar-topic-content .sp-vf--lg li { font-size: 15px; line-height: 1.55; }
.rar-topic-content .sp-vf--lg .atl-find-emoji { font-size: 15px; }
/* Section 2 — bold virulence terms one size larger */
.rar-topic-content #sp-virulence .sp-vf strong { font-size: 15px; }

/* ---------- Lab-identification card ---------- */
.rar-topic-content .sp-card {
    margin: 4px 0 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(10, 132, 255, 0.16);
    background: linear-gradient(180deg, rgba(238, 245, 255, 0.55), rgba(255, 255, 255, 0.96));
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
.rar-topic-content .sp-card .sp-vf { margin-top: 4px; }

/* ---------- clinical pearl (reuses shared .atl-flag) ---------- */
.rar-topic-content .sp-pearl { display: block; margin-top: 16px; font-size: 14.5px; }

@media (max-width: 720px) {
    .rar-topic-content .sp-figrow,
    .rar-topic-content .sp-figrow--labs,
    .rar-topic-content .sp-figrow--scarlet { grid-template-columns: 1fr; }
    .rar-topic-content .sp-figure--sm { max-width: 100%; }
}
