
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fees-content-width { max-width: 1120px; }

.page-header {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    padding: 150px 0 85px;
    color: var(--white);
    text-align: center;
    background: url('/media/default_page_media/admissions.webp') center 28% / cover;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 29, 54, 0.62);
}

.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
    margin: 18px 0 10px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(2.65rem, 6vw, 4.4rem);
    line-height: 1.05;
}
.page-header p { margin: 0; font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.92; }

.fees-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
}
.fees-breadcrumb a { color: inherit; font-weight: 600; text-decoration: none; }
.fees-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.fees-intro-section { padding: 72px 0 58px; background: var(--white); }
.fees-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
}
.section-label, .fee-eyebrow {
    display: block;
    margin: 0 0 8px;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.fees-intro h2, .fee-section-heading h2, .fee-important-note h2 {
    margin: 0;
    color: var(--accent-color);
    font-family: var(--font-display);
}
.fees-intro h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.fees-intro p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.print-fees-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 18px;
    color: var(--accent-color);
    background: var(--white);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    border-radius: var(--border-radius);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.print-fees-button svg { width: 20px; height: 20px; }
.print-fees-button:hover { color: var(--primary-color); transform: translateY(-2px); }
.print-fees-button:focus-visible, .fees-back-link:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.32);
    outline-offset: 3px;
}

.fee-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 44px;
    overflow: hidden;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    border-radius: var(--border-radius-lg);
}
.fee-meta div {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 22px 25px;
    background: var(--off-white);
}
.fee-meta span {
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.fee-meta strong { color: var(--accent-color); font-size: 0.94rem; }

.fee-schedule-section { padding: 76px 0; background: var(--white); }
.fee-schedule-section--tinted { background: var(--off-white); }
.fee-section-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 30px;
}
.fee-step {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    font-size: 0.77rem;
    font-weight: 700;
}
.fee-section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.fee-section-heading > div > p:last-child {
    margin: 7px 0 0;
    color: var(--text-light);
    line-height: 1.7;
}

.fee-table-shell {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xs);
}
.fee-table-shell--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fee-table-shell--scroll:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.28);
    outline-offset: 3px;
}
.table-scroll-hint {
    display: none;
    margin: 0 0 10px;
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 600;
}
.fees-table { width: 100%; border-collapse: collapse; color: var(--text-dark); }
.fees-table th, .fees-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-light);
    text-align: left;
    vertical-align: middle;
}
.fees-table thead th {
    color: var(--white);
    background: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.fees-table tbody th { color: var(--accent-color); font-size: 0.9rem; font-weight: 600; }
.fees-table tbody td { color: var(--text-light); font-size: 0.88rem; }
.fees-table tbody tr:last-child th, .fees-table tbody tr:last-child td { border-bottom: 0; }
.fees-table tbody tr:nth-child(even) { background: rgba(var(--accent-rgb), 0.025); }
.fees-table--tuition tbody td:last-child {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
}
.fees-table--tuition thead th:last-child { text-align: right; }
.fees-table--wide { min-width: 920px; }
.fee-cell-lines { display: block; min-width: 180px; line-height: 1.7; }

.fee-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.fee-status--annual, .fee-status--applicable { color: #7c4a0c; background: #fff3df; }
.fee-status--refundable, .fee-status--optional { color: #176441; background: #e7f6ee; }
.fee-status--returning { color: #5f487e; background: #f2ebfa; }
.fee-table-note {
    margin: 15px 3px 0;
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.65;
}

.other-costs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.other-cost-card {
    padding: 26px;
    background: var(--white);
    border: 1px solid rgba(var(--accent-rgb), 0.09);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xs);
}
.other-cost-card h3 {
    margin: 17px 0 9px;
    color: var(--accent-color);
    font-family: var(--font-display);
    font-size: 1.2rem;
}
.other-cost-card p { margin: 0; color: var(--text-light); font-size: 0.88rem; line-height: 1.7; }

.fee-notes-section { padding: 76px 0 88px; background: var(--white); }
.fee-important-note {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 45px;
    padding: 34px 36px;
    background: rgba(var(--primary-rgb), 0.055);
    border: 1px solid rgba(var(--primary-rgb), 0.13);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
}
.fee-important-note h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.fee-important-note ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.8;
}
.fee-important-note li + li { margin-top: 7px; }
.fees-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.fees-back-link {
    margin-left: 8px;
    color: var(--accent-color);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.fees-back-link:hover { color: var(--primary-color); }

@media (max-width: 900px) {
    .fees-intro { grid-template-columns: 1fr; align-items: start; gap: 24px; }
    .print-fees-button { justify-self: start; }
    .fee-meta, .other-costs-grid { grid-template-columns: 1fr; }
    .fee-important-note { grid-template-columns: 1fr; gap: 20px; }
    .table-scroll-hint { display: block; }
}

@media (max-width: 600px) {
    .page-header {
        min-height: 360px;
        padding: 125px 0 65px;
        background-position: center;
    }
    .fees-intro-section, .fee-schedule-section, .fee-notes-section { padding: 58px 0; }
    .fee-section-heading { gap: 13px; }
    .fee-step { width: 38px; height: 38px; }
    .fees-table th, .fees-table td { padding: 13px 14px; }
    .fees-table--tuition tbody th, .fees-table--tuition tbody td { font-size: 0.82rem; }
    .fee-important-note { padding: 27px 24px; }
    .fees-actions { align-items: stretch; flex-direction: column; }
    .fees-actions .btn { width: 100%; justify-content: center; }
    .fees-back-link { margin: 6px 0 0; text-align: center; }
}

@media print {
    @page { margin: 14mm; }
    body { color: #111; background: #fff; font-size: 10pt; }
    #header-placeholder, #footer-placeholder, .print-fees-button, .fees-actions, .table-scroll-hint,
    .page-header::before { display: none !important; }
    .page-header {
        min-height: 0;
        display: block;
        padding: 0 0 16px;
        color: #111;
        background: none;
        text-align: left;
    }
    .page-header h1, .page-header p, .fees-breadcrumb { color: #111; }
    .fees-breadcrumb { justify-content: flex-start; }
    .fees-intro-section, .fee-schedule-section, .fee-notes-section {
        padding: 18px 0;
        background: #fff;
    }
    .fee-meta, .other-costs-grid, .fee-important-note { break-inside: avoid; }
    .fee-table-shell { overflow: visible; border-color: #bbb; box-shadow: none; }
    .fees-table--wide { min-width: 0; font-size: 8pt; }
    .fees-table thead th { color: #111; background: #e9e9e9; }
    .fees-table th, .fees-table td { padding: 7px 8px; border-color: #ccc; }
    .fee-status { color: #111; background: #eee; border: 1px solid #bbb; }
}
