/* Tuition & Financial Assistance page. Matches the design artboards 12a (desktop) and
   12b (mobile). Shared tokens and components live in ../site.css. */

.tui-intro.section { padding: 36px 0 0; }
.tui-intro p { max-width: 820px; font-size: 17px; line-height: 1.75; margin: 0 0 14px; }
.tui-intro a { font-weight: 700; }
@media (max-width: 859px) { .tui-intro.section { padding-top: 20px; } .tui-intro p { font-size: 15px; margin-bottom: 12px; } }

/* Small brick label used as the section heading ("Tuition 2026–27"). */
.tui-label { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--brick); margin: 0 0 6px; }
.tui-rows + .tui-label { margin-top: 34px; }

/* Grade / price rows. */
.tui-rows { margin: 0; }
.tui-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.tui-row dt { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: -.015em; }
.tui-row dd { margin: 0; font-size: 28px; font-weight: 800; color: var(--brick); letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Fee rows: name with a note underneath, amount on the right. */
.tui-rows--fees .tui-row { padding: 15px 0; }
.tui-rows--fees dt { font-size: 17px; letter-spacing: 0; }
.tui-rows--fees dd { font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: 0; }
.tui-fee__note { display: block; font-size: 14px; line-height: 1.55; color: var(--warm-400); font-weight: 400; margin-top: 3px; }

@media (max-width: 859px) {
  .tui-rows + .tui-label { margin-top: 22px; }
  .tui-row { padding: 13px 0; gap: 14px; }
  .tui-row dt { font-size: 16px; }
  .tui-row dd { font-size: 21px; }
  .tui-rows--fees .tui-row { padding: 12px 0; }
  .tui-rows--fees dt { font-size: 15px; }
  .tui-rows--fees dd { font-size: 16px; }
  .tui-fee__note { font-size: 13px; }
}

/* Right column: navy payment-plans card and cream "at a glance" card. */
.tui-side { display: flex; flex-direction: column; gap: 20px; }
.tui-plans { background: var(--navy); border-radius: 10px; padding: 28px 30px; }
.tui-plans .eyebrow { margin-bottom: 12px; }
.tui-plans h2 { font-size: 26px; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 14px; }
.tui-plans p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.78); margin: 0 0 12px; max-width: none; }
.tui-plans p:last-child { margin-bottom: 0; }

.tui-glance { background: var(--cream); border: 1.5px solid var(--sand-deep); border-radius: 10px; padding: 26px 28px; }
.tui-glance__title { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.tui-stat { padding: 14px 0; border-top: 1px solid var(--sand-deep); }
.tui-stat__num { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--brick); line-height: 1.05; }
.tui-stat__label { font-size: 14px; line-height: 1.5; color: var(--warm-600); margin-top: 4px; }
.tui-glance .btn { display: block; margin-top: 16px; padding: 15px 20px; font-size: 13px; }

@media (max-width: 859px) {
  /* The navy card runs edge to edge on phones, as in the mobile design. */
  .tui-plans { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; padding: 24px var(--gutter); }
  .tui-plans h2 { font-size: 21px; }
  .tui-plans p { font-size: 14px; }
  .tui-glance { padding: 16px 18px; }
  .tui-glance__title { font-size: 14px; }
  .tui-stat { padding: 11px 0; }
  .tui-stat__num { font-size: 21px; }
  .tui-stat__label { font-size: 13px; }
}

/* How to apply. */
.tui-apply.section { padding-top: 0; }
.tui-apply__inner { max-width: 740px; }
.tui-apply p { font-size: 16px; line-height: 1.75; margin: 0 0 20px; max-width: none; }
.tui-btn-navy { display: block; background: var(--navy); border-color: var(--navy); }
.tui-btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
@media (min-width: 860px) { .tui-btn-navy { display: inline-block; } }

/* Short notes above and below the fee lists, and the three onboarding options (2027–28). */
.tui-fees-intro { font-size: 16px; line-height: 1.7; color: var(--warm-600); margin: 0 0 8px; max-width: 640px; }
.tui-fees-after { margin-top: 14px; }
.tui-rows + .tui-fees-intro { margin-top: 14px; }
.tui-fees-intro + .tui-label, .tui-options + .tui-fees-intro { margin-top: 14px; }
.tui-fees-intro + .tui-label { margin-top: 34px; }
.tui-options { margin: 4px 0 0; padding-left: 1.4em; font-size: 16px; line-height: 1.7; color: var(--navy); }
.tui-options li { margin-bottom: 8px; }
.tui-label--spaced { margin-top: 30px; }
@media (max-width: 859px) {
  .tui-fees-intro, .tui-options { font-size: 15px; }
  .tui-fees-intro + .tui-label { margin-top: 22px; }
}

/* 2027–28 tuition table, modeled on the school's own tuition chart:
   navy header row, light striped rows, brick-red Total column. */
.tui-table-wrap { margin: 0; }
.tui-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tui-table th, .tui-table td { padding: 16px 12px; text-align: center; font-size: 19px; color: var(--navy); border-bottom: 1px solid #e6e4e8; }
.tui-table thead th { background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 18px 12px; border-bottom: 0; }
.tui-table tbody tr:nth-child(odd) th, .tui-table tbody tr:nth-child(odd) td { background: #f4f4f6; }
.tui-table tbody th { font-weight: 800; }
.tui-table .tui-na { color: var(--warm-400); font-style: italic; }
.tui-table .tui-total, .tui-table tbody tr td.tui-total { background: var(--brick); color: #fff; font-weight: 800; border-bottom-color: rgba(255,255,255,.18); }
.tui-table tbody tr:nth-child(odd) td.tui-total { background: color-mix(in srgb, var(--brick) 92%, #000); }
.tui-grade-word { display: none; }
.tui-table-note { text-align: center; font-size: 16px; color: var(--navy); margin: 16px 0 0; }
.tui-star { color: var(--brick); font-weight: 700; }
.tui-under.section { padding-top: 8px; }
.tui-label--first { margin-top: 34px; }

/* Phones: each grade becomes its own card, labels on the left, amounts on the right. */
@media (max-width: 699px) {
  .tui-table thead { position: absolute; left: -9999px; }
  .tui-table, .tui-table tbody, .tui-table tr, .tui-table th, .tui-table td { display: block; }
  .tui-table tr { border: 1px solid #e6e4e8; border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
  .tui-table tbody tr:nth-child(odd) th, .tui-table tbody tr:nth-child(odd) td { background: transparent; }
  .tui-table tbody th { background: var(--navy) !important; color: #fff; text-align: left; font-size: 17px; padding: 12px 16px; border: 0; }
  .tui-grade-word { display: inline; }
  .tui-table td { display: flex; justify-content: space-between; text-align: right; font-size: 16px; padding: 10px 16px; }
  .tui-table td::before { content: attr(data-label); color: var(--warm-600); font-weight: 400; font-style: normal; text-align: left; }
  .tui-table td.tui-total { background: var(--brick) !important; border-bottom: 0; font-size: 17px; }
  .tui-table td.tui-total::before { color: #fff; font-weight: 700; }
  .tui-table-note { font-size: 14px; text-align: left; }
}
/* Override the site-wide table look (cream stripes, column rules) for this chart. */
.tui-table th, .tui-table td { border-left: 0; border-right: 0; }
.tui-table tbody tr:nth-child(even) th, .tui-table tbody tr:nth-child(even) td:not(.tui-total) { background: #fff; }
.tui-table-note { max-width: none; }
.tui-under .split > div:first-child > .tui-label:first-child { margin-top: 0; }
@media (max-width: 699px) { .tui-table { min-width: 0; } }

/* Nov 2026 adjustments: table about two-thirds of its first size, larger section headings,
   and "non-refundable" highlighted in brick. */
.tui-table-wrap { max-width: 760px; margin-inline: auto; }
.tui-table th, .tui-table td { font-size: 15px; padding: 10px 8px; }
.tui-table thead th { font-size: 11px; letter-spacing: .14em; padding: 12px 8px; }
.tui-table-note { font-size: 14px; margin-top: 12px; }
.tui-label--big { font-size: 17px; }
.tui-label--gap { margin-top: 34px; }
.tui-under .split > div:first-child p { font-size: 16px; line-height: 1.7; }
.tui-under .split > div:first-child .btn { margin: 4px 0 6px; }
.tui-hl { background: var(--brick); color: #fff; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
@media (max-width: 699px) {
  .tui-table th, .tui-table td { font-size: 15px; padding: 9px 14px; }
  .tui-label--big { font-size: 15px; }
  .tui-label--gap { margin-top: 26px; }
}
.tui-table-note { text-wrap: balance; }
/* Light frame around the whole tuition grid (desktop). */
@media (min-width: 700px) { .tui-table { border: 1px solid #c9c4cc; } }
