/* ==========================================================
   RAID PAGE — ANIMATED STATE VISUALIZER
   ========================================================== */

.aeson-core-service .aeson-raid-visualizer {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
    gap: 34px;
    margin: 30px 0 42px;
    padding: 32px;
    border: 1px solid #dbe4e8;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbfc 0%, #f4f8fa 100%);
}

.aeson-core-service .aeson-raid-visualizer-copy p:last-child {
    margin-bottom: 0;
}

.aeson-core-service .aeson-raid-visualizer-panel {
    min-width: 0;
    padding: 20px 22px 22px;
    border: 1px solid #dbe4e8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(29, 51, 62, 0.06);
}

.aeson-core-service .aeson-raid-visualizer-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.aeson-core-service .aeson-raid-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aeson-core-service .aeson-raid-type-tabs button {
    padding: 9px 14px;
    border: 1px solid #d6e1e6;
    border-radius: 999px;
    background: #f8fbfc;
    color: #3f4b54;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all .2s ease;
}

.aeson-core-service .aeson-raid-type-tabs button:hover,
.aeson-core-service .aeson-raid-type-tabs button.active {
    border-color: #2398be;
    background: #eaf6fa;
    color: #1f6e89;
}

.aeson-core-service .aeson-raid-state-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #66727a;
    font-size: 12px;
    line-height: 1.4;
}

.aeson-core-service .aeson-raid-state-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.aeson-core-service .aeson-raid-state-legend i {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #93a8b2;
}

.aeson-core-service .aeson-raid-state-legend i.healthy { background: #2a9cc2; }
.aeson-core-service .aeson-raid-state-legend i.degraded { background: #d0a83f; }
.aeson-core-service .aeson-raid-state-legend i.failed { background: #c96868; }
.aeson-core-service .aeson-raid-state-legend i.rebuild { background: #5d8ec6; }

.aeson-core-service .aeson-raid-state-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.aeson-core-service .aeson-raid-state-strip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2f6f8;
    color: #6b7881;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.aeson-core-service .aeson-raid-state-strip button.active {
    background: #20313c;
    color: #ffffff;
}

.aeson-core-service .aeson-raid-state-strip button:not(.active):hover {
    background: #e8f1f5;
    color: #263945;
    border-color: #c9dbe3;
}

.aeson-core-service .aeson-raid-state-strip button:focus-visible {
    outline: 2px solid #2a9cc2;
    outline-offset: 2px;
}

.aeson-core-service .aeson-raid-diagram-wrap {
    padding: 18px;
    border: 1px solid #e0e7eb;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(244, 249, 251, 0.95) 0%, rgba(255,255,255,0.98) 100%),
        repeating-linear-gradient(
            90deg,
            rgba(32, 49, 60, 0.02) 0,
            rgba(32, 49, 60, 0.02) 1px,
            transparent 1px,
            transparent 28px
        );
}

.aeson-core-service .aeson-raid-array-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.aeson-core-service .aeson-raid-array-heading strong {
    display: block;
    color: #25313b;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.aeson-core-service .aeson-raid-array-heading span {
    display: block;
    margin-top: 4px;
    color: #74808a;
    font-size: 13px;
    line-height: 1.45;
}

.aeson-core-service .aeson-raid-array-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf6fa;
    color: #1e6f8a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
}

.aeson-core-service .aeson-raid-array-status.degraded {
    background: #fbf4df;
    color: #8a6a15;
}

.aeson-core-service .aeson-raid-array-status.failed {
    background: #fae8e8;
    color: #934444;
}

.aeson-core-service .aeson-raid-array-status.rebuild {
    background: #e8eff9;
    color: #365d9a;
}

.aeson-core-service .aeson-raid-array-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.aeson-core-service .aeson-raid-drive {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 126px;
    padding: 14px 12px 12px;
    border: 1px solid #d7e1e6;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: inset 0 -3px 0 rgba(40, 156, 194, 0.08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.aeson-core-service .aeson-raid-drive::after {
    position: absolute;
    inset: auto 11px 11px auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2a9cc2;
    content: "";
    box-shadow: 0 0 0 5px rgba(42, 156, 194, 0.12);
}

.aeson-core-service .aeson-raid-drive.healthy {
    border-color: #cfe3ea;
}

.aeson-core-service .aeson-raid-drive.healthy:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(29, 51, 62, 0.08);
}

.aeson-core-service .aeson-raid-drive.degraded,
.aeson-core-service .aeson-raid-drive.failed,
.aeson-core-service .aeson-raid-drive.rebuild {
    animation: aeson-raid-pulse 1.7s ease-in-out infinite;
}

.aeson-core-service .aeson-raid-drive.degraded {
    border-color: #e6d29e;
    background: #fffdf7;
    box-shadow: inset 0 -3px 0 rgba(208, 168, 63, 0.15);
}

.aeson-core-service .aeson-raid-drive.degraded::after {
    background: #d0a83f;
    box-shadow: 0 0 0 5px rgba(208, 168, 63, 0.14);
}

.aeson-core-service .aeson-raid-drive.failed {
    border-color: #e4b8b8;
    background: #fff9f9;
    box-shadow: inset 0 -3px 0 rgba(201, 104, 104, 0.16);
}

.aeson-core-service .aeson-raid-drive.failed::after {
    background: #c96868;
    box-shadow: 0 0 0 5px rgba(201, 104, 104, 0.12);
}

.aeson-core-service .aeson-raid-drive.rebuild {
    border-color: #bed0ea;
    background: #f8fbff;
    box-shadow: inset 0 -3px 0 rgba(93, 142, 198, 0.16);
}

.aeson-core-service .aeson-raid-drive.rebuild::after {
    background: #5d8ec6;
    box-shadow: 0 0 0 5px rgba(93, 142, 198, 0.12);
}

.aeson-core-service .aeson-raid-drive-name {
    color: #61707b;
    font-size: 12px;
    line-height: 1.35;
}

.aeson-core-service .aeson-raid-drive-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 7px 8px;
    border-radius: 10px;
    background: #f1f6f8;
    color: #26323b;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .03em;
}

.aeson-core-service .aeson-raid-drive.failed .aeson-raid-drive-badge {
    background: #faeded;
    color: #934444;
}

.aeson-core-service .aeson-raid-drive.degraded .aeson-raid-drive-badge {
    background: #fcf3da;
    color: #8a6a15;
}

.aeson-core-service .aeson-raid-drive.rebuild .aeson-raid-drive-badge {
    background: #edf4ff;
    color: #365d9a;
}

.aeson-core-service .aeson-raid-drive-state {
    color: #74818b;
    font-size: 12px;
    line-height: 1.35;
}

.aeson-core-service .aeson-raid-array-note {
    margin-top: 3px;
    color: #49555f;
    font-size: 14px;
    line-height: 1.6;
}

.aeson-core-service .aeson-raid-array-caution {
    margin-top: 15px;
    padding: 12px 14px;
    border-left: 3px solid #2398be;
    background: #f4fafc;
    color: #54616a;
    font-size: 13px;
    line-height: 1.6;
}

.aeson-core-service .aeson-raid-array-caution strong {
    color: #25313b;
}

@keyframes aeson-raid-pulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08);
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(29, 51, 62, 0.08);
    }
}

@media only screen and (max-width: 991px) {
    .aeson-core-service .aeson-raid-visualizer {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

@media only screen and (max-width: 767px) {
    .aeson-core-service .aeson-raid-visualizer {
        gap: 22px;
        margin: 26px 0 34px;
        padding: 18px;
        border-radius: 14px;
    }

    .aeson-core-service .aeson-raid-visualizer-panel {
        padding: 16px;
        border-radius: 12px;
    }

    .aeson-core-service .aeson-raid-state-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aeson-core-service .aeson-raid-array-heading {
        flex-direction: column;
        align-items: start;
    }

    .aeson-core-service .aeson-raid-array-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aeson-core-service .aeson-raid-array-heading strong {
        font-size: 19px;
    }
}

/* ==========================================================
   RAID PAGE — "WHAT SHOULD YOU SEND US?" MEDIA FEATURE
   Make the bay-order image more prominent without changing
   the shared compact-feature treatment used on other pages.
   ========================================================== */

.aeson-core-service-raid .aeson-core-feature-compact {
    align-items: start;
}

.aeson-core-service-raid .aeson-core-feature-compact .aeson-special-feature-media {
    align-self: start;
    width: 100%;
}

.aeson-core-service-raid .aeson-core-feature-compact .aeson-special-feature-media img {
    width: 100%;
    height: 380px;
    min-height: 380px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.aeson-core-service-raid .aeson-core-feature-compact .aeson-special-feature-media figcaption {
    padding: 16px 20px 18px;
    line-height: 1.5;
}

@media only screen and (max-width: 991px) {
    .aeson-core-service-raid .aeson-core-feature-compact .aeson-special-feature-media img {
        height: 340px;
        min-height: 340px;
    }
}

@media only screen and (max-width: 767px) {
    .aeson-core-service-raid .aeson-core-feature-compact .aeson-special-feature-media img {
        height: 280px;
        min-height: 280px;
    }
}

/* ==========================================================
   OFFSCREEN INFOGRAPHIC PERFORMANCE
   Pause CSS keyframes when the RAID visualizer is not visible.
   ========================================================== */
.aeson-raid-visualizer.is-infographic-paused,
.aeson-raid-visualizer.is-infographic-paused *,
.aeson-raid-visualizer.is-infographic-paused::before,
.aeson-raid-visualizer.is-infographic-paused::after,
.aeson-raid-visualizer.is-infographic-paused *::before,
.aeson-raid-visualizer.is-infographic-paused *::after {
    animation-play-state: paused !important;
}
