.mf-fee-schedule {
  --mf-fee-blue: #087fc5;
  --mf-fee-gold: #d2a64f;
  --mf-fee-ink: #252525;
  --mf-fee-muted: #747b84;
  --mf-fee-surface: #f5f6fa;
  color: var(--mf-fee-ink);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.mf-fee-schedule *,
.mf-fee-schedule *::before,
.mf-fee-schedule *::after {
  box-sizing: border-box;
}

.mf-schedule-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 42px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e0e4e8;
}

.mf-schedule-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--mf-fee-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.mf-schedule-nav a:hover,
.mf-schedule-nav a:focus-visible,
.mf-schedule-nav a[aria-current="page"] {
  color: var(--mf-fee-blue);
}

.mf-schedule-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  height: 3px;
  background: var(--mf-fee-gold);
  content: "";
}

.mf-fee-intro {
  max-width: 790px;
  margin-bottom: 46px;
}

.mf-fee-eyebrow {
  margin: 0 0 8px;
  color: var(--mf-fee-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mf-fee-intro h2,
.mf-fee-terms > h3,
.mf-fee-group-heading h3,
.mf-fee-notice h3,
.mf-fee-cta h3 {
  margin: 0;
  color: var(--mf-fee-ink);
  font-family: "Spicy Rice", Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
}

.mf-fee-intro h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.mf-fee-intro h2 span {
  display: block;
  color: var(--mf-fee-gold);
}

.mf-fee-lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--mf-fee-muted);
  font-size: 18px;
}

.mf-fee-lead > :first-child,
.mf-fee-notice > div > :first-child {
  margin-top: 0;
}

.mf-fee-lead > :last-child,
.mf-fee-notice > div > :last-child {
  margin-bottom: 0;
}

.mf-fee-terms {
  margin-bottom: 58px;
}

.mf-fee-terms > h3,
.mf-fee-group-heading h3 {
  font-size: clamp(26px, 2.7vw, 34px);
}

.mf-fee-term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.mf-fee-term {
  min-width: 0;
  padding: 22px 24px 24px;
  border: 1px solid #e1e4e8;
  border-top: 4px solid var(--mf-fee-gold);
  background: #fff;
}

.mf-fee-term h4 {
  margin: 0 0 4px;
  color: var(--mf-fee-ink);
  font-size: 18px;
  font-weight: 700;
}

.mf-fee-term p {
  margin: 0;
  color: var(--mf-fee-muted);
  font-size: 14px;
}

.mf-fee-term .mf-fee-term-weeks {
  margin-bottom: 10px;
  color: var(--mf-fee-blue);
  font-size: 15px;
  font-weight: 700;
}

.mf-fee-group {
  margin: 0 0 54px;
}

.mf-fee-group-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 18px;
}

.mf-fee-group-heading p {
  margin: 0;
  color: var(--mf-fee-muted);
  text-align: right;
}

.mf-fee-table-wrap {
  width: 100%;
  border: 1px solid #e0e4e8;
  background: #fff;
}

.mf-fee-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.mf-fee-table th,
.mf-fee-table td {
  border: 0;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  vertical-align: middle;
}

.mf-fee-table thead th {
  padding: 16px 18px;
  background: var(--mf-fee-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.mf-fee-table thead th:first-child {
  width: 40%;
}

.mf-fee-table thead th:not(:first-child) {
  width: 20%;
  text-align: center;
}

.mf-fee-table thead th span,
.mf-fee-table thead th small {
  display: block;
}

.mf-fee-table thead th small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 500;
}

.mf-fee-table tbody th,
.mf-fee-table tbody td {
  padding: 19px 18px;
}

.mf-fee-table tbody tr:nth-child(4n + 3) > th,
.mf-fee-table tbody tr:nth-child(4n + 3) > td {
  background: var(--mf-fee-surface);
}

.mf-fee-table tbody td {
  color: var(--mf-fee-ink);
  text-align: center;
}

.mf-fee-table tbody td strong {
  color: var(--mf-fee-blue);
  font-size: 19px;
}

.mf-fee-name {
  display: block;
  color: var(--mf-fee-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.mf-fee-table tbody th small {
  display: block;
  margin-top: 5px;
  color: var(--mf-fee-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.mf-fee-wide-value strong,
.mf-fee-wide-value span {
  display: inline-block;
  margin-right: 8px;
}

.mf-fee-wide-value a {
  color: var(--mf-fee-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mf-fee-not-listed {
  color: #a4a9af;
}

.mf-fee-table .mf-fee-row-note td {
  padding-top: 10px;
  padding-bottom: 14px;
  background: #fff;
  color: var(--mf-fee-muted);
  font-size: 13px;
  text-align: left;
}

.mf-fee-table tbody tr:last-child > th,
.mf-fee-table tbody tr:last-child > td {
  border-bottom: 0;
}

.mf-fee-notice {
  margin-top: 18px;
  padding: 30px 32px;
  border-left: 5px solid var(--mf-fee-gold);
  background: var(--mf-fee-surface);
}

.mf-fee-notice h3 {
  margin-bottom: 12px;
  font-size: 26px;
}

.mf-fee-notice p {
  color: var(--mf-fee-muted);
}

.mf-fee-cta {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding: 32px 36px;
  background: #76828c;
  color: #fff;
}

.mf-fee-cta h3 {
  color: #fff;
  font-size: 28px;
}

.mf-fee-cta p {
  max-width: 670px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.mf-fee-button {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 3px;
  background: var(--mf-fee-gold);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: uppercase;
}

.mf-fee-button:hover,
.mf-fee-button:focus-visible {
  background: #b98b32;
}

.mf-fee-button:focus-visible,
.mf-fee-wide-value a:focus-visible {
  outline: 3px solid #252525;
  outline-offset: 3px;
}

.mf-fee-empty {
  padding: 20px;
  border: 1px dashed #c7ccd1;
  background: #fff;
  color: #6b7178;
}

@media (max-width: 900px) {
  .mf-fee-term-grid {
    gap: 12px;
  }

  .mf-fee-term {
    padding: 18px;
  }

  .mf-fee-group-heading {
    display: block;
  }

  .mf-fee-group-heading p {
    margin-top: 8px;
    text-align: left;
  }

  .mf-fee-table thead th:first-child {
    width: 34%;
  }

  .mf-fee-table thead th:not(:first-child) {
    width: 22%;
  }

  .mf-fee-table thead th,
  .mf-fee-table tbody th,
  .mf-fee-table tbody td {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (max-width: 767px) {
  .mf-fee-schedule {
    font-size: 15px;
  }

  .mf-fee-intro,
  .mf-fee-terms,
  .mf-fee-group {
    margin-bottom: 40px;
  }

  .mf-fee-term-grid {
    grid-template-columns: 1fr;
  }

  .mf-fee-table-wrap {
    border: 0;
    background: transparent;
  }

  .mf-fee-table,
  .mf-fee-table tbody {
    display: block;
    width: 100%;
  }

  .mf-fee-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .mf-fee-table tbody tr.mf-fee-row {
    display: block;
    margin: 0 0 14px;
    border: 1px solid #dde1e5;
    border-top: 4px solid var(--mf-fee-blue);
    background: #fff;
  }

  .mf-fee-table tbody tr.mf-fee-row > th {
    display: block;
    width: 100%;
    padding: 17px 18px 14px;
    border-bottom: 1px solid #e2e5e8;
    background: var(--mf-fee-surface);
  }

  .mf-fee-table tbody tr.mf-fee-row > td {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 18px;
    border-bottom: 1px solid #eef0f2;
    background: #fff;
    text-align: right;
  }

  .mf-fee-table tbody tr.mf-fee-row > td::before {
    content: attr(data-label);
    color: var(--mf-fee-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
  }

  .mf-fee-table tbody tr.mf-fee-row > td:last-child {
    border-bottom: 0;
  }

  .mf-fee-table tbody tr.mf-fee-row > td.mf-fee-wide-value {
    display: block;
    text-align: left;
  }

  .mf-fee-table tbody tr.mf-fee-row > td.mf-fee-wide-value::before {
    display: block;
    margin-bottom: 4px;
  }

  .mf-fee-table tbody tr.mf-fee-row + tr.mf-fee-row-note {
    display: block;
    margin: -14px 0 14px;
    border: 1px solid #dde1e5;
    border-top: 0;
  }

  .mf-fee-table tbody tr.mf-fee-row-note td {
    display: block;
    width: 100%;
    border: 0;
  }

  .mf-fee-notice {
    padding: 24px 22px;
  }

  .mf-fee-cta {
    display: block;
    padding: 26px 24px;
  }

  .mf-fee-button {
    width: 100%;
    margin-top: 20px;
  }
}
