/* HOAD Pathology topic styles extracted from styles.css. */

.ida-pattern-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.ida-pattern-stat {
    padding: 16px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.ida-pattern-stat strong {
    display: block;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ida-pattern-stat span {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    font-weight: 780;
    letter-spacing: -0.03em;
}

.ida-rule {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,250,235,0.98), rgba(255,245,222,0.92));
    border: 1px solid rgba(229, 190, 106, 0.24);
    color: #7c5a12;
    font-size: 14px;
    line-height: 1.55;
}

.ida-rule strong {
    color: #8c6010;
}

#ironDeficiencyTopicContent {
    display: grid;
    gap: 34px;
}

#thalassemiaTopicContent,
#acdTopicContent,
#genericHoadTopicContent {
    display: grid;
    gap: 34px;
}

.ida-flowchart {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.ida-flow-node {
    position: relative;
    padding: 22px 22px 22px 76px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.ida-flow-node:hover,
.ida-flow-node:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.08);
    border-color: rgba(10, 132, 255, 0.1);
}

.ida-flow-node::before {
    content: attr(data-step);
    position: absolute;
    left: 22px;
    top: 22px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(10, 132, 255, 0.12);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.ida-flow-node::after {
    content: "";
    position: absolute;
    left: 35px;
    top: calc(100% - 4px);
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, rgba(10,132,255,0.18), rgba(10,132,255,0));
}

.ida-flow-node:last-child::after {
    display: none;
}

.ida-flow-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.78);
    color: var(--accent-strong);
    font-size: 18px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.ida-flow-node strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.ida-flow-node p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.ida-flow-node.is-final {
    background: linear-gradient(180deg, rgba(240,247,255,0.98), rgba(232,242,255,0.9));
    border-color: rgba(10, 132, 255, 0.12);
}

.ida-final-rbc {
    margin-top: 14px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 48%, rgba(255,255,255,0.92) 0 15%, rgba(255,244,244,0.88) 16% 22%, rgba(246,228,230,0.82) 23% 30%, rgba(227,122,134,0.34) 31% 43%, rgba(214,79,95,0.9) 44% 72%, rgba(184,43,61,0.98) 73% 100%);
    box-shadow: inset 0 -8px 12px rgba(127, 22, 38, 0.16), inset 0 6px 10px rgba(255,255,255,0.18), 0 14px 24px rgba(133, 31, 44, 0.12);
}

.ida-final-rbc-note {
    margin-top: 10px;
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.5;
}

.ida-cause-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.ida-cause-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ida-cause-card.is-emphasis {
    background: linear-gradient(180deg, rgba(255,250,235,0.98), rgba(255,244,227,0.92));
    border-color: rgba(226, 185, 94, 0.2);
    box-shadow: 0 18px 30px rgba(226, 185, 94, 0.12);
}

.ida-cause-card:hover,
.ida-cause-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.07);
}

.ida-cause-card h4 {
    margin: 0 0 10px;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.ida-cause-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ida-cause-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
    font-size: 14px;
    line-height: 1.55;
}

.ida-hepcidin-toggle {
    margin-top: 18px;
    display: inline-flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.ida-hepcidin-button {
    width: auto;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--muted-strong);
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
}

.ida-hepcidin-button.is-active {
    background: linear-gradient(180deg, rgba(10,132,255,0.14), rgba(10,132,255,0.08));
    color: var(--accent-strong);
}

.ida-hepcidin-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
}

.ida-hepcidin-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ida-hepcidin-card h4 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.ida-hepcidin-gate {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10,132,255,0.1);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 700;
}

.ida-hepcidin-pattern {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(15, 23, 42, 0.04);
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.5;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-diagram {
    position: relative;
    margin-top: 18px;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(248,250,252,0.98), rgba(242,246,251,0.94));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: minmax(250px, 1.12fr) minmax(88px, auto) minmax(210px, 0.9fr);
    gap: 8px;
    align-items: end;
    overflow: hidden;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-cell {
    position: relative;
    min-height: 246px;
    padding: 28px 28px 26px;
    border-radius: 42% 48% 44% 46% / 36% 42% 40% 44%;
    background: radial-gradient(circle at 30% 26%, rgba(255,255,255,0.9), rgba(247,236,221,0.82) 40%, rgba(239,222,198,0.92) 100%);
    border: 2px solid rgba(186, 152, 118, 0.26);
    box-shadow: inset 0 8px 18px rgba(255,255,255,0.36), 0 16px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-cell::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 42% 48% 44% 46% / 36% 42% 40% 44%;
    border: 1px solid rgba(255,255,255,0.28);
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-cell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 58%, rgba(255,255,255,0.24), transparent 18%),
        radial-gradient(circle at 58% 72%, rgba(255,255,255,0.16), transparent 24%),
        radial-gradient(circle at 78% 34%, rgba(255,255,255,0.14), transparent 18%);
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-cell-nucleus {
    position: absolute;
    top: 34px;
    left: 30px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.88), rgba(210, 190, 222, 0.82) 55%, rgba(172, 144, 191, 0.9));
    box-shadow: inset 0 4px 8px rgba(255,255,255,0.26), 0 8px 14px rgba(117, 94, 129, 0.14);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-cell-title,
:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-title {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-storage-label {
    position: absolute;
    z-index: 2;
    bottom: 22px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-membrane {
    position: absolute;
    top: 18px;
    right: 10px;
    width: 22px;
    height: calc(100% - 36px);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(187, 153, 121, 0.9), rgba(166, 129, 94, 0.88));
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22);
    z-index: 1;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-ferroportin-channel {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 74px;
    height: 96px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(233,240,247,0.96));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    z-index: 3;
    display: grid;
    place-items: center;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-ferroportin-channel::before {
    content: "";
    width: 34px;
    height: 68px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(129, 196, 120, 0.88), rgba(83, 153, 93, 0.92));
    box-shadow: inset 0 4px 8px rgba(255,255,255,0.22);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-ferroportin-channel::after {
    content: "";
    position: absolute;
    inset: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-ferroportin-channel::before {
    background: linear-gradient(180deg, rgba(224, 111, 81, 0.9), rgba(181, 67, 50, 0.92));
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-channel-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
    white-space: nowrap;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-hepcidin-blocker {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    padding: 8px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 171, 122, 0.98), rgba(247, 112, 78, 0.94));
    color: #8a2d17;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(247, 112, 78, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 4;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-hepcidin-blocker {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-hepcidin-note {
    position: absolute;
    top: calc(100% + 44px);
    left: 50%;
    transform: translateX(-50%);
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-hepcidin-note {
    opacity: 0.45;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-vessel {
    position: relative;
    min-height: 200px;
    padding: 22px 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 241, 243, 0.98), rgba(252, 220, 226, 0.92));
    border: 1px solid rgba(228, 117, 140, 0.14);
    box-shadow: inset 0 10px 18px rgba(255,255,255,0.28), 0 16px 28px rgba(220, 102, 126, 0.08);
    overflow: hidden;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-vessel::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.18);
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-copy {
    display: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-rbcs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-rbc {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 48%, rgba(255,255,255,0.88) 0 14%, rgba(255,244,244,0.84) 15% 22%, rgba(230,120,134,0.34) 23% 36%, rgba(214,79,95,0.88) 37% 72%, rgba(184,43,61,0.98) 73% 100%);
    box-shadow: 0 8px 14px rgba(133, 31, 44, 0.1);
    animation: hepRbcPulse 4.8s ease-in-out infinite;
    animation-delay: var(--delay);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-fe-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-fe {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 35%, rgba(255,247,220,0.98), rgba(241,177,57,0.96));
    color: #8b5a08;
    font-size: 8px;
    font-weight: 800;
    box-shadow: 0 0 0 4px rgba(245, 180, 50, 0.07);
    opacity: 0;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="low"] .hep-blood-fe {
    animation: hepBloodFeFlow 3.2s linear infinite;
    animation-delay: var(--delay);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-blood-fe {
    opacity: 0.05;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-status-label {
    align-self: center;
    margin-top: 0;
    padding: 14px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(15, 23, 42, 0.05);
    text-align: center;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-status-label span {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent-strong);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-particle-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-iron-particle {
    position: absolute;
    top: var(--top);
    left: var(--left);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 35%, rgba(255,245,212,0.98), rgba(245,180,50,0.96));
    box-shadow: 0 0 0 4px rgba(245, 180, 50, 0.08);
    color: #8b5a08;
    font-size: 9px;
    font-weight: 800;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-path-label {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-path-label {
    color: #9a3412;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-captions {
    display: grid;
    grid-template-columns: minmax(250px, 1.12fr) minmax(88px, auto) minmax(210px, 0.9fr);
    gap: 8px;
    margin-top: 14px;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-caption {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-caption strong {
    color: #111827;
    font-weight: 800;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-caption.is-center {
    text-align: center;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-caption.is-right {
    text-align: left;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="low"] .hep-iron-particle {
    animation: hepIronFlow 3.2s linear infinite;
    animation-delay: var(--delay);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-iron-particle {
    animation: hepIronTrap 2.2s ease-in-out infinite;
    animation-delay: var(--delay);
}

.ida-hep-explanation {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 16px;
}

.ida-summary-card {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(240,247,255,0.98), rgba(232,242,255,0.9));
    border: 1px solid rgba(10, 132, 255, 0.12);
    box-shadow: 0 16px 28px rgba(10, 132, 255, 0.06);
}

.nbme-pearls-section {
    margin-top: 36px;
}

.nbme-pearls-shell {
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,252,0.96));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.nbme-pearls-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nbme-pearls-shell h3 {
    margin: 16px 0 0;
    font-size: 31px;
    letter-spacing: -0.05em;
}

.nbme-pearls-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.nbme-pearl-card {
    padding: 22px 20px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.nbme-pearl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.nbme-pearl-card.is-blue {
    background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(229,239,255,0.92));
}

.nbme-pearl-card.is-yellow {
    background: linear-gradient(180deg, rgba(255,249,219,0.98), rgba(255,244,196,0.92));
}

.nbme-pearl-card.is-red {
    background: linear-gradient(180deg, rgba(255,240,238,0.98), rgba(255,228,225,0.92));
}

.nbme-pearl-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    font-size: 18px;
}

.nbme-pearl-card strong {
    display: block;
    margin-top: 14px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #111827;
}

.nbme-pearl-card p {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: #475569;
}

.nbme-final-takeaway {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(238,247,255,0.98), rgba(227,240,255,0.92));
    border: 1px solid rgba(10, 132, 255, 0.12);
    box-shadow: 0 16px 28px rgba(10, 132, 255, 0.06);
    text-align: center;
    font-size: 17px;
    line-height: 1.6;
    color: #1f2937;
}

.nbme-final-takeaway strong {
    color: #111827;
}

.high-yield-callout.is-violet {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.98), rgba(237, 233, 254, 0.94));
    border-color: rgba(139, 92, 246, 0.16);
    box-shadow: 0 22px 38px rgba(139, 92, 246, 0.08);
}

.high-yield-callout.is-violet .high-yield-callout-label,
.high-yield-callout.is-violet .high-yield-callout-tag {
    color: #6d28d9;
}

.thal-genetics-grid,
.thal-correlate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.thal-genetics-grid {
    align-items: stretch;
}

.thal-info-card,
.thal-correlate-panel {
    padding: 22px 22px 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.06);
}

.thal-info-card h4,
.thal-correlate-panel h4 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    color: #0f172a;
}

.thal-info-card p,
.thal-correlate-panel p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.thal-card-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.72);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thal-card-badge.is-danger {
    background: rgba(254, 226, 226, 0.8);
    color: #b91c1c;
}

.thal-genetics-visual {
    display: grid;
    gap: 18px;
}

.thal-gene-card {
    position: relative;
    overflow: hidden;
    padding: 24px 24px 22px;
    border-radius: 30px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.thal-gene-card::before {
    content: "";
    position: absolute;
    inset: -30% auto auto -10%;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    opacity: 0.55;
    pointer-events: none;
    filter: blur(8px);
}

.alpha-gene-card::before {
    background: radial-gradient(circle, rgba(125, 211, 252, 0.28), rgba(191, 219, 254, 0));
}

.beta-gene-card::before {
    background: radial-gradient(circle, rgba(196, 181, 253, 0.28), rgba(224, 231, 255, 0));
}

.thal-gene-card > * {
    position: relative;
    z-index: 1;
}

.thal-gene-pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.alpha-gene-card .thal-gene-pill {
    background: rgba(224, 242, 254, 0.92);
    color: #0369a1;
}

.beta-gene-card .thal-gene-pill {
    background: rgba(237, 233, 254, 0.94);
    color: #6d28d9;
}

.thal-gene-card h4 {
    margin: 0;
    font-size: 1.18rem;
    color: #0f172a;
}

.thal-gene-subtitle {
    margin: 8px 0 18px;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;
}

.thal-gene-track-wrap {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.thal-chromosome-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.thal-chromosome-line {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 88px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.96), rgba(241, 245, 249, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), inset 0 -1px 0 rgba(148, 163, 184, 0.18);
}

.thal-chromosome-line::before {
    content: "";
    position: absolute;
    inset: 50% 18px auto 18px;
    height: 12px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.72), rgba(226, 232, 240, 0.9));
}

.thal-gene-pair,
.thal-beta-alleles {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.thal-beta-alleles {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
}

.thal-gene-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.thal-gene-box.alpha {
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.98), rgba(186, 230, 253, 0.94));
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #075985;
    box-shadow: 0 16px 28px rgba(14, 165, 233, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.thal-gene-box.beta {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.98), rgba(221, 214, 254, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.24);
    color: #5b21b6;
    box-shadow: 0 16px 28px rgba(109, 40, 217, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.thal-parent-labels,
.thal-allele-labels {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.thal-parent-labels span,
.thal-allele-labels span {
    flex: 1 1 0;
    text-align: center;
}

.thal-gene-takeaway {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.6;
}

.thal-gene-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thal-gene-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 16px;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #334155;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.alpha-gene-card .thal-gene-chip {
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.beta-gene-card .thal-gene-chip {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.96), rgba(248, 250, 252, 0.98));
}

@media (max-width: 720px) {
    .thal-gene-card {
        padding: 22px 20px 20px;
    }

    .thal-chromosome-line {
        min-height: 82px;
        padding: 0 16px;
        gap: 18px;
    }

    .thal-gene-box {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1.08rem;
    }

    .thal-parent-labels,
    .thal-allele-labels {
        font-size: 0.74rem;
    }
}

.thal-gel-lab {
    display: grid;
    gap: 18px;
}

.thal-management-section {
    display: grid;
    gap: 20px;
}

.thal-management-subtitle {
    margin: 0;
    max-width: 900px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

.thal-minor-alert {
    display: grid;
    gap: 12px;
    padding: 24px 24px 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.94));
    border: 1px solid rgba(16, 185, 129, 0.18);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.thal-minor-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #047857;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thal-minor-alert p {
    margin: 0;
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.7;
}

.thal-domino-pathway {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.thal-pathway-head {
    display: grid;
    gap: 8px;
}

.thal-pathway-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.82);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thal-path-card {
    display: grid;
    gap: 12px;
    min-height: 100%;
    padding: 22px 22px 20px;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.07);
}

.thal-path-card.is-fix {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
}

.thal-path-card.is-consequence {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.96));
}

.thal-path-card.is-rescue {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.95));
}

.thal-path-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thal-path-card.is-fix .thal-path-label {
    background: rgba(219, 234, 254, 0.9);
    color: #1d4ed8;
}

.thal-path-card.is-consequence .thal-path-label {
    background: rgba(255, 255, 255, 0.68);
    color: #b45309;
}

.thal-path-card.is-rescue .thal-path-label {
    background: rgba(224, 242, 254, 0.92);
    color: #0369a1;
}

.thal-path-card h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1.18rem;
}

.thal-path-card p {
    margin: 0;
    color: #334155;
    line-height: 1.65;
}

.thal-path-detail {
    padding-top: 2px;
    color: #7c2d12;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
}

.thal-path-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    color: #94a3b8;
    font-size: 1.6rem;
    font-weight: 800;
}

.thal-path-arrow::before {
    content: "→";
}

.thal-cure-callout {
    display: grid;
    gap: 10px;
    padding: 24px 24px 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.98), rgba(224, 231, 255, 0.94));
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 18px 36px rgba(99, 102, 241, 0.12);
}

.thal-cure-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #5b21b6;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thal-cure-callout p {
    margin: 0;
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.7;
}

.thal-interactive-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.thal-interactive-card::after {
    content: "Learn why";
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #7c2d12;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.thal-interactive-card:hover,
.thal-interactive-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.16);
}

.thal-interactive-card:hover::after,
.thal-interactive-card:focus-within::after {
    background: rgba(254, 242, 242, 0.95);
    color: #b91c1c;
}

.thal-hover-pearl {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: calc(100% + 14px);
    z-index: 6;
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
    color: rgba(241, 245, 249, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.26);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.thal-hover-pearl::after {
    content: "";
    position: absolute;
    left: 36px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: rgba(30, 41, 59, 0.96);
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    transform: rotate(45deg);
}

.thal-hover-pearl strong {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.thal-hover-pearl p {
    margin: 0;
    color: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.6;
}

.thal-interactive-card:hover .thal-hover-pearl,
.thal-interactive-card:focus-within .thal-hover-pearl {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 860px) {
    .thal-domino-pathway {
        grid-template-columns: 1fr;
    }

    .thal-path-arrow {
        min-height: 28px;
        font-size: 1.35rem;
    }

    .thal-path-arrow::before {
        content: "↓";
    }

    .thal-hover-pearl {
        left: 14px;
        right: 14px;
    }
}

.thal-gel-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.thal-gel-favorite {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.76);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thal-gel-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.gel-tab {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.98);
    color: #334155;
    border-radius: 18px;
    padding: 14px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.gel-tab:hover,
.gel-tab:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.18);
    outline: none;
}

.gel-tab.is-active {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.96));
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.18);
    box-shadow: 0 20px 34px rgba(59, 130, 246, 0.14);
}

.gel-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.07);
}

.gel-visual-head {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
}

.gel-note-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.55;
}

.gel-note-card strong {
    color: #0f172a;
}

.gel-patient-head {
    display: grid;
    gap: 6px;
}

.gel-visual {
    display: grid;
    grid-template-columns: 96px minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.band-labels {
    position: relative;
    min-width: 96px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.05);
    min-height: 420px;
    padding: 18px 10px;
}

.band-label {
    position: absolute;
    left: 10px;
    transform: translateY(-50%);
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}

.gel-lane {
    position: relative;
    min-height: 420px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.62), rgba(248, 250, 252, 0.82));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    padding: 18px 18px 22px;
}

.gel-lane-copy {
    display: grid;
    gap: 10px;
}

.gel-lane::before {
    content: "";
    position: absolute;
    inset: 16px 18px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(226,232,240,0.12));
    pointer-events: none;
}

.gel-lane-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.86);
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gel-lane-title.is-patient {
    background: rgba(219, 234, 254, 0.82);
    color: #1d4ed8;
}

.gel-lane-note {
    margin: 0;
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.55;
}

.gel-band {
    position: absolute;
    left: 24px;
    right: 24px;
    height: var(--band-height, 12px);
    top: calc(var(--band-top) - (var(--band-height, 12px) / 2));
    border-radius: 999px;
    opacity: 0.95;
    box-shadow: 0 0 18px currentColor;
    transform: scaleX(0.96);
    animation: gelBandFadeIn 220ms ease;
}

.gel-band.is-a {
    color: rgba(14, 165, 233, 0.95);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.98), rgba(56, 189, 248, 0.35));
}

.gel-band.is-a2 {
    color: rgba(16, 185, 129, 0.95);
    background: linear-gradient(90deg, rgba(110, 231, 183, 0.34), rgba(16, 185, 129, 0.98), rgba(110, 231, 183, 0.34));
}

.gel-band.is-f {
    color: rgba(99, 102, 241, 0.95);
    background: linear-gradient(90deg, rgba(165, 180, 252, 0.34), rgba(99, 102, 241, 0.98), rgba(165, 180, 252, 0.34));
}

.gel-band.is-h {
    color: rgba(245, 158, 11, 0.95);
    background: linear-gradient(90deg, rgba(252, 211, 77, 0.36), rgba(245, 158, 11, 0.98), rgba(252, 211, 77, 0.36));
}

.gel-band.is-barts {
    color: rgba(239, 68, 68, 0.96);
    background: linear-gradient(90deg, rgba(252, 165, 165, 0.36), rgba(239, 68, 68, 0.98), rgba(252, 165, 165, 0.36));
}

.gel-band.is-high {
    --band-height: 18px;
}

.gel-band.is-medium {
    --band-height: 13px;
}

.gel-band.is-low {
    --band-height: 8px;
    opacity: 0.6;
}

.gel-band-label-inline {
    position: absolute;
    right: 26px;
    top: calc(var(--band-top) - 14px);
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.72);
}

.gel-explanation-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.gel-abundance-caption {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

.gel-comparison-callout {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(224, 231, 255, 0.92), rgba(219, 234, 254, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.14);
    box-shadow: 0 18px 32px rgba(59, 130, 246, 0.08);
}

.gel-comparison-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4338ca;
}

.gel-comparison-text {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.55;
    color: #0f172a;
    font-weight: 700;
}

.gel-explanation-item {
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.gel-explanation-item strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gel-explanation-item p {
    margin: 0;
    color: #111827;
    font-size: 1.12rem;
    line-height: 1.5;
    font-weight: 500;
}

.nbme-trap-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff8d8, #fff0a8);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.nbme-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #b45309;
    flex: 0 0 auto;
}

.nbme-trap-card h4 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
}

.nbme-trap-card p {
    margin: 0;
    font-size: 20px;
    line-height: 1.45;
    color: #334155;
    max-width: 900px;
}

.nbme-trap-card strong {
    color: #0f172a;
    font-weight: 800;
}

@keyframes gelBandFadeIn {
    from {
        opacity: 0;
        transform: scaleX(0.85);
    }
    to {
        opacity: 0.95;
        transform: scaleX(0.96);
    }
}

.thal-major-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 242, 0.92));
    border-color: rgba(239, 68, 68, 0.12);
}

.topic-practice-placeholder {
    margin-top: 8px;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.topic-practice-placeholder strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 1rem;
}

.topic-practice-placeholder p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.acd-dark-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.acd-dark-section::before {
    content: "";
    position: absolute;
    inset: -20% auto auto -10%;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08), rgba(34, 211, 238, 0));
    pointer-events: none;
}

.acd-dark-section > * {
    position: relative;
    z-index: 1;
}

.acd-dark-section .section-label {
    color: var(--accent-strong);
}

.acd-dark-section h3,
.acd-dark-section h4,
.acd-dark-section strong {
    color: #111827;
}

.acd-dark-section p,
.acd-dark-section li,
.acd-dark-section span {
    color: #475569;
}

.acd-trap-box {
    display: grid;
    gap: 16px;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 214, 0.96));
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.08);
}

.acd-trap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.acd-trap-title {
    margin: 0;
    font-size: 1.34rem;
    letter-spacing: -0.03em;
}

.acd-trap-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.acd-trap-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
}

.acd-trap-box strong {
    color: #92400e;
}

.acd-quote-block {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
    padding: 32px 28px;
}

.acd-quote-line {
    width: 88px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.22), rgba(34, 211, 238, 0.96), rgba(59, 130, 246, 0.3));
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.22);
}

.acd-quote-text {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
}

.acd-quote-subtext {
    margin: 0;
    max-width: 860px;
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.8;
}

.acd-causes-shell {
    display: grid;
    gap: 18px;
}

.acd-epi-banner {
    padding: 14px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
    border: 1px solid rgba(10, 132, 255, 0.08);
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.65;
}

.acd-cause-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.acd-cause-card {
    padding: 22px 22px 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.acd-cause-card h4 {
    margin: 0 0 14px;
    font-size: 1.08rem;
}

.acd-cause-card ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.acd-cause-card li::marker {
    color: currentColor;
}

.acd-cause-card.is-red {
    border-color: rgba(248, 113, 113, 0.24);
    box-shadow: 0 16px 30px rgba(248, 113, 113, 0.08);
}

.acd-cause-card.is-red h4,
.acd-cause-card.is-red li::marker {
    color: #fca5a5;
}

.acd-cause-card.is-purple {
    border-color: rgba(167, 139, 250, 0.24);
    box-shadow: 0 16px 30px rgba(167, 139, 250, 0.08);
}

.acd-cause-card.is-purple h4,
.acd-cause-card.is-purple li::marker {
    color: #c4b5fd;
}

.acd-cause-card.is-blue {
    border-color: rgba(56, 189, 248, 0.24);
    box-shadow: 0 16px 30px rgba(56, 189, 248, 0.08);
}

.acd-cause-card.is-blue h4,
.acd-cause-card.is-blue li::marker {
    color: #7dd3fc;
}

.acd-pathway-shell {
    display: grid;
    gap: 18px;
}

.acd-domino-pathway {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.acd-node {
    display: grid;
    gap: 12px;
    padding: 22px 22px 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(10, 132, 255, 0.08);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.acd-node-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.acd-node p {
    margin: 0;
    line-height: 1.7;
}

.acd-node.is-blockade p strong {
    color: #b91c1c;
}

.acd-path-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-strong);
    font-size: 1.6rem;
    font-weight: 800;
}

.acd-path-arrow::before {
    content: "→";
}

.acd-figure-intro {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

.acd-exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.acd-exam-chip {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 100%;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;
}

.acd-exam-chip strong {
    display: block;
    margin: 0;
    color: #7dd3fc;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.35;
}

.acd-exam-chip strong + strong {
    color: #111827;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 800;
}

.acd-practice-placeholder {
    margin-top: 8px;
    padding: 22px 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.acd-practice-placeholder strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
}

.acd-practice-placeholder p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

#acd-hepcidin-switch .high-yield-callout {
    margin-top: 18px;
}

@media (max-width: 760px) {
    .gel-visual-head {
        grid-template-columns: 1fr;
    }

    .gel-visual {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: start;
    }

    .gel-lane-copy:last-child {
        grid-column: 1 / -1;
    }

    .band-labels {
        min-height: 360px;
    }

    .gel-lane {
        min-height: 360px;
    }

    .nbme-trap-card {
        padding: 22px 22px 24px;
        gap: 14px;
    }

    .nbme-trap-card p {
        font-size: 18px;
    }

    .acd-cause-grid,
    .acd-domino-pathway {
        grid-template-columns: 1fr;
    }

    .acd-path-arrow::before {
        content: "↓";
    }
}

#thal-lock-it-in {
    margin-top: 36px;
}

#thal-lock-it-in .ida-practice-shell {
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,252,0.96));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

#thal-lock-it-in .ida-practice-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#thal-lock-it-in h3 {
    margin: 16px 0 6px;
    font-size: 31px;
    letter-spacing: -0.05em;
}

#thal-lock-it-in .ida-practice-subtitle {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.6;
}

#thal-lock-it-in .ida-question-progress {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

#thal-lock-it-in .ida-practice-card {
    margin-top: 18px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

#thal-lock-it-in .ida-practice-difficulty {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

#thal-lock-it-in .ida-practice-stem {
    margin: 16px 0 0;
    font-size: 21px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: #111827;
}

#thal-lock-it-in .ida-practice-options {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

#thal-lock-it-in .ida-answer-choice {
    width: 100%;
    text-align: left;
    background: rgba(255,255,255,0.94);
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.07);
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#thal-lock-it-in .ida-answer-choice:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    border-color: rgba(10, 132, 255, 0.18);
}

#thal-lock-it-in .ida-answer-choice.is-selected {
    background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(229,239,255,0.92));
    border-color: rgba(10, 132, 255, 0.24);
    color: #0f3d91;
    box-shadow: 0 12px 22px rgba(10, 132, 255, 0.08);
}

#thal-lock-it-in .ida-answer-choice:disabled {
    cursor: default;
    opacity: 1;
}

#thal-lock-it-in .ida-answer-choice.is-correct {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.92));
    border-color: rgba(34, 197, 94, 0.22);
    color: #166534;
}

#thal-lock-it-in .ida-answer-choice.is-wrong {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 228, 230, 0.92));
    border-color: rgba(239, 68, 68, 0.22);
    color: #991b1b;
}

#thal-lock-it-in .ida-practice-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#thal-lock-it-in .ida-practice-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

#thal-lock-it-in .ida-practice-arrow,
#thal-lock-it-in .ida-practice-submit,
#thal-lock-it-in .ida-practice-next,
#thal-lock-it-in .ida-practice-reset,
#thal-lock-it-in .ida-practice-restart {
    width: auto;
    min-width: 126px;
    padding: 14px 20px;
}

#thal-lock-it-in .ida-practice-arrow {
    min-width: 54px;
    padding: 14px 16px;
    border-radius: 18px;
}

#thal-lock-it-in .ida-practice-submit[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#thal-lock-it-in .ida-practice-reset {
    background: rgba(255,255,255,0.9);
    color: #334155;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

#thal-lock-it-in .ida-practice-summary {
    text-align: center;
}

#thal-lock-it-in .ida-practice-summary-score {
    margin: 18px 0 0;
    font-size: 42px;
    font-weight: 850;
    letter-spacing: -0.05em;
    color: #111827;
}

#thal-lock-it-in .ida-practice-summary-copy {
    margin: 10px auto 0;
    max-width: 520px;
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
}

.ida-plummer-shell {
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(250, 245, 255, 0.98), rgba(243, 237, 252, 0.94));
    border: 1px solid rgba(139, 92, 246, 0.16);
    box-shadow: 0 18px 30px rgba(139, 92, 246, 0.08);
}

.ida-plummer-shell h3 {
    margin: 14px 0 8px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.ida-plummer-intro {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
}

.ida-plummer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.ida-plummer-card {
    min-height: 100%;
    padding: 18px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(139, 92, 246, 0.12);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.ida-plummer-icon {
    font-size: 24px;
    line-height: 1;
}

.ida-plummer-card strong {
    display: block;
    margin-top: 10px;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: #111827;
}

.ida-plummer-card span {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.ida-plummer-buzzwords {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.12);
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.ida-plummer-buzzwords strong {
    color: #5b21b6;
}

@keyframes hepIronFlow {
    0% {
        transform: translateX(0);
        opacity: 0.1;
    }
    15% {
        opacity: 1;
    }
    70% {
        transform: translateX(152px);
        opacity: 1;
    }
    100% {
        transform: translateX(188px);
        opacity: 0.08;
    }
}

@keyframes hepIronTrap {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    35% {
        transform: translateX(18px) translateY(-4px);
    }
    70% {
        transform: translateX(4px) translateY(3px);
    }
}

@keyframes hepRbcPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes hepBloodFeFlow {
    0% {
        transform: translateX(-8px);
        opacity: 0;
    }
    18% {
        opacity: 1;
    }
    75% {
        transform: translateX(16px);
        opacity: 1;
    }
    100% {
        transform: translateX(28px);
        opacity: 0;
    }
}

.micro-lab-card {
    margin-top: 8px;
    padding: 24px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,249,252,0.92));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.micro-lab-card[data-diagnosis="ida"] {
    box-shadow: 0 20px 42px rgba(10, 132, 255, 0.08);
}

.micro-lab-card[data-diagnosis="thal"] {
    box-shadow: 0 20px 42px rgba(52, 199, 89, 0.08);
}

.micro-lab-card[data-diagnosis="acd"] {
    box-shadow: 0 20px 42px rgba(245, 158, 11, 0.08);
}

.micro-lab-card[data-diagnosis="lead"] {
    box-shadow: 0 20px 42px rgba(100, 116, 139, 0.08);
}

.micro-lab-card[data-diagnosis="sidero"] {
    box-shadow: 0 20px 42px rgba(168, 85, 247, 0.08);
}

.micro-lab-head h3 {
    margin: 8px 0 10px;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.micro-lab-head p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 760px;
}

.micro-lab-selector {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.micro-lab-tab {
    width: auto;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(255,255,255,0.82);
    color: var(--muted-strong);
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
}

.micro-lab-tab:hover,
.micro-lab-tab:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.micro-lab-tab.active {
    background: linear-gradient(180deg, rgba(10,132,255,0.14), rgba(10,132,255,0.08));
    border-color: rgba(10,132,255,0.14);
    color: var(--accent-strong);
}

.micro-lab-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.micro-lab-smear-panel,
.micro-lab-info {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.micro-lab-smear-header,
.micro-lab-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.micro-lab-smear-header h4,
.micro-lab-info-header h4 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.micro-lab-smear-caption,
.micro-lab-kicker {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.micro-lab-react-note {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: var(--muted);
    font-size: 12px;
}

.micro-lab-smear-stage {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(10,132,255,0.08), transparent 30%),
        linear-gradient(180deg, rgba(250,252,255,0.98), rgba(239,244,250,0.94));
    border: 1px solid rgba(15, 23, 42, 0.04);
    isolation: isolate;
}

.micro-lab-real-smear {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.01);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.micro-lab-smear-stage[data-view="real"] .micro-lab-real-smear {
    opacity: 1;
    transform: scale(1);
}

.micro-lab-smear-stage[data-view="real"] .micro-rbc {
    opacity: 0;
    pointer-events: none;
}

.micro-lab-smear-toggle {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(240, 247, 255, 0.9);
    border: 1px solid rgba(10, 132, 255, 0.14);
}

.micro-lab-smear-toggle[hidden] {
    display: none;
}

.micro-lab-smear-arrow {
    width: 38px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #0a84ff;
    color: #fff;
    font-size: 24px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(10, 132, 255, 0.18);
}

.micro-lab-smear-arrow:hover,
.micro-lab-smear-arrow:focus-visible {
    background: #006edb;
}

.micro-lab-smear-toggle span {
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.micro-rbc {
    position: absolute;
    z-index: 1;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    transform: translate(-50%, -50%) translate3d(var(--shift-x, 0px), var(--shift-y, 0px), 0) scale(var(--hover-scale, 1));
    transition: transform 0.35s ease, box-shadow 0.3s ease, filter 0.3s ease;
    animation: microRbcFloat 7.5s ease-in-out infinite;
    animation-delay: var(--delay);
    background:
        radial-gradient(circle at 48% 46%, rgba(255,255,255,0.92) 0 15%, rgba(255,244,244,0.88) 16% 20%, rgba(248,232,234,0.8) 21% 29%, rgba(230,124,136,0.34) 30% 41%, rgba(214,79,95,0.9) 42% 71%, rgba(184,43,61,0.98) 72% 100%);
    box-shadow: inset 0 -8px 12px rgba(127, 22, 38, 0.16), inset 0 6px 10px rgba(255, 255, 255, 0.18), 0 12px 22px rgba(133, 31, 44, 0.12);
    will-change: transform;
}

.micro-rbc::before,
.micro-rbc::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.micro-rbc::before {
    inset: 18%;
    background: radial-gradient(circle at 50% 48%, rgba(255,255,255,0.82) 0 38%, rgba(255,255,255,0.3) 39% 54%, transparent 55% 100%);
}

.micro-rbc:hover,
.micro-lab-smear-stage.is-hovering .micro-rbc {
    box-shadow: inset 0 -8px 12px rgba(127, 22, 38, 0.18), inset 0 6px 10px rgba(255, 255, 255, 0.22), 0 18px 28px rgba(133, 31, 44, 0.16);
}

.micro-rbc:hover {
    --hover-scale: 1.06;
}

.micro-lab-smear-stage[data-diagnosis="ida"] .micro-rbc {
    filter: saturate(0.92) brightness(1.02);
}

.micro-lab-smear-stage[data-diagnosis="ida"] .micro-rbc:nth-child(3n) {
    width: calc(var(--size) * 0.82);
    height: calc(var(--size) * 0.82);
}

.micro-lab-smear-stage[data-diagnosis="ida"] .micro-rbc:nth-child(4n) {
    width: calc(var(--size) * 1.08);
    height: calc(var(--size) * 1.08);
}

.micro-lab-smear-stage[data-diagnosis="thal"] .micro-rbc {
    background:
        radial-gradient(circle at 50% 50%, rgba(182,35,57,0.92) 0 11%, rgba(255,247,247,0.88) 12% 25%, rgba(198,59,77,0.74) 26% 38%, rgba(255,241,242,0.42) 39% 52%, rgba(183,43,62,0.92) 53% 100%);
}

.micro-lab-smear-stage[data-diagnosis="thal"] .micro-rbc:nth-child(2n) {
    width: calc(var(--size) * 0.9);
    height: calc(var(--size) * 0.9);
}

.micro-lab-smear-stage[data-diagnosis="acd"] .micro-rbc {
    opacity: 0.9;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.76) 0 20%, rgba(255,255,255,0.3) 21% 32%, rgba(223,119,125,0.2) 33% 44%, rgba(205,97,107,0.64) 45% 72%, rgba(171,67,79,0.82) 73% 100%);
}

.micro-lab-smear-stage[data-diagnosis="lead"] .micro-rbc::after {
    inset: 18% 16%;
    background:
        radial-gradient(circle, rgba(54, 65, 83, 0.78) 0 1.4px, transparent 1.5px),
        radial-gradient(circle, rgba(54, 65, 83, 0.72) 0 1.2px, transparent 1.3px),
        radial-gradient(circle, rgba(54, 65, 83, 0.68) 0 1.1px, transparent 1.2px);
    background-size: 14px 14px, 12px 12px, 16px 16px;
    background-position: 0 0, 6px 2px, 3px 7px;
}

.micro-lab-smear-stage[data-diagnosis="sidero"] .micro-rbc {
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.8) 0 17%, rgba(255,255,255,0.24) 18% 30%, rgba(196,104,129,0.28) 31% 42%, rgba(171,76,189,0.5) 43% 58%, rgba(181,57,126,0.86) 59% 100%);
}

.micro-lab-smear-stage[data-diagnosis="sidero"] .micro-rbc:nth-child(3n)::before {
    inset: 8%;
    border: 2px dotted rgba(155, 84, 218, 0.34);
    background: none;
}

.micro-lab-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10,132,255,0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
}

.micro-lab-info h5 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.micro-lab-info-copy {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.micro-lab-labs {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.micro-lab-value {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.micro-lab-value.is-key {
    background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(236, 245, 255, 0.92));
    border-color: rgba(125, 166, 222, 0.2);
    box-shadow: 0 10px 22px rgba(10, 132, 255, 0.06);
}

.micro-lab-value.is-supporting {
    background: linear-gradient(180deg, rgba(247, 252, 245, 0.96), rgba(241, 250, 241, 0.92));
    border-color: rgba(114, 182, 135, 0.18);
}

.micro-lab-value.is-warning {
    background: linear-gradient(180deg, rgba(255, 251, 238, 0.96), rgba(255, 247, 228, 0.92));
    border-color: rgba(221, 181, 102, 0.2);
}

.micro-lab-value-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.micro-lab-value-output {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    font-weight: 760;
    letter-spacing: -0.03em;
}

.micro-lab-notes {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.micro-lab-note {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.micro-lab-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: -0.02em;
}

.micro-lab-note p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.micro-lab-note em {
    color: var(--text);
    font-style: normal;
    font-weight: 600;
}

@keyframes microRbcFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translate3d(var(--shift-x, 0px), var(--shift-y, 0px), 0) scale(var(--hover-scale, 1));
    }
    50% {
        transform: translate(-50%, -50%) translate3d(var(--shift-x, 0px), calc(var(--shift-y, 0px) + (var(--drift) * -1)), 0) scale(var(--hover-scale, 1));
    }
}

@media (max-width: 820px) {
    .ida-pattern-grid,
    .ida-cause-grid,
    .nbme-pearls-grid,
    .hep-diagram,
    .hep-captions,
    .ida-hep-explanation,
    .micro-lab-grid,
    .micro-lab-labs {
        grid-template-columns: 1fr;
    }
}
