/* joinUs.css - the Join Us page (rebuilt 2026-09-24).
 *
 * The page answers one question - how do I join? - and it used to answer it
 * with a single centred box of bullets nested two deep, where the order of
 * the steps was implied rather than shown and the two links were small
 * unlabelled logos at the bottom. It is numbered steps now, each with the
 * one thing to click, on the shared card vocabulary the Supply Chain pages
 * set. Every link the old page had is still here: the Discord invite, the
 * RSI org page and the Officers page.
 *
 * The video and its two flanking images are unchanged.
 */

/* ---------------- Video band (unchanged) ---------------- */

.youtube-video-container {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    align-items: center;
    width: 100%;
    height: auto;
    /* Seems to set height to the smallest content - iframe in this case */

    transition: grid-template-columns 0.5s ease;
}

.youtube-video-container-center iframe {
    aspect-ratio: 16/9;
    height: auto;
}

.youtube-video-container-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.youtube-video-container-left {
    background-image: url('../images/webp/10.webp');
    background-position: center;
    background-size: cover;

    width: 100%;
    height: 100%;
}

.youtube-video-container-right {
    background-image: url('../images/webp/12.webp');
    background-position: center;
    background-size: cover;

    width: 100%;
    height: 100%;
}

@media screen and (max-width: 1388px) {
    /* Below 1388px the flanking images go, so the video can take the full
       width (1200px is the iframe's own max). */
    .youtube-video-container {
        grid-template-columns: 0fr 1fr 0fr;
    }
}

/* ---------------- The joining instructions ---------------- */

.join-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
}

.join-page h2 {
    margin: 0 0 1.5rem;
}

/* The one hard requirement. It was the second of seven bullets, which is
   exactly where somebody skim-reading would miss it. */
/* NOT display:flex. A flex container makes every text run its own flex
   item, so the full stop after </strong> gets its own box and drifts away
   from the word before it - the same trap .sc-offer-line fell into (see the
   site notes' gotchas). Block, with the icon given its gap by a margin. */
.join-rule {
    display: block;
    margin: 0 0 2rem;
    padding: 0.9rem 1.1rem;
    background: var(--background-dark);
    border: 1px solid var(--highlight-colour);
    border-left: 0.25rem solid var(--highlight-colour);
    border-radius: var(--radius1);
    line-height: 1.5;
}

.join-rule i {
    margin-right: 0.6rem;
    color: var(--highlight-colour);
    font-size: 1.2rem;
}

/* The steps. A real <ol> - the order matters, and a screen reader should
   hear "1 of 3" rather than a flat list. The visible number is a separate
   element so it can be a circle; the list's own marker is off. */
.join-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    counter-reset: joinstep;
}

.join-steps > li {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.25rem;
    background-image: var(--gradient-light);
    border: 0.125rem solid var(--highlight-colour);
    border-radius: var(--radius1);
    text-align: left;
}

.join-step-no {
    flex: 0 0 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border: 0.125rem solid var(--highlight-colour);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #fff;
}

.join-step-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
}

/* root.css centres every h1/h2/h3 site-wide, which is right for a page
   title and wrong beside a numbered bullet. */
.join-step-body h3 {
    margin: 0;
    text-align: left;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.join-step-body p {
    margin: 0;
    line-height: 1.6;
}

.join-step-body .os-btn img {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.join-step-body .os-btn:hover img {
    transform: scale(1.12);
    filter: brightness(130%);
}

.join-footnote {
    margin: 2rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-colour);
    line-height: 1.6;
    color: var(--muted);
}

.join-footnote a,
.join-rule a {
    color: var(--highlight-colour);
}

/* ---------------- Narrow screens ---------------- */

@media screen and (max-width: 620px) {
    .join-page {
        padding: 2rem 1rem 2.5rem;
    }

    /* The number moves above the text rather than squeezing it into a
       column a few words wide. */
    .join-steps > li {
        flex-direction: column;
        gap: 0.8rem;
    }

    .join-step-body .os-btn {
        width: 100%;
    }
}
