/* Stitch H5 company landing rendered inside the site's existing mobile shell. */
.hh-company-hub {
    --company-blue: #2563eb;
    --company-ink: #0f172a;
    --company-muted: #64748b;
    --company-surface: #f6f8fc;
    max-width: 448px;
    min-width: 0;
    min-height: calc(100vh - var(--hh-mobile-nav-height, 0px) - 16px);
    min-height: calc(100dvh - var(--hh-mobile-nav-height, 0px) - 16px);
    margin: 0 auto;
    background: var(--company-surface);
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.hh-company-hub-content {
    padding: 20px 14px 24px;
}

.hh-company-carousel {
    position: relative;
    height: 176px;
    overflow: hidden;
    border-radius: 16px;
    background: #e2e8f0;
    box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
    touch-action: pan-y pinch-zoom;
}

.hh-company-carousel-track {
    display: flex;
    height: 100%;
    transition: transform .5s cubic-bezier(0, 0, .2, 1);
}

.hh-company-slide {
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.hh-company-slide picture {
    display: block;
    height: 100%;
}

.hh-company-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45.68% center;
}

@media (max-width: 360px) {
    .hh-company-slide img {
        object-position: 48.2% center;
    }
}

.hh-company-carousel-dots {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 50%;
    display: flex;
    transform: translateX(-50%);
}

.hh-company-carousel-dots button {
    position: relative;
    width: 24px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hh-company-carousel-dots button::after {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: rgb(255 255 255 / 60%);
    content: '';
    transform: translateX(-50%);
    transition: width .3s, background-color .3s;
}

.hh-company-carousel-dots button[aria-current='true']::after {
    width: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
}

.hh-company-carousel-dots button:focus-visible::after {
    background: #dbeafe;
}

.hh-company-hub-links {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.hh-company-hub-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid rgb(226 232 240 / 80%);
    border-radius: 16px;
    background: rgb(255 255 255 / 95%);
    box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.hh-company-hub-card:focus-visible {
    background: #eff6ff;
}

@media (hover: hover) {
    .hh-company-hub-card:hover {
        border-color: #93c5fd;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
    }
}

.hh-company-hub-card:active {
    transform: scale(.99);
}

.hh-company-hub-icon {
    box-sizing: border-box;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    height: 44px;
    margin-inline-end: 14px;
    border: 1px solid rgb(191 219 254 / 50%);
    border-radius: 12px;
    background: rgb(59 130 246 / 10%);
    color: var(--company-blue);
}

.hh-company-hub-icon--opc {
    border-color: #e0e7ff;
    background: #eef2ff;
    color: #4f46e5;
}

.hh-company-hub-icon svg {
    width: 24px;
    height: 24px;
}

.hh-company-hub-card-copy {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.hh-company-hub-card-copy h2 {
    margin: 0;
    color: var(--company-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -.025em;
}

.hh-company-hub-card-copy p {
    margin: 4px 0 0;
    color: var(--company-muted);
    font-size: 12px;
    line-height: 16px;
}

.hh-company-hub-card-cta {
    flex: none;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: 8px;
    color: var(--company-blue);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}

.hh-company-hub-card-cta svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1023px) {
    html.hh-mobile-nav-preview:has(.hh-company-hub),
    html.hh-mobile-nav-preview body:has(.hh-company-hub) {
        background: #f6f8fc;
    }

    html.hh-mobile-nav-preview #hh-main:has(.hh-company-hub) {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    html.hh-mobile-nav-preview body:has(.hh-company-hub) > footer,
    html.hh-mobile-scroll-locked #hh-page-scroll:has(.hh-company-hub) > footer {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-company-carousel-track,
    .hh-company-carousel-dots button::after,
    .hh-company-hub-card {
        transition: none;
    }

    .hh-company-hub-card:active {
        transform: none;
    }
}
