/* ============================================================
   CAV PATHOLOGY · Lymphatic Disorders — page-specific styling.
   Re-applies the Vascular Tumors page conventions (scoped to
   this page's content id) so the two pages match: even card
   spacing, black summary in a blue bubble, compact rounded
   cards with a hover lift. Disease-card / figure / lightbox /
   refs styling is reused from vasculitis.css (global).
   Also defines the reusable Cross-Module Pearl component.
   ============================================================ */

/* Page rhythm — give the mount a vertical gap so cards don't touch */
#cavLymphaticDisordersTopicContent {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Compact, rounded disease cards + hover lift on collapsed ones */
#cavLymphaticDisordersTopicContent .vasc-disease-card {
    padding: 14px 20px;
    border-radius: 22px;
    gap: 12px;
}
#cavLymphaticDisordersTopicContent .vasc-dc-header { gap: 6px; }
#cavLymphaticDisordersTopicContent .vasc-dc-tag { padding: 4px 11px; font-size: 11px; }
#cavLymphaticDisordersTopicContent .vasc-dc-name { font-size: 23px; line-height: 1.15; }
#cavLymphaticDisordersTopicContent .vasc-dc-aka { font-size: 15px; margin-top: 3px; }

#cavLymphaticDisordersTopicContent .vasc-disease-card:has(> details.vasc-dc-collapse:not([open])) {
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
#cavLymphaticDisordersTopicContent .vasc-disease-card:has(> details.vasc-dc-collapse:not([open])):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.18);
    border-color: var(--accent);
}

/* Card summary — black text in a light-blue "read this first" bubble */
#cavLymphaticDisordersTopicContent .vasc-dc-summary {
    color: #000;
    background: rgba(10, 132, 255, 0.06);
    border: 1px solid rgba(10, 132, 255, 0.28);
    border-radius: 12px;
    padding: 13px 16px;
}
#cavLymphaticDisordersTopicContent .vasc-dc-summary strong { color: #000; font-weight: 700; }

/* Course / Behavior row — subtle blue accent on the icon swatch */
#cavLymphaticDisordersTopicContent .vasc-dc-row.vt-course-row .vasc-dc-row-icon {
    color: var(--accent-strong);
}

/* Cross-link to the Edema mechanism visualizer — absolutely pinned to
   the top-right of the "Causes to know" box so it does NOT change the
   box size or push any content. */
#cavLymphaticDisordersTopicContent .vt-causes-row { position: relative; }
#cavLymphaticDisordersTopicContent .cpa-edema-link {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-strong);
    background: rgba(10, 132, 255, 0.10);
    border: 1px solid rgba(10, 132, 255, 0.30);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
#cavLymphaticDisordersTopicContent .cpa-edema-link:hover,
#cavLymphaticDisordersTopicContent .cpa-edema-link:focus-visible {
    background: rgba(10, 132, 255, 0.16);
    border-color: var(--accent);
    outline: none;
}
#cavLymphaticDisordersTopicContent .cpa-edema-link:active { transform: translateY(1px); }

/* ============================================================
   CROSS-MODULE PEARL — a clickable callout that links out to a
   disease card on another topic page (via openCavCrossModuleCard).
   Reusable component (not page-scoped) so other modules can use it.
   ============================================================ */
.cross-module-pearl {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    font: inherit;
    margin: 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(10, 132, 255, 0.07), rgba(10, 132, 255, 0.04));
    border: 1px solid rgba(10, 132, 255, 0.26);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.cross-module-pearl:hover,
.cross-module-pearl:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.18);
    border-color: var(--accent);
    outline: none;
}

.cross-module-pearl__icon {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

.cross-module-pearl__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cross-module-pearl__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.cross-module-pearl__title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.cross-module-pearl__desc {
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--muted-strong);
}

.cross-module-pearl__arrow {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-strong);
    transition: transform 0.16s ease;
}
.cross-module-pearl:hover .cross-module-pearl__arrow {
    transform: translateX(3px);
}
