:root {
    --st-bg: #eeeeec;
    --st-text: #121212;
    --st-muted: #777771;
    --st-red: #BC002D;
    --st-border: rgba(18,18,18,.22);
}

body.st-upcoming-page {
    margin: 0;
    background: var(--st-bg);
    color: var(--st-text);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}
.st-page { min-height: 100vh; }
.st-page a { color: inherit; text-decoration: none; }

.st-page-header {
    position: relative;
    height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 26px 3.2vw 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .055em;
}
.st-wordmark {
    font-size: 13px;
    letter-spacing: .02em;
}
.st-page-nav {
    display: flex;
    align-items: center;
    gap: clamp(26px, 3.1vw, 62px);
}
.st-page-nav a { transition: opacity .2s ease; }
.st-page-nav a:hover { opacity: .45; }
.st-page-nav .is-current { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.st-page-register {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.st-page-register i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--st-red);
    display: block;
}

.st-upcoming-hero {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: minmax(340px, .92fr) minmax(480px, 1.35fr);
    gap: 5.5vw;
    align-items: center;
    padding: 3.5vh 8vw 8vh 9.5vw;
}
.st-upcoming-copy { max-width: 620px; min-width: 0; }
.st-kicker {
    font-size: 10px;
    letter-spacing: .13em;
    color: var(--st-muted);
    margin-bottom: 26px;
}
.st-upcoming-copy h1 {
    margin: 0 0 58px;
    max-width: 620px;
    font-size: clamp(38px, 3.45vw, 62px);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -.045em;
    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: normal;
}
.st-upcoming-copy h1.is-long {
    font-size: clamp(36px, 3.05vw, 55px);
    line-height: 1.03;
    letter-spacing: -.042em;
}
.st-auction-meta-primary {
    display: grid;
    gap: 9px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--st-border);
}
.st-auction-meta-primary span,
.st-auction-meta-grid span {
    font-size: 9px;
    letter-spacing: .12em;
    color: var(--st-muted);
}
.st-auction-meta-primary strong {
    font-size: 14px;
    letter-spacing: .015em;
    font-weight: 500;
}
.st-auction-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--st-border);
}
.st-auction-meta-grid > div {
    display: grid;
    gap: 9px;
    padding: 19px 18px 20px 0;
    min-height: 72px;
}
.st-auction-meta-grid > div:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid var(--st-border);
}
.st-auction-meta-grid strong {
    font-size: 11px;
    letter-spacing: .04em;
    font-weight: 600;
}
.st-upcoming-description {
    margin-top: 28px;
    max-width: 480px;
    font-size: 13px;
    line-height: 1.7;
}
.st-upcoming-description p { margin: 0 0 1em; }
.st-upcoming-actions {
    margin-top: 35px;
    display: flex;
    gap: 26px;
    align-items: center;
}
.st-primary-action,
.st-secondary-action {
    font-size: 10px;
    letter-spacing: .075em;
    font-weight: 600;
}
.st-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 195px;
    padding: 15px 0;
    border-top: 1px solid var(--st-text);
    border-bottom: 1px solid var(--st-text);
}
.st-primary-action::before {
    content:"";
    width: 6px;height:6px;border-radius:50%;background:var(--st-red);
    margin-right:12px;
}
.st-primary-action span { margin-left: auto; }
.st-secondary-action { color: #555; }

.st-upcoming-visual {
    margin: 0;
    height: min(72vh, 790px);
    min-height: 500px;
    overflow: hidden;
    background: #d9d8d5;
}
.st-upcoming-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.st-featured-section {
    padding: 100px 8vw 130px 9.5vw;
    border-top: 1px solid var(--st-border);
}
.st-section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    margin-bottom: 55px;
}
.st-section-head > span {
    font-size: 10px;
    letter-spacing: .13em;
}
.st-section-head p {
    margin: 0;
    max-width: 460px;
    font-size: 12px;
    line-height: 1.6;
    color: #555;
}
.st-featured-placeholder {
    min-height: 340px;
    border-top: 1px solid var(--st-text);
    border-bottom: 1px solid var(--st-text);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 28px 0;
}
.st-featured-placeholder div {
    font-size: clamp(28px, 3.4vw, 58px);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 500;
}
.st-featured-placeholder a {
    font-size: 10px;
    letter-spacing: .07em;
}

.st-page-footer {
    min-height: 130px;
    border-top: 1px solid var(--st-border);
    padding: 28px 3.2vw 45px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 9px;
    letter-spacing: .08em;
}
.st-page-footer div {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .st-page-header {
        height: auto;
        padding: 18px;
    }
    .st-page-nav a:not(.st-page-register) { display: none; }
    .st-upcoming-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 70px 18px 80px;
        gap: 48px;
    }
    .st-upcoming-copy { max-width: none; }
    .st-upcoming-copy h1,
    .st-upcoming-copy h1.is-long {
        margin-bottom: 38px;
        font-size: clamp(42px, 13vw, 70px);
        line-height: 1;
    }
    .st-upcoming-visual {
        order: -1;
        height: 58svh;
        min-height: 380px;
    }
    .st-featured-section { padding: 75px 18px 90px; }
    .st-section-head { grid-template-columns: 1fr; gap: 18px; }
    .st-featured-placeholder {
        min-height: 280px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
    }
    .st-page-footer {
        padding: 26px 18px 45px;
        flex-direction: column;
        gap: 28px;
    }
    .st-page-footer div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 30px;
    }
}

/* Featured Lots — horizontal, single-row rail */
.st-featured-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(18px, 2vw, 34px);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}
.st-featured-grid::-webkit-scrollbar {
    display: none;
}
.st-lot-card {
    flex: 0 0 calc((100% - (2 * clamp(18px, 2vw, 34px))) / 3);
    min-width: 0;
    scroll-snap-align: start;
}
.st-lot-card__image {
    margin: 0 0 18px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #d9d8d5;
}
.st-lot-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.st-lot-card:hover .st-lot-card__image img {
    transform: scale(1.015);
}
.st-lot-card__topline {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--st-border);
    font-size: 9px;
    letter-spacing: .11em;
    color: var(--st-muted);
}
.st-lot-card h3 {
    margin: 22px 0 5px;
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: -.015em;
    font-weight: 600;
    text-transform: uppercase;
}
.st-lot-card p {
    margin: 0;
    min-height: 32px;
    font-size: 11px;
    line-height: 1.45;
    color: #555;
}
.st-lot-card__price {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--st-border);
}
.st-lot-card__price span {
    font-size: 8px;
    letter-spacing: .11em;
    color: var(--st-muted);
}
.st-lot-card__price strong {
    font-size: 10px;
    letter-spacing: .04em;
}
.st-featured-instagram {
    display: flex;
    justify-content: flex-end;
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid var(--st-text);
}
.st-featured-instagram a {
    font-size: 9px;
    letter-spacing: .08em;
}

@media (max-width: 900px) {
    .st-lot-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media (max-width: 580px) {
    .st-lot-card {
        flex-basis: 82vw;
    }
}


/* v1.12.9 — UPCOMING AUCTION mobile refinement */
@media (max-width: 900px) {
    body.st-upcoming-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    body.st-upcoming-page .st-page,
    body.st-upcoming-page main,
    body.st-upcoming-page .st-upcoming-hero,
    body.st-upcoming-page .st-upcoming-copy,
    body.st-upcoming-page .st-featured-section {
        min-width: 0;
        max-width: 100%;
    }

    /* Header: brand + hamburger only */
    .st-page-header {
        height: 72px;
        padding: 20px 18px 0;
        align-items: flex-start;
    }
    .st-page-nav {
        display: none;
    }
    .st-page-header .st-page-menu-button {
        display: block;
        pointer-events: auto;
        margin-left: auto;
        padding: 2px 0 6px 12px;
    }
    .st-page-mobile-menu {
        display: block;
        position: fixed;
        z-index: 80;
        inset: 0;
        width: 100%;
        min-height: 100dvh;
        padding: 104px 24px 30px;
        background: var(--st-bg);
    }
    .st-page-mobile-menu[hidden] { display: none; }
    .st-page-mobile-close {
        position: fixed;
        z-index: 82;
        top: calc(env(safe-area-inset-top, 0px) + 20px);
        right: 18px;
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #121212;
        font: 300 28px/1 Arial, Helvetica, sans-serif;
        text-align: center;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    body.admin-bar .st-page-mobile-close {
        top: 66px;
    }
    .st-page-mobile-menu .st-mobile-menu__inner {
        display: flex;
        flex-direction: column;
        gap: 23px;
        font-size: 16px;
        letter-spacing: .03em;
    }

    /* Hero */
    .st-upcoming-hero {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
        padding: 60px 18px 68px;
        overflow: hidden;
    }
    .st-upcoming-visual {
        order: -1;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
    }
    .st-upcoming-visual img {
        object-position: center 24%;
    }
    .st-kicker {
        margin-bottom: 28px;
        font-size: 9px;
    }
    .st-upcoming-copy h1,
    .st-upcoming-copy h1.is-long {
        width: 100%;
        max-width: 100%;
        margin: 0 0 44px;
        font-size: clamp(36px, 10.4vw, 46px);
        line-height: .98;
        letter-spacing: -.052em;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: none;
    }

    /* Auction metadata: more readable vertical rhythm */
    .st-auction-meta-primary {
        gap: 10px;
        padding-bottom: 25px;
    }
    .st-auction-meta-primary span,
    .st-auction-meta-grid span {
        font-size: 8px;
        letter-spacing: .13em;
    }
    .st-auction-meta-primary strong {
        font-size: 13px;
        line-height: 1.35;
    }
    .st-auction-meta-grid > div {
        gap: 10px;
        min-height: 86px;
        padding: 20px 14px 21px 0;
    }
    .st-auction-meta-grid > div:nth-child(even) {
        padding-left: 14px;
    }
    .st-auction-meta-grid strong {
        font-size: 10px;
        line-height: 1.35;
        letter-spacing: .035em;
    }

    /* Equal CTA columns while keeping REGISTER primary */
    .st-upcoming-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
        margin-top: 30px;
        align-items: stretch;
    }
    .st-primary-action,
    .st-secondary-action {
        min-width: 0;
        min-height: 46px;
        padding: 13px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 9px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .st-primary-action::before {
        width: 5px;
        height: 5px;
        margin-right: 9px;
    }
    .st-secondary-action {
        justify-content: space-between;
        color: #555;
    }

    /* Featured section: less dead space, rail reaches viewport edge */
    .st-featured-section {
        padding: 62px 0 72px 18px;
    }
    .st-section-head {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 42px;
        padding-right: 18px;
    }
    .st-section-head p {
        max-width: none;
        font-size: 11px;
        line-height: 1.65;
    }
    .st-featured-grid {
        width: calc(100vw - 18px);
        max-width: calc(100vw - 18px);
        gap: 14px;
        padding: 0 18px 8px 0;
        scroll-padding-left: 0;
        scroll-padding-right: 18px;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }
    .st-lot-card {
        flex: 0 0 calc(100vw - 54px);
        width: calc(100vw - 54px);
        max-width: calc(100vw - 54px);
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .st-lot-card__image {
        margin-bottom: 16px;
    }
    .st-lot-card__topline {
        min-height: 30px;
        padding-top: 10px;
        font-size: 8px;
    }
    .st-lot-card h3 {
        margin: 18px 0 5px;
        font-size: 15px;
    }
    .st-lot-card p {
        min-height: 30px;
        font-size: 10px;
    }
    .st-lot-card__price {
        margin-top: 18px;
        padding-top: 11px;
        min-height: 34px;
    }
    .st-featured-instagram {
        min-height: 50px;
        margin: 34px 18px 0 0;
        padding-top: 0;
        align-items: center;
    }
    .st-featured-instagram a {
        display: flex;
        width: 100%;
        min-height: 50px;
        align-items: center;
        justify-content: flex-end;
        font-size: 8px;
        letter-spacing: .08em;
    }

    /* Compact shared footer on this page */
    body.st-upcoming-page .st-global-footer {
        min-height: 88px;
        padding: 22px 18px 26px;
        gap: 18px;
    }
    body.st-upcoming-page .st-global-footer__right {
        gap: 18px;
    }
}

@media (max-width: 580px) {
    .st-lot-card {
        flex-basis: calc(100vw - 54px);
    }
}


/* v1.12.13 — UPCOMING smartphone header matches TOP */
@media (max-width: 900px) {
    .st-page-header .st-page-menu-button {
        display: block;
        pointer-events: auto;
        flex: 0 0 auto;
        width: 30px;
        height: 30px;
        margin: 0 0 0 auto;
        padding: 6px 0 6px 8px;
        border: 0;
        background: transparent;
        position: relative;
        z-index: 82;
        -webkit-appearance: none;
        appearance: none;
    }
    .st-page-header .st-page-menu-button span {
        display: block;
        width: 22px;
        height: 1px;
        margin: 5px 0;
        background: #121212;
        transform-origin: center;
        transition: transform .25s ease, opacity .2s ease;
    }
    .st-page-header .st-page-menu-button[aria-expanded="true"] span:first-child {
        transform: translateY(3px) rotate(45deg);
    }
    .st-page-header .st-page-menu-button[aria-expanded="true"] span:last-child {
        transform: translateY(-3px) rotate(-45deg);
    }
    .st-page-mobile-close { display: none !important; }
    .st-page-mobile-menu {
        padding: 108px 24px 34px;
    }
    body.admin-bar .st-page-mobile-menu {
        padding-top: 154px;
    }
    .st-page-mobile-menu .st-mobile-menu__inner {
        gap: 24px;
        font-size: 15px;
        line-height: 1.35;
        letter-spacing: .035em;
    }
}
