/* Website: src/app/static/css/pages/departments.css v2.0 */

.departments-page {
    padding: clamp(18px, 3vw, 32px) 0 1px;
}

#departments-hero-section,
.departments-hero {
    background: transparent;
    border: 0;
    margin-top: clamp(14px, 3vw, 34px);
    max-width: 1100px;
    padding: 0 1rem;
}

#departments-hero-section .partial-section__content,
.departments-hero .partial-section__content {
    background: transparent;
    border: 0;
    margin: 0 auto;
    max-width: 900px;
    padding: 0;
    text-align: center;
}

#departments-hero-section .partial-section__header,
#departments-hero-section .partial-section__body,
#departments-hero-section .partial-section__actions,
#departments-hero-section .partial-section__button-row,
.departments-hero .partial-section__header,
.departments-hero .partial-section__body,
.departments-hero .partial-section__actions,
.departments-hero .partial-section__button-row {
    justify-content: center;
    justify-items: center;
    text-align: center;
}

#departments-hero-section .partial-section__title,
.departments-hero .partial-section__title {
    font-size: clamp(2.55rem, 6vw, 5.15rem);
    letter-spacing: 0;
    line-height: 1.02;
    max-width: 22ch;
    text-wrap: balance;
}

#departments-hero-section .partial-section__lead,
.departments-hero .partial-section__lead {
    color: rgba(226, 252, 255, 0.92);
    font-size: clamp(1.1rem, 2.3vw, 1.65rem);
    line-height: 1.35;
    max-width: 50ch;
}

#departments-hero-section .partial-section__body,
.departments-hero .partial-section__body {
    color: rgba(245, 247, 250, 0.82);
    max-width: 62ch;
}

#departments-hero-section .partial-section__body p,
.departments-hero .partial-section__body p {
    margin: 0;
}

#departments-hero-section .partial-section__button,
.departments-hero .partial-section__button {
    margin: 0;
}

#departments-problem-solution-section,
#departments-how-it-works-section,
.departments-toggle-section,
.departments-how-section {
    background: transparent;
    border: 0;
    margin: clamp(3.2rem, 7vw, 5.8rem) auto;
    max-width: 1100px;
    padding: 1rem;
}

#departments-problem-solution-section .partial-section__content,
#departments-how-it-works-section .partial-section__content,
.departments-toggle-section .partial-section__content,
.departments-how-section .partial-section__content {
    background: transparent;
    border: 0;
    padding: 0;
}

#departments-problem-solution-section .partial-section__header,
#departments-how-it-works-section .partial-section__header,
.departments-toggle-section .partial-section__header,
.departments-how-section .partial-section__header {
    max-width: 860px;
}

#departments-problem-solution-section .partial-section__title,
#departments-how-it-works-section .partial-section__title,
.departments-toggle-section .partial-section__title,
.departments-how-section .partial-section__title {
    text-wrap: balance;
}

#departments-problem-solution-section .partial-section__lead,
#departments-how-it-works-section .partial-section__lead,
.departments-toggle-section .partial-section__lead,
.departments-how-section .partial-section__lead {
    max-width: 72ch;
}

.departments-focus-routes {
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(0, 0.66fr);
    gap: 1rem;
    align-items: stretch;
    transition: grid-template-columns 220ms ease;
    min-height: 500px;
}

.departments-focus-routes[data-active-route="done"] {
    grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
}

.departments-focus-routes:has(.departments-focus-route:nth-child(2).is-active) {
    grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
}

.departments-focus-route {
    align-content: start;
    background: rgba(9, 18, 26, 0.48);
    border: 1px solid rgba(46, 217, 231, 0.2);
    border-radius: 14px;
    cursor: pointer;
    display: grid;
    gap: 1rem;
    min-width: 0;
    overflow: hidden;
    padding: clamp(0.95rem, 1.7vw, 1.2rem);
    transition:
        background 180ms ease,
        border-color 180ms ease,
        opacity 180ms ease;
}

.departments-focus-route * {
    min-width: 0;
}

.departments-focus-route.is-active {
    background: rgba(9, 18, 26, 0.72);
    border-color: rgba(46, 217, 231, 0.4);
}

.departments-focus-route:not(.is-active) {
    opacity: 0.72;
}

.departments-focus-route:not(.is-active):hover {
    border-color: rgba(46, 217, 231, 0.34);
    opacity: 0.9;
}

.departments-focus-route:focus-visible {
    outline: 2px solid rgba(46, 217, 231, 0.85);
    outline-offset: 3px;
}

.departments-focus-route .home-start-route__header {
    display: grid;
    gap: 0.55rem;
}

.departments-focus-route .home-start-route__eyebrow {
    color: rgba(126, 255, 200, 0.96);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.departments-focus-route .home-start-route__header h3 {
    color: #2ed9e7;
    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
    text-wrap: balance;
}

.departments-focus-route .home-start-route__header p {
    color: rgba(245, 247, 250, 0.86);
    line-height: 1.6;
    margin: 0;
}

.departments-focus-route__summary {
    display: none;
    gap: 0.7rem;
}

.departments-focus-route__summary span {
    background: rgba(13, 24, 34, 0.82);
    border: 1px solid rgba(46, 217, 231, 0.3);
    border-radius: 10px;
    color: rgba(214, 244, 248, 0.82);
    font-weight: 800;
    line-height: 1.25;
    padding: 0.75rem 0.85rem;
}

.departments-focus-route:not(.is-active) .home-start-route__header p {
    display: none;
}

.departments-focus-route:not(.is-active) .home-start-route__header h3 {
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

.departments-focus-route:not(.is-active) .departments-focus-route__summary {
    display: grid;
}

.departments-how-it-works__steps {
    counter-reset: home-how-it-works-step;
    display: grid;
    gap: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.departments-how-it-works__steps li {
    align-items: start;
    background: rgba(13, 24, 34, 0.82);
    border: 1px solid rgba(46, 217, 231, 0.35);
    border-radius: 14px;
    column-gap: 0.8rem;
    counter-increment: home-how-it-works-step;
    display: grid;
    grid-template-columns: clamp(2.2rem, 4.5vw, 3.3rem) 1fr auto;
    padding: 1rem 1.15rem;
    position: relative;
    row-gap: 0.4rem;
}

.departments-how-it-works__steps li::before {
    align-self: center;
    color: rgba(46, 217, 231, 0.95);
    content: counter(home-how-it-works-step, decimal-leading-zero);
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    font-weight: 800;
    justify-self: center;
    letter-spacing: 0;
    line-height: 1;
    text-shadow: 0 0 14px rgba(46, 217, 231, 0.35);
}

.departments-how-it-works__steps li > * {
    grid-column: 2;
    grid-row: 1;
}

.departments-how-it-works__steps .home-how-it-works__step-link {
    align-self: center;
    background: rgba(10, 33, 48, 0.8);
    border: 1px solid rgba(46, 217, 231, 0.45);
    border-radius: 999px;
    color: #c8f6ff;
    display: grid;
    font-size: 1.1rem;
    font-weight: 700;
    grid-column: 3;
    grid-row: 1;
    height: 2rem;
    justify-self: end;
    line-height: 1;
    place-items: center;
    text-decoration: none;
    width: 2rem;
}

.departments-how-it-works__steps .home-how-it-works__step-content {
    display: grid;
    gap: 0.4rem;
}

.departments-how-it-works__steps strong {
    color: #c8f6ff;
}

.departments-how-it-works__steps span {
    color: rgba(245, 247, 250, 0.84);
}

.departments-platform-anchor {
    margin: clamp(3.5rem, 7vw, 6.25rem) auto 0;
    overflow-x: clip;
    scroll-margin-top: 80px;
    width: min(100% - 2rem, 980px);
}

.departments-platform-anchor .departments-platform-carousel {
    margin: 0 auto;
}

.departments-platform-carousel .partial-big-screen-carousel__header {
    margin: 0 auto;
    max-width: 760px;
}

.departments-platform-carousel .partial-big-screen-carousel__title {
    color: #f5f7fa;
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0;
    text-wrap: balance;
}

.departments-platform-carousel .partial-big-screen-carousel__lead {
    display: none;
}

.departments-platform-carousel .partial-big-screen-carousel__media {
    border-radius: 18px;
}

.departments-platform-carousel__asset {
    opacity: 0.9;
}

.departments-platform-carousel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.35rem;
}

.departments-platform-carousel__button {
    font-size: 0.9rem;
    padding: 0.58rem 0.95rem;
}

#departments-discovery-cta,
#industries-discovery-cta {
    margin-top: clamp(3.5rem, 7vw, 6.5rem);
}

#industries-hero-section {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-top: clamp(14px, 3vw, 34px);
    max-width: 1100px;
    padding: 0 1rem;
}

#industries-hero-section .partial-section__content {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0 auto;
    max-width: 900px;
    padding: 0;
}

#departments-problem-solution-section,
#industries-problem-solution-section {
    background:
        linear-gradient(
            90deg,
            rgba(7, 10, 13, 0.88) 0%,
            rgba(16, 22, 28, 0.72) 50%,
            rgba(7, 10, 13, 0.88) 100%
        );
    border: 1px solid rgba(46, 217, 231, 0.35);
    border-radius: 24px;
    padding: clamp(1.4rem, 3vw, 2.5rem);
}

#departments-problem-solution-section .partial-section__content,
#industries-problem-solution-section .partial-section__content {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

#industries-how-it-works-section {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 1rem;
}

#industries-how-it-works-section .partial-section__content {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 899px) {
    .departments-focus-routes,
    .departments-focus-routes[data-active-route="done"] {
        grid-template-columns: 1fr;
    }

    .departments-focus-routes:has(.departments-focus-route:nth-child(2).is-active) {
        grid-template-columns: 1fr;
    }

    .departments-focus-route:not(.is-active) {
        opacity: 0.82;
    }

    .departments-focus-route:not(.is-active) .home-start-route__header h3 {
        font-size: clamp(1.15rem, 4.4vw, 1.35rem);
    }

    #departments-hero-section .partial-section__button-row,
    .departments-hero .partial-section__button-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .departments-platform-carousel__actions .partial-cta__button,
    #departments-hero-section .partial-section__button-row .partial-section__button,
    .departments-hero .partial-section__button-row .partial-section__button {
        width: 100%;
    }

    .departments-platform-anchor {
        width: min(100% - 1rem, 980px);
    }

    .departments-platform-carousel .partial-big-screen-carousel__header {
        max-width: 100%;
        overflow: hidden;
    }

    .departments-platform-carousel .partial-big-screen-carousel__eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.13em;
    }

    .departments-platform-carousel .partial-big-screen-carousel__title {
        font-size: clamp(1.3rem, 6.2vw, 1.8rem);
    }
}

@media (max-width: 520px) {
    #departments-hero-section,
    .departments-hero {
        margin: 0px;
        padding: 0px;
    }

    #departments-hero-section .partial-section__title,
    .departments-hero .partial-section__title {
        font-size: clamp(2.25rem, 12vw, 3.1rem);
    }

    .departments-how-it-works__steps li {
        grid-template-columns: clamp(2rem, 12vw, 2.7rem) 1fr auto;
        padding: 0.95rem;
    }

    .departments-platform-carousel__button {
        font-size: 0.86rem;
        padding-inline: 0.8rem;
    }
}
