/* Tuition & Fees pages (tuition-and-fees.php, k-8-tuition.php). tf- prefix. */
/* Colors match the 3 Full Day Homeschool Program page. */
.tf {
    --tf-blue: #374ea2;
    --tf-purple: #8e55a2;
    --tf-peach: #f9b38e;
    --tf-yellow: #fdcb0b;
    --tf-line: #dfe3ef;
    --tf-text: #2b3150;
}

.tf-intro {
    text-align: center;
    margin-bottom: 10px;
}

.tf-eyebrow {
    display: block;
    color: var(--tf-purple);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.tf-intro h2 {
    color: var(--tf-blue);
    margin-bottom: 8px;
}

.tf-intro h2 span {
    color: var(--tf-purple);
    font-weight: 400;
}

.tf-section {
    margin-top: 45px;
}

.tf-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tf-blue);
    margin-bottom: 15px;
}

.tf-section h3::before {
    content: "";
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--tf-accent, var(--tf-blue));
    flex-shrink: 0;
}

.tf-accent-purple { --tf-accent: var(--tf-purple); }
.tf-accent-yellow { --tf-accent: var(--tf-yellow); }
.tf-accent-peach { --tf-accent: var(--tf-peach); }

.tf-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-left: 6px solid var(--tf-accent, var(--tf-blue));
}

.tf-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    color: var(--tf-text);
    background: #fff;
    margin: 0;
}

.tf-table th,
.tf-table td {
    border: 1px solid var(--tf-line);
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
    font-size: 0.95rem;
}

.tf-table th[scope="row"] {
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    color: var(--tf-blue);
    width: 22%;
}

.tf-table small,
.tf-sub {
    display: block;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #6b7290;
    font-size: 0.8rem;
}

.tf-band {
    background: var(--tf-blue);
    color: #fff;
}

.tf-band td {
    color: #fff;
    border-color: var(--tf-blue);
}

.tf-band-yellow {
    background: var(--tf-yellow);
}

.tf-band-yellow td {
    color: var(--tf-text);
    border-color: var(--tf-yellow);
}

.tf-grades th {
    background: var(--tf-yellow);
    color: var(--tf-blue);
    font-weight: 700;
}

.tf-camps th.tf-col {
    background: var(--tf-blue);
    color: #fff;
    font-weight: 700;
}

.tf-head th {
    background: var(--tf-peach);
    color: var(--tf-text);
    font-weight: 700;
}

.tf-big {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tf-blue);
}

.tf-rate {
    font-weight: 700;
    color: var(--tf-blue);
    white-space: nowrap;
}

.tf-program {
    text-align: left !important;
    font-weight: 700;
    color: var(--tf-blue);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.tf-program a {
    color: var(--tf-blue);
}

.tf-program a:hover {
    color: var(--tf-purple);
}

.tf.post-content .tf-info p {
    margin-bottom: 6px !important;
}

.tf-swipe {
    display: none;
    font-size: 0.8rem;
    color: #6b7290;
    margin-bottom: 6px;
}

.tf-note {
    text-align: right;
    font-style: italic;
    color: #6b7290;
    font-size: 0.85rem;
    margin-top: 8px;
}

.tf-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--tf-peach);
}

.tf-info > div {
    background: #fdeee6;
    padding: 20px 22px;
    border: 1px solid var(--tf-peach);
}

.tf-info h4 {
    color: var(--tf-purple);
    margin-bottom: 8px;
}

.tf-info p {
    margin-bottom: 6px;
    color: var(--tf-text);
}

.tf-info a {
    color: var(--tf-purple);
}

.tf-cta {
    margin-top: 45px;
    background: var(--tf-blue);
    color: #fff;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.tf-cta h4 {
    color: #fff;
    margin-bottom: 4px;
}

.tf-cta p {
    margin: 0;
    color: #e6e9f5;
}

.tf-cta p a {
    color: #fff;
}

.tf-cta .tf-cta-btn {
    background: var(--tf-yellow);
    color: var(--tf-blue);
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 4px;
    white-space: nowrap;
}

.tf-disclaimer {
    font-style: italic;
    color: #6b7290;
    font-size: 0.85rem;
    margin-top: 15px;
}

@media (max-width: 767px) {
    .tf-info {
        grid-template-columns: 1fr;
    }

    .tf-swipe {
        display: block;
    }
}

/* ---------- K-8 tuition page: info blocks and payment plans ---------- */
.tf-block {
    margin-top: 30px;
}

.tf-block h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tf-blue);
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.tf-block h3::before {
    content: "";
    width: 22px;
    height: 8px;
    border-radius: 4px;
    background: var(--tf-accent, var(--tf-blue));
    flex-shrink: 0;
}

.tf.post-content .tf-block p {
    margin-bottom: 10px;
    color: var(--tf-text);
}

.tf-block strong {
    color: var(--tf-blue);
}

.tf-block a {
    color: var(--tf-purple);
    font-weight: 600;
    text-decoration: underline;
}

.tf-small {
    font-size: 0.9rem;
    color: #6b7290 !important;
}

.tf-plan {
    margin-top: 30px;
    border-top: 5px solid var(--tf-accent, var(--tf-blue));
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px;
}

.tf-plan .tf-table {
    min-width: 520px;
}

.tf-plan .tf-table th,
.tf-plan .tf-table td {
    width: 33%;
}

.tf-plan .tf-plan-name {
    background: var(--tf-accent, var(--tf-blue));
    color: #fff;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tf-plan .tf-plan-col {
    background: var(--tf-col, var(--tf-yellow));
    color: var(--tf-text);
    font-weight: 700;
}

.tf-plan th[scope="row"] {
    text-transform: none;
    font-size: 0.95rem;
    letter-spacing: 0;
    font-weight: 500;
}

.tf-plan .tf-total th,
.tf-plan .tf-total td {
    background: #f5f7fc;
    font-weight: 700;
    color: var(--tf-blue);
}

.tf-plan .tf-due th {
    font-style: italic;
    font-size: 0.85rem;
    color: #6b7290;
}

.tf-plan .tf-due td strong {
    display: block;
    font-size: 1.1rem;
    color: var(--tf-blue);
}

.tf-plan-semester { --tf-accent: var(--tf-purple); --tf-col: var(--tf-peach); }
.tf-plan-monthly { --tf-accent: var(--tf-yellow); --tf-col: var(--tf-blue); }
.tf-plan-monthly .tf-plan-name { color: var(--tf-text); }
.tf-plan-monthly .tf-plan-col { color: #fff; }

/* style.css sets post-content headings to display: flow-root, which collapses the markers. */
.tf.post-content .tf-section h3,
.tf.post-content .tf-block h3 {
    display: flex !important;
}

.tf.post-content .tf-section h3::before,
.tf.post-content .tf-block h3::before {
    display: block;
}

/* Payment plan tables have only 3 columns: fit them on phones instead of scrolling. */
@media (max-width: 767px) {
    .tf-plan {
        padding: 6px;
    }

    .tf-plan .tf-table {
        min-width: 0;
        table-layout: fixed;
    }

    .tf-plan .tf-table th,
    .tf-plan .tf-table td {
        padding: 8px 6px;
        font-size: 0.82rem;
        word-wrap: break-word;
    }

    .tf-plan .tf-plan-name {
        font-size: 0.85rem;
    }

    .tf-plan .tf-due th {
        font-size: 0.72rem;
    }

    .tf-plan .tf-due td strong {
        font-size: 0.95rem;
    }
}
