/**
 * Join Our Team page.
 *
 * Plain CSS, enqueued by page-join-our-team.php on that template only, rather
 * than a partial in the SCSS bundle. Two reasons: it keeps ~4 KB off every
 * other page, and the bundle's toolchain (node-sass under gulp, plus
 * tools/build-assets.mjs) does not currently run on this machine's Node.
 * If that is fixed, folding this into assets/scss/pages/ is a straight move.
 *
 * The form itself is styled by the Taste Team Applications plugin. This file
 * gives it the Street Food Festivals brand by setting the plugin's --tta-* tokens, and
 * lays out the page around it.
 */

.join-team {
    --tta-font: 'Montserrat', sans-serif;
    --tta-heading-font: 'Alfa Slab One', sans-serif;
    /* Alfa Slab One ships one weight; anything heavier is a faked bold. */
    --tta-heading-weight: 400;
    --tta-ink: #181A1D;
    --tta-text: #424242;
    --tta-muted: #5c6066;
    --tta-select: #192C4C;
    --tta-select-ink: #FFFFFF;
    --tta-mark: #FBB03D;
    --tta-rule: #FBB03D;
    /* Square-cornered, like this site's buttons and event cards. */
    --tta-chip-radius: 4px;
    --tta-pill-radius: 4px;

    --join-pale: #F3F1E5;
    --join-hero-shade: 25, 44, 76;
    --join-bullet-radius: 2px;
}

/* Foundation's 10px phone gutter puts body copy against the screen edge; this
   page is mostly reading and form-filling, so it gets the hero's 20px. */
@media (max-width: 639px) {
    .join-team .grid-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------ */

.join-hero {
    position: relative;
    isolation: isolate;
    background-color: rgb(var(--join-hero-shade));
    background-position: center;
    background-size: cover;
    color: #FFFFFF;
    text-align: center;
}

.join-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(var(--join-hero-shade), 0.62) 0%, rgba(var(--join-hero-shade), 0.82) 100%);
}

.join-hero__inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 64px 20px 72px;
}

.join-hero__title {
    margin: 0 0 18px;
    font-family: var(--tta-heading-font);
    font-size: 34px;
    font-weight: var(--tta-heading-weight);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    text-wrap: balance;
}

.join-hero__lead p {
    max-width: 60ch;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.join-hero__lead p + p {
    margin-top: 12px;
}

.join-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 28px;
    margin-top: 32px;
}

.join-hero .join-hero__cta {
    padding: 16px 36px;
    font-size: 16px;
}

.join-hero__link {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-color: var(--tta-rule);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.join-hero__link:hover,
.join-hero__link:focus {
    color: var(--tta-rule);
}

/* The theme's focus ring is the dark neutral, which disappears on this
   background. White keeps the same 3px ring visible on the photo. */
.join-hero a:focus-visible {
    outline-color: #FFFFFF;
}

@media (min-width: 768px) {
    .join-hero__inner {
        padding: 104px 24px 112px;
    }

    .join-hero__title {
        font-size: 52px;
    }

    .join-hero__lead p {
        font-size: 20px;
    }
}

/* ------------------------------------------------------------------------
   Roles
   ------------------------------------------------------------------------ */

.join-roles {
    padding: 8px 0 72px;
}

.join-roles .events-block__title {
    padding-top: 56px;
    padding-bottom: 48px;
}

.join-roles__note {
    margin: 48px 0 0;
    font-size: 15px;
    color: var(--tta-muted);
}

@media (min-width: 768px) {
    .join-roles {
        padding-bottom: 96px;
    }
}

/* ------------------------------------------------------------------------
   Application
   ------------------------------------------------------------------------ */

.join-apply {
    padding: 56px 0;
    background: var(--join-pale);
    scroll-margin-top: 90px;
}

.join-apply__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}

.join-apply__title {
    margin: 0 0 14px;
    font-family: var(--tta-heading-font);
    font-size: 30px;
    font-weight: var(--tta-heading-weight);
    line-height: 1.15;
    color: var(--tta-ink);
}

.join-apply__aside p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--tta-text);
    max-width: 52ch;
}

.join-apply__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(24, 26, 29, 0.14);
}

.join-apply__facts li {
    position: relative;
    margin: 0;
    padding: 13px 0 13px 24px;
    border-bottom: 1px solid rgba(24, 26, 29, 0.14);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tta-ink);
}

.join-apply__facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 11px;
    height: 11px;
    margin-top: -5px;
    border-radius: var(--join-bullet-radius, 1px 6px 1px 6px);
    background: var(--tta-rule);
}

.join-apply__panel {
    padding: 28px 20px;
    border-radius: 4px;
    background: #FFFFFF;
}

@media (min-width: 768px) {
    .join-apply {
        padding: 96px 0;
    }

    .join-apply__panel {
        padding: 44px 48px;
    }

    .join-apply__title {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .join-apply__layout {
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        gap: 56px;
        align-items: start;
    }

    /* Stays in view beside a long form, below the fixed header. */
    .join-apply__aside {
        position: sticky;
        top: 140px;
    }
}
