/* School plan banner. Fixed palette on purpose: renders on every page and
   under all 15 themes, and themes.css is not loaded globally. */
.tbf-school-plan {
    --tbf-sp-navy: #0F1D2E;
    --tbf-sp-navy-2: #16293F;
    --tbf-sp-gilt: #C9A96F;
    --tbf-sp-ink: #FFFFFF;
    --tbf-sp-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    border: 1px solid rgba(201, 169, 111, 0.38);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, var(--tbf-sp-navy-2), var(--tbf-sp-navy));
    box-shadow: 0 10px 24px rgba(15, 29, 46, 0.22);
    color: var(--tbf-sp-ink);
    font-family: var(--tbf-sp-sans);
    overflow: hidden;

    
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.3, 1),
                opacity 0.42s ease,
                margin-top 0.42s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.tbf-school-plan.visible {
    transform: translateY(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .tbf-school-plan {
        transition: none;
    }
}

.tbf-school-plan .tbf-school-plan__inner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
}

.tbf-school-plan .tbf-school-plan__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

.tbf-school-plan .tbf-school-plan__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tbf-school-plan .tbf-school-plan__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.86);
}

.tbf-school-plan .tbf-school-plan__text strong {
    display: block;
    color: var(--tbf-sp-ink);
    font-weight: 600;
    font-size: 0.97rem;
    margin-bottom: 0.12rem;
}

.tbf-school-plan .tbf-school-plan__cta {
    flex: 0 0 auto;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 6px;
    background: var(--tbf-sp-gilt);
    color: var(--tbf-sp-navy);
    font-family: var(--tbf-sp-sans);
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.18s ease;
}

.tbf-school-plan .tbf-school-plan__cta:hover,
.tbf-school-plan .tbf-school-plan__cta:focus {
    filter: brightness(0.92);
    text-decoration: none;
    color: var(--tbf-sp-navy);
}

.tbf-school-plan .tbf-school-plan__close {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}

.tbf-school-plan .tbf-school-plan__close:hover,
.tbf-school-plan .tbf-school-plan__close:focus {
    color: var(--tbf-sp-ink);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    .tbf-school-plan .tbf-school-plan__inner {
        flex-wrap: wrap;
        gap: 0.6rem 0.75rem;
    }

    .tbf-school-plan .tbf-school-plan__text {
        flex: 1 1 100%;
        order: 3;
    }

    .tbf-school-plan .tbf-school-plan__cta {
        flex: 1 1 auto;
        order: 4;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tbf-school-plan .tbf-school-plan__cta,
    .tbf-school-plan .tbf-school-plan__close {
        transition: none;
    }
}
