/* HZM content and interaction upgrades. */

/* Projects never expose publication dates. */
.content-card.category-projects .content-card__body > .eyebrow,
.hzm-is-project .article-header .eyebrow {
    display: none;
}

/* Video cards use a clear play affordance and a compact title-only body. */
.content-card.category-videos .content-card__body > .eyebrow,
.content-card.category-videos .content-card__body > p:not(.eyebrow) {
    display: none;
}

.content-card.category-videos .content-card__image {
    position: relative;
}

.content-card.category-videos .content-card__image:before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 68px;
    height: 68px;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(4, 57, 105, .86);
    box-shadow: 0 12px 32px rgba(3, 31, 58, .3);
    content: "";
    transform: translate(-50%, -50%);
    transition: background .2s ease, transform .2s ease;
}

.content-card.category-videos .content-card__image:after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
    content: "";
    transform: translate(-50%, -50%);
}

.content-card.category-videos:hover .content-card__image:before {
    background: var(--blue-700);
    transform: translate(-50%, -50%) scale(1.08);
}

/* About-page video prompt. */
.company-intro__media .hzm-video-play-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    min-width: 156px;
    min-height: 58px;
    padding: 8px 20px 8px 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 999px;
    color: #fff;
    background: rgba(3, 43, 80, .9);
    box-shadow: 0 14px 36px rgba(1, 24, 46, .35);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.company-intro__media .hzm-video-play-prompt:hover,
.company-intro__media .hzm-video-play-prompt:focus-visible {
    background: var(--blue-700);
    transform: translate(-50%, -50%) scale(1.04);
}

.hzm-video-play-prompt__icon {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 42px;
    margin-right: 11px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #fff;
}

.hzm-video-play-prompt__icon:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid var(--blue-700);
    content: "";
    transform: translate(-50%, -50%);
}

.company-intro__media.is-video-playing .hzm-video-play-prompt {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Solution listing: image-led, editorial layout. */
.solution-showcase__hero {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    color: #fff;
    background: var(--blue-950);
}

.solution-showcase__hero > img,
.solution-showcase__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.solution-showcase__hero > img {
    object-fit: cover;
}

.solution-showcase__shade {
    background: linear-gradient(90deg, rgba(2, 27, 52, .94), rgba(3, 44, 82, .62) 55%, rgba(3, 44, 82, .12));
}

.solution-showcase__hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 590px;
    max-width: 1040px;
    padding-top: 70px;
    padding-bottom: 74px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.solution-showcase__hero .breadcrumbs,
.solution-showcase__hero .breadcrumbs a {
    color: #fff;
}

.solution-showcase__hero h1 {
    max-width: 900px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 62px;
}

.solution-showcase__hero-content > p:not(.eyebrow) {
    max-width: 760px;
    color: #e4eff7;
    font-size: 19px;
    line-height: 1.65;
}

.solution-showcase__main {
    padding: 96px 0 104px;
    background: #f5f8fb;
}

.solution-showcase__heading > span {
    margin-bottom: 7px;
    color: var(--muted);
    font-weight: 800;
}

.solution-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 300px;
    gap: 22px;
}

.solution-showcase-card {
    min-width: 0;
    overflow: hidden;
    background: var(--blue-950);
    box-shadow: 0 14px 40px rgba(7, 39, 69, .13);
}

.solution-showcase-card--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.solution-showcase-card > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
}

.solution-showcase-card img,
.solution-showcase-card__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.solution-showcase-card img {
    object-fit: cover;
    transition: transform .55s ease;
}

.solution-showcase-card__shade {
    background: linear-gradient(0deg, rgba(2, 27, 52, .96), rgba(2, 27, 52, .04) 72%);
}

.solution-showcase-card__content {
    position: absolute;
    right: 28px;
    bottom: 26px;
    left: 28px;
    z-index: 1;
}

.solution-showcase-card__content small,
.solution-showcase-card__content strong,
.solution-showcase-card__content b {
    display: block;
}

.solution-showcase-card__content small {
    margin-bottom: 8px;
    color: #9de6f2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.solution-showcase-card__content strong {
    max-width: 780px;
    color: #fff;
    font-size: 25px;
    line-height: 1.25;
}

.solution-showcase-card--featured .solution-showcase-card__content {
    right: 42px;
    bottom: 38px;
    left: 42px;
}

.solution-showcase-card--featured .solution-showcase-card__content strong {
    font-size: 39px;
}

.solution-showcase-card__content b {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: max-height .25s ease, margin .25s ease, opacity .25s ease;
}

.solution-showcase-card__content i {
    margin-left: 8px;
    font-style: normal;
}

.solution-showcase-card:hover img,
.solution-showcase-card:focus-within img {
    transform: scale(1.05);
}

.solution-showcase-card:hover .solution-showcase-card__content b,
.solution-showcase-card:focus-within .solution-showcase-card__content b {
    max-height: 28px;
    margin-top: 14px;
    opacity: 1;
}

.solution-showcase__seo {
    margin-top: 76px;
    padding: 48px;
    border-top: 4px solid var(--blue-700);
    background: #fff;
    box-shadow: 0 12px 35px rgba(7, 42, 73, .07);
}

/* Related products on solution details. */
.hzm-related-products {
    padding: 92px 0 104px;
    background: linear-gradient(180deg, #f4f8fb, #fff);
}

.hzm-related-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.hzm-related-product {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 8px 26px rgba(7, 39, 69, .06);
    transition: transform .22s ease, box-shadow .22s ease;
}

.hzm-related-product:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(7, 39, 69, .14);
}

.hzm-related-product__media {
    display: block;
    height: 225px;
    overflow: hidden;
    background: var(--surface);
}

.hzm-related-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.hzm-related-product:hover .hzm-related-product__media img {
    transform: scale(1.045);
}

.hzm-related-product__body {
    padding: 24px 22px 26px;
}

.hzm-related-product__body h3 {
    min-height: 74px;
    margin-bottom: 18px;
    font-size: 20px;
    line-height: 1.35;
}

.hzm-related-product__body h3 a {
    color: var(--ink);
}

/* Video detail: the player owns the first viewport. */
.video-detail-page__first-screen {
    padding: 34px 0 72px;
    background: #031f3a;
}

.video-detail-page__first-screen .breadcrumbs,
.video-detail-page__first-screen .breadcrumbs a {
    color: #dceaf5;
}

.video-detail-page__first-screen .breadcrumbs {
    margin-bottom: 26px;
}

.video-detail-page__first-screen .hzm-video-player {
    width: min(1220px, 100%);
    margin: 0 auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.video-detail-page__fallback {
    margin: 0;
}

.video-detail-page__fallback img {
    width: 100%;
    max-height: 72vh;
    object-fit: cover;
}

.video-detail-page__content {
    padding: 76px 0 102px;
}

.video-detail-page__content h1 {
    margin-bottom: 34px;
    font-size: 48px;
}

/* FAQ page tabs and accordions. */
.faq-page__main {
    padding: 92px 0 110px;
    background: #f5f8fb;
}

.faq-page__intro {
    max-width: 820px;
    margin-bottom: 44px;
}

.faq-page__intro .prose {
    color: var(--muted);
    font-size: 18px;
}

.faq-tabs__list {
    display: grid;
    margin-bottom: 34px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.faq-tabs__tab {
    position: relative;
    min-height: 92px;
    padding: 20px 24px;
    border: 1px solid #d7e0e8;
    color: var(--ink);
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.faq-tabs__tab span,
.faq-tabs__tab small {
    display: block;
}

.faq-tabs__tab span {
    font-size: 19px;
    font-weight: 800;
}

.faq-tabs__tab small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.faq-tabs__tab:hover,
.faq-tabs__tab:focus-visible {
    border-color: var(--blue-700);
    transform: translateY(-2px);
}

.faq-tabs__tab.is-active {
    border-color: var(--blue-900);
    color: #fff;
    background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
    box-shadow: 0 14px 32px rgba(6, 59, 115, .18);
}

.faq-tabs__tab.is-active small {
    color: #c9e5f4;
}

.faq-tabs__panel[hidden],
.faq-item__answer[hidden] {
    display: none;
}

.faq-accordion {
    border-top: 1px solid #d8e1e9;
    background: #fff;
    box-shadow: 0 12px 38px rgba(7, 39, 69, .07);
}

.faq-item {
    border-right: 1px solid #d8e1e9;
    border-bottom: 1px solid #d8e1e9;
    border-left: 1px solid #d8e1e9;
}

.faq-item h3 {
    margin: 0;
}

.faq-item h3 > button {
    display: grid;
    width: 100%;
    min-height: 86px;
    padding: 20px 26px;
    align-items: center;
    border: 0;
    color: var(--ink);
    background: #fff;
    grid-template-columns: 54px minmax(0, 1fr) 32px;
    gap: 16px;
    text-align: left;
    cursor: pointer;
}

.faq-item h3 > button:hover,
.faq-item h3 > button:focus-visible,
.faq-item.is-open h3 > button {
    color: var(--blue-700);
    background: #f8fbfd;
}

.faq-item__number {
    color: #8ca1b4;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
}

.faq-item__question {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}

.faq-item__icon {
    position: relative;
    width: 28px;
    height: 28px;
    border: 1px solid #cbd8e2;
    border-radius: 50%;
}

.faq-item__icon:before,
.faq-item__icon:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
}

.faq-item__icon:after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform .2s ease;
}

.faq-item.is-open .faq-item__icon:after {
    transform: translate(-50%, -50%) rotate(0);
}

.faq-item__answer {
    padding: 0 84px 30px 96px;
    background: #f8fbfd;
}

.faq-item__answer .prose {
    max-width: 900px;
    color: #465a6d;
}

.faq-item__answer .prose > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 1120px) {
    .solution-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .solution-showcase-card--featured { grid-column: span 2; }
    .hzm-related-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
    /* Products and Solutions open when the mobile drawer opens; all other submenus start closed. */
    .site-navigation .menu-item-has-children:not(.menu-item--mega) {
        position: relative;
    }

    .site-navigation .menu-item-has-children:not(.menu-item--mega) > a {
        padding-right: 48px !important;
    }

    .site-navigation .menu-item-has-children:not(.menu-item--mega) > .sub-menu {
        display: none;
    }

    .site-navigation .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }

    .hzm-submenu-toggle {
        position: absolute;
        top: 3px;
        right: 0;
        z-index: 3;
        display: block;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        color: var(--blue-700);
        background: transparent;
        font: inherit;
        font-size: 25px;
        cursor: pointer;
    }

    .menu-item-has-children.submenu-open > .hzm-submenu-toggle > span[aria-hidden] {
        display: inline-block;
        transform: rotate(45deg);
    }
}

@media (max-width: 760px) {
    .solution-showcase__hero,
    .solution-showcase__hero-content { min-height: 430px; }
    .solution-showcase__hero h1 { font-size: 42px; }
    .solution-showcase__main { padding: 62px 0 72px; }
    .solution-showcase__grid { display: block; }
    .solution-showcase-card,
    .solution-showcase-card--featured { height: 280px; margin-bottom: 16px; }
    .solution-showcase-card--featured .solution-showcase-card__content,
    .solution-showcase-card__content { right: 22px; bottom: 22px; left: 22px; }
    .solution-showcase-card--featured .solution-showcase-card__content strong,
    .solution-showcase-card__content strong { font-size: 24px; }
    .solution-showcase-card__content b { display: none; }
    .solution-showcase__seo { margin-top: 48px; padding: 28px 22px; }
    .hzm-related-products { padding: 62px 0 74px; }
    .hzm-related-products__grid { grid-template-columns: 1fr; }
    .hzm-related-product__media { height: 245px; }
    .hzm-related-product__body h3 { min-height: 0; }
    .video-detail-page__first-screen { padding: 22px 0 42px; }
    .video-detail-page__content { padding: 54px 0 72px; }
    .video-detail-page__content h1 { font-size: 34px; }
    .faq-page__main { padding: 60px 0 76px; }
    .faq-tabs__list { display: flex; margin-right: -16px; overflow-x: auto; padding-right: 16px; scroll-snap-type: x proximity; }
    .faq-tabs__tab { min-width: 210px; flex: 0 0 210px; scroll-snap-align: start; }
    .faq-item h3 > button { min-height: 78px; padding: 16px; grid-template-columns: 34px minmax(0, 1fr) 30px; gap: 10px; }
    .faq-item__question { font-size: 16px; }
    .faq-item__answer { padding: 0 52px 24px 60px; }
    .company-intro__media .hzm-video-play-prompt { min-width: 146px; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 99999px) {
    .solution-showcase-card img,
    .solution-showcase-card__content b,
    .hzm-related-product,
    .hzm-related-product__media img,
    .faq-tabs__tab,
    .hzm-video-play-prompt { transition: none !important; }
}
