/* ============================================================
   CAV PATHOLOGY · Venous System Disorders — page styling.
   Re-applies the page conventions (scoped to this content id):
   even card spacing, black summary in a blue bubble, compact
   rounded cards + hover lift. The horizontal map reuses the
   Tumors vt-map component (base styling from vascular-tumors.css,
   loaded globally) — here we only re-theme it to 3 lanes and add
   the venous lens colors (PE-risk, Key association).
   ============================================================ */

/* Page rhythm — vertical gap so cards/sections don't touch */
#cavVenousDisordersTopicContent {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

#cavVenousDisordersTopicContent .vasc-disease-card:has(> details.vasc-dc-collapse:not([open])),
#cavVenousDisordersTopicContent .vasc-compare-block:has(> details.vasc-dc-collapse:not([open])) {
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
#cavVenousDisordersTopicContent .vasc-disease-card:has(> details.vasc-dc-collapse:not([open])):hover,
#cavVenousDisordersTopicContent .vasc-compare-block: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 */
#cavVenousDisordersTopicContent .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;
}
#cavVenousDisordersTopicContent .vasc-dc-summary strong { color: #000; font-weight: 700; }

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

/* ============================================================
   MAP — 3 lanes (re-theme of the shared vt-map component)
   ============================================================ */
#cavVenousDisordersTopicContent .vt-map-lanes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Lane headers — one color per mechanism bucket */
#cavVenousDisordersTopicContent .vt-lane-head.is-pressure    { color: #0a84ff; border-bottom-color: rgba(10, 132, 255, 0.4); }
#cavVenousDisordersTopicContent .vt-lane-head.is-thrombosis  { color: #d63a3a; border-bottom-color: rgba(214, 58, 58, 0.4); }
#cavVenousDisordersTopicContent .vt-lane-head.is-obstruction { color: #0d9aa8; border-bottom-color: rgba(13, 154, 168, 0.4); }

/* Legend swatches for the venous lenses */
#cavVenousDisordersTopicContent .vt-legend-swatch.pe-high { --swatch: #d63a3a; }
#cavVenousDisordersTopicContent .vt-legend-swatch.pe-low  { --swatch: #d39111; }
#cavVenousDisordersTopicContent .vt-legend-swatch.pe-none { --swatch: #8a94a6; }
#cavVenousDisordersTopicContent .vt-legend-swatch.a-on    { --swatch: #0a84ff; }

/* ---- PE-risk lens ---- */
#cavVenousDisordersTopicContent .vt-map-lanes.lens-perisk .vt-node[data-perisk="high"] {
    border-left-color: #d63a3a; background: rgba(214, 58, 58, 0.09);
}
#cavVenousDisordersTopicContent .vt-map-lanes.lens-perisk .vt-node[data-perisk="low"] {
    border-left-color: #d39111; background: rgba(211, 145, 17, 0.09);
}
#cavVenousDisordersTopicContent .vt-map-lanes.lens-perisk .vt-node[data-perisk="none"] {
    border-left-color: #8a94a6; background: rgba(138, 148, 166, 0.10);
}

/* ---- Key-association lens — highlight nodes with an association, dim the rest ---- */
#cavVenousDisordersTopicContent .vt-map-lanes.lens-assoc .vt-node:not([data-assoc]) { opacity: 0.4; }
#cavVenousDisordersTopicContent .vt-map-lanes.lens-assoc .vt-node[data-assoc] {
    border-color: var(--accent);
    border-left-color: var(--accent-strong);
    background: rgba(10, 132, 255, 0.08);
    box-shadow: 0 1px 5px rgba(10, 132, 255, 0.16);
}
#cavVenousDisordersTopicContent .vt-map-lanes.lens-assoc .vt-node[data-assoc] .vt-node-assoc { display: block; }
