.mi5-threat {
    --mi5-text: #0d2f49;
    --mi5-muted: #687b8a;
    --mi5-surface: #ffffff;
    box-sizing: border-box;
    width: 100%;
    background: var(--mi5-surface);
}

.mi5-threat *,
.mi5-threat *::before,
.mi5-threat *::after {
    box-sizing: border-box;
}

.mi5-threat__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.mi5-threat__visual,
.mi5-threat__content {
    min-width: 0;
}

.mi5-threat__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mi5-threat__gauge-wrap {
    width: 100%;
    max-width: 660px;
    margin-inline: auto;
}

.mi5-threat__gauge {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.mi5-threat__segment {
    stroke: #ffffff;
    stroke-width: 4;
    vector-effect: non-scaling-stroke;
    opacity: 0.91;
    transition: opacity 220ms ease, filter 220ms ease, stroke-width 220ms ease;
}

.mi5-threat__segment--low {
    fill: #70c2e8;
}

.mi5-threat__segment--moderate {
    fill: #5ca6cb;
}

.mi5-threat__segment--substantial {
    fill: #477f9f;
}

.mi5-threat__segment--severe {
    fill: #315a78;
}

.mi5-threat__segment--critical {
    fill: #1d3d58;
}

.mi5-threat__segment.is-active {
    opacity: 1;
    stroke-width: 6;
    filter: drop-shadow(0 7px 10px rgba(13, 47, 73, 0.24));
}

.mi5-threat__segment-label {
    pointer-events: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    fill: #ffffff;
}

.mi5-threat__segment-label--low,
.mi5-threat__segment-label--moderate {
    fill: #0b3550;
}

.mi5-threat__needle {
    transform-box: view-box;
    transform-origin: 180px 180px;
    transform: rotate(var(--mi5-needle-angle, 0deg));
    transition: transform 800ms cubic-bezier(0.2, 0.75, 0.2, 1), opacity 220ms ease;
}

.mi5-threat__needle-shape,
.mi5-threat__pivot {
    fill: #111111;
}

.mi5-threat.is-unavailable .mi5-threat__needle {
    opacity: 0;
}

.mi5-threat.is-unavailable .mi5-threat__segment {
    opacity: 0.5;
    filter: none;
}

.mi5-threat__meanings {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 14px;
}

.mi5-threat__meaning {
    min-width: 0;
    color: var(--mi5-muted);
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
}

.mi5-threat__meaning strong,
.mi5-threat__meaning span {
    display: block;
}

.mi5-threat__meaning strong {
    margin-bottom: 3px;
    color: var(--mi5-text);
    font-size: 10px;
    letter-spacing: 0.035em;
}

.mi5-threat__content {
    max-width: 520px;
}

.mi5-threat__eyebrow {
    margin: 0 0 9px;
    color: #1c648d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mi5-threat__heading {
    margin: 0 0 22px;
    color: var(--mi5-text);
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 700;
    line-height: 1.08;
}

.mi5-threat__current {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 14px;
}

.mi5-threat__current-label {
    color: var(--mi5-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.mi5-threat__current-value {
    display: block;
    overflow-wrap: anywhere;
    color: #173f5c;
    font-size: clamp(34px, 4.4vw, 64px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.025em;
}

.mi5-threat__dynamic-description,
.mi5-threat__supporting,
.mi5-threat__attribution {
    margin: 0;
}

.mi5-threat__dynamic-description {
    margin-bottom: 11px;
    color: #43596b;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.45;
}

.mi5-threat__supporting {
    margin-bottom: 12px;
    color: #43596b;
    font-size: 15px;
    line-height: 1.65;
}

.mi5-threat__attribution {
    margin-bottom: 24px;
    color: var(--mi5-muted);
    font-size: 13px;
    line-height: 1.55;
}

.mi5-threat__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #173f5c;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.mi5-threat__button:hover,
.mi5-threat__button:focus {
    background: #245f85;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.mi5-threat__button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.mi5-threat__button-icon {
    font-size: 1.1em;
    line-height: 1;
}

@media (max-width: 900px) {
    .mi5-threat__grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    }

    .mi5-threat__segment-label {
        font-size: 11px;
    }

    .mi5-threat__meanings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .mi5-threat__grid {
        grid-template-columns: 1fr;
        row-gap: 34px;
    }

    .mi5-threat__content {
        max-width: none;
        text-align: left;
    }

    .mi5-threat__gauge-wrap {
        max-width: 560px;
    }

    .mi5-threat__meanings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    .mi5-threat__segment-label {
        font-size: 10px;
        letter-spacing: 0;
    }

    .mi5-threat__meanings {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .mi5-threat__meaning {
        text-align: left;
    }

    .mi5-threat__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mi5-threat__needle,
    .mi5-threat__segment,
    .mi5-threat__button {
        transition: none !important;
    }

    .mi5-threat__button:hover,
    .mi5-threat__button:focus {
        transform: none;
    }
}
