/* ==========================================================
   SD / microSD SERVICE PAGE
   Page-specific styling for /sd-card-data-recovery/
   Uses the same Aesonlabs visual grammar as the SSD service page.
   ========================================================== */

.aeson-core-service-sd .aeson-sd-failure-card {
    position: relative;
    overflow: hidden;
}

.aeson-core-service-sd .aeson-sd-failure-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 11px;
}

.aeson-core-service-sd .aeson-sd-failure-heading .aeson-core-card-kicker {
    margin: 0;
}

.aeson-core-service-sd .aeson-sd-failure-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9dbe3;
    border-radius: 10px;
    background: linear-gradient(145deg, #f7fbfc, #edf5f8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.aeson-core-service-sd .aeson-sd-failure-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0;
    color: #277a9c;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.aeson-core-service-sd .aeson-sd-failure-icon svg * {
    vector-effect: non-scaling-stroke;
}

.aeson-core-service-sd .aeson-sd-failure-card h3 {
    margin-top: 0;
}

.aeson-core-service-sd .aeson-sd-failure-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, rgba(39,122,156,.045), transparent 70%);
    pointer-events: none;
}


/* ==========================================================
   INTERACTIVE RECOVERY PATH
   ========================================================== */

.aeson-core-service-sd .sd-path-matrix,
.aeson-core-service-sd .sd-path-matrix * {
    box-sizing: border-box;
}

.aeson-core-service-sd .sd-path-matrix {
    position: relative;
    margin: 50px 0 52px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid #d7e2e7;
    border-radius: 20px;
    background:
        radial-gradient(circle at 76% 15%, rgba(44, 137, 168, 0.085), transparent 24%),
        linear-gradient(rgba(47, 114, 136, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 114, 136, 0.032) 1px, transparent 1px),
        linear-gradient(180deg, #f9fbfc 0%, #f3f7f9 100%);
    background-size: auto, 28px 28px, 28px 28px, auto;
    box-shadow: 0 18px 44px rgba(28, 47, 59, 0.07);
}

.aeson-core-service-sd .sd-path-matrix::before,
.aeson-core-service-sd .sd-path-matrix::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(47, 114, 136, 0.11);
    border-radius: 50%;
}

.aeson-core-service-sd .sd-path-matrix::before {
    width: 360px;
    height: 360px;
    right: -180px;
    top: 88px;
}

.aeson-core-service-sd .sd-path-matrix::after {
    width: 220px;
    height: 220px;
    right: -110px;
    top: 158px;
}

.aeson-core-service-sd .sd-path-intro {
    position: relative;
    z-index: 2;
    max-width: 940px;
    margin-bottom: 24px;
}

.aeson-core-service-sd .sd-path-intro h2 {
    margin: 6px 0 14px;
    color: #30363d;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.22;
}

.aeson-core-service-sd .sd-path-intro p {
    max-width: 900px;
    margin: 0;
    color: #66717a;
    font-size: 16px;
    line-height: 1.72;
}

.aeson-core-service-sd .sd-path-shell {
    position: relative;
    z-index: 2;
}

.aeson-core-service-sd .sd-path-selector {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.aeson-core-service-sd .sd-path-profile {
    position: relative;
    min-width: 0;
    min-height: 88px;
    padding: 14px 15px 13px 16px;
    overflow: hidden;
    border: 1px solid #d4dfe4;
    border-radius: 10px;
    outline: 0;
    background: rgba(255,255,255,.9);
    color: #36444d;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(29, 51, 62, 0.035);
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.aeson-core-service-sd .sd-path-profile::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #b9c8ce;
    transition: background .18s ease;
}

.aeson-core-service-sd .sd-path-profile:hover,
.aeson-core-service-sd .sd-path-profile:focus-visible {
    transform: translateY(-1px);
    border-color: #97b7c4;
    background: #ffffff;
    box-shadow: 0 9px 20px rgba(29, 51, 62, 0.07);
}

.aeson-core-service-sd .sd-path-profile:focus-visible {
    box-shadow: 0 0 0 3px rgba(36, 155, 194, 0.14), 0 9px 20px rgba(29, 51, 62, 0.07);
}

.aeson-core-service-sd .sd-path-profile.is-active {
    border-color: #2f819d;
    background: #edf7fa;
    box-shadow: inset 0 0 0 1px rgba(47, 129, 157, 0.08), 0 9px 22px rgba(29, 87, 110, 0.08);
}

.aeson-core-service-sd .sd-path-profile.is-active::before {
    background: #249bc2;
}

.aeson-core-service-sd .sd-path-profile > span {
    display: block;
    margin-bottom: 5px;
    color: #2f819d;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .9px;
    text-transform: uppercase;
}

.aeson-core-service-sd .sd-path-profile strong {
    display: block;
    margin-bottom: 4px;
    color: #2d3942;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.32;
}

.aeson-core-service-sd .sd-path-profile small {
    display: block;
    color: #76818a;
    font-size: 11px;
    line-height: 1.35;
}

.aeson-core-service-sd .sd-path-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 16px;
    align-items: start;
}

.aeson-core-service-sd .sd-path-board,
.aeson-core-service-sd .sd-path-side {
    min-width: 0;
    border: 1px solid #cedce3;
    border-radius: 16px;
    background: rgba(255,255,255,.95);
}

.aeson-core-service-sd .sd-path-board {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background:
        radial-gradient(circle at 28% 24%, rgba(36,155,194,.08), transparent 25%),
        linear-gradient(rgba(42,96,116,.036) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42,96,116,.036) 1px, transparent 1px),
        #f9fbfc;
    background-size: auto, 22px 22px, 22px 22px, auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.aeson-core-service-sd .sd-path-board::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -132px;
    bottom: -132px;
    border: 1px solid rgba(47,114,136,.10);
    border-radius: 50%;
    box-shadow:
        0 0 0 26px rgba(47,114,136,.025),
        0 0 0 52px rgba(47,114,136,.018);
    pointer-events: none;
}

.aeson-core-service-sd .sd-path-board-head {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid #dce5e9;
}

.aeson-core-service-sd .sd-path-board-head span {
    display: block;
    margin-bottom: 4px;
    color: #728089;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.05px;
    text-transform: uppercase;
}

.aeson-core-service-sd .sd-path-board-head strong {
    display: block;
    color: #2f7288;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.aeson-core-service-sd .sd-path-board-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid #d4e0e5;
    border-radius: 999px;
    background: #f3f7f9;
    color: #536a76;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.aeson-core-service-sd .sd-path-map {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.aeson-core-service-sd .sd-path-map::before,
.aeson-core-service-sd .sd-path-map::after {
    content: "";
    position: absolute;
    z-index: 0;
    background: #b8ccd4;
    pointer-events: none;
}

.aeson-core-service-sd .sd-path-map::before {
    left: 50%;
    top: 18%;
    bottom: 18%;
    width: 1px;
}

.aeson-core-service-sd .sd-path-map::after {
    top: 50%;
    left: 18%;
    right: 18%;
    height: 1px;
}

.aeson-core-service-sd .sd-path-node {
    position: relative;
    z-index: 2;
    min-height: 132px;
    padding: 15px;
    border: 1px solid #cfdce2;
    border-radius: 11px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 18px rgba(27,48,61,.055);
    transition:
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.aeson-core-service-sd .sd-path-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    margin-bottom: 12px;
    border: 1px solid #c7d8df;
    border-radius: 50%;
    background: #f2f7f9;
    color: #2f819d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
}

.aeson-core-service-sd .sd-path-node strong {
    display: block;
    margin-bottom: 7px;
    color: #2d3941;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.aeson-core-service-sd .sd-path-node small {
    display: block;
    color: #758189;
    font-size: 11px;
    line-height: 1.5;
}

.aeson-core-service-sd .sd-path-board.is-tracing .sd-path-node {
    animation: sd-path-node-pulse .42s ease both;
}

.aeson-core-service-sd .sd-path-board.is-tracing .sd-path-node[data-step="2"] {
    animation-delay: .32s;
}

.aeson-core-service-sd .sd-path-board.is-tracing .sd-path-node[data-step="3"] {
    animation-delay: .64s;
}

.aeson-core-service-sd .sd-path-board.is-tracing .sd-path-node[data-step="4"] {
    animation-delay: .96s;
}

@keyframes sd-path-node-pulse {
    0% {
        transform: translateY(0);
        border-color: #cfdce2;
        box-shadow: 0 8px 18px rgba(27,48,61,.055);
    }
    45% {
        transform: translateY(-2px);
        border-color: #5aa2bb;
        background: #f2fafc;
        box-shadow: 0 10px 22px rgba(36,122,153,.12);
    }
    100% {
        transform: translateY(0);
        border-color: #cfdce2;
        box-shadow: 0 8px 18px rgba(27,48,61,.055);
    }
}

.aeson-core-service-sd .sd-path-side {
    align-self: start;
    padding: 22px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(29,51,62,.055);
}

.aeson-core-service-sd .sd-path-side-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.aeson-core-service-sd .sd-path-side-topline > span:first-child {
    color: #249bc2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.aeson-core-service-sd .sd-path-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border: 1px solid #d4e0e5;
    border-radius: 999px;
    background: #f3f7f9;
    color: #536a76;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.aeson-core-service-sd .sd-path-side h3 {
    margin: 0 0 11px;
    color: #2e3941;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.28;
}

.aeson-core-service-sd .sd-path-side > p {
    margin: 0 0 14px;
    color: #66717a;
    font-size: 14px;
    line-height: 1.65;
}

.aeson-core-service-sd .sd-path-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.aeson-core-service-sd .sd-path-status {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.aeson-core-service-sd .sd-path-status.is-blue {
    border-color: #b7d7e2;
    background: #edf7fa;
    color: #287b97;
}

.aeson-core-service-sd .sd-path-status.is-teal {
    border-color: #b9d8d6;
    background: #f0f8f7;
    color: #467b78;
}

.aeson-core-service-sd .sd-path-status.is-amber {
    border-color: #dfc898;
    background: #fbf7ee;
    color: #8d692d;
}

.aeson-core-service-sd .sd-path-status.is-slate {
    border-color: #cfd8dc;
    background: #f2f5f6;
    color: #5b6971;
}

.aeson-core-service-sd .sd-path-matrix.is-infographic-paused *,
.aeson-core-service-sd .sd-path-matrix.is-infographic-paused *::before,
.aeson-core-service-sd .sd-path-matrix.is-infographic-paused *::after {
    animation-play-state: paused !important;
}


/* ==========================================================
   MONOLITHIC FEATURE
   ========================================================== */

.aeson-core-service-sd .sd-monolithic-feature {
    display: block;
    margin: 44px 0;
    padding: 30px;
    border: 1px solid #d7e2e7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(28,47,59,.055);
}

.aeson-core-service-sd .sd-monolithic-copy {
    max-width: 100%;
}

.aeson-core-service-sd .sd-monolithic-copy h2 {
    margin: 6px 0 15px;
}

.aeson-core-service-sd .sd-monolithic-copy p {
    margin: 0 0 14px;
}

.aeson-core-service-sd .sd-monolithic-copy .aeson-core-inline-list {
    margin: 18px 0;
}

.aeson-core-service-sd .sd-monolithic-media {
    width: 100%;
    max-width: none;
    margin: 26px 0 0;
}

.aeson-core-service-sd .sd-monolithic-media img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 1px solid #d7e0e5;
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(28,47,59,.08);
}

.aeson-core-service-sd .sd-monolithic-media figcaption {
    margin-top: 9px;
    color: #7a858c;
    font-size: 11px;
    line-height: 1.45;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media only screen and (max-width: 980px) {
    .aeson-core-service-sd .sd-path-workbench {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 767px) {
    .aeson-core-service-sd .sd-path-matrix {
        margin: 42px 0 45px;
        padding: 18px;
        border-radius: 15px;
    }

    .aeson-core-service-sd .sd-path-matrix::before,
    .aeson-core-service-sd .sd-path-matrix::after {
        display: none;
    }

    .aeson-core-service-sd .sd-path-intro {
        margin-bottom: 20px;
    }

    .aeson-core-service-sd .sd-path-intro h2 {
        font-size: 25px;
    }

    .aeson-core-service-sd .sd-path-intro p {
        font-size: 15px;
        line-height: 1.65;
    }

    .aeson-core-service-sd .sd-path-selector {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 8px) / 2);
        grid-template-columns: none !important;
        gap: 8px;
        width: 100%;
        margin: 0 0 8px !important;
        padding: 0 0 4px !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .aeson-core-service-sd .sd-path-selector::-webkit-scrollbar {
        display: none;
    }

    .aeson-core-service-sd .sd-path-profile {
        width: 100%;
        min-width: 0;
        min-height: 84px;
        padding: 12px 12px 11px 14px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .aeson-core-service-sd .sd-path-profile > span {
        font-size: 8px;
        letter-spacing: .65px;
    }

    .aeson-core-service-sd .sd-path-profile strong {
        font-size: 11px;
    }

    .aeson-core-service-sd .sd-path-profile small {
        font-size: 9px;
        line-height: 1.35;
    }

    .aeson-core-service-sd .sd-path-board {
        padding: 14px;
    }

    .aeson-core-service-sd .sd-path-board-head {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .aeson-core-service-sd .sd-path-board-head strong {
        font-size: 11px;
    }

    .aeson-core-service-sd .sd-path-board-tag {
        min-height: 28px;
        padding: 6px 8px;
        font-size: 8px;
        white-space: normal;
    }

    .aeson-core-service-sd .sd-path-map {
        gap: 8px;
    }

    .aeson-core-service-sd .sd-path-node {
        min-height: 116px;
        padding: 11px 10px;
    }

    .aeson-core-service-sd .sd-path-step {
        min-width: 24px;
        min-height: 24px;
        margin-bottom: 8px;
        font-size: 8px;
    }

    .aeson-core-service-sd .sd-path-node strong {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .aeson-core-service-sd .sd-path-node small {
        font-size: 9px;
        line-height: 1.4;
    }

    .aeson-core-service-sd .sd-path-side {
        padding: 14px;
    }

    .aeson-core-service-sd .sd-path-side-topline {
        gap: 8px;
        margin-bottom: 8px;
    }

    .aeson-core-service-sd .sd-path-side-topline > span:first-child {
        font-size: 8px;
    }

    .aeson-core-service-sd .sd-path-badge {
        padding: 5px 7px;
        font-size: 7px;
    }

    .aeson-core-service-sd .sd-path-side h3 {
        margin-bottom: 8px;
        font-size: 19px;
    }

    .aeson-core-service-sd .sd-path-side > p {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.5;
    }

    .aeson-core-service-sd .sd-path-status {
        min-height: 24px;
        padding: 4px 6px;
        font-size: 7px;
        letter-spacing: .5px;
    }

    .aeson-core-service-sd .sd-monolithic-feature {
        gap: 20px;
        margin: 38px 0;
        padding: 20px;
        border-radius: 15px;
    }
}

@media only screen and (max-width: 620px) {
    .aeson-core-service-sd .aeson-sd-failure-heading {
        gap: 9px;
        margin-bottom: 9px;
    }

    .aeson-core-service-sd .aeson-sd-failure-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 9px;
    }

    .aeson-core-service-sd .aeson-sd-failure-icon svg {
        width: 21px;
        height: 21px;
    }
}

@media only screen and (max-width: 380px) {
    .aeson-core-service-sd .sd-path-node {
        min-height: 110px;
        padding: 10px 9px;
    }

    .aeson-core-service-sd .sd-path-node strong {
        font-size: 11px;
    }

    .aeson-core-service-sd .sd-path-node small {
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aeson-core-service-sd .sd-path-profile,
    .aeson-core-service-sd .sd-path-node {
        transition: none !important;
    }

    .aeson-core-service-sd .sd-path-board.is-tracing .sd-path-node {
        animation: none !important;
    }

    .aeson-core-service-sd .sd-path-selector {
        scroll-behavior: auto !important;
    }
}
