/* Risk of Ruin — builds on monte-carlo.css with ror-specific components */

/* Big result card */
.ror-result-card {
    margin-bottom: 24px;
}

.ror-result-inner {
    background: #fff;
    border-radius: 14px;
    padding: 28px 30px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: 5px solid var(--band-color, #6366f1);
    position: relative;
    overflow: hidden;
}

.ror-result-inner::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 220px;
    background: radial-gradient(circle at top right, var(--band-color, #6366f1) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}

.ror-result-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ror-band-pill {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.ror-result-label {
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.ror-result-value {
    font-size: 64px;
    line-height: 1;
    font-weight: 800;
    color: var(--band-color, #1a1a2e);
    margin: 6px 0 8px;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

.ror-result-pct {
    font-size: 32px;
    margin-left: 4px;
    font-weight: 700;
    opacity: 0.75;
}

.ror-result-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.ror-verdict {
    color: #333;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 14px 0 10px;
    padding: 14px 16px;
    background: #fafbff;
    border-radius: 8px;
    border-left: 3px solid var(--band-color, #6366f1);
}

.ror-verdict strong { color: #1a1a2e; }

.ror-safe-note {
    color: #333;
    font-size: 13.5px;
    margin: 10px 0 0;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.07);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.18);
    display: flex;
    align-items: center;
    gap: 10px;
}
.ror-safe-note i { color: #22c55e; font-size: 16px; flex-shrink: 0; }
.ror-safe-note strong { color: #15803d; font-weight: 700; }

@media (max-width: 600px) {
    .ror-result-value { font-size: 48px; letter-spacing: -1.5px; }
    .ror-result-pct { font-size: 26px; }
    .ror-result-inner { padding: 22px 20px; }
}

/* Heatmap */
.ror-heatmap-wrap {
    overflow-x: auto;
    margin: 0 -4px;
    padding: 0 4px 4px;
}

.ror-heatmap {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
    font-size: 13px;
    table-layout: fixed;
}

.ror-heatmap thead th {
    font-size: 11.5px;
    font-weight: 600;
    color: #555;
    text-align: center;
    padding: 6px 4px;
    background: transparent;
    border: none;
}

.ror-heatmap .ror-hm-corner {
    font-size: 10.5px;
    font-weight: 500;
    color: #888;
    text-align: center;
    padding: 2px 4px;
    line-height: 1.2;
    min-width: 72px;
}

.ror-heatmap tbody th {
    font-size: 11.5px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: right;
    padding: 6px 10px;
    background: #fafbff;
    border-radius: 6px;
}

.ror-heatmap .ror-hm-cell {
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    text-align: center;
    padding: 10px 2px;
    border-radius: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-variant-numeric: tabular-nums;
    transition: transform .12s;
    cursor: help;
}
.ror-heatmap .ror-hm-cell:hover {
    transform: scale(1.05);
}

.ror-heatmap .ror-hm-unit {
    font-size: 9.5px;
    opacity: 0.75;
    margin-left: 1px;
}

.ror-heatmap .ror-hm-current {
    box-shadow: 0 0 0 3px #1a1a2e, 0 0 0 5px rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    z-index: 2;
    position: relative;
}

@media (max-width: 680px) {
    .ror-heatmap { font-size: 11px; }
    .ror-heatmap .ror-hm-cell { font-size: 11px; padding: 8px 2px; }
    .ror-heatmap .ror-hm-corner { font-size: 9px; min-width: 60px; }
}

/* Legend */
.ror-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef0f7;
    font-size: 12px;
    color: #555;
    justify-content: center;
}

.ror-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ror-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
}
