.nc-depth {
    --depth-visible: 5;
    --depth-gap: clamp(8px, 1.2vw, 14px);
    --depth-card-size: 108px;
    --depth-logo-size: 88px;
    --depth-step: calc((100% + var(--depth-gap)) / var(--depth-visible));
    box-sizing: border-box;
    max-width: 1280px;
    margin: 12px auto 20px;
    padding-inline: 16px;
    color: #10253d;
    font-family: Inter, system-ui, sans-serif;
}

.nc-depth[data-size="sm"] { --depth-card-size: 86px; --depth-logo-size: 68px; }
.nc-depth[data-size="lg"] { --depth-card-size: 124px; --depth-logo-size: 108px; }

.nc-depth[data-preview-device] {
    margin: 10px auto 0;
    padding: 8px 12px 12px;
    border: 1px solid #ffffffcc;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffffa8, #d2e5fa40);
}
.nc-depth[data-preview-device="mobile"] { max-width: 390px; }
.nc-depth[data-style="plain"] { background: transparent; border-color: transparent; }

.nc-depth-viewport {
    max-width: calc(var(--depth-visible) * (var(--depth-card-size) + var(--depth-gap)) - var(--depth-gap));
    margin-inline: auto;
    padding-block: 8px 15px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
}

.nc-depth[data-ready] .nc-depth-viewport {
    overflow: hidden;
    overflow: clip;
    touch-action: pan-y;
}

.nc-depth-track { display: flex; gap: var(--depth-gap); }

.nc-depth-item {
    box-sizing: border-box;
    flex: 0 0 calc(var(--depth-step) - var(--depth-gap));
    min-width: 0;
    min-height: calc(var(--depth-logo-size) + 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;
}

.nc-depth-item img,
.nc-depth-initial {
    width: min(100%, var(--depth-logo-size));
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 14px;
}
.nc-depth-item [hidden] { display: none; }

.nc-depth-initial {
    display: grid;
    place-items: center;
    background: #fff9;
    color: #0060de;
    font-size: 22px;
}
.nc-depth-item img { filter: drop-shadow(0 7px 8px #184d7f23); }
.nc-depth-name {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
    font-size: clamp(12px, 2vw, 15px);
    font-weight: 650;
    line-height: 1.25;
}
.nc-depth[data-names="0"] .nc-depth-name { display: none; }
.nc-depth[data-names="0"] .nc-depth-item { min-height: calc(var(--depth-logo-size) + 14px); }

.nc-depth-controls:not([hidden]) {
    display: flex;
    gap: 6px;
    justify-content: center;
    font-size: 12px;
}
.nc-depth-controls button {
    min-width: 34px;
    min-height: 32px;
    padding: 4px 9px;
    border: 1px solid #c5d6e6;
    border-radius: 9px;
    background: #ffffff80;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.nc-depth-controls button:hover { background: #fff; }
.nc-depth :focus-visible { outline: 2px solid #0060de; outline-offset: -2px; }
.nc-depth-state {
    margin: 8px 0 0;
    color: #526b82;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.nc-depth[data-preview-device="mobile"] { --depth-logo-size: 72px; --depth-card-size: 90px; }
.nc-depth[data-preview-device="mobile"][data-size="sm"] { --depth-logo-size: 58px; --depth-card-size: 74px; }
.nc-depth[data-preview-device="mobile"][data-size="lg"] { --depth-logo-size: 86px; --depth-card-size: 104px; }

@media (max-width: 767px) {
    .nc-depth:not([data-preview-device]) {
        --depth-visible: 3;
        --depth-logo-size: 72px;
        --depth-card-size: 90px;
        margin-block: 8px 16px;
        padding-inline: 12px;
    }
    .nc-depth:not([data-preview-device])[data-size="sm"] { --depth-logo-size: 58px; --depth-card-size: 74px; }
    .nc-depth:not([data-preview-device])[data-size="lg"] { --depth-logo-size: 86px; --depth-card-size: 104px; }
}
