/* ========================================================================== 
   CM Legends · Supporter comparison, membership badge and billing setup
   Shared by the account page, billing page and public Supporter badges.
   ========================================================================== */

/* Comparison */
.sp-poster {
    --sp-promo-line: #29445f;
    --sp-promo-muted: #a1b9d0;
    --sp-promo-gold: #ffd45e;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 0 22px;
    padding: clamp(20px, 2.5vw, 34px);
    border: 1px solid #294a6d;
    border-radius: 14px;
    background:
        radial-gradient(ellipse at 100% 0, #15426e45, transparent 52%),
        linear-gradient(125deg, #0b1930, #071222 68%);
    color: #eaf3ff;
    font-family: inherit;
    box-shadow: 0 12px 32px #0002;
}

.sp-poster *,
.sp-poster *::before,
.sp-poster *::after {
    box-sizing: border-box;
}

.sp-poster::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, #2582ed, #59cfff 48%, #ffd45e);
    pointer-events: none;
}

.sp-ui-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.sp-poster .sp-poster-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #739bbe26;
}

.sp-poster-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #e5f1ff;
    font-size: .7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.sp-poster-brand > .sp-ui-icon {
    width: 17px;
    height: 17px;
    color: var(--sp-promo-gold);
}

.sp-poster-brand-divider {
    color: #6d8da9;
}

.sp-poster .sp-poster-test {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid #466a8b;
    border-radius: 6px;
    background: #0c2439;
    color: #c0d9ef;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.5;
}

.sp-poster .sp-poster-test.is-sandbox {
    border-color: #80642d;
    background: #332817;
    color: #ffe0a0;
}

.sp-poster-status-dot {
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #76dbc4;
}

.sp-poster .is-sandbox .sp-poster-status-dot {
    background: #ffd45e;
}

.sp-poster .sp-poster-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .75fr);
    align-items: center;
    gap: 26px;
    padding: 30px 0;
    border: 0;
    background: none;
}

.sp-poster-copy {
    min-width: 0;
}

.sp-poster p.sp-poster-eyebrow {
    margin: 0 0 12px;
    color: #90b8d8;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.sp-poster .sp-poster-heading h1 {
    margin: 0;
    color: #f3f7ff;
    font-family: var(--display-font, 'Orbitron', 'Arial Narrow', Arial, sans-serif);
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-transform: none;
    text-shadow: none;
}

.sp-poster .sp-poster-heading h1 > span {
    color: var(--sp-promo-gold);
}

.sp-poster p.sp-poster-intro {
    max-width: 500px;
    margin: 15px 0 0;
    color: #b1c9df;
    font-size: .88rem;
    line-height: 1.7;
}

.sp-poster-promise {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    max-width: 370px;
    justify-self: end;
    padding: 22px;
    border: 1px solid #355976;
    border-radius: 10px;
    background: linear-gradient(120deg, #10334b80, #0a203480);
}

.sp-poster-promise-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    height: 44px;
    color: #7fe0c7;
}

.sp-poster-promise-icon .sp-ui-icon {
    width: 38px;
    height: 38px;
}

.sp-poster-promise-kicker {
    display: block;
    margin-bottom: 7px;
    color: #7fe0c7;
    font-size: .62rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sp-poster-promise strong {
    display: block;
    color: #eef8ff;
    font-size: 1.08rem;
    line-height: 1.4;
}

.sp-poster-promise p {
    margin: 8px 0 0;
    color: #a5c0d6;
    font-size: .76rem;
    line-height: 1.7;
}

.sp-poster-tiers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sp-poster-tiers > article {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--sp-promo-line);
    border-radius: 12px;
}

.sp-poster-tiers > .sp-poster-free {
    background: linear-gradient(135deg, #0c2339, #0a1a2c);
}

.sp-poster-tiers > .sp-poster-plus {
    border-color: #aa8738;
    background:
        radial-gradient(ellipse at 100% 0, #ffc84d0e, transparent 60%),
        linear-gradient(135deg, #152637, #101e30);
    box-shadow: inset 0 2px 0 #ffd45e, 0 0 24px #f6c45305;
}

.sp-poster-tier-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 26px;
    margin-bottom: 18px;
}

.sp-poster-label {
    color: #9dbbd5;
    font-size: .62rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.sp-poster-plus .sp-poster-label {
    color: var(--sp-promo-gold);
}

.sp-poster-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #3b5f7a;
    border-radius: 5px;
    background: #122d43;
    color: #b8d2e6;
    font-size: .62rem;
    font-weight: 650;
    line-height: 1.5;
}

.sp-poster-plus .sp-poster-tier-badge {
    border-color: #7d6839;
    background: #352f20;
    color: #ffe196;
}

.sp-poster-plus .sp-poster-tier-badge.is-active {
    border-color: #3d806e;
    background: #163d35;
    color: #a1f0d8;
}

.sp-poster-tier-badge .sp-ui-icon {
    width: 13px;
    height: 13px;
}

.sp-poster-tier-title {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 66px;
}

.sp-poster-tier-title > div {
    min-width: 0;
}

.sp-poster-tier-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    height: 46px;
    border: 1px solid #3a6385;
    border-radius: 10px;
    background: #133452;
    color: #8ccfff;
}

.sp-poster-plus .sp-poster-tier-icon {
    border-color: #86713c;
    background: #343123;
    color: var(--sp-promo-gold);
}

.sp-poster-tier-icon .sp-ui-icon {
    width: 24px;
    height: 24px;
}

.sp-poster .sp-poster-tier-title h2 {
    margin: 0;
    color: #f1f6ff;
    font-family: var(--display-font, 'Orbitron', 'Arial Narrow', Arial, sans-serif);
    font-size: clamp(1.35rem, 2.1vw, 1.7rem);
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.015em;
    text-transform: none;
}

.sp-poster-tier-title p {
    margin: 6px 0 0;
    color: var(--sp-promo-muted);
    font-size: .75rem;
    line-height: 1.6;
}

.sp-poster-offer {
    min-height: 142px;
    margin: 18px 0 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid #7599b52b;
}

.sp-poster p.sp-poster-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    color: #f5f9ff;
    font-size: clamp(2.55rem, 4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
}

.sp-poster-plus p.sp-poster-price {
    color: var(--sp-promo-gold);
}

.sp-poster .sp-poster-price small {
    color: #a9c3da;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: normal;
}

.sp-poster p.sp-poster-year {
    margin: 9px 0 0;
    color: #a7c0d5;
    font-size: .76rem;
    line-height: 1.85;
}

.sp-poster-year strong {
    color: #d9e9f8;
    font-weight: 650;
}

.sp-poster .sp-poster-saving {
    display: table;
    margin-top: 6px;
    padding: 3px 8px;
    border: 1px solid #82733f66;
    border-radius: 5px;
    background: #3b35214d;
    color: #ffe29b;
    font-size: .66rem;
    font-weight: 650;
    line-height: 1.6;
}

.sp-poster ul.sp-poster-features {
    display: grid;
    gap: 11px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.sp-poster-features > li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 26px;
    margin: 0;
    padding: 0;
    color: #c9dceb;
    font-size: .8rem;
    line-height: 1.6;
}

.sp-poster-features > li > .sp-ui-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: #7cbadd;
}

.sp-poster-plus .sp-poster-features > li > .sp-ui-icon {
    color: var(--sp-promo-gold);
}

.sp-poster-features strong {
    color: #f1f7ff;
    font-weight: 700;
}

.sp-poster-bottom {
    margin-top: auto;
}

.sp-poster-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #34516c;
    border-radius: 7px;
    background: #0b1b2b;
    color: #b6d0e6;
    font-size: .77rem;
    font-weight: 650;
    line-height: 1.5;
    text-align: center;
}

.sp-poster-chip .sp-ui-icon {
    width: 18px;
    height: 18px;
    color: #8dd2b9;
}

.sp-poster a.sp-poster-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid #ffe493;
    border-radius: 7px;
    background: linear-gradient(110deg, #ffda67, #f2bd3c);
    color: #161e2c;
    box-shadow: 0 3px 12px #0002;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.sp-poster a.sp-poster-cta:hover {
    border-color: #fff1bc;
    background: linear-gradient(110deg, #ffe48c, #ffd15a);
    color: #0f1825;
    box-shadow: 0 4px 18px #efbd3724;
    text-decoration: none;
}

.sp-poster a.sp-poster-cta:focus-visible {
    outline: 3px solid #8bd5ff;
    outline-offset: 4px;
}

.sp-poster-fair {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid #2e5a61;
    border-radius: 9px;
    background: linear-gradient(100deg, #10333780, #0b263080);
}

.sp-poster-fair-icon {
    flex: 0 0 auto;
    color: #7dd8bc;
}

.sp-poster-fair-icon .sp-ui-icon {
    width: 26px;
    height: 26px;
}

.sp-poster-fair p {
    flex: 1;
    margin: 0;
    color: #adc9d5;
    font-size: .73rem;
    line-height: 1.7;
}

.sp-poster-fair strong {
    display: block;
    margin-bottom: 3px;
    color: #e1f3ec;
    font-size: .84rem;
}

.sp-poster-fair-tag {
    flex: 0 0 auto;
    color: #8ed9c3;
    font-size: .6rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sp-poster-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 30px;
    margin-top: 18px;
    color: #8ba8c2;
    font-size: .67rem;
    line-height: 1.65;
}

.sp-poster-footer > span:first-child {
    padding-top: 2px;
    color: #b0cadf;
    font-weight: 600;
}

.sp-poster-footer > span:last-child {
    max-width: 350px;
    text-align: right;
}

/* The badge indicates active access, not an earned sporting achievement. */
.sp-supporter-badge {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    max-width: 100%;
    padding: 9px 15px 9px 10px;
    overflow: hidden;
    vertical-align: middle;
    border: 1px solid #a58a45;
    border-radius: 9px;
    background: linear-gradient(115deg, #26323a, #101f32 65%, #2c2c27);
    color: #ffe2a0;
    box-shadow: inset 0 0 0 2px #e4b66708;
    line-height: 1;
    white-space: normal;
}

.sp-supporter-badge::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 15%, #ffe9ba0c 37%, transparent 60%);
}

.sp-supporter-emblem {
    display: block;
    width: 32px;
    height: 37px;
    flex: 0 0 32px;
    color: #f2cc77;
}

.sp-supporter-emblem svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sp-supporter-lettering {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sp-supporter-badge .sp-supporter-lettering small {
    margin: 0;
    color: #c9c6ad;
    font: 700 8px/1.2 Arial, sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.sp-supporter-badge .sp-supporter-lettering strong {
    color: #ffe5ad;
    font: 800 15px/1.2 Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sp-supporter-spark {
    margin-left: 3px;
    color: #e8c16e;
    font-size: 15px;
}

.manager-profile-heading {
    min-width: 0;
}

.manager-profile-heading .sp-supporter-badge {
    margin-top: 12px;
}

.manager-profile-hero.sp-profile-supporter .manager-profile-avatar {
    border: 2px solid #edc87c;
    box-shadow: 0 0 0 5px #edc87c12, 0 0 24px #b79b4b22;
}

.sp-profile-motto:empty {
    display: none;
}

/* Administrator-only billing diagnostics. */
.sp-billing-setup {
    margin: 20px 0;
    padding: 22px;
    border: 1px solid #876d3d;
    border-left: 3px solid #eebc5c;
    border-radius: 9px;
    background: #24272c;
    color: #d9dfdf;
}

.sp-billing-setup .sp-kicker {
    color: #ffdb9e;
}

.sp-billing-setup h2 {
    color: #fff1d8;
    font-size: 1.35rem;
}

.sp-billing-setup ul {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.sp-billing-setup li {
    padding: 14px;
    border: 1px solid #5b5d59;
    border-radius: 6px;
    background: #0a1727;
}

.sp-billing-setup li strong {
    display: block;
    margin-bottom: 6px;
    color: #ffe1a2;
    font-size: 14px;
}

.sp-billing-setup li span {
    display: block;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.sp-billing-setup .sp-billing-setup-foot {
    margin-bottom: 0;
    color: #bcbfbf;
    font-size: 12px;
}

#supporter-checkout {
    scroll-margin-top: 100px;
}

/* Responsive layout */
@media (max-width: 1050px) {
    .sp-poster .sp-poster-heading {
        grid-template-columns: minmax(0, 1fr) minmax(245px, .75fr);
        gap: 20px;
    }

    .sp-poster-promise {
        padding: 18px;
        gap: 10px;
    }

    .sp-poster-tiers > article {
        padding: 20px;
    }

    .sp-poster-tier-top {
        align-content: flex-start;
        min-height: 56px;
    }

    .sp-poster-fair-tag {
        display: none;
    }
}

@media (max-width: 760px) {
    .sp-poster .sp-poster-heading {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 0;
    }

    .sp-poster-promise {
        width: 100%;
        max-width: none;
        justify-self: stretch;
        padding: 16px;
    }

    .sp-poster-tiers {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .sp-poster-tier-top {
        min-height: 0;
    }

    .sp-poster-offer {
        min-height: 0;
    }

    .sp-poster-footer {
        flex-direction: column;
        gap: 9px;
    }

    .sp-poster-footer > span:last-child {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .sp-poster {
        padding: 18px 14px;
        border-radius: 10px;
    }

    .sp-poster-brand {
        gap: 7px;
        font-size: .59rem;
    }

    .sp-poster .sp-poster-test {
        font-size: .62rem;
    }

    .sp-poster .sp-poster-heading h1 {
        font-size: clamp(1.9rem, 9.5vw, 2.7rem);
    }

    .sp-poster p.sp-poster-eyebrow {
        font-size: .6rem;
        letter-spacing: .065em;
    }

    .sp-poster-tiers > article {
        padding: 18px 16px;
    }

    .sp-poster-tier-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

    .sp-poster-tier-title {
        align-items: flex-start;
        gap: 10px;
    }

    .sp-poster-tier-icon {
        flex-basis: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .sp-poster .sp-poster-tier-title h2 {
        font-size: 1.3rem;
    }

    .sp-poster-features > li {
        font-size: .77rem;
    }

    .sp-poster-fair {
        align-items: flex-start;
        padding: 15px;
        gap: 10px;
    }

    .sp-billing-setup {
        padding: 16px;
    }

    .sp-billing-setup h2 {
        font-size: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-poster a.sp-poster-cta {
        transition: none;
    }
}

@media print {
    .sp-poster,
    .sp-poster-tiers > article {
        box-shadow: none;
        break-inside: avoid;
    }

    .sp-poster a.sp-poster-cta,
    .sp-poster-test {
        display: none !important;
    }

    .sp-supporter-badge {
        box-shadow: none;
    }

    .sp-supporter-badge,
    .sp-poster {
        print-color-adjust: exact;
    }
}
