/* ============================================================
   RAR PATHOLOGY · Page 3 (ALI & ARDS) styles
   Scoped under .rar-topic-content (black text / no grey rule holds).
   Reuses the shared .atl-* card + flow + callout system; only the
   ARDS-specific bits (frequency bars, Berlin table, branch note,
   caption) live here.
   ============================================================ */

/* ---------- Causes: frequency bars ---------- */
.rar-topic-content .ards-freq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 0;
}
.rar-topic-content .ards-freq__row {
    display: grid;
    grid-template-columns: minmax(190px, 260px) 1fr auto;
    align-items: center;
    gap: 12px;
}
.rar-topic-content .ards-freq__label {
    color: var(--text, #111318);
    font-size: 14px;
    font-weight: 750;
}
.rar-topic-content .ards-freq__bar {
    height: 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.07);
    overflow: hidden;
}
.rar-topic-content .ards-freq__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #d6336c, #f0662f);
}
.rar-topic-content .ards-freq__pct {
    color: var(--text, #111318);
    font-size: 13.5px;
    font-weight: 850;
    min-width: 44px;
    text-align: right;
}
@media (max-width: 620px) {
    .rar-topic-content .ards-freq__row { grid-template-columns: 1fr auto; }
    .rar-topic-content .ards-freq__bar { grid-column: 1 / -1; order: 3; }
}
.rar-topic-content .ards-otherscauses {
    margin: 14px 0 0;
    color: var(--text, #111318);
    font-size: 14px;
    line-height: 1.6;
}
.rar-topic-content .ards-otherscauses strong { font-weight: 800; }

/* ---------- Pathogenesis: parallel surfactant branch ---------- */
.rar-topic-content .ards-branch {
    margin: 14px 0 0;
    padding: 11px 14px;
    border-radius: 14px;
    border-left: 4px solid #5e5ce6;
    background: rgba(94, 92, 230, 0.06);
    color: var(--text, #111318);
    font-size: 14px;
    line-height: 1.55;
}
.rar-topic-content .ards-branch strong { font-weight: 800; }
.rar-topic-content .ards-branch__hook { color: #5e5ce6; font-weight: 900; margin-right: 4px; }

/* ---------- Morphology: stage "when" chip ---------- */
.rar-topic-content .ards-stage-when {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(94, 92, 230, 0.12);
    color: #4a3ea8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: 2px;
}

/* ---------- Berlin severity mini-table ---------- */
.rar-topic-content .ards-berlin-wrap { overflow-x: auto; }
.rar-topic-content .ards-berlin {
    border-collapse: collapse;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.rar-topic-content .ards-berlin th,
.rar-topic-content .ards-berlin td {
    padding: 10px 14px;
    text-align: left;
    color: var(--text, #111318);
    font-size: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.rar-topic-content .ards-berlin thead th {
    background: rgba(94, 92, 230, 0.08);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.rar-topic-content .ards-berlin tbody tr:last-child th,
.rar-topic-content .ards-berlin tbody tr:last-child td { border-bottom: none; }
.rar-topic-content .ards-berlin td { font-weight: 750; }
.rar-topic-content .ards-sev {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 850;
}
.rar-topic-content .ards-sev--mild { background: rgba(52, 199, 89, 0.16); color: #1f8f43; }
.rar-topic-content .ards-sev--mod { background: rgba(245, 166, 35, 0.18); color: #8a5a00; }
.rar-topic-content .ards-sev--sev { background: rgba(214, 51, 108, 0.16); color: #b01050; }

/* ---------- Two-Roads payoff caption ---------- */
.rar-topic-content .ards-roads-caption {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 14px;
    border-left: 4px solid #d6336c;
    background: rgba(214, 51, 108, 0.06);
    color: var(--text, #111318);
    font-size: 14.5px;
    line-height: 1.6;
}
.rar-topic-content .ards-roads-caption strong { font-weight: 850; color: #a01048; }
