/* Night Jump: the shop's look (design direction A). Dark only; colours come from NightJumpTheme.cs and are repeated
   here as variables for the parts MudBlazor doesn't style. */
.nj {
    --nj-ink: #0a1019;
    --nj-ink2: #121b28;
    --nj-text: #eef3f7;
    --nj-dim: #8d9bab;
    --nj-teal: #18b4c4;
    --nj-signal: #ff5a1f;
    --nj-edge: #223043;
    /* Soft light from above, as on the Palette Lab stage. */
    --nj-lit: linear-gradient(#1d2735 0%, #141b25 55%, #0c1118 100%);
    --nj-seam: #1c2734;
    --nj-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    --fr-accent: var(--nj-teal);
    --fr-line: var(--nj-edge);
    background: var(--nj-ink);
    color: var(--nj-text);
    font-family: "Barlow", Helvetica, Arial, sans-serif;
    font-size: 15px;
}

.nj h1, .nj h2, .nj h3, .nj h4,
.nj .mud-typography-h1, .nj .mud-typography-h2, .nj .mud-typography-h3 {
    font-family: var(--nj-display);
    text-transform: uppercase;
}

.nj .mud-typography-h1, .nj .mud-typography-h2, .nj .mud-typography-h3 {
    font-style: italic;
}

.nj a {
    color: var(--nj-teal);
}

.nj .mud-button-root {
    border-radius: 0;
}

/* Main actions: signal orange with slanted ends, as in the mockup. */
.nj .mud-button-filled {
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    padding-inline: 22px;
    box-shadow: none;
}

.nj .mud-card, .nj .mud-paper-outlined {
    border-color: var(--nj-edge);
}

.nj-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    /* Nearly opaque and no backdrop blur: blurring what scrolls under the header on every frame stutters on phones. */
    background: rgba(10, 16, 25, .97);
    border-bottom: 1px solid var(--nj-seam);
}

.nj-nav-inner {
    display: flex !important;
    align-items: center;
    gap: 18px;
    height: 60px;
    font-family: var(--nj-display);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .08em;
    font-size: 14px;
}

/* The currency and language pickers are MudSelects, which are inputs underneath: no text caret or text cursor. */
.nj-nav .mud-select input {
    caret-color: transparent;
    cursor: pointer;
}

.nj-nav-inner > a:first-child {
    display: flex;
}

.nj .nj-design {
    color: #fff;
    background: var(--nj-signal);
    padding: 6px 14px;
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

.nj-design small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    background: #fff;
    color: var(--nj-signal);
    padding: 0 4px;
}

.nj-sp {
    flex: 1;
}

.nj .nj-cart {
    color: var(--nj-text);
    border: 1px solid rgba(255, 255, 255, .4);
    padding: 6px 12px;
    white-space: nowrap;
    text-decoration: none;
}

.nj-footer {
    border-top: 1px solid var(--nj-seam);
    color: var(--nj-dim);
    margin-top: 24px;
}

.nj-footer .mud-typography-h6 {
    font-size: 16px;
    color: var(--nj-text);
}

/* Section headings, steps band and product cards on the home page. */
.nj-eyebrow {
    font-family: var(--nj-display);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 13px;
    color: var(--nj-dim);
}

.nj-sec-h {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 44px 0 18px;
}

.nj-sec-h h2 {
    font-family: var(--nj-display);
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    margin: 0;
}

.nj-claim {
    font-family: var(--nj-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(40px, 6vw, 72px);
    line-height: .9;
    margin: 40px 0 0;
}

.nj-claim em {
    color: var(--nj-signal);
}

/* Claim over a muted, darkened clip of flying. */
.nj-reel {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: clamp(240px, 30vw, 400px);
    margin-top: 36px;
    overflow: hidden;
    border: 1px solid var(--nj-edge);
    background: var(--nj-ink2);
}

.nj-reel video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nj-reel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 16, 25, .88) 0%, rgba(10, 16, 25, .55) 55%, rgba(10, 16, 25, .2) 100%),
        linear-gradient(0deg, rgba(10, 16, 25, .7) 0%, rgba(10, 16, 25, 0) 60%);
}

.nj-reel .nj-claim {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 clamp(18px, 4vw, 48px) clamp(20px, 3.5vw, 40px);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.nj-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-block: 1px solid #1f2a38;
    margin-top: 28px;
}

.nj-steps > div {
    padding: 18px 24px;
    display: flex;
    gap: 14px;
    align-items: center;
    border-right: 1px solid #1f2a38;
}

.nj-steps > div:last-child {
    border-right: 0;
}

.nj-steps .n {
    font-family: var(--nj-display);
    font-weight: 800;
    font-style: italic;
    font-size: 40px;
    line-height: 1;
    color: var(--nj-signal);
}

.nj-steps b {
    display: block;
    font-family: var(--nj-display);
    text-transform: uppercase;
    font-size: 19px;
    letter-spacing: .04em;
}

.nj-steps small {
    color: var(--nj-dim);
    font-size: 13.5px;
}

.nj-steps .ph {
    flex: none;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 2px;
}

.nj-steps .ph.suit {
    object-fit: contain;
    padding: 4px;
    background: var(--nj-lit);
}

/* Sideways strip of flying photos, with arrows for mice. */
.nj-air {
    position: relative;
}

.nj-air-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.nj-air-strip::-webkit-scrollbar {
    display: none;
}

.nj-air-strip img {
    flex: none;
    height: 320px;
    width: auto;
    object-fit: cover;
    border-radius: 2px;
    scroll-snap-align: start;
}

.nj-air-arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid var(--nj-edge);
    border-radius: 50%;
    background: rgba(10, 16, 25, .78);
    color: var(--nj-text);
    cursor: pointer;
    transition: opacity .2s;
}

.nj-air-arrow:first-child {
    left: 10px;
}

.nj-air-arrow:last-child {
    right: 10px;
}

.nj-air-arrow:hover:not(:disabled) {
    border-color: var(--nj-teal);
    color: var(--nj-teal);
}

.nj-air-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.nj-apparel-photo {
    display: block;
    width: 100%;
    height: clamp(180px, 26vw, 340px);
    object-fit: cover;
    object-position: center 30%;
    margin-bottom: 14px;
    border-radius: 2px;
}

@media (max-width: 600px) {
    .nj-air-strip img {
        height: 240px;
    }

    .nj-air-arrow {
        display: none;
    }
}

.nj-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nj .nj-card {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 18px 16px 16px;
    background: var(--nj-lit);
    color: var(--nj-text);
    text-decoration: none;
    min-width: 0;
}

.nj-card:hover {
    box-shadow: inset 0 0 0 1px var(--nj-edge);
}

.nj-card .img {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nj-card img {
    max-height: 100%;
    max-width: 90%;
    object-fit: contain;
    /* The same shadow the 3D suit casts on its stage: down and to the right, soft. */
    filter: drop-shadow(10px 14px 14px rgba(0, 0, 0, .7));
}

.nj-card .t3d {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: var(--nj-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .08em;
    border: 1px solid var(--nj-signal);
    color: var(--nj-signal);
    padding: 1px 6px;
}

.nj-card h3 {
    margin: 6px 0 0;
    font-family: var(--nj-display);
    font-weight: 700;
    font-style: normal;
    font-size: 24px;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
}

.nj-card .row {
    display: flex;
    justify-content: space-between;
    color: var(--nj-dim);
    font-size: 14px;
}

.nj-card .row b {
    color: var(--nj-text);
    font-weight: 600;
}

.nj-card .design {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #1f2a38;
    font-family: var(--nj-display);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    font-size: 14px;
    color: var(--nj-signal);
}

/* Cart: one row per item. */
.nj-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 12px 8px 12px 12px;
    background: linear-gradient(180deg, var(--nj-ink2), #0d151f);
}

.nj-cart-img {
    width: 88px;
    height: 88px;
    flex: none;
}

.nj-cart-info {
    flex: 1;
    min-width: 0;
}

.nj-cart-info h3 {
    margin: 0;
    font-family: var(--nj-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .02em;
    line-height: 1.15;
}

.nj-cart-for {
    color: var(--nj-dim);
    font-size: 13px;
    margin-top: 2px;
}

.nj-cart-price {
    white-space: nowrap;
    font-weight: 600;
}

@media (max-width: 960px) {
    .nj-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nj-steps {
        grid-template-columns: 1fr;
    }

    .nj-steps > div {
        border-right: 0;
        border-bottom: 1px solid #1f2a38;
    }
}

.nj-short {
    display: none;
}

/* Narrow phones, or a phone with the page zoomed in: the header keeps the cart in view by shortening "Design 3D" to
   "3D", and then dropping it (the logo leads to the same page). */
@media (max-width: 380px) {
    .nj .nj-design .nj-short {
        display: none;
    }
}

@media (max-width: 340px) {
    .nj .nj-design {
        display: none;
    }

    .nj .nj-nav-inner > a:first-child img {
        height: 18px;
    }
}

@media (max-width: 600px) {
    .nj-nav-inner {
        gap: 6px;
        padding-inline: 12px !important;
    }

    .nj-nav-inner > a:first-child img {
        height: 22px;
    }

    .nj .nj-design {
        font-size: 13px;
        padding: 5px 10px;
    }

    .nj-long {
        display: none;
    }

    .nj-short {
        display: inline;
    }

    .nj .nj-cart {
        padding: 4px 8px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .nj-nav-inner > div {
        flex: none;
    }

    .nj-nav-inner .mr-2 {
        margin-right: 0 !important;
    }

    .nj-grid {
        gap: 8px;
    }

    .nj-card .img {
        height: 170px;
    }

    /* Two cards side by side leave ~170px each: smaller names, price under "Made to measure". */
    .nj .nj-card {
        padding: 14px 12px 12px;
    }

    .nj-card h3 {
        font-size: 19px;
        line-height: 1.15;
    }

    .nj-card .row {
        flex-direction: column;
        gap: 2px;
        font-size: 13px;
    }

    .nj-card .row b {
        white-space: nowrap;
    }

    .nj-card .design {
        font-size: 12.5px;
        letter-spacing: .06em;
    }

    .nj-cart-img {
        width: 64px;
        height: 64px;
    }

    .nj-cart-info h3 {
        font-size: 17px;
    }
}
