/* Public league landing: inherits each league's selected palette. */
.league-space-shell .space-hero .space-hero__copy p {
    display: -webkit-box !important;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 65ch;
    color: #fff !important;
    opacity: .92;
    line-height: 1.55 !important;
    font-size: clamp(.88rem, 1.1vw, 1rem) !important;
    margin: 16px 0 !important;
}
.league-landing-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.league-space-shell .league-landing-button {
    display:inline-flex; align-items:center; justify-content:center; gap:12px;
    min-height:48px; padding:12px 20px; border-radius:12px; font-size:.92rem;
    font-weight:750; text-decoration:none; border:1px solid transparent;
    background:var(--space-accent, #1554c7); color:#fff !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
.league-space-shell .league-landing-button:hover { transform:translateY(-2px); box-shadow:0 6px 16px #13223826; }
.league-space-shell .league-landing-button--hero { background:#fff; color:#132238 !important; }
.league-space-shell .league-landing-button--ghost { background:#ffffff14; border-color:#ffffff66; color:#fff !important; }
.league-landing-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:14px; margin:24px 0; }
.league-space-shell .space-hero-stage > :is(.league-landing-stats, .league-landing-section) { grid-column:1 / -1; min-width:0; width:100%; }
.league-landing-stats > div { padding:20px; border-radius:18px; border:1px solid #dfe8f3; background:var(--space-block-color,#fff); }
.league-landing-stats strong { display:block; font-size:clamp(1.6rem,3vw,2.4rem); font-weight:850; color:#132238; line-height:1.2; }
.league-landing-stats span { display:block; margin-top:8px; font-size:.8rem; color:#62748c; }
.league-landing-section { margin:32px 0; scroll-margin-top:24px; }
.league-landing-section-heading > span, .league-landing-kicker { color:var(--space-accent,#1554c7); font-size:.72rem; font-weight:800; letter-spacing:.12em; }
.league-space-shell .league-landing-section h2, .league-space-shell .league-landing-contact h2 { color:#132238; font-size:clamp(1.4rem,2.8vw,2.2rem); line-height:1.15; margin:10px 0 22px; font-weight:850; }
.league-landing-benefits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.league-landing-benefits article { padding:24px; border-radius:20px; background:var(--space-block-color,#fff); border:1px solid #dfe8f3; }
.league-landing-number { display:inline-block; color:var(--space-accent,#1554c7); font-size:1.35rem; font-weight:800; margin-bottom:22px; }
.league-space-shell .league-landing-benefits h3 { color:#132238; font-size:1.05rem; font-weight:750; margin:0 0 10px; }
.league-landing-benefits p, .league-landing-faq p, .league-landing-contact p { color:#62748c; font-size:.9rem; line-height:1.65; margin:0; white-space:pre-line; overflow-wrap:anywhere; }
.league-landing-bottom { grid-column:1 / -1; order:4; width:100%; min-width:0; }
.league-landing-faq details { border:1px solid #dfe8f3; border-radius:16px; background:var(--space-block-color,#fff); margin:10px 0; }
.league-landing-faq summary { cursor:pointer; padding:20px 24px; color:#132238; font-weight:750; font-size:.98rem; }
.league-landing-faq p { padding:0 24px 24px; }
.league-landing-contact { display:grid; grid-template-columns:1.5fr 1fr; gap:32px; padding:36px; margin:32px 0; border:1px solid #dfe8f3; border-radius:24px; background:linear-gradient(135deg,var(--space-block-color,#fff),color-mix(in srgb,var(--space-accent,#1554c7) 8%,white)); scroll-margin-top:24px; }
.league-landing-contact-links { display:flex; flex-direction:column; justify-content:center; gap:10px; }
.landing-editor-item { padding:14px; border:1px solid #dfe8f3; border-radius:12px; margin:10px 0; }
.landing-editor-item summary { cursor:pointer; font-weight:700; color:#132238; margin-bottom:12px; }
.landing-editor-item:not([open]) summary { margin-bottom:0; }
#spaceSettingsModal .modal-content { background:#fff !important; opacity:1 !important; color:#132238 !important; }
#spaceSettingsModal .modal-body { max-height:calc(100dvh - 190px); overflow-y:auto; }
#spaceSettingsModal .modal-footer { position:sticky; bottom:0; background:#fff; }
.league-landing-button:focus-visible, .league-landing-faq summary:focus-visible { outline:3px solid #facc15; outline-offset:3px; }
@media(max-width:991px) {
    .league-landing-bottom { width:100%; }
    .league-space-shell .space-hero .space-hero__main { align-items:flex-start !important; }
    .league-space-shell .space-hero { min-height:320px !important; padding:24px !important; }
    .league-space-shell .space-hero .space-hero__content { width:100%; min-width:0; }
    .league-space-shell .space-hero .space-hero__figure { display:none !important; }
    .league-landing-benefits { grid-template-columns:1fr; }
    .league-landing-benefits article { padding:20px; }
    .league-landing-number { margin-bottom:12px; }
    .league-landing-contact { grid-template-columns:1fr; padding:24px; gap:22px; }
    .league-landing-hero-actions { gap:8px; }
    .league-space-shell .league-landing-button { padding:12px 16px; font-size:.85rem; }
    .league-landing-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
}
@media(prefers-reduced-motion:reduce) { .league-space-shell .league-landing-button { transition:none; } }

.league-space-shell .space-hero-stage .space-division-tabs.space-division-tabs--custom a.space-division-tab:not(.btn):not(.badge):not(.dropdown-item) {
    background:var(--division-button-bg) !important;
    color:var(--division-button-color) !important;
    border-color:color-mix(in srgb,var(--division-button-color) 25%,var(--division-button-bg)) !important;
    font-family:var(--division-button-font) !important;
    font-size:var(--division-button-size) !important;
    line-height:1.2 !important;
    white-space:normal !important;
    overflow-wrap:anywhere;
}
.league-space-shell .space-hero-stage .space-division-tabs.space-division-tabs--custom .space-division-tab::before,
.league-space-shell .space-hero-stage .space-division-tabs.space-division-tabs--custom .space-division-tab::after {
    display:none !important;
}
.league-space-shell .space-hero-stage .space-division-tabs.space-division-tabs--custom a.space-division-tab:not(.btn):not(.badge):not(.dropdown-item):hover {
    background:color-mix(in srgb,var(--division-button-bg) 90%,var(--division-button-color)) !important;
}
/* A taller playoff card must not stretch the neighbouring league tables. */
.league-space-shell .space-standings-feed {
    align-items:start;
}
