/**
 * Sauna prices and memberships as three choices ([ballyhass_sauna_choices], inc/sauna-choices.php),
 * on /sauna-and-swim/ and /sauna-and-swim-coachford/. Loaded only on a page whose body holds it.
 *
 * Eoghan, 11932004 point 3: the same design attention as the Wellness page. So it takes the Wellness
 * page's own vocabulary: the mint band its saunas sit on, Poppins black titles, navy and yellow
 * buttons in bold capitals, the filled and open status marker, the navy block with yellow words for a
 * label, and the white strip with a navy edge for the rule a customer must not miss.
 *
 * Tokens only. Every pairing is one tokens.css measures: navy on white and on mint, white on navy,
 * yellow on navy, deeper blue text on mint (5.26:1), muted on white (6.4:1).
 *
 * Responsive by content, not by device: one column on a phone; from 640px the first two choices side
 * by side and membership across both under them; from 992px the three in a row. Every grid child has
 * min-width 0 and long words wrap, so nothing runs off the right as the old section's cards did.
 */

.bh-sc {
    margin: 0;
    background: var(--bh-green-mint);
    color: var(--bh-on-white);
    font-family: var(--bh-font);
    font-weight: var(--bh-weight-medium);
    line-height: var(--bh-leading-body);
    overflow-wrap: break-word;
}

.bh-sc :is(h2, h3, h4, p, ul, ol, dl, dd) {
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: var(--bh-font);
}

.bh-sc :is(ul, ol) {
    list-style: none;
}

.bh-sc .bh-sc__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--bh-space-12) var(--bh-space-4);
}

/* ---- The head ------------------------------------------------------------------------------- */

.bh-sc .bh-sc__head {
    max-width: 62ch;
    margin-bottom: var(--bh-space-8);
}

.bh-sc .bh-sc__eyebrow {
    margin-bottom: var(--bh-space-2);
    color: var(--bh-blue-text-deep);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bh-sc .bh-sc__title {
    margin-bottom: var(--bh-space-4);
    font-size: clamp(1.75rem, 1.2rem + 2.2vw, var(--bh-text-2xl));
    font-weight: var(--bh-weight-black);
    line-height: var(--bh-leading-tight);
}

.bh-sc .bh-sc__lead {
    font-size: var(--bh-text-md);
}

/* ---- The three choices ---------------------------------------------------------------------- */

.bh-sc .bh-sc__choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--bh-space-4);
}

.bh-sc .bh-sc-choice {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--bh-space-6);
    border: 1px solid var(--bh-line);
    border-radius: var(--bh-radius-md);
    background: var(--bh-white);
}

.bh-sc .bh-sc-choice--member {
    border-color: var(--bh-navy);
    background: var(--bh-navy);
    color: var(--bh-on-navy);
}

.bh-sc .bh-sc-choice__step {
    display: flex;
    align-items: center;
    gap: var(--bh-space-2);
    margin-bottom: var(--bh-space-3);
    color: var(--bh-blue-text-deep);
    font-size: var(--bh-text-2xs);
    font-weight: var(--bh-weight-black);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bh-sc .bh-sc-choice--member .bh-sc-choice__step {
    color: var(--bh-yellow);
}

.bh-sc .bh-sc-choice__num {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--bh-radius-full);
    background: var(--bh-navy);
    color: var(--bh-yellow);
    font-size: var(--bh-text-2xs);
    letter-spacing: 0;
}

.bh-sc .bh-sc-choice--member .bh-sc-choice__num {
    background: var(--bh-yellow);
    color: var(--bh-on-yellow);
}

.bh-sc .bh-sc-choice__title {
    margin-bottom: var(--bh-space-3);
    font-size: var(--bh-text-lg);
    font-weight: var(--bh-weight-bold);
    line-height: 1.25;
}

.bh-sc .bh-sc-choice__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--bh-space-1) var(--bh-space-2);
    margin-bottom: var(--bh-space-3);
}

.bh-sc .bh-sc-choice__figure {
    font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
    font-weight: var(--bh-weight-black);
    line-height: 1;
}

.bh-sc .bh-sc-choice__per {
    color: var(--bh-muted);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-semibold);
}

.bh-sc .bh-sc-choice__lead {
    margin-bottom: var(--bh-space-3);
    font-size: var(--bh-text-md);
    font-weight: var(--bh-weight-bold);
    line-height: 1.35;
}

.bh-sc .bh-sc-choice--member .bh-sc-choice__lead {
    color: var(--bh-yellow);
    font-size: var(--bh-text-lg);
}

.bh-sc .bh-sc-choice__text {
    margin-bottom: var(--bh-space-6);
}

/* The action sits at the foot of every card, so the three line up. */
.bh-sc .bh-sc-choice__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--bh-space-2);
    margin-top: auto;
}

/* ---- Status: available now (filled) or not online (an open ring), as on the Wellness page ----- */

.bh-sc .bh-sc-status {
    display: inline-flex;
    align-items: center;
    gap: var(--bh-space-2);
    margin-bottom: var(--bh-space-3);
    font-size: var(--bh-text-2xs);
    font-weight: var(--bh-weight-black);
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.bh-sc .bh-sc-status__mark {
    flex: 0 0 auto;
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid var(--bh-navy);
    border-radius: var(--bh-radius-full);
    background: var(--bh-yellow);
}

.bh-sc .bh-sc-status--soon .bh-sc-status__mark {
    border-style: dashed;
    background: transparent;
}

.bh-sc .bh-sc-status__note {
    margin: calc(-1 * var(--bh-space-2)) 0 var(--bh-space-3);
    color: var(--bh-muted);
    font-size: var(--bh-text-xs);
}

/* ---- Buttons and links: bold capitals, rounded square --------------------------------------- */

.bh-sc .bh-sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 52px;
    padding: var(--bh-space-2) var(--bh-space-6);
    border: 2px solid transparent;
    border-radius: var(--bh-radius-sm);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-black);
    letter-spacing: 0.05em;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.bh-sc .bh-sc-btn--navy {
    background: var(--bh-navy);
    color: var(--bh-on-navy);
}

.bh-sc .bh-sc-btn--navy:hover {
    border-color: var(--bh-navy);
    background: var(--bh-yellow);
    color: var(--bh-on-yellow);
}

.bh-sc .bh-sc-btn--yellow {
    background: var(--bh-yellow);
    color: var(--bh-on-yellow);
}

.bh-sc .bh-sc-btn--yellow:hover {
    background: var(--bh-white);
    color: var(--bh-navy);
}

.bh-sc .bh-sc-btn--outline {
    border-color: var(--bh-navy);
    background: transparent;
    color: var(--bh-navy);
}

.bh-sc .bh-sc-btn--outline:hover {
    background: var(--bh-yellow);
    color: var(--bh-on-yellow);
}

.bh-sc .bh-sc__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--bh-target-comfortable);
    color: var(--bh-blue-text-deep);
    font-weight: var(--bh-weight-bold);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.bh-sc .bh-sc-choice .bh-sc__link {
    color: var(--bh-blue-text);
}

.bh-sc .bh-sc__link:hover {
    color: var(--bh-navy);
}

/* ---- Membership: monthly or prepaid ---------------------------------------------------------- */

.bh-sc .bh-sc-member {
    margin-top: var(--bh-space-12);
    scroll-margin-top: var(--bh-scroll-clear-top, var(--bh-space-16));
}

.bh-sc .bh-sc-member__title {
    max-width: 30ch;
    margin-bottom: var(--bh-space-2);
    font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2rem);
    font-weight: var(--bh-weight-black);
    line-height: var(--bh-leading-tight);
}

.bh-sc .bh-sc-member__lead {
    max-width: 62ch;
    margin-bottom: var(--bh-space-6);
    font-size: var(--bh-text-md);
}

.bh-sc .bh-sc-plans {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--bh-space-4);
}

.bh-sc .bh-sc-plan {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--bh-space-6);
    border: 1px solid var(--bh-line);
    border-radius: var(--bh-radius-md);
    background: var(--bh-white);
}

/* The brand's highlight: a navy block, yellow words, square corners. */
.bh-sc .bh-sc-plan__tag {
    align-self: flex-start;
    margin-bottom: var(--bh-space-3);
    padding: var(--bh-space-1) var(--bh-space-3);
    border-radius: var(--bh-radius-none);
    background: var(--bh-navy);
    color: var(--bh-yellow);
    font-size: var(--bh-text-2xs);
    font-weight: var(--bh-weight-black);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bh-sc .bh-sc-plan__title {
    margin-bottom: var(--bh-space-3);
    font-size: var(--bh-text-lg);
    font-weight: var(--bh-weight-bold);
    line-height: 1.25;
}

.bh-sc .bh-sc-plan__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--bh-space-1) var(--bh-space-2);
    margin-bottom: var(--bh-space-4);
}

.bh-sc .bh-sc-plan__figure {
    font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
    font-weight: var(--bh-weight-black);
    line-height: 1.1;
}

.bh-sc .bh-sc-plan__per {
    color: var(--bh-muted);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-semibold);
}

/* Each prepaid term on its own line: its length, its price, and the price with a pass already held. */
.bh-sc .bh-sc-plan__terms {
    display: grid;
    gap: var(--bh-space-3);
    margin-bottom: var(--bh-space-4);
}

.bh-sc .bh-sc-plan__term {
    display: grid;
    grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr);
    gap: var(--bh-space-1) var(--bh-space-4);
    align-items: baseline;
    padding-bottom: var(--bh-space-3);
    border-bottom: 1px solid var(--bh-line);
}

.bh-sc .bh-sc-plan__term dt {
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-black);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bh-sc .bh-sc-plan__term dd {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--bh-space-1) var(--bh-space-3);
    min-width: 0;
}

.bh-sc .bh-sc-plan__member {
    color: var(--bh-muted);
    font-size: var(--bh-text-xs);
}

.bh-sc .bh-sc__ticks li {
    position: relative;
    margin-bottom: var(--bh-space-2);
    padding-left: var(--bh-space-6);
}

.bh-sc .bh-sc__ticks li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 0.6em;
    height: 0.6em;
    border-radius: var(--bh-radius-full);
    background: var(--bh-blue);
}

.bh-sc .bh-sc-plan .bh-sc__ticks {
    margin-bottom: var(--bh-space-6);
}

.bh-sc .bh-sc-plan__actions {
    margin-top: auto;
}

.bh-sc .bh-sc-includes {
    margin-top: var(--bh-space-6);
    padding: var(--bh-space-6);
    border-radius: var(--bh-radius-md);
    background: var(--bh-white);
}

.bh-sc .bh-sc-includes__title {
    margin-bottom: var(--bh-space-4);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-black);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bh-sc .bh-sc-includes__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 var(--bh-space-8);
}

/* ---- The rules ------------------------------------------------------------------------------ */

.bh-sc .bh-sc-notes {
    display: grid;
    gap: var(--bh-space-3);
    margin-top: var(--bh-space-8);
}

.bh-sc .bh-sc-note {
    padding: var(--bh-space-4) var(--bh-space-5);
    background: var(--bh-white);
}

.bh-sc .bh-sc-note--rule {
    border-left: 6px solid var(--bh-navy);
    font-size: var(--bh-text-md);
}

.bh-sc .bh-sc-note__label {
    display: inline-block;
    margin-right: var(--bh-space-2);
    padding: var(--bh-space-1) var(--bh-space-3);
    border-radius: var(--bh-radius-none);
    background: var(--bh-navy);
    color: var(--bh-yellow);
    font-size: var(--bh-text-2xs);
    font-weight: var(--bh-weight-black);
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
    vertical-align: 0.15em;
}

.bh-sc .bh-sc-note strong {
    font-weight: var(--bh-weight-bold);
}

/* ---- Wider screens -------------------------------------------------------------------------- */

@media (min-width: 640px) {
    .bh-sc .bh-sc__inner {
        padding: var(--bh-space-16) var(--bh-space-6);
    }

    /* Two choices side by side, membership across both under them. */
    .bh-sc .bh-sc__choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bh-sc .bh-sc-choice--member {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .bh-sc .bh-sc-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bh-sc .bh-sc-includes__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .bh-sc .bh-sc__choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bh-sc .bh-sc-choice--member {
        grid-column: auto;
    }
}

@media (max-width: 639.98px) {
    .bh-sc .bh-sc-choice__actions .bh-sc-btn,
    .bh-sc .bh-sc-plan__actions .bh-sc-btn {
        width: 100%;
    }
}
