/* Roket Expedition Guides
   Uses Wanderers/Mikado typography and grid sizing from the active site. */

.roket-guides-section,
.roket-guides-section * {
    box-sizing: border-box;
}

.roket-guides-section {
    width: 100%;
    padding: 72px 0 78px;
}

/* The mkdf-grid class is intentionally kept in the markup so the section
   follows the exact same content width as the rest of the Wanderers site. */
.roket-guides-container {
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------
   Intro
------------------------------ */
.roket-guides-intro {
    max-width: 920px;
    margin: 0 auto 52px;
    text-align: center;
}

.roket-guides-intro__title {
    margin-top: 0;
    margin-bottom: 20px;
}

.roket-guides-intro__text {
    max-width: 860px;
    margin: 0 auto;
}

.roket-guides-intro__text p {
    margin-top: 0;
    margin-bottom: 13px;
}

.roket-guides-intro__text p:last-child {
    margin-bottom: 0;
}

/* ------------------------------
   Guide grid
------------------------------ */
.roket-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 24px;
    width: 100%;
    align-items: start;
}

/* ------------------------------
   Guide cards
------------------------------ */
.roket-guide-card {
    min-width: 0;
    align-self: start;
    background: transparent;
}

.roket-guide-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f3f3f3;
}

.roket-guide-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition: transform .45s ease;
}

.roket-guide-card:hover .roket-guide-card__image {
    transform: scale(1.025);
}

.roket-guide-card__content {
    padding-top: 21px;
}

/* No font family, size, or heading weight is imposed here: h2/h3/p inherit
   the exact typography configured in Mikado Options on the site. */
.roket-guide-card__name {
    margin-top: 0;
    margin-bottom: 8px;
}

.roket-guide-card__role {
    margin-bottom: 15px;
    line-height: 1.5;
}

.roket-guide-card__description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    line-height: 1.75;
}

.roket-guide-card__more {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    line-height: 1.75;
    transition:
        max-height .46s cubic-bezier(.22, 1, .36, 1),
        opacity .28s ease,
        transform .38s cubic-bezier(.22, 1, .36, 1),
        margin-top .38s ease,
        visibility 0s linear .46s;
    will-change: max-height, opacity, transform;
}

.roket-guide-card__more.is-open {
    margin-top: 14px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        max-height .46s cubic-bezier(.22, 1, .36, 1),
        opacity .28s ease .05s,
        transform .38s cubic-bezier(.22, 1, .36, 1),
        margin-top .38s ease,
        visibility 0s linear 0s;
}

.roket-guide-card__more p {
    margin-top: 0;
    margin-bottom: 14px;
}

.roket-guide-card__more p:last-child {
    margin-bottom: 0;
}

.roket-guide-card__toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 0 0 5px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: #d95612;
    cursor: pointer;
    font: inherit;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: opacity .2s ease;
}

.roket-guide-card__toggle:hover {
    opacity: .62;
}

.roket-guide-card__toggle-icon {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.roket-guide-card.is-expanded .roket-guide-card__toggle-icon {
    transform: rotate(180deg);
}

@media only screen and (max-width: 1024px) {
    .roket-guides-section {
        padding: 58px 0 64px;
    }

    .roket-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 20px;
    }
}

@media only screen and (max-width: 680px) {
    .roket-guides-section {
        padding: 44px 0 50px;
    }

    .roket-guides-intro {
        margin-bottom: 34px;
    }

    .roket-guide-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .roket-guide-card__content {
        padding-top: 16px;
    }
}
