/* ==========================================================================
   Page: Recruitment Detail
   ========================================================================== */

.site-main--recruitment-detail {
    --recruitment-coral: #fc7a62;
    --recruitment-blue: #4875be;
    --recruitment-teal: #36b7c4;
    --recruitment-bg-soft: #fdf6f4;
    --recruitment-border: #eaded9;
    --recruitment-text: #5a4e4e;
    --recruitment-muted: #5a4e4e;
    background-color: #fff;
}

.page-hero--recruitment-detail {
    min-height: 235px;
    justify-content: center;
}

.page-hero--recruitment-detail .page-hero__inner {
    text-align: center;
    padding-bottom: 2.5rem;
}

.page-hero--recruitment-detail .page-hero__title {
    margin: 0;
    color: #5a4e4e;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.page-hero--recruitment-detail .page-hero__collage {
    display: none;
}

.recruitment-detail-hero__tags {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.recruitment-detail-hero__tag {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2em 1em;
    min-height: 34px;
    padding: 0.45rem 0.9rem;
    color: #5a4e4e;
    background-color: #fff;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.recruitment-detail-hero__tag .page-hero__tag-item {
    white-space: nowrap;
}

.recruitment-detail-intro {
    position: relative;
    z-index: 2;
    margin-top: -40px;
    padding: 5rem 4rem 4rem;
    background-color: #fff;
    border-radius: 40px 40px 0 0;
}

.recruitment-detail-intro__inner,
.recruitment-detail-attractions__inner,
.recruitment-detail-table-section__inner,
.recruitment-detail-location__inner,
.recruitment-detail-flow__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.recruitment-detail-intro__title {
    margin: 0 0 1.5rem;
    color: var(--recruitment-text);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.8;
}

.recruitment-detail-intro__title span {
    display: block;
}

.recruitment-detail-intro__body {
    max-width: 760px;
}

.recruitment-detail-intro__body p {
    margin: 0 0 0.6rem;
    color: #5a4e4e;
    font-size: 1rem;
    line-height: 2;
}

.recruitment-detail-attractions {
    padding: 4.5rem 4rem;
    background-color: var(--recruitment-bg-soft);
}

.recruitment-detail-section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.2rem;
}

.recruitment-detail-section-heading--center {
    justify-content: center;
}

.recruitment-detail-section-heading--stacked {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.recruitment-detail-section-heading__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.recruitment-detail-section-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.recruitment-detail-section-heading__label {
    color: #d8c9c6;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1;
}

.recruitment-detail-section-heading__plus {
    color: var(--recruitment-coral);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.recruitment-detail-section-heading__title {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--recruitment-text);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.6;
}

.recruitment-detail-section-heading__accent {
    color: var(--recruitment-coral);
}

.recruitment-detail-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.recruitment-detail-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 441px;
    padding: 40px 40px 32px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 6px;
    text-align: center;
}

.recruitment-detail-card__icon {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    margin-bottom: 1.6rem;
}

.recruitment-detail-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.recruitment-detail-card__title {
    margin: 0;
    color: var(--recruitment-text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
}

.recruitment-detail-card__title span {
    display: block;
}

.recruitment-detail-card__title span:first-child {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
}

.recruitment-detail-card__title span:last-child {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.recruitment-detail-card__dots {
    display: block;
    width: 20px;
    height: 4px;
    margin: 24px 0 16px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    line-height: 0;
    background:
        linear-gradient(rgba(252, 122, 98, 0.8), rgba(252, 122, 98, 0.8)) 0 0 / 4px 4px no-repeat,
        linear-gradient(rgba(252, 122, 98, 0.6), rgba(252, 122, 98, 0.6)) 8px 0 / 4px 4px no-repeat,
        linear-gradient(rgba(252, 122, 98, 0.4), rgba(252, 122, 98, 0.4)) 16px 0 / 4px 4px no-repeat;
}

.recruitment-detail-card__body {
    color: #5a4e4e;
    font-size: 1rem;
    line-height: 2;
    text-align: left;
}

.recruitment-detail-card__body p {
    margin: 0;
}

.recruitment-detail-table-section {
    padding: 7rem 4rem 0;
    background-color: #fff;
}

.recruitment-detail-table {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid rgba(252, 122, 98, 0.65);
    border-radius: 8px;
    overflow: hidden;
}

.recruitment-detail-table__row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.75rem;
    padding: 1.25rem 2rem;
}

.recruitment-detail-table__row {
    position: relative;
}

.recruitment-detail-table__row + .recruitment-detail-table__row {
    border-top: 0;
}

.recruitment-detail-table__row + .recruitment-detail-table__row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2rem;   /* controls inset */
    right: 2rem;  /* controls inset */
    border-top: 1px dashed rgba(252, 122, 98, 0.4);
    pointer-events: none;
}

.recruitment-detail-table__label {
    color: var(--recruitment-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.8;
}

.recruitment-detail-table__content {
    margin: 0;
    color: #5a4e4e;
    font-size: 1rem;
    line-height: 2;
}

.recruitment-detail-table__content p {
    margin: 0 0 0.35rem;
}

.recruitment-detail-table__content ul {
    margin: 0.35rem 0 0;
    padding-left: 1.2rem;
}

.recruitment-detail-table__content li {
    margin: 0.1rem 0;
}

.recruitment-detail-location {
    padding: 3.75rem 4rem 2.5rem;
    background-color: #fff;
}

.recruitment-detail-location__inner {
    text-align: center;
}

.recruitment-detail-location__title {
    margin: 0 0 1.875rem;
    color: var(--recruitment-text);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.7;
}

.recruitment-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.9375rem;
    max-width: 1060px;
    margin-inline: auto;
}

.recruitment-detail-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
}

.recruitment-detail-gallery__item img {
    display: block;
    width: 100%;
    height: 222px;
    object-fit: cover;
}

.recruitment-detail-location__body {
    max-width: 1060px;
    margin: 1.5rem auto 0;
    color: #5a4e4e;
    font-size: 1rem;
    line-height: 2;
    text-align: left;
}

.recruitment-detail-location__body p {
    margin: 0 0 0.35rem;
}

.recruitment-detail-location__cta {
    margin: 2rem auto 0;
}

.recruitment-detail-location__external-icon {
    display: inline-block;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-left: 0.5rem;
    background-color: currentColor;
    -webkit-mask: url("../images/new-window-image.png") center / contain no-repeat;
    mask: url("../images/new-window-image.png") center / contain no-repeat;
}

.recruitment-detail-flow {
    padding: 3.75rem 4rem 6.25rem;
    background-color: #fff;
}

.recruitment-detail-flow__list {
    display: grid;
    gap: 0.9rem;
}

.recruitment-detail-flow__item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
    min-height: 58px;
    padding: 0.85rem 1rem 0.85rem 1.25rem;
    background-color: var(--recruitment-bg-soft);
    border-radius: 6px;
}

.recruitment-detail-flow__step {
    color: var(--recruitment-coral);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.recruitment-detail-flow__title {
    margin: 0;
    color: var(--recruitment-text);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.7;
}

.recruitment-detail-flow__arrow {
    display: block;
    width: 0;
    height: 0;
    justify-self: start;
    margin-left: 2rem;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--recruitment-coral);
}

.recruitment-detail-entry {
    --recruitment-entry-card-width: 340px;
    --recruitment-entry-card-height: 447px;
    --recruitment-entry-card-gap: 20px;
    --recruitment-entry-card-offset: 20px;
    --recruitment-entry-slide-distance: 2160px;
    position: relative;
    overflow: hidden;
    min-height: 791px;
    padding: 0;
}

.recruitment-detail-entry::before {
    content: "";
    position: absolute;
    inset: 5.555556vw 0 0;
    background-color: var(--recruitment-bg-soft);
}

.recruitment-detail-entry__wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 18 / 1;
    background: url("../images/recruitment-detail/recruitment-detail-entry-wave.svg") center / 100% 100% no-repeat;
}

.recruitment-detail-entry__inner {
    position: relative;
    display: block;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 160px;
}

.recruitment-detail-entry__text {
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    width: 638px;
    min-height: 467px;
    margin-top: 0;
    margin-left: 47px;
    padding: 60px;
    background-color: var(--recruitment-bg-soft);
}

.recruitment-detail-entry__logo {
    display: block;
    width: 74px;
    height: auto;
    margin-bottom: 1.5rem;
}

.recruitment-detail-entry__text p {
    margin: 0 0 1.5rem;
    color: var(--recruitment-text);
    font-size: 1rem;
    font-weight: 500;
    line-height: 2;
}

.recruitment-detail-entry__button {
    display: inline-grid;
    width: 317px;
    margin-top: 1rem;
}

.recruitment-detail-entry__photos {
    box-sizing: border-box;
    position: absolute;
    z-index: 1;
    top: 180px;
    left: 0;
    width: 100%;
    height: var(--recruitment-entry-card-height);
    padding-top: 0;
    overflow: visible;
}

.recruitment-detail-entry__photo-track {
    display: flex;
    align-items: flex-start;
    gap: var(--recruitment-entry-card-gap);
    width: max-content;
    animation: recruitment-entry-photo-flow 36s linear infinite;
    will-change: transform;
}

.recruitment-detail-entry__photo {
    flex: 0 0 var(--recruitment-entry-card-width);
    width: var(--recruitment-entry-card-width);
    height: var(--recruitment-entry-card-height);
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background-color: transparent;
}

.recruitment-detail-entry__photo:nth-child(even) {
    transform: translateY(calc(-1 * var(--recruitment-entry-card-offset)));
}

.recruitment-detail-entry__photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
}

@keyframes recruitment-entry-photo-flow {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(-1 * var(--recruitment-entry-slide-distance)), 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .recruitment-detail-entry__photo-track {
        animation-play-state: paused;
    }
}

.footer-banner.footer-banner--v2.footer-banner--recruitment {
    background-color: #fdf6f4;
}

.footer-banner.footer-banner--v2.footer-banner--recruitment .footer-banner__bottom {
    background-color: #fc9a86;
    border-radius: 0;
}

@media (max-width: 1024px) {
    .recruitment-detail-intro,
    .recruitment-detail-attractions,
    .recruitment-detail-table-section,
    .recruitment-detail-location,
    .recruitment-detail-flow,
    .recruitment-detail-entry {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .recruitment-detail-cards {
        grid-template-columns: 1fr;
    }

    .recruitment-detail-gallery {
        grid-template-columns: 1fr;
    }

    .recruitment-detail-entry__inner {
        grid-template-columns: 1fr;
    }
}

/*
 * Preserve card-scale imagery and scanability on iPad widths.  One wide card
 * makes the approved three-card group feel disconnected; two columns keep the
 * PC relationship without using the phone-only single-column layout.
 */
@media (min-width: 769px) and (max-width: 1024px) {
    .recruitment-detail-intro__body {
        max-width: 680px;
    }

    .recruitment-detail-cards,
    .recruitment-detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .recruitment-detail-cards .recruitment-detail-card:last-child,
    .recruitment-detail-gallery .recruitment-detail-gallery__item:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 0.75rem);
        justify-self: center;
    }

    .recruitment-detail-location__title {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .recruitment-detail-intro__title {
        font-size: clamp(1rem, 2.25vw, 1.125rem);
        line-height: 2;
    }

    .recruitment-detail-section-heading__title {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
    }

    .recruitment-detail-card__title,
    .recruitment-detail-card__title span:last-child,
    .recruitment-detail-location__title {
        font-size: clamp(1.125rem, 2.5vw, 1.25rem);
        overflow-wrap: anywhere;
    }

    .recruitment-detail-location__title {
        margin-bottom: 1.25rem;
    }

    .recruitment-detail-flow__title {
        font-size: clamp(1rem, 2.25vw, 1.125rem);
    }

    .page-hero--recruitment-detail {
        min-height: 200px;
    }

    .recruitment-detail-intro {
        border-radius: 24px 24px 0 0;
    }

    .recruitment-detail-intro,
    .recruitment-detail-attractions,
    .recruitment-detail-table-section,
    .recruitment-detail-location,
    .recruitment-detail-flow,
    .recruitment-detail-entry {
        padding-top: 4rem;
    }

    .recruitment-detail-entry {
        padding-top: 0;
    }

    .recruitment-detail-table__row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .recruitment-detail-flow__item {
        grid-template-columns: 1fr;
    }

    .recruitment-detail-entry__photos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .page-hero--recruitment-detail {
        min-height: 270px;
        align-items: flex-end;
    }

    .page-hero--recruitment-detail .page-hero__inner {
        box-sizing: border-box;
        width: 100%;
        /* Keep wrapped titles 28px below the mobile header's 60px bottom edge. */
        padding: 88px 24px 24px;
        text-align: left;
    }

    .page-hero--recruitment-detail .page-hero__title {
        width: 100%;
    }

    .recruitment-detail-hero__tags {
        justify-content: flex-start;
        width: 100%;
        margin: 9px 0 0;
    }

    .recruitment-detail-hero__tag {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-height: 41px;
        padding: 10px 20px;
        justify-content: flex-start;
        font-size: clamp(0.75rem, 3.2vw, 0.875rem);
        line-height: 1.7;
        white-space: normal;
    }

    .recruitment-detail-intro {
        margin-top: 0;
        border-radius: 20px 20px 0 0;
    }

    .recruitment-detail-intro,
    .recruitment-detail-attractions,
    .recruitment-detail-table-section,
    .recruitment-detail-location,
    .recruitment-detail-flow,
    .recruitment-detail-entry {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .recruitment-detail-location {
        padding-top: 3rem;
    }

    .recruitment-detail-gallery__item img {
        height: 220px;
    }

    .recruitment-detail-location__cta,
    .recruitment-detail-entry__button {
        grid-template-columns: minmax(0, 1fr) 56px;
        width: 100%;
    }

    .recruitment-detail-entry {
        --recruitment-entry-card-width: 170px;
        --recruitment-entry-card-height: 223.5px;
        --recruitment-entry-card-gap: 10px;
        --recruitment-entry-card-offset: 10px;
        --recruitment-entry-slide-distance: 1080px;
        min-height: 0;
        padding: 72px 0 32px;
    }

    .recruitment-detail-entry__inner {
        max-width: none;
        padding-top: 0;
    }

    .recruitment-detail-entry__text {
        width: auto;
        min-height: 0;
        margin: 0 24px;
        padding: 0;
    }

    .recruitment-detail-entry__photos {
        position: relative;
        top: auto;
        left: auto;
        z-index: 1;
        width: 100%;
        height: calc(var(--recruitment-entry-card-height) + var(--recruitment-entry-card-offset));
        margin-top: 30px;
        padding-top: var(--recruitment-entry-card-offset);
    }

    .recruitment-detail-entry__photo {
        padding: 0;
        border-radius: 0;
    }

    .recruitment-detail-entry__photo:nth-child(even) {
        transform: translateY(calc(-1 * var(--recruitment-entry-card-offset)));
    }

    .recruitment-detail-entry__photo img {
        border-radius: 0;
    }
}
