/* Kavach — Compass — How it Works
 * Scene-specific styles. The editorial chrome (header, step layout, strip, hud,
 * mark) is inherited from kavach-mirror-how-it-works.css via the shared
 * .kavach-mhiw namespace. This file only adds the two Compass scenes:
 *   .mhiw-cp  — auto-map (finding → framework threads)
 *   .mhiw-cl  — live evidence ledger
 */

/* ========================================================================
 * Scene 1: Auto-map
 * ====================================================================== */
.mhiw-cp {
    position: absolute;
    inset: 0;
    font-family: 'Fraunces', Georgia, serif;
    color: #e8e2d6;
    background: #050505;
    overflow: hidden;
}

.mhiw-cp__label {
    position: absolute;
    top: 28px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 4px;
    font-weight: 500;
}
.mhiw-cp__label--left { left: 60px; color: rgba(212, 175, 55, 0.75); }
.mhiw-cp__label--right { right: 60px; color: rgba(232, 226, 214, 0.55); letter-spacing: 2px; }

.mhiw-cp__svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Finding card (left) */
.mhiw-cp__card {
    position: absolute;
    width: 260px;
    padding: 18px 20px;
    background: #0a0a0a;
    border: 1px solid #d4af37;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mhiw-cp__card-kind {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: #d4af37;
    margin-bottom: 10px;
}
.mhiw-cp__card-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    color: #e8e2d6;
    letter-spacing: -0.3px;
    line-height: 1.15;
    margin-bottom: 14px;
    font-weight: 400;
}
.mhiw-cp__card-chip {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
    border: 1px solid rgba(232, 226, 214, 0.2);
    padding: 3px 8px;
}

/* Framework list (right) */
.mhiw-cp__list {
    position: absolute;
    width: 320px;
}
.mhiw-cp__list-head {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.55);
    border-bottom: 1px solid rgba(232, 226, 214, 0.12);
    padding-bottom: 6px;
    margin-bottom: 4px;
}
.mhiw-cp__row {
    height: 40px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(232, 226, 214, 0.06);
    opacity: 0.3;
    transition: opacity 0.35s ease;
}
.mhiw-cp__row.is-mapped { opacity: 1; }
.mhiw-cp__row-main { flex: 1; }
.mhiw-cp__row-code {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 14px;
    color: rgba(232, 226, 214, 0.55);
    letter-spacing: -0.2px;
    line-height: 1.1;
    transition: color 0.35s ease;
}
.mhiw-cp__row.is-stamped .mhiw-cp__row-code { color: #e8e2d6; }
.mhiw-cp__row-flag {
    display: inline-block;
    width: 16px;
    height: 1px;
    background: #d4af37;
    vertical-align: middle;
    margin-right: 8px;
    opacity: 0.75;
}
.mhiw-cp__row-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 1px;
    color: rgba(232, 226, 214, 0.35);
    margin-top: 3px;
}
.mhiw-cp__row-stamp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: #d4af37;
    text-align: right;
    min-width: 72px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mhiw-cp__row.is-stamped .mhiw-cp__row-stamp { opacity: 1; }

/* Caption */
.mhiw-cp__caption {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.mhiw-cp__caption-lede {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    color: #e8e2d6;
    letter-spacing: -0.3px;
    font-weight: 400;
}
.mhiw-cp__caption-dim { color: rgba(232, 226, 214, 0.55); }
.mhiw-cp__caption-accent { color: #d4af37; }
.mhiw-cp__caption-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.55);
}

/* ========================================================================
 * Scene 2: Evidence Ledger
 * ====================================================================== */
.mhiw-cl {
    position: absolute;
    inset: 0;
    font-family: 'Fraunces', Georgia, serif;
    color: #e8e2d6;
    background: #050505;
    overflow: hidden;
}

.mhiw-cl__label {
    position: absolute;
    top: 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
}
.mhiw-cl__label--left { left: 60px; letter-spacing: 4px; color: rgba(212, 175, 55, 0.75); }
.mhiw-cl__label--right { right: 60px; letter-spacing: 2px; color: #d4af37; }
.mhiw-cl__label-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4af37;
    margin-right: 6px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
    animation: mhiw-cl-pulse 1.4s ease-in-out infinite;
}
@keyframes mhiw-cl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.mhiw-cl__header {
    position: absolute;
    top: 70px;
    left: 60px;
    right: 60px;
    display: grid;
    grid-template-columns: 72px 1fr 90px 100px 90px;
    gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
    border-bottom: 1px solid rgba(232, 226, 214, 0.15);
    padding-bottom: 6px;
}
.mhiw-cl__header > :last-child { text-align: right; }

.mhiw-cl__list {
    position: absolute;
    top: 100px;
    left: 60px;
    right: 60px;
    height: 380px;
    overflow: hidden;
}
.mhiw-cl__list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, #050505, transparent);
    pointer-events: none;
    z-index: 2;
}
.mhiw-cl__list::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, #050505, transparent);
    pointer-events: none;
    z-index: 2;
}

.mhiw-cl__row {
    position: absolute;
    left: 0;
    right: 0;
    height: 38px;
    display: grid;
    grid-template-columns: 72px 1fr 90px 100px 90px;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid rgba(232, 226, 214, 0.06);
    will-change: transform, opacity;
}
.mhiw-cl__row-time,
.mhiw-cl__row-fw,
.mhiw-cl__row-ctrl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(232, 226, 214, 0.55);
}
.mhiw-cl__row-fw { color: #e8e2d6; letter-spacing: 1.5px; }
.mhiw-cl__row-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}
.mhiw-cl__row-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mhiw-cl__row-dot[data-sev="CRIT"] { background: #e65149; }
.mhiw-cl__row-dot[data-sev="HIGH"] { background: #d4af37; }
.mhiw-cl__row-dot[data-sev="MED"] { background: rgba(232, 226, 214, 0.75); }
.mhiw-cl__row-dot[data-sev="LOW"] { background: rgba(232, 226, 214, 0.55); }
.mhiw-cl__row-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(232, 226, 214, 0.55);
    letter-spacing: 1px;
    flex-shrink: 0;
}
.mhiw-cl__row-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 15px;
    color: #e8e2d6;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}
.mhiw-cl__row-stamp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: #d4af37;
    text-align: right;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mhiw-cl__row.is-stamped .mhiw-cl__row-stamp { opacity: 1; }

/* Footer / counters */
.mhiw-cl__footer {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(232, 226, 214, 0.12);
    padding-top: 14px;
}
.mhiw-cl__caption {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    color: #e8e2d6;
    letter-spacing: -0.3px;
    font-weight: 400;
}
.mhiw-cl__caption-accent { color: #d4af37; }
.mhiw-cl__counters {
    display: flex;
    gap: 36px;
}
.mhiw-cl__counter-num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 4px;
}
.mhiw-cl__counter-num--accent { color: #d4af37; }
.mhiw-cl__counter-num--ivory { color: #e8e2d6; }
.mhiw-cl__counter-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
}

/* ========================================================================
 * Light-mode tune — the stages stay intentionally dark (editorial feel),
 * the chrome (header, strip) already flips via kavach-mirror-how-it-works.css.
 * Nothing extra needed here; both scenes operate on the dark stage.
 * ====================================================================== */
