/* Kavach — Recon — 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 Recon scenes:
 *   .mhiw-rc — exploit-chain constellation
 *   .mhiw-rs — continuous surface scan (30-day timeline)
 */

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

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

.mhiw-rc__tier {
    position: absolute;
    left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.3);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

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

.mhiw-rc__node-label {
    position: absolute;
    width: 140px;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mhiw-rc__node-label-host {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #e8e2d6;
    margin-bottom: 2px;
}
.mhiw-rc__node-label-cve {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 2px;
    color: #d4af37;
}
.mhiw-rc__node-label-note {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 10px;
    color: rgba(232, 226, 214, 0.55);
    margin-top: 1px;
    font-style: italic;
}

.mhiw-rc__host-tag {
    position: absolute;
    width: 80px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    letter-spacing: 1px;
    color: rgba(232, 226, 214, 0.3);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mhiw-rc__caption {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.mhiw-rc__caption-lede {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    color: #e8e2d6;
    letter-spacing: -0.3px;
    max-width: 560px;
    font-weight: 400;
}
.mhiw-rc__caption-dim { color: rgba(232, 226, 214, 0.55); }
.mhiw-rc__caption-accent { color: #d4af37; }
.mhiw-rc__caption-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.55);
    text-align: right;
    line-height: 1.5;
}
.mhiw-rc__caption-meta-accent { color: #d4af37; }

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

.mhiw-rs__label {
    position: absolute;
    top: 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
}
.mhiw-rs__label--left  { left: 60px;  letter-spacing: 4px; color: rgba(212, 175, 55, 0.75); }
.mhiw-rs__label--right { right: 60px; letter-spacing: 2px; color: #d4af37; }
.mhiw-rs__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-rs-pulse 1.4s ease-in-out infinite;
}
@keyframes mhiw-rs-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.mhiw-rs__hops {
    position: absolute;
    top: 60px;
    left: 60px;
    right: 60px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.mhiw-rs__hops-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
}
.mhiw-rs__hops-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 6px;
}
.mhiw-rs__hops-num {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: 38px;
    letter-spacing: -1px;
    color: #d4af37;
    line-height: 1;
}
.mhiw-rs__hops-trend {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(232, 226, 214, 0.55);
    letter-spacing: 1.5px;
}

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

.mhiw-rs__stream-wrap {
    position: absolute;
    top: 300px;
    left: 60px;
    right: 60px;
    bottom: 80px;
    overflow: hidden;
}
.mhiw-rs__stream-head {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.55);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(232, 226, 214, 0.1);
    padding-bottom: 6px;
}
.mhiw-rs__row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(232, 226, 214, 0.04);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.mhiw-rs__row-day {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(232, 226, 214, 0.55);
    letter-spacing: 1px;
    width: 52px;
    flex-shrink: 0;
}
.mhiw-rs__row-glyph {
    font-size: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.mhiw-rs__row-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    width: 80px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.mhiw-rs__row-detail {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 15px;
    color: #e8e2d6;
    letter-spacing: -0.2px;
    flex: 1;
    font-weight: 400;
}
.mhiw-rs__row-sev {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: #e65149;
    border: 1px solid #e65149;
    padding: 2px 6px;
    flex-shrink: 0;
}
.mhiw-rs__row-new {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: #d4af37;
    flex-shrink: 0;
}

.mhiw-rs__row[data-type="cve"]    .mhiw-rs__row-glyph,
.mhiw-rs__row[data-type="cve"]    .mhiw-rs__row-type { color: #e65149; }
.mhiw-rs__row[data-type="chain"]  .mhiw-rs__row-glyph,
.mhiw-rs__row[data-type="chain"]  .mhiw-rs__row-type { color: #d4af37; }
.mhiw-rs__row[data-type="new"]    .mhiw-rs__row-glyph,
.mhiw-rs__row[data-type="new"]    .mhiw-rs__row-type { color: #e8e2d6; }
.mhiw-rs__row[data-type="removed"] .mhiw-rs__row-glyph,
.mhiw-rs__row[data-type="removed"] .mhiw-rs__row-type { color: rgba(232, 226, 214, 0.4); }
.mhiw-rs__row[data-type="scan"]   .mhiw-rs__row-glyph,
.mhiw-rs__row[data-type="scan"]   .mhiw-rs__row-type { color: rgba(232, 226, 214, 0.55); }

.mhiw-rs__caption {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.mhiw-rs__caption-lede {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    color: #e8e2d6;
    letter-spacing: -0.3px;
    max-width: 600px;
    font-weight: 400;
}
.mhiw-rs__caption-accent { color: #d4af37; }
.mhiw-rs__caption-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.55);
    text-align: right;
    line-height: 1.5;
}
.mhiw-rs__caption-meta-accent { color: #d4af37; }
