/* ZAD journey — clean station cards + grounded connectors (no flying arrows) */

.help-slide-flow--drama {
    margin-top: 0.55rem;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.help-slide-flow--drama > .help-slide-section-label,
.help-slide-flow--drama > .help-slide-flow-lead {
    display: none !important;
}

.zj {
    --zj: #0284c7;
    border-radius: 24px;
    overflow: hidden;
    color: var(--hd-text, var(--text));
    border: 1px solid color-mix(in srgb, var(--hd-accent, var(--accent)) 22%, transparent);
    background:
        radial-gradient(120% 80% at 100% -10%, color-mix(in srgb, #38bdf8 18%, transparent), transparent 45%),
        radial-gradient(90% 70% at -5% 110%, color-mix(in srgb, var(--hd-accent, var(--accent)) 16%, transparent), transparent 50%),
        linear-gradient(165deg,
            color-mix(in srgb, var(--hd-soft, #eaf6ff) 92%, #fff),
            var(--hd-card, var(--card, #fff)) 42%,
            color-mix(in srgb, #f8fafc 80%, var(--hd-card, #fff)));
    box-shadow:
        0 20px 44px color-mix(in srgb, var(--hd-accent, var(--accent)) 12%, transparent),
        inset 0 1px 0 color-mix(in srgb, #fff 60%, transparent);
}

.zj-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.95rem 1.1rem 0.75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--hd-accent, var(--accent)) 12%, transparent);
    background: linear-gradient(90deg, color-mix(in srgb, var(--hd-accent, var(--accent)) 10%, transparent), transparent 60%);
}

.zj-brand {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    min-width: 0;
}

.zj-logo {
    flex-shrink: 0;
    min-width: 3rem;
    height: 2rem;
    padding: 0 0.55rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, var(--hd-accent, var(--accent)), #0f172a);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--hd-accent, var(--accent)) 35%, transparent);
}

.zj-titles strong {
    display: block;
    font-size: 1rem;
    font-weight: 820;
}

.zj-titles p {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--hd-muted, var(--text-muted));
}

.zj-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.zj-pill {
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 780;
    border: 1px solid transparent;
}

.zj-pill--org {
    color: #0369a1;
    background: color-mix(in srgb, #0ea5e9 14%, transparent);
    border-color: color-mix(in srgb, #0ea5e9 30%, transparent);
}

.zj-pill--sup {
    color: #b45309;
    background: color-mix(in srgb, #f59e0b 16%, transparent);
    border-color: color-mix(in srgb, #f59e0b 32%, transparent);
}

.zj-steps {
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 860;
    font-size: 0.82rem;
    color: #fff;
    background: linear-gradient(135deg, var(--hd-accent, var(--accent)), color-mix(in srgb, var(--hd-accent, var(--accent)) 40%, #0f172a));
}

.zj-viewport {
    position: relative;
    padding: 1.25rem 0.85rem 1.35rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.zj-highway {
    position: relative;
    min-width: max-content;
    margin-inline: auto;
    padding: 0.2rem 0.35rem 0.4rem;
}

.zj-stations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.zj-station {
    position: relative;
    display: flex;
    align-items: center;
    animation: zjIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--d, 0s);
}

@keyframes zjIn {
    from { opacity: 0; transform: translateY(14px) scale(0.94); }
    to { opacity: 1; transform: none; }
}

.zj-card {
    position: relative;
    z-index: 2;
    width: 8.5rem;
    min-height: 10rem;
    padding: 1.4rem 0.55rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.28rem;
    border-radius: 22px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--zj) 12%, var(--hd-card, #fff)), var(--hd-card, var(--card, #fff)) 36%);
    border: 1px solid color-mix(in srgb, var(--zj) 32%, transparent);
    box-shadow:
        0 5px 0 color-mix(in srgb, var(--zj) 25%, transparent),
        0 16px 28px color-mix(in srgb, var(--zj) 14%, transparent);
    transition: transform 0.22s ease, box-shadow 0.22s;
    overflow: hidden;
}

.zj-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--zj), color-mix(in srgb, var(--zj) 50%, #fff));
}

.zj-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 7px 0 color-mix(in srgb, var(--zj) 30%, transparent),
        0 22px 34px color-mix(in srgb, var(--zj) 22%, transparent);
}

.zj-num {
    position: absolute;
    top: 0.55rem;
    inset-inline-start: 0.5rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.76rem;
    font-weight: 900;
    color: #fff;
    background: var(--zj);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--zj) 45%, transparent);
    z-index: 2;
}

.zj-hex {
    position: relative;
    width: 4.1rem;
    height: 4.1rem;
    margin: 0.1rem 0 0.15rem;
    display: grid;
    place-items: center;
}

.zj-hex-glow {
    position: absolute;
    inset: 0;
    background: var(--zj);
    opacity: 0.2;
    filter: blur(10px);
    border-radius: 50%;
    animation: zjGlow 2.6s ease-in-out infinite;
}

@keyframes zjGlow {
    0%, 100% { transform: scale(0.92); opacity: 0.16; }
    50% { transform: scale(1.12); opacity: 0.32; }
}

.zj-hex-core {
    position: relative;
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    color: var(--zj);
    background: linear-gradient(145deg, var(--zj), color-mix(in srgb, var(--zj) 45%, #0f172a));
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    box-shadow: 0 10px 18px color-mix(in srgb, var(--zj) 40%, transparent);
    animation: zjBob 2.6s ease-in-out infinite;
}

.zj-hex-core svg {
    width: 32px;
    height: 32px;
    display: block;
}

@keyframes zjBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.zj-label {
    font-size: 0.82rem;
    font-weight: 820;
    line-height: 1.35;
    max-width: 7.8rem;
    color: var(--hd-text, var(--text));
}

.zj-hint {
    font-size: 0.67rem;
    line-height: 1.4;
    color: var(--hd-muted, var(--text-muted));
    max-width: 7.6rem;
}

.zj-flag {
    margin-top: 0.15rem;
    padding: 0.12rem 0.48rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #059669, #0d9488);
}

.zj-flag--end {
    background: linear-gradient(135deg, #db2777, #ea580c);
}

/* Grounded connector between stations — aligned mid-height, not flying */
.zj-conn {
    position: relative;
    z-index: 1;
    width: 2.75rem;
    height: 1.35rem;
    flex: 0 0 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-top: -0.35rem;
}

.zj-conn-line {
    position: absolute;
    inset-inline: 0;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--zj) 70%, #fff),
        var(--zj),
        color-mix(in srgb, var(--zj) 55%, #7c3aed));
    box-shadow: 0 2px 0 color-mix(in srgb, var(--zj) 35%, #000);
    opacity: 0.95;
}

.zj-conn-dots {
    position: absolute;
    inset-inline: 0.2rem;
    height: 0;
    border-top: 2px dotted rgba(255, 255, 255, 0.9);
    animation: zjDots 1.2s linear infinite;
    z-index: 1;
}

@keyframes zjDots {
    to { transform: translateX(8px); }
}

.zj-conn-chevrons {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 3px;
    align-items: center;
    animation: zjChev 1.4s ease-in-out infinite;
}

.zj-conn-chevrons i {
    display: block;
    width: 0;
    height: 0;
    border-block: 4px solid transparent;
    border-inline-start: 6px solid #fff;
    opacity: 0.35;
    filter: drop-shadow(0 0 1px color-mix(in srgb, var(--zj) 60%, #000));
}

.zj-conn-chevrons i:nth-child(2) { opacity: 0.65; }
.zj-conn-chevrons i:nth-child(3) { opacity: 1; }

@keyframes zjChev {
    0%, 100% { transform: translateX(-2px); opacity: 0.75; }
    50% { transform: translateX(3px); opacity: 1; }
}

.zj-t1 { --zj: #0284c7; }
.zj-t2 { --zj: #ea580c; }
.zj-t3 { --zj: #059669; }
.zj-t4 { --zj: #7c3aed; }
.zj-t5 { --zj: #db2777; }
.zj-t6 { --zj: #ca8a04; }

.zj-station.is-on .zj-card {
    transform: translateY(-8px) scale(1.04);
    border-color: var(--zj);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--zj) 22%, transparent),
        0 8px 0 color-mix(in srgb, var(--zj) 28%, transparent),
        0 24px 38px color-mix(in srgb, var(--zj) 26%, transparent);
}

.zj-station.is-done .zj-card { opacity: 0.8; }
.zj-station.is-done .zj-num { background: #16a34a; }
.zj-station.is-done .zj-conn-line {
    background: linear-gradient(90deg, #16a34a, color-mix(in srgb, #16a34a 60%, var(--zj)));
}

/* compact */
.zj--sm .zj-head { padding: 0.55rem 0.7rem 0.4rem; }
.zj--sm .zj-titles p,
.zj--sm .zj-pill { display: none; }
.zj--sm .zj-viewport { padding: 0.8rem 0.45rem 0.9rem; }
.zj--sm .zj-card {
    width: 6.2rem;
    min-height: 6.9rem;
    padding: 1.1rem 0.3rem 0.55rem;
    border-radius: 16px;
}
.zj--sm .zj-hex { width: 3rem; height: 3rem; }
.zj--sm .zj-hex-core { width: 2.45rem; height: 2.45rem; }
.zj--sm .zj-hex-core svg { width: 22px; height: 22px; }
.zj--sm .zj-label { font-size: 0.66rem; max-width: 5.7rem; }
.zj--sm .zj-hint,
.zj--sm .zj-flag { display: none; }
.zj--sm .zj-conn { width: 1.6rem; flex-basis: 1.6rem; height: 1rem; }
.zj--sm .zj-conn-line { height: 6px; }
.zj--sm .zj-conn-chevrons i {
    border-block-width: 3px;
    border-inline-start-width: 4px;
}

.help-step-mini-flow { margin-bottom: 0.55rem; }

@media (max-width: 720px) {
    .zj-card { width: 7.3rem; min-height: 9.2rem; }
    .zj-conn { width: 1.8rem; flex-basis: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .zj-station,
    .zj-hex-core,
    .zj-hex-glow,
    .zj-conn-dots,
    .zj-conn-chevrons {
        animation: none !important;
    }
}
