/* Shared presentation pass for the non-editorial Alfa Chess pages. */
body.school-site:not(.home-premium) {
    background: var(--school-paper, #faf9f6) !important;
    background-image: none !important;
    color: var(--school-text, #172033) !important;
}

body.school-site:not(.home-premium) :is(.bg-animated, .bg-gradient) {
    display: none !important;
}

body.school-site:not(.home-premium) :is(.hero, .section, .article-section, .faq, .cta-section, .contacts-hero, .policy-hero, .policy-section, .pricing-hero, .pricing-included, .refer-hero, .refer-mutual, .refer-steps, .refer-terms, .refer-final, .success-main) {
    background-image: none !important;
    border-color: transparent;
}

body.school-site:not(.home-premium) .container {
    width: min(100% - 48px, 1200px);
    max-width: 1200px;
    margin-inline: auto;
}

body.school-site:not(.home-premium) :is(h1, h2, h3, h4) {
    color: var(--school-ink, #10243f) !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    font-weight: 600 !important;
    letter-spacing: -.02em !important;
    text-wrap: balance;
}

body.school-site:not(.home-premium) h1 {
    max-width: 15ch;
    margin: 0 0 24px;
    font-size: clamp(2.5rem, 5.2vw, 4.25rem);
    line-height: 1.06;
}

body.school-site:not(.home-premium) :is(h2, .section-title) {
    max-width: 22ch;
    margin: 0 0 24px;
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    line-height: 1.12;
}

body.school-site:not(.home-premium) h3 {
    font-size: clamp(1.08rem, 1.7vw, 1.32rem);
    line-height: 1.3;
}

body.school-site:not(.home-premium) :is(p, li) {
    color: var(--school-muted, #596579) !important;
    -webkit-text-fill-color: currentColor !important;
    line-height: 1.65;
}

body.school-site:not(.home-premium) :is(.hero, .contacts-hero, .policy-hero, .pricing-hero, .refer-hero, .success-main) {
    min-height: 0 !important;
    padding-block: clamp(56px, 7vw, 88px) !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.school-site:not(.home-premium) :is(.hero-two-col, .hero-grid, .contacts-grid, .policy-hero-grid, .refer-hero__grid, .success-layout) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
}

body.school-site:not(.home-premium) :is(.hero-content, .hero-copy, .refer-hero__content, .success-copy) {
    min-width: 0;
    max-width: 660px;
}

body.school-site:not(.home-premium) :is(.hero-content > p, .hero-copy > p, .refer-hero__content > p, .contacts-hero p) {
    max-width: 58ch;
    font-size: 1.08rem;
    line-height: 1.65;
}

body.school-site:not(.home-premium) .hero-badge {
    display: inline-block;
    margin: 0 0 16px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #73501d !important;
    box-shadow: none !important;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.school-site:not(.home-premium) :is(.hero-image, .hero-visual, .hero-stage, .refer-hero__visual, .success-visual) {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
    border-radius: var(--school-radius-panel, 40px) !important;
    background: #f0ebe2 !important;
    background-image: none !important;
    box-shadow: 0 12px 32px rgba(16, 36, 63, .06) !important;
    clip-path: none !important;
}

body.school-site:not(.home-premium) :is(.section, .article-section, .faq, .cta-section, .pricing-included, .refer-mutual, .refer-steps, .refer-terms, .refer-final) {
    padding-block: clamp(56px, 7vw, 88px) !important;
    border: 0 !important;
    background-color: transparent !important;
}

body.school-site:not(.home-premium) :is(.section-header, .section-title) {
    color: var(--school-ink, #10243f) !important;
}

body.school-site:not(.home-premium) :is(.cards-grid, .features-grid, .steps-grid, .compare-grid, .contacts-grid, .pricing-grid, .refer-mutual__grid, .refer-terms__grid, .stats-row, .trust-grid, .pieces-grid, .process-steps) {
    gap: 20px !important;
}

body.school-site:not(.home-premium) :is(.feature-card, .compare-card, .step-card, .stat-item, .trust-item, .glass-card, .pricing-card, .faq-item, .signup-form-card, .cta-box, .refer-side, .refer-reward, .offer-summary, .offer-note, .contacts-inner, .policy-toc, .success-shell, .success-mark, .visual-copy, .visual-statuses) {
    min-width: 0;
    border: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
    border-radius: var(--school-radius-card, 32px) !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(16, 36, 63, .045) !important;
}

body.school-site:not(.home-premium) :is(.feature-card, .compare-card, .step-card, .stat-item, .trust-item, .glass-card, .pricing-card, .signup-form-card, .cta-box, .refer-side, .refer-reward, .offer-summary, .offer-note, .contacts-inner, .policy-toc, .success-shell, .visual-copy, .visual-statuses) {
    padding: clamp(20px, 3vw, 32px) !important;
}

body.school-site:not(.home-premium) :is(.feature-card, .compare-card, .step-card, .stat-item, .trust-item, .pricing-card) {
    transform: none !important;
    transition: border-color .16s ease, background-color .16s ease !important;
}

body.school-site:not(.home-premium) :is(.feature-card, .compare-card, .step-card, .stat-item, .trust-item, .pricing-card):hover {
    border-color: rgba(16, 36, 63, .2) !important;
    box-shadow: 0 8px 24px rgba(16, 36, 63, .045) !important;
    transform: none !important;
}

body.school-site:not(.home-premium) :is(.feature-icon, .step-number, .timeline-num, .timeline-dot, .advantage-icon, .stat-number) {
    color: #73501d !important;
    font-weight: 600 !important;
}

body.school-site:not(.home-premium) :is(.timeline-item, .proof-step, .pricing-included-list li) {
    border-color: var(--school-line, rgba(16, 36, 63, .12)) !important;
}

body.school-site:not(.home-premium) :is(.article-section, .article-content) {
    color: var(--school-text, #172033);
}

body.school-site:not(.home-premium) .article-content {
    max-width: 72ch;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.75;
}

body.school-site:not(.home-premium) .article-content :is(h2, h3) {
    margin-top: 1.8em;
    margin-bottom: .6em;
}

body.school-site:not(.home-premium) .article-content :is(p, li) {
    color: var(--school-text, #172033);
}

body.school-site:not(.home-premium) :is(.faq, .faq-list) {
    max-width: 920px;
    margin-inline: auto;
}

body.school-site:not(.home-premium) .faq-item {
    margin-block: 12px;
    padding: 8px 20px !important;
}

body.school-site:not(.home-premium) :is(.cta-section, .refer-final) {
    background: #f0f3fa !important;
}

body.school-site:not(.home-premium) :is(.cta-content, .refer-final__inner) {
    width: min(100% - 48px, 1120px);
    margin-inline: auto;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--school-line, rgba(16, 36, 63, .12));
    border-radius: var(--school-radius-panel, 40px);
    background: #fff;
}

body.school-site:not(.home-premium) :is(.pricing-card, .compare-card) :is(h2, h3) {
    color: var(--school-ink, #10243f) !important;
}

body.school-site:not(.home-premium) .pricing-card.featured {
    border-color: rgba(245, 158, 11, .5) !important;
    background: #fffaf0 !important;
}

body.school-site:not(.home-premium) :is(.pricing-price, .stat-number, .trust-number) {
    color: var(--school-ink, #10243f) !important;
    font-variant-numeric: tabular-nums;
}

body.school-site:not(.home-premium) :is(.policy-layout, .policy-hero-grid) {
    align-items: start;
}

body.school-site:not(.home-premium) .policy-layout {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 760px);
    align-items: start;
    gap: 32px;
    max-width: 1080px;
    margin-inline: auto;
}

body.school-site:not(.home-premium) .policy-document {
    min-width: 0;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--school-line, rgba(16, 36, 63, .12));
    border-radius: var(--school-radius-panel, 40px);
    background: #fff;
    color: var(--school-text, #172033);
    line-height: 1.75;
}

body.school-site:not(.home-premium) .policy-document :is(p, li) {
    color: var(--school-text, #172033);
}

body.school-site:not(.home-premium) .policy-toc {
    position: sticky;
    top: 24px;
    padding: 20px !important;
}

body.school-site:not(.home-premium) :is(.contacts-grid, .pricing-grid, .refer-hero__grid, .success-layout) > * {
    min-width: 0;
}

body.school-site:not(.home-premium) .hero-two-col > div:first-child > div[style*="grid-template-columns"] {
    color: var(--school-text, #172033) !important;
}

body.school-site:not(.home-premium) .hero-two-col > div:first-child > div[style*="grid-template-columns"] > div {
    border-color: rgba(16, 36, 63, .12) !important;
    border-radius: 20px !important;
    background: #fffaf0 !important;
    color: var(--school-ink, #10243f) !important;
    font-weight: 600;
}

body.school-site:not(.home-premium) :is(.contacts-hero, .pricing-hero, .refer-hero, .policy-hero) :is(h1, h2) {
    color: var(--school-ink, #10243f) !important;
}

body.school-site:not(.home-premium) :is(.hero, .contacts-hero, .policy-hero, .pricing-hero, .refer-hero, .section, .article-section, .faq, .cta-section, .pricing-included, .refer-mutual, .refer-steps, .refer-terms, .refer-final) :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #315df5;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    body.school-site:not(.home-premium) :is(.hero-two-col, .hero-grid, .contacts-grid, .policy-hero-grid, .refer-hero__grid, .success-layout) {
        grid-template-columns: 1fr;
    }

    body.school-site:not(.home-premium) :is(.cards-grid, .features-grid, .steps-grid, .compare-grid, .pricing-grid, .refer-mutual__grid, .refer-terms__grid, .stats-row, .trust-grid, .pieces-grid, .process-steps) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.school-site:not(.home-premium) .policy-layout {
        grid-template-columns: 1fr;
    }

    body.school-site:not(.home-premium) .policy-toc {
        position: static;
    }
}

@media (max-width: 600px) {
    body.school-site:not(.home-premium) .container {
        width: min(100% - 32px, 1200px);
    }

    body.school-site:not(.home-premium) :is(.hero, .contacts-hero, .policy-hero, .pricing-hero, .refer-hero, .success-main) {
        padding-block: 48px !important;
    }

    body.school-site:not(.home-premium) :is(.section, .article-section, .faq, .cta-section, .pricing-included, .refer-mutual, .refer-steps, .refer-terms, .refer-final) {
        padding-block: 48px !important;
    }

    body.school-site:not(.home-premium) h1 {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    body.school-site:not(.home-premium) :is(h2, .section-title) {
        font-size: clamp(1.7rem, 8vw, 2.35rem);
    }

    body.school-site:not(.home-premium) :is(.cards-grid, .features-grid, .steps-grid, .compare-grid, .pricing-grid, .refer-mutual__grid, .refer-terms__grid, .stats-row, .trust-grid, .pieces-grid, .process-steps) {
        grid-template-columns: 1fr !important;
    }

    body.school-site:not(.home-premium) :is(.cta-content, .refer-final__inner) {
        width: min(100% - 32px, 1120px);
        padding: 24px;
        border-radius: 32px;
    }

    body.school-site:not(.home-premium) .policy-document {
        padding: 24px;
        border-radius: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.school-site:not(.home-premium) * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
