/**
 * Membership call to action.
 */

.srpc-join {
    margin: 40px 0;
}

.srpc-join-heading {
    font-family: var(--srpc-font-display);
    font-size: var(--srpc-text-2xl);
    font-weight: 700;
    letter-spacing: -0.018em;
    color: var(--srpc-navy);
    margin: 0 0 0.6rem;
}

.srpc-join-lead {
    font-size: var(--srpc-text-lg);
    line-height: 1.5;
    color: var(--srpc-ink-soft);
    max-width: 60ch;
    margin: 0 0 1.2rem;
}

/* --- the dues-calendar notice --- */

.srpc-join-notice {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-radius: var(--srpc-radius);
    padding: 0.9rem 1.1rem;
    margin: 0 0 1.4rem;
    border-left: 4px solid var(--srpc-steel);
    background: var(--srpc-surface);
}

.srpc-join-notice strong {
    font-family: var(--srpc-font-display);
    font-size: var(--srpc-text-md);
    font-weight: 700;
    color: var(--srpc-ink);
}

.srpc-join-notice span {
    font-size: var(--srpc-text-sm);
    color: var(--srpc-ink-soft);
    line-height: 1.5;
}

/* Reduced dues running out is the one state worth shouting about. */
.srpc-join-notice--prorated {
    border-left-color: var(--srpc-orange);
    background: var(--srpc-orange-tint);
}

.srpc-join-notice--prorated strong {
    color: var(--srpc-orange-deep);
}

.srpc-join-notice--closed {
    border-left-color: var(--srpc-navy);
    background: var(--srpc-navy-tint);
}

/* --- rates --- */

.srpc-join-rates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 0 0 1.4rem;
}

.srpc-join-rate {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.1rem 0.8rem;
    align-items: baseline;
    border: 1px solid var(--srpc-rule);
    border-radius: var(--srpc-radius);
    padding: 0.9rem 1.1rem;
    background: var(--srpc-paper);
}

.srpc-join-rate-name {
    font-family: var(--srpc-font-display);
    font-size: var(--srpc-text-md);
    font-weight: 700;
    color: var(--srpc-navy);
}

.srpc-join-rate-price {
    font-family: var(--srpc-font-display);
    font-size: var(--srpc-text-xl);
    font-weight: 700;
    color: var(--srpc-orange-deep);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Sits directly under the figure so the period is read with the price rather
   than buried in the sentence below it. */
.srpc-join-rate-period {
    grid-column: 2;
    text-align: right;
    font-size: var(--srpc-text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--srpc-steel);
    line-height: 1.2;
}

.srpc-join-rate-note {
    grid-column: 1 / -1;
    font-size: var(--srpc-text-sm);
    line-height: 1.45;
    color: var(--srpc-steel);
    margin-top: 0.5rem;
}

/* --- steps --- */

.srpc-join-steps {
    counter-reset: joinstep;
    list-style: none;
    margin: 0 0 1.4rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    max-width: 62ch;
}

.srpc-join-steps li {
    counter-increment: joinstep;
    position: relative;
    padding-left: 2.1rem;
    line-height: 1.5;
}

.srpc-join-steps li::before {
    content: counter(joinstep);
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--srpc-navy);
    color: #fff;
    font-family: var(--srpc-font-display);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- actions --- */

.srpc-join-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.4rem;
    margin: 0 0 1rem;
}

.srpc-join .srpc-join-btn {
    display: inline-block;
    background: var(--srpc-orange);
    color: #fff !important;
    font-family: var(--srpc-font-display);
    font-weight: 600;
    font-size: var(--srpc-text-md);
    padding: 0.7rem 1.4rem;
    border-radius: var(--srpc-radius);
    text-decoration: none;
    transition: background 0.15s ease;
}

.srpc-join .srpc-join-btn:hover,
.srpc-join .srpc-join-btn:focus {
    background: var(--srpc-orange-deep);
    color: #fff !important;
}

.srpc-join-link {
    font-weight: 600;
}

.srpc-join-foot {
    font-size: var(--srpc-text-sm);
    color: var(--srpc-steel);
    margin: 0;
}

@media (max-width: 420px) {
    .srpc-join {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Homepage layout note (structure lives in Elementor, not here):
   section 1 — two columns, membership block beside the upcoming events feed
   section 2 — one full-width column, galleries and the rest
   The events feed is short and the content below it is long, so carrying the
   two-column split all the way down left a tall empty gutter on the right.
   Splitting at the membership block gives the galleries the full width —
   four tiles per row instead of three. */
